New modules 'vfscanf', 'vscanf'.
[gnulib.git] / ChangeLog
1 2011-04-30  Bruno Haible  <bruno@clisp.org>
2
3         New modules 'vfscanf', 'vscanf'.
4         * modules/vfscanf: New file.
5         * modules/vscanf: New file.
6         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7         here.
8         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
9         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
10
11 2011-04-30  Bruno Haible  <bruno@clisp.org>
12
13         passfd: Add comments.
14         * lib/passfd.c: Add comments about platforms.
15
16 2011-04-30  Bruno Haible  <bruno@clisp.org>
17
18         sys_uio: Make <sys/uio.h> self-contained.
19         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21
22 2011-04-30  Bruno Haible  <bruno@clisp.org>
23
24         sys_socket: Ensure 'struct iovec' definition.
25         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
26         <sys/socket.h>.
27         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
28
29 2011-04-30  Bruno Haible  <bruno@clisp.org>
30
31         sys_uio: Protect definition of 'struct iovec'.
32         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
33         it as a C struct.
34
35 2011-04-30  Bruno Haible  <bruno@clisp.org>
36
37         manywarnings: fix indentation
38         * m4/manywarnings.m4: Indent by 2 spaces consistently.
39
40 2011-04-30  Bruno Haible  <bruno@clisp.org>
41
42         netdb: Fix invalid C syntax.
43         * lib/netdb.in.h (AI_ADDRCONFIG): Fix comment syntax.
44
45 2011-04-30  Pádraig Brady <P@draigBrady.com>
46
47         manywarnings: add -Wno-missing-field-initializers if needed.
48         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
49         option if it's needed to allow initialization with { 0, }
50
51 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
52
53         announce-gen: cosmetic improvement
54         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
55
56 2011-04-29  Jim Meyering  <meyering@redhat.com>
57
58         vc-list-files: indent with spaces, not TABs
59         * build-aux/vc-list-files: Convert leading TABs to spaces,
60         to match the style of most other files in gnulib.
61
62         announce-gen: indent with spaces, not TABs
63         * build-aux/announce-gen: Convert all TABs to spaces, to match
64         the style of most other files in gnulib.
65
66 2011-04-29  Eric Blake  <eblake@redhat.com>
67
68         quotearg: avoid uninitialized variable use
69         * lib/quotearg.c (quoting_options_from_style): Initialize
70         remaining fields, and ensure that custom styles are only used via
71         quoting_options rather than quoting_style.
72
73 2011-04-29  Jim Meyering  <meyering@redhat.com>
74
75         maint.mk: remove unused VC-tag variable
76         * top/maint.mk (VC-tag): Remove unused variable.
77
78 2011-04-29  Bruno Haible  <bruno@clisp.org>
79
80         netdb: fix gai_strerror replacements
81         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
82         * modules/netdb: Substitute it.
83
84 2011-04-29  Jim Meyering  <meyering@redhat.com>
85
86         test-getcwd.c: avoid new set-but-not-used warning
87         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
88         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
89         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
90         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
91
92         test-hash.c: avoid a new shadowing warning
93         * tests/test-hash.c (main): Don't shadow "dup".
94
95 2011-04-28  Eric Blake  <eblake@redhat.com>
96
97         getaddrinfo: fix gai_strerror signature
98         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
99         and work around mingw with UNICODE defined.
100         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
101         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
102         * modules/netdb (Makefile.am): Substitute it.
103         * lib/netdb.in.h (gai_strerror): Declare replacement.
104         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
105         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
106         the fix.
107
108         getsockopt: avoid compiler warning
109         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
110         Reported by Matthias Bolte.
111
112         tests: drop unused link dependency
113         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
114         * modules/dirent-safer-tests (Makefile.am): Likewise.
115         * modules/fdopendir-tests (Makefile.am): Likewise.
116         * modules/mkfifoat-tests (Makefile.am): Likewise.
117         * modules/openat-safer-tests (Makefile.am): Likewise.
118         * modules/openat-tests (Makefile.am): Likewise.
119         * modules/readlinkat-tests (Makefile.am): Likewise.
120         * modules/symlinkat-tests (Makefile.am): Likewise.
121         * modules/linkat-tests (Makefile.am): Likewise.
122         (Depends-on): Switch to filenamecat-lgpl.
123         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
124         LIBINTL.
125         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
126         * tests/test-linkat.c (main): Don't require xalloc.
127
128         hash, mgetgroups: drop xalloc dependency
129         * lib/hash.c (includes): Adjust includes.
130         * lib/mgetgroups.c (includes): Likewise.
131         (xgetgroups): Move...
132         * lib/xgetgroups.c: ...to new file.
133         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
134         * modules/xgetgroups: New file, split from...
135         * modules/mgetgroups: ...here.
136         (Depends-on): Add xalloc-oversized.
137         * modules/hash (Depends-on): Likewise.
138         * modules/hash-tests (Depends-on): Drop xalloc.
139         (test_hash_LDADD): Drop unused library.
140         * tests/test-hash.c (main): Break xalloc dependency.
141         (includes): Drop unused include.
142
143         xalloc-oversized: new module
144         * modules/xalloc-oversized: New module.
145         * modules/xalloc (Depends-on): Add it.
146         * lib/xalloc.h (xalloc_oversized): Move...
147         * lib/xalloc-oversized.h: ...into new file.
148
149         utimecmp: drop dependency on xmalloc
150         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
151         due to memory pressure.
152         * modules/utimecmp (Depends-on): Drop xalloc.
153
154 2011-04-27  Eric Blake  <eblake@redhat.com>
155
156         getcwd: fix mingw bugs
157         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
158         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
159         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
160
161 2011-04-27  Bruno Haible  <bruno@clisp.org>
162
163         mkstemps: Ensure declaration on MacOS X 10.5.
164         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
165         * doc/glibc-functions/mkstemps.texi: Document header file problem on
166         MacOS X.
167
168 2011-04-27  Bruno Haible  <bruno@clisp.org>
169
170         mkstemp: More documentation.
171         * doc/posix-functions/mkstemp.texi: Document header file problem on
172         MacOS X.
173
174 2011-04-27  Bruno Haible  <bruno@clisp.org>
175
176         mkstemp: Tweak configure message when cross-compiling.
177         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
178         result as a guess.
179
180 2011-04-27  Bruno Haible  <bruno@clisp.org>
181
182         clean-temp: Clarify what it does.
183         * lib/clean-temp.h: Add more comments.
184         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
185         module.
186         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
187         * doc/glibc-functions/mkstemps.texi: Likewise.
188         * doc/glibc-functions/mkostemps.texi: Likewise.
189
190 2011-04-27  Eric Blake  <eblake@redhat.com>
191
192         fchdir: avoid extra chdir and fix test
193         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
194         getcwd-lgpl.
195         * lib/fchdir.c (get_name): Any absolute name will do; it does not
196         have to be canonical.
197         (canonicalize_file_name): Drop unused macro.
198         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
199
200         filenamecat-lgpl: fix licence
201         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
202         when it was first created.
203
204         linkat, renameat: add missing dependency
205         * modules/linkat (Depends-on): Require getcwd-lgpl.
206         * modules/renameat (Depends-on): Likewise.
207
208         tests: reduce dependencies
209         * tests/test-linkat.c (main): Use lighter-weight getcwd.
210         * tests/test-renameat.c (main): Likewise.
211         * modules/linkat-tests (Depends-on): Relax dependency.
212         * modules/renameat-tests (Depends-on): Likewise.
213         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
214         dependency explicit.
215
216         save-cwd: reduce default dependency
217         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
218         * lib/save-cwd.c: Update comments.
219         * NEWS: Document the semantic change.
220
221         getcwd: enhance tests
222         * tests/test-getcwd-lgpl.c: New file, taken from...
223         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
224         repeat long path stress tests from m4 probe.
225         * modules/getcwd-lgpl-tests: New module.
226         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
227         * m4/getcwd-abort-bug.m4: Update comment.
228         * m4/getcwd-path-max.m4: Likewise.
229
230         getcwd-lgpl: new module
231         * modules/getcwd-lgpl: New module.
232         * lib/getcwd-lgpl.c: New file.
233         * doc/posix-functions/getcwd.texi (getcwd): Document it.
234         * MODULES.html.sh (lacking POSIX:2008): Likewise.
235         * modules/getcwd (configure.ac): Set C witness.
236         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
237
238         getcwd: tweak comments
239         * m4/getcwd-abort-bug.m4: Fix comments.
240         * m4/getcwd-path-max.m4: Likewise.
241         * m4/getcwd.m4: Likewise.
242
243 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
244         and Eric Blake  <eblake@redhat.com>
245
246         mkstemp: replace if system version uses wrong permissions
247         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
248         read/write mode bits set in file created by mkstemp.
249         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
250
251 2011-04-27  Eric Blake  <eblake@redhat.com>
252
253         passfd: avoid compiler warning
254         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
255         Reported by Laine Stump.
256
257 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
258
259         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
260         required by the NetBSD (and perhaps other 4.4BSD derived) join.
261
262 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
263         and Eric Blake  <eblake@redhat.com>
264
265         mkstemp: mention clean-temp module
266         * lib/mkstemp.c: Add comment.
267         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
268
269 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
270
271         inttypes: also provide default values for 32-bit tests
272         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
273         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
274
275 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
276
277         strtoumax: remove dependency on strtoimax
278         This is like the strtoull change of yesterday.
279         * modules/strtoumax (Files): Add lib/strtoimax.c.
280         (Depends-on): Remove strtoimax and add verify.
281
282         inttypes-incomplete: new module
283         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
284         all but the PRI* and SCN* parts of gl_INTTYPES_H.
285         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
286         of gl_INTTYPES_H.
287         (gl_INTTYPES_H): Rewrite in terms of these new macros.
288         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
289         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
290         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
291         * modules/strtoumax, modules/xstrtol (Depends-on):
292         Depend on inttypes-incomplete, not inttypes.
293         * modules/inttypes-incomplete: New module, containing the contents
294         of the old modules/inttypes module, except that the Files: section
295         omits m4/inttypes-pri.m4, and the configure.ac section invokes
296         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
297         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
298         (Depends-on): Depend only on inttypes-incomplete.
299         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
300
301         inttypes: omit now-redundant strtoimax and strtoumax work
302         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
303         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
304
305         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
306         This supports apps that need pointers to strtoimax and strtoumax,
307         and ports to HP-UX 11.00 64.bit, which has macros that expand to
308         nonexistent functions.  See
309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
310         et seq.
311         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
312         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
313         a macro.
314         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
315
316 2011-04-25  Simon Josefsson  <simon@josefsson.org>
317
318         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
319
320 2011-04-25  Bruno Haible  <bruno@clisp.org>
321
322         strtol, strtoul: Mark modules as obsolete.
323         * modules/strtol (Status, Notice): New sections.
324         * modules/strtoul (Status, Notice): New sections.
325
326 2011-04-25  Bruno Haible  <bruno@clisp.org>
327
328         strtod: Remove check for strtod, unless supporting old platforms.
329         * modules/strtod-obsolete: New file.
330         * m4/strtod-obsolete.m4: New file.
331         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
332         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
333         * modules/strtod (Depends-on): Add strtod-obsolete.
334         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
335
336 2011-04-25  Bruno Haible  <bruno@clisp.org>
337
338         strcase: Make module obsolete.
339         * modules/strcase (Status, Notice): New sections.
340
341 2011-04-25  Bruno Haible  <bruno@clisp.org>
342
343         dup2: Remove check for dup2, unless supporting old obsolete platforms.
344         * modules/dup2-obsolete: New file.
345         * m4/dup2-obsolete.m4: New file.
346         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
347         gl_FUNC_DUP2_OBSOLETE is not also defined.
348         * modules/dup2 (Depends-on): Add dup2-obsolete.
349         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
350
351 2011-04-25  Bruno Haible  <bruno@clisp.org>
352
353         strnlen: Avoid memchr related link error on old obsolete platforms.
354         * modules/memchr-obsolete: New file.
355         * m4/memchr-obsolete.m4: New file.
356         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
357         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
358         * modules/memchr (Depends-on): Add memchr-obsolete.
359         * modules/strnlen (Depends-on): Likewise.
360         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
361
362 2011-04-25  Jim Meyering  <meyering@redhat.com>
363
364         maint.mk: makefile_at_at_check extend and clean up
365         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
366         in addition to */Makefile.am.
367         Exempt legitimate uses of @VAR@ notation, e.g.,
368         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
369         Remove obsolete coreutils-specific comment.
370         Prompted by discussion here:
371         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
372
373 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
374
375         strtoul: remove dependency on strtol
376         This is so that 'configure' need not check for strtol merely because
377         the application needs strtoul.
378         * modules/strtoul (Files): Add lib/strtol.c.
379         (Depends-on): Remove strtol.
380
381         strtoull: remove dependency on strtoul
382         This is like the strtoll change.
383         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
384         (Depends-on): Remove strtoul.
385
386         strtoll: remove dependency on strtol
387         This is so that 'configure' need not check for strtol merely because
388         the application needs strtoll.
389         * modules/strtoll (Files): Add lib/strtol.c.
390         (Depends-on): Remove strtol.
391
392 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
393
394         inttypes: Move some configure check to module 'imaxdiv'.
395         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
396         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
397         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
398
399 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
400
401         inttypes: Move some configure check to module 'imaxabs'.
402         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
403         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
404         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
405
406 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
407
408         inttypes: Remove configure tests that are not needed since 2009-12-31.
409         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
410         gl_cv_header_working_inttypes_h.
411
412 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
413
414         * modules/strnlen (Depends-on): Remove memchr.
415         The strnlen implementation doesn't need the memchr module's fixes; see
416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
417
418         strtol: remove dependency on wchar
419         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
420         * modules/strtol (Depends-on): Remove wchar.
421
422 2011-04-21  Eric Blake  <eblake@redhat.com>
423
424         passfd: fix test regression on Linux
425         * modules/passfd-tests (configure.ac): Correct socketpair check.
426
427         passfd: speed up configure and drop unused code
428         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
429         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
430         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
431         Instead of probing at configure for unix_scm_rights_bsd44_way,
432         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
433         check to a struct member probe.
434         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
435         (sendfd, recvfd): Update preprocessor checks.
436         * modules/passfd (Files): Reflect rename, and drop unused file.
437         (Depends-on): Drop unused dependency.
438
439         passfd: allow compilation on mingw
440         * modules/sys_socket (Depends-on): Add sys_uio.
441         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
442         iovec and a minimal struct msghdr.
443         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
444         * tests/test-sys_socket.c (main): Enhance test.
445         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
446         guaranteed to provide what we need.
447         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
448         * modules/passfd-tests (Depends-on): Add sys_wait.
449         * tests/test-passfd.c (main): Skip test on mingw, for now.
450         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
451         partial 'struct msghdr' implementation.
452
453         sys_uio: new module
454         * modules/sys_uio: New module.
455         * modules/sys_uio-tests: Likewise.
456         * lib/sys_uio.in.h: New file.
457         * m4/sys_uio_h.m4: Likewise.
458         * tests/test-sys_uio.c: Likewise.
459         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
460         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
461
462 2011-04-20  Jim Meyering  <meyering@redhat.com>
463
464         useless-if-before-free: avoid false-positive
465         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
466         disjunct so that it too requires a terminating ";".  Without that,
467         this script would identify as useless one statement from gcc that
468         was not:
469           if (aligned_ptr)
470             free (((void **) aligned_ptr) [-1]);
471
472 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
473
474         doc: update users.txt.
475         * users.txt: Add barcode.
476
477 2011-04-19  Bruno Haible  <bruno@clisp.org>
478
479         ioctl: Remove link dependency on native Windows.
480         * lib/fd-hook.h: Renamed from lib/close-hook.h.
481         (gl_close_fn, gl_ioctl_fn): New types.
482         (struct fd_hook): Renamed from struct close_hook. Change type of
483         private_close_fn field. Add private_ioctl_fn field.
484         (close_hook_fn): Add parameter for primary close method.
485         (execute_close_hooks, execute_all_close_hooks): Likewise.
486         (ioctl_hook_fn): New type.
487         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
488         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
489         argument.
490         (unregister_fd_hook): Renamed from unregister_close_hook.
491         * lib/fd-hook.c: Renamed from lib/close-hook.c.
492         Don't include <unistd.h>.
493         (close): Remove undef.
494         (anchor): Update.
495         (execute_close_hooks): Add argument for primary close method.
496         (execute_all_close_hooks): Likewise.
497         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
498         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
499         argument. Allow each argument to be NULL.
500         (unregister_fd_hook): Renamed from unregister_close_hook.
501         * lib/close.c (rpl_close): Pass 'close' function pointer to
502         execute_all_close_hooks.
503         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
504         (primary_ioctl): New function.
505         (ioctl): Don't call ioctlsocket here. Instead, call
506         execute_all_ioctl_hooks.
507         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
508         close method.
509         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
510         (fd_sockets_hook): Renamed from close_sockets_hook.
511         (gl_sockets_startup, gl_sockets_cleanup): Update.
512         * modules/fd-hook: Renamed from modules/close-hook. Update.
513         * modules/close (Depends-on): Add fd-hook, remove close-hook.
514         * modules/sockets (Depends-on): Likewise.
515         * modules/ioctl (Depends-on): Add fd-hook.
516         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
517         GNULIB_SOCKET.
518
519 2011-04-19  Bruno Haible  <bruno@clisp.org>
520
521         Move the support of O_NONBLOCK in open() to the 'open' module.
522         * modules/nonblocking (Depends-on): Remove 'open'.
523         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
524         gl_cv_have_open_O_NONBLOCK.
525         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
526         O_NONBLOCK support.
527         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
528
529 2011-04-17  Bruno Haible  <bruno@clisp.org>
530
531         pipe2: Simplify code.
532         * lib/pipe2.c (pipe2): Reduce code duplication.
533
534 2011-04-17  Bruno Haible  <bruno@clisp.org>
535
536         nonblocking: Add comment.
537         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
538
539 2011-04-17  Bruno Haible  <bruno@clisp.org>
540
541         nonblocking: Add tests for sockets.
542         * tests/test-nonblocking-socket.sh: New file.
543         * tests/test-nonblocking-socket-main.c: New file.
544         * tests/test-nonblocking-socket-child.c: New file.
545         * tests/test-nonblocking-socket.h: New file.
546         * tests/socket-server.h: New file.
547         * tests/socket-client.h: New file.
548         * modules/nonblocking-socket-tests: New file.
549         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
550
551 2011-04-17  Bruno Haible  <bruno@clisp.org>
552
553         nonblocking: Add tests for pipes.
554         * tests/test-nonblocking-pipe.sh: New file.
555         * tests/test-nonblocking-pipe-main.c: New file.
556         * tests/test-nonblocking-pipe-child.c: New file.
557         * tests/test-nonblocking-pipe.h: New file.
558         * tests/test-nonblocking-writer.h: New file.
559         * tests/test-nonblocking-reader.h: New file.
560         * tests/test-nonblocking-misc.h: New file.
561         * modules/nonblocking-pipe-tests: New file.
562         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
563
564 2011-04-16  Bruno Haible  <bruno@clisp.org>
565
566         gettext: Clarify the needed programmer actions.
567         * modules/gettext (Notice): New field.
568         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
569
570 2011-04-16  Bruno Haible  <bruno@clisp.org>
571
572         strchrnul: Tweak last commit.
573         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
574         bug.
575         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
576         as in _GL_FUNCDECL_SYS.
577         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
578         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
579
580 2011-04-15  Eric Blake  <eblake@redhat.com>
581
582         strchrnul: work around cygwin bug
583         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
584         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
586         * modules/string (Makefile.am): Substitute it.
587         * lib/string.in.h (strchrnul): Use it.
588
589 2011-04-15  Bruno Haible  <bruno@clisp.org>
590
591         Don't require lib/stdio-write.c when only module 'stdio' is used.
592         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
593         invocation.
594         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
595
596 2011-04-14  Bruno Haible  <bruno@clisp.org>
597
598         Support non-blocking pipe I/O in read() on native Windows.
599         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
600         (read): New declaration.
601         * lib/read.c: New file.
602         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
603         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
604         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
605         vscanf): New declarations.
606         * lib/stdio-read.c: New file.
607         * m4/read.m4: New file.
608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
609         REPLACE_READ.
610         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
611         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
612         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
613         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
614         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
615         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
616         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
617         * modules/read: New file.
618         * modules/nonblocking (Files): Add lib/stdio-read.c.
619         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
620         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
621         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
622         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
623         * modules/pread (Depends-on): Add read.
624         * modules/safe-read (Depends-on): Likewise.
625         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
626         gets, scanf, vfscanf, vscanf): Verify signatures.
627         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
628         problem with non-blocking pipes.
629         * doc/posix-functions/fgetc.texi: Likewise.
630         * doc/posix-functions/fgets.texi: Likewise.
631         * doc/posix-functions/fread.texi: Likewise.
632         * doc/posix-functions/fscanf.texi: Likewise.
633         * doc/posix-functions/getc.texi: Likewise.
634         * doc/posix-functions/getchar.texi: Likewise.
635         * doc/posix-functions/gets.texi: Likewise.
636         * doc/posix-functions/scanf.texi: Likewise.
637         * doc/posix-functions/vfscanf.texi: Likewise.
638         * doc/posix-functions/vscanf.texi: Likewise.
639
640 2011-04-14  Bruno Haible  <bruno@clisp.org>
641
642         Support non-blocking pipe I/O in write() on native Windows.
643         * lib/write.c (rpl_write): Split a write request that failed merely
644         because the byte count was larger than the pipe buffer's size.
645         * doc/posix-functions/write.texi: Mention the problem with large byte
646         counts.
647
648 2011-04-14  Bruno Haible  <bruno@clisp.org>
649
650         wchar: Ensure that wchar_t gets defined on uClibc.
651         * lib/wchar.in.h: On uClibc, include <stddef.h>.
652         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
653
654 2011-04-13  Bruno Haible  <bruno@clisp.org>
655
656         safe-write, full-read: Avoid unnecessary compilation units.
657         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
658         (Depends-on): Remove safe-read. Add ssize_t.
659         * modules/full-read (Files): Add lib/full-write.c.
660         (Depends-on): Add full-write.
661
662 2011-04-13  Bruno Haible  <bruno@clisp.org>
663
664         Support non-blocking pipe I/O and SIGPIPE in pwrite().
665         * modules/pwrite (Depends-on): Add 'write'.
666
667 2011-04-13  Bruno Haible  <bruno@clisp.org>
668
669         Support non-blocking pipe I/O in write() on native Windows.
670         * lib/unistd.in.h (write): Enable replacement also if
671         GNULIB_UNISTD_H_NONBLOCKING is 1.
672         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
673         (rpl_write): When failing to write on a non-blocking pipe, change
674         errno from ENOSPC to EAGAIN.
675         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
676         putchar, puts, vfprintf, vprintf): Enable replacement also if
677         GNULIB_STDIO_H_NONBLOCKING is 1.
678         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
679         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
680         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
681         CALL_WITH_SIGPIPE_EMULATION.
682         (CALL_WITH_SIGPIPE_EMULATION): Use them.
683         * m4/nonblocking.m4: New file.
684         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
685         for non-blocking I/O support.
686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
687         GNULIB_UNISTD_H_NONBLOCKING.
688         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
689         required for non-blocking I/O support.
690         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
691         * modules/nonblocking (Files): Add m4/nonblocking.m4,
692         lib/stdio-write.c, m4/asm-underscore.m4.
693         (Depends-on): Add stdio, unistd.
694         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
695         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
696         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
697         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
698         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
699         problem with non-blocking pipes.
700         * doc/posix-functions/fputc.texi: Likewise.
701         * doc/posix-functions/fputs.texi: Likewise.
702         * doc/posix-functions/fwrite.texi: Likewise.
703         * doc/posix-functions/printf.texi: Likewise.
704         * doc/posix-functions/putc.texi: Likewise.
705         * doc/posix-functions/putchar.texi: Likewise.
706         * doc/posix-functions/puts.texi: Likewise.
707         * doc/posix-functions/vfprintf.texi: Likewise.
708         * doc/posix-functions/vprintf.texi: Likewise.
709         * doc/posix-functions/write.texi: Likewise.
710
711 2011-04-10  Jim Meyering  <meyering@redhat.com>
712
713         maint.mk: prohibit doubled words
714         Detect them also when they're separated by a newline.
715         There are 3 ways to customize it:
716           - disable the test on a per file basis, as usual with rules using
717             $(VC_LIST_EXCEPT)
718           - replace the default doubled-word-selecting regexp (affects all files)
719           - ignore a particular file-vs-doubled-word match
720         I nearly used that last one to ignore the "is is" match in
721         coreutils' NEWS file, since the text was "ls -is is ..."
722         To do that, I would have added this line to cfg.mk:
723           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
724         but it would have ignored any "is is" match in NEWS.
725         Low probability, but still...
726         Instead, I changed the text, slightly:
727           -  ls -is is now consistent with ls -lis in ignoring values returned
728           +  "ls -is" is now consistent with ls -lis in ignoring values returned
729         * top/maint.mk (prohibit_double_word_RE_): Provide default.
730         (prohibit_doubled_word_): Define.
731         (sc_prohibit_doubled_word): New rule.
732         (sc_prohibit_the_the): Remove.  Subsumed by the above.
733
734 2011-04-10  Jim Meyering  <meyering@redhat.com>
735
736         maint: fix doubled-word typo in comment
737         * m4/gethostname.m4: s/is is/it is/
738         * m4/getdomainname.m4: Likewise.
739
740 2011-04-10  Jim Meyering  <meyering@redhat.com>
741
742         maint: remove doubled word: s/it it/it/
743         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
744
745 2011-04-10  Jim Meyering  <meyering@redhat.com>
746
747         maint.mk: remove useless semicolon and backslash
748         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
749         semicolon and backslash.
750
751 2011-04-10  Bruno Haible  <bruno@clisp.org>
752
753         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
754         * modules/stdint-tests (Depends-on): Add wchar.
755
756 2011-04-10  Jim Meyering  <meyering@redhat.com>
757
758         maint: remove doubled words in comments, e.g., s/a a/a/
759         * lib/strptime.c (day_of_the_week): s/the the/the/
760         * tests/test-chown.h (test_chown): s/a a/a/
761
762         test-chown.h: correct a cast
763         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
764         when the destination is a stat.st_gid.
765
766 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
767
768         getaddrinfo: Fix test for sa_len member.
769         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
770         include <sys/types.h> before <sys/socket.h>.
771
772 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
773
774         maint: change "can not" to "cannot"
775         * doc/posix-functions/iconv.texi (iconv): This one crossed line
776         boundaries.
777
778 2011-04-09  Jim Meyering  <meyering@redhat.com>
779
780         maint: change "a a" to "a"
781         * tests/test-lchown.h (test_lchown): s/a a/a/
782
783         maint.mk: prohibit \<the the\>
784         * top/maint.mk (sc_prohibit_the_the): New rule.
785
786         maint: fix "the the" in comment
787         * lib/count-one-bits.h: s/the the/the/
788
789         maint: change "can not" to "cannot"
790         But do not change the occurrences in maintain.texi or in
791         build-aux/po/Makefile.in.in, which I presume comes from gettext.
792         * doc/gnulib-tool.texi: s/can not/cannot/
793         * doc/posix-functions/accept.texi (accept): Likewise.
794         * doc/posix-functions/socket.texi (socket): Likewise.
795         * lib/mbrtowc.c: Likewise.
796
797         maint.mk: prohibit use of "can not"
798         * top/maint.mk (sc_prohibit_can_not): New rule.
799         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
800
801 2011-04-09  Bruno Haible  <bruno@clisp.org>
802
803         careadlinkat: Guard against misuse of careadlinkatcwd.
804         * lib/careadlinkat.c: Include <stdlib.h>.
805         (careadlinkatcwd): Check that the fd argument is as expected.
806
807 2011-04-09  Bruno Haible  <bruno@clisp.org>
808
809         careadlinkat: Use common coding style.
810         * lib/careadlinkat.c: Move gnulib includes after system includes.
811
812 2011-04-09  Bruno Haible  <bruno@clisp.org>
813
814         careadlinkat: Clarify specification.
815         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
816         (careadlinkatcwd): Add comment.
817         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
818
819 2011-04-09  Bruno Haible  <bruno@clisp.org>
820
821         areadlinkat: Avoid link error on many platforms.
822         * modules/areadlinkat (Depends-on): Add areadlink.
823
824 2011-04-09  Bruno Haible  <bruno@clisp.org>
825
826         allocator, careadlinkat: Fix double-inclusion guard.
827         * lib/allocator.h: Fix double-inclusion guard.
828         * lib/careadlinkat.h: Likewise.
829
830 2011-04-09  Bruno Haible  <bruno@clisp.org>
831
832         relocatable-prog-wrapper: Update after module 'areadlink' changed.
833         * lib/relocwrapper.c: Update dependencies hierarchy.
834         * build-aux/install-reloc: Update list of files to be compiled.
835         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
836         lib/allocator.[hc].
837
838 2011-04-08  Eric Blake  <eblake@redhat.com>
839
840         strftime: silence gnulib-tool warning
841         * modules/strftime-tests (Depends-on): Drop automatic dependency.
842
843 2011-04-08  Bruno Haible  <bruno@clisp.org>
844
845         verify: Fix syntax error with GCC 4.6 in C++ mode.
846         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
847         (HAVE_STATIC_ASSERT): New macro.
848         (verify_true, verify): Use 'static_assert' if it is supported and
849         '_Static_assert' is not supported.
850
851 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
852
853         allocator: New module.
854         * modules/allocator, lib/allocator.c: New files.
855         * lib/allocator.h (stdlib_allocator): New decl.
856         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
857         Remove.  Do not include <stdlib.h>.
858         (careadlinkat): Use stdlib_allocator instead of rolling our own.
859         * modules/careadlinkat (Files): Remove lib/allocator.h.
860         (Depends-on): Add allocator.
861
862         stdlib: let modules use system malloc, realloc
863         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
864         if !_GL_USE_STDLIB_ALLOC.
865         (malloc, realloc): Limit this change to a smaller scope.
866
867         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
868         (malloc, realloc): Don't #undef; no longer needed.
869         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
870         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
871         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
872         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
873         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
874         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
875         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
876         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
877
878         careadlinkat: rename members to avoid problem
879         * lib/allocator.h (struct allocator): Rename members from
880         malloc/realloc to allocate/reallocate, to avoid problems if malloc
881         and realloc are #define'd.  Reported by Eric Blake in
882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
883         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
884
885 2011-04-08  Eric Blake  <eblake@redhat.com>
886
887         nonblocking: reduce dependency
888         * tests/test-nonblocking.c: Only test sockets when in use.
889         * modules/nonblocking-tests (Depends-on): Drop socket.
890         (Makefile.am): Link even if sockets are not present.
891         * modules/pipe2-tests (Makefile.am): Likewise.
892         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
893
894         pipe2: fix O_NONBLOCK support on mingw
895         * modules/pipe2 (Depends-on): Add nonblocking.
896         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
897         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
898         * tests/test-nonblocking.c (main): Likewise.
899         * modules/pipe2-tests (Makefile.am): Avoid link failure.
900
901         fcntl-h: fix O_ACCMODE on cygwin
902         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
903         * lib/fcntl.in.h (O_ACCMODE): Fix it.
904
905         pipe-filter: drop O_NONBLOCK workarounds
906         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
907         * modules/pipe-filter-ii (Depends-on): Likewise.
908         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
909
910         nonblocking: provide O_NONBLOCK for mingw
911         * modules/nonblocking (Depends-on): Add open.
912         (configure.ac): Set new witness macro.
913         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
914         * modules/fcntl-h (Makefile.am): Substitute it.
915         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
916         nonblocking module is in use.
917         * lib/nonblocking.c: Adjust portability test.
918         * lib/open.c (open): Don't let native open see gnulib flag.
919         * tests/test-fcntl-h.c (main): Enhance test.
920         * tests/test-open.h (test_open): Likewise.
921         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
922
923         careadlinkat: fix compilation error on mingw
924         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
925         within struct allocator.
926
927 2011-04-06  Eric Blake  <eblake@redhat.com>
928
929         binary-io: relicense under LGPLv2+
930         * modules/binary-io (License): Relax to LGPLv2+.
931         Requested for libvirt, and required by pipe2.
932
933 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
934
935         verify: use _Static_assert if available
936         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
937         (verify_true, verify): Use it if available.  This generates better
938         diagnostics with GCC 4.6.0 and later.
939
940 2011-04-05  Bruno Haible  <bruno@clisp.org>
941
942         Remove leftover generated .h files after config.status changed.
943
944         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
945         GL_GENERATE_ALLOCA_H.
946         * modules/alloca-opt (Makefile.am): Remove alloca.h if
947         GL_GENERATE_ALLOCA_H evaluates to false.
948
949         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
950         GL_GENERATE_ARGZ_H.
951         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
952         evaluates to false.
953
954         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
955         GL_GENERATE_BYTESWAP_H.
956         * modules/byteswap (Makefile.am): Remove byteswap.h if
957         GL_GENERATE_BYTESWAP_H evaluates to false.
958
959         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
960         GL_GENERATE_ERRNO_H.
961         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
962         evaluates to false.
963
964         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
965         GL_GENERATE_FLOAT_H.
966         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
967         evaluates to false.
968
969         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
970         GL_GENERATE_FNMATCH_H.
971         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
972         GL_GENERATE_FNMATCH_H evaluates to false.
973
974         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
975         GL_GENERATE_GLOB_H.
976         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
977         evaluates to false.
978
979         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
980         automake conditional GL_GENERATE_ICONV_H.
981         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
982         evaluates to false.
983
984         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
985         GL_GENERATE_NETINET_IN_H.
986         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
987         GL_GENERATE_NETINET_IN_H evaluates to false.
988
989         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
990         conditional GL_GENERATE_PTHREAD_H.
991         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
992         * modules/pthread (Makefile.am): Remove pthread.h if
993         GL_GENERATE_PTHREAD_H evaluates to false.
994
995         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
996         GL_GENERATE_SCHED_H.
997         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
998         evaluates to false.
999
1000         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
1001         conditional GL_GENERATE_SELINUX_CONTEXT_H.
1002         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
1003         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
1004
1005         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
1006         GL_GENERATE_STDARG_H.
1007         * modules/stdarg (Makefile.am): Remove stdarg.h if
1008         GL_GENERATE_STDARG_H evaluates to false.
1009
1010         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
1011         GL_GENERATE_STDBOOL_H.
1012         * modules/stdbool (Makefile.am): Remove stdbool.h if
1013         GL_GENERATE_STDBOOL_H evaluates to false.
1014
1015         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
1016         conditional GL_GENERATE_STDDEF_H.
1017         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
1018         * modules/stddef (Makefile.am): Remove stddef.h if
1019         GL_GENERATE_STDDEF_H evaluates to false.
1020
1021         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
1022         GL_GENERATE_STDINT_H.
1023         * modules/stdint (Makefile.am): Remove stdint.h if
1024         GL_GENERATE_STDINT_H evaluates to false.
1025
1026         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
1027         GL_GENERATE_SYSEXITS_H.
1028         * modules/sysexits (Makefile.am): Remove sysexits.h if
1029         GL_GENERATE_SYSEXITS_H evaluates to false.
1030
1031         Reported by Karl Berry and Ralf Wildenhues.
1032
1033 2011-04-05  Bruno Haible  <bruno@clisp.org>
1034
1035         Ensure to rebuild generated .h files when config.status has changed.
1036         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
1037         config.status.
1038         * modules/ctype (Makefile.am): Likewise.
1039         * modules/dirent (Makefile.am): Likewise.
1040         * modules/errno (Makefile.am): Likewise.
1041         * modules/fcntl-h (Makefile.am): Likewise.
1042         * modules/float (Makefile.am): Likewise.
1043         * modules/getopt-posix (Makefile.am): Likewise.
1044         * modules/glob (Makefile.am): Likewise.
1045         * modules/iconv-h (Makefile.am): Likewise.
1046         * modules/inttypes (Makefile.am): Likewise.
1047         * modules/langinfo (Makefile.am): Likewise.
1048         * modules/locale (Makefile.am): Likewise.
1049         * modules/math (Makefile.am): Likewise.
1050         * modules/netdb (Makefile.am): Likewise.
1051         * modules/netinet_in (Makefile.am): Likewise.
1052         * modules/poll-h (Makefile.am): Likewise.
1053         * modules/pthread (Makefile.am): Likewise.
1054         * modules/pty (Makefile.am): Likewise.
1055         * modules/sched (Makefile.am): Likewise.
1056         * modules/search (Makefile.am): Likewise.
1057         * modules/selinux-h (Makefile.am): Likewise.
1058         * modules/signal (Makefile.am): Likewise.
1059         * modules/spawn (Makefile.am): Likewise.
1060         * modules/stdarg (Makefile.am): Likewise.
1061         * modules/stdbool (Makefile.am): Likewise.
1062         * modules/stddef (Makefile.am): Likewise.
1063         * modules/stdint (Makefile.am): Likewise.
1064         * modules/stdio (Makefile.am): Likewise.
1065         * modules/stdlib (Makefile.am): Likewise.
1066         * modules/string (Makefile.am): Likewise.
1067         * modules/strings (Makefile.am): Likewise.
1068         * modules/sys_file (Makefile.am): Likewise.
1069         * modules/sys_ioctl (Makefile.am): Likewise.
1070         * modules/sys_select (Makefile.am): Likewise.
1071         * modules/sys_socket (Makefile.am): Likewise.
1072         * modules/sys_stat (Makefile.am): Likewise.
1073         * modules/sys_time (Makefile.am): Likewise.
1074         * modules/sys_times (Makefile.am): Likewise.
1075         * modules/sys_utsname (Makefile.am): Likewise.
1076         * modules/sys_wait (Makefile.am): Likewise.
1077         * modules/sysexits (Makefile.am): Likewise.
1078         * modules/termios (Makefile.am): Likewise.
1079         * modules/time (Makefile.am): Likewise.
1080         * modules/unistd (Makefile.am): Likewise.
1081         * modules/wchar (Makefile.am): Likewise.
1082         * modules/wctype-h (Makefile.am): Likewise.
1083         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
1084
1085 2011-04-05  Bruno Haible  <bruno@clisp.org>
1086
1087         pipe2: Relicense under LGPLv2+.
1088         * modules/pipe2 (License): Change to LGPLv2+.
1089         Requested by Eric Blake, for libvirt.
1090
1091 2011-04-05  Bruce Korb  <bkorb@gnu.org>
1092
1093         bootstrap: compute gnulib_extra_files after updating build_aux
1094         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
1095         change build_aux or also supply gnulib_extra_files.  Handle correctly.
1096
1097 2011-04-05  Eric Blake  <eblake@redhat.com>
1098
1099         bootstrap: preserve git whitelist item sorting
1100         * build-aux/bootstrap (sort_patterns): New function.
1101         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
1102
1103 2011-04-05  Simon Josefsson  <simon@josefsson.org>
1104
1105         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
1106         sc_space_tab check.
1107
1108 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1109
1110         areadlink, areadlinkat: rewrite in terms of careadlinkat
1111         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
1112         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
1113         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
1114         (malloc, realloc): Remove #undefs.
1115         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
1116         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
1117         readlink, ssize_t, stdint, unistd.
1118         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
1119         areadlink, stdint.
1120
1121         careadlinkat: new module
1122         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
1123         * modules/careadlinkat: New files, written by me with
1124         a review and feedback from Ben Pfaff in
1125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
1126
1127 2011-04-01  Bruno Haible  <bruno@clisp.org>
1128
1129         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
1130         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
1131         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
1132         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1133         Reported by Bruce Korb <bruce.korb@gmail.com>.
1134
1135 2011-04-01  Bruno Haible  <bruno@clisp.org>
1136
1137         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
1138         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
1139         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
1140         * modules/wcpcpy (Depends-on): Add extensions.
1141         * modules/wcpncpy (Depends-on): Likewise.
1142         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
1143         systems.
1144         * doc/posix-functions/wcpncpy.texi: Likewise.
1145         * doc/posix-functions/wcwidth.texi: Likewise.
1146
1147 2011-03-31  Eric Blake  <eblake@redhat.com>
1148
1149         nonblocking: fix mingw test failures
1150         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
1151         non-blocking flag on regular file.
1152         (get_nonblocking_flag): Set errno on invalid fd.
1153         * tests/test-nonblocking.c (main): Avoid test failure on
1154         directories if fchdir is not active.
1155         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1156
1157 2011-03-31  Bruno Haible  <bruno@clisp.org>
1158
1159         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1160         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1161         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1162         Reported by Simon Josefsson <simon@josefsson.org>.
1163
1164 2011-03-31  Bruno Haible  <bruno@clisp.org>
1165         and Eric Blake  <eblake@redhat.com>
1166
1167         nonblocking: new module
1168         * modules/nonblocking: New module.
1169         * modules/nonblocking-tests: Likewise.
1170         * lib/nonblocking.h: New file.
1171         * lib/nonblocking.c: Likewise.
1172         * tests/test-nonblocking.c: New test.
1173         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1174
1175 2011-03-30  Bruno Haible  <bruno@clisp.org>
1176
1177         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1178         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1179         instead of 'printf' format for GCC >= 4.4.
1180         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1181         (fprintf, printf, vfprintf, vprintf): Declare with
1182         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1183         the system's vfprintf() function.
1184         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1185
1186 2011-03-30  Eric Blake  <eblake@redhat.com>
1187
1188         passfd: fix scoping bug
1189         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1190         before sendmsg/recvmsg.
1191
1192         passfd: standardize coding conventions
1193         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1194         can be learned at compile time.
1195         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1196         ifdefs.
1197         (sendfd, recvfd): Follow gnulib code conventions.
1198
1199         passfd: fix incorrect sendmsg arguments
1200         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1201         incorrect msg_controllen value.
1202         * modules/passfd-tests (Depends-on): Check for alarm.
1203         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1204         Reported by Bastien ROUCARIES.
1205
1206 2011-03-30  Bruno Haible  <bruno@clisp.org>
1207
1208         c-strcasestr: Relicense under LGPLv2+.
1209         * modules/c-strcasestr (License): Change to LGPLv2+.
1210         Requested by Eric Blake, for libvirt.
1211
1212 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1213
1214         * users.txt: Add libidn2.  Fix libtasn1 link.
1215
1216 2011-03-30  Jim Meyering  <meyering@redhat.com>
1217
1218         tests: readlink* ("",... fails with EINVAL on newer kernels
1219         readlink and readlinkat have typically failed with ENOENT for
1220         the invalid, empty file name,  "".  However, with the advent
1221         of linux-2.6.39, they fail with EINVAL.
1222         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1223         when operating on the empty file name.
1224         * tests/test-readlink.h (test_readlink): Likewise.
1225
1226 2011-03-29  Bruno Haible  <bruno@clisp.org>
1227
1228         Relicense some modules under LGPLv2+, for libidn2.
1229         * modules/array-mergesort (License): Change to LGPLv2+.
1230         * modules/c-strcaseeq (License): Likewise.
1231         * modules/striconveh (License): Likewise.
1232         * modules/striconveha (License): Likewise.
1233         * modules/uniconv/base (License): Likewise.
1234         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1235         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1236         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1237         * modules/unictype/base (License): Likewise.
1238         * modules/unictype/bidiclass-of (License): Likewise.
1239         * modules/unictype/category-M (License): Likewise.
1240         * modules/unictype/category-none (License): Likewise.
1241         * modules/unictype/category-of (License): Likewise.
1242         * modules/unictype/category-test (License): Likewise.
1243         * modules/unictype/category-test-withtable (License): Likewise.
1244         * modules/unictype/combining-class (License): Likewise.
1245         * modules/unictype/joiningtype-of (License): Likewise.
1246         * modules/unictype/scripts (License): Likewise.
1247         * modules/uninorm/base (License): Likewise.
1248         * modules/uninorm/canonical-decomposition (License): Likewise.
1249         * modules/uninorm/composition (License): Likewise.
1250         * modules/uninorm/decompose-internal (License): Likewise.
1251         * modules/uninorm/decomposition-table (License): Likewise.
1252         * modules/uninorm/nfc (License): Likewise.
1253         * modules/uninorm/nfd (License): Likewise.
1254         * modules/uninorm/u32-normalize (License): Likewise.
1255         * modules/unistr/base (License): Likewise.
1256         * modules/unistr/u32-cpy (License): Likewise.
1257         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1258         * modules/unistr/u32-to-u8 (License): Likewise.
1259         * modules/unistr/u32-uctomb (License): Likewise.
1260         * modules/unistr/u8-check (License): Likewise.
1261         * modules/unistr/u8-mblen (License): Likewise.
1262         * modules/unistr/u8-mbtouc (License): Likewise.
1263         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1264         * modules/unistr/u8-mbtoucr (License): Likewise.
1265         * modules/unistr/u8-prev (License): Likewise.
1266         * modules/unistr/u8-strlen (License): Likewise.
1267         * modules/unistr/u8-to-u32 (License): Likewise.
1268         * modules/unistr/u8-uctomb (License): Likewise.
1269         * modules/unitypes (License): Likewise.
1270         Requested by Simon Josefsson.
1271
1272 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1273
1274         lib-symbol-visibility: Add a notice.
1275         * modules/lib-symbol-visibility (Notice): New field.
1276
1277 2011-03-29  Bruno Haible  <bruno@clisp.org>
1278
1279         getaddrinfo: Doc fix.
1280         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1281         section "fixed in Gnulib".
1282
1283 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1284
1285         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1286         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1287
1288 2011-03-26  Bruno Haible  <bruno@clisp.org>
1289
1290         unictype/property-byname: Reduce the number of load-time relocations.
1291         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1292         (UC_PROPERTY_INDEX_*): New enumeration values.
1293         (uc_property_byname): Convert an index from the lookup table to an
1294         uc_property_t.
1295         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1296         values.
1297
1298 2011-03-26  Bruno Haible  <bruno@clisp.org>
1299
1300         unictype/property-byname: Allow omitted word separators and aliases.
1301         * lib/unictype/pr_byname.gperf: Add property names without word
1302         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1303         for 'space'.
1304
1305 2011-03-26  Bruno Haible  <bruno@clisp.org>
1306
1307         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1308         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1309         also hyphens to space.
1310         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1311         without spaces.
1312         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1313
1314 2011-03-26  Bruno Haible  <bruno@clisp.org>
1315
1316         unictype/joiningtype-byname: Recognize long names as well.
1317         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1318         a long name.
1319         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1320         unictype/joiningtype_byname.h.
1321         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1322         * lib/unictype/joiningtype_byname.gperf: New file.
1323         * modules/unictype/joiningtype-byname (Files): Add
1324         lib/unictype/joiningtype_byname.gperf.
1325         (Depends-on): Add gperf.
1326         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1327         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1328         long names.
1329
1330         Tests for module 'unictype/joiningtype-longname'.
1331         * modules/unictype/joiningtype-longname-tests: New file.
1332         * tests/unictype/test-joiningtype_longname.c: New file.
1333
1334         New module 'unictype/joiningtype-longname'.
1335         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1336         * lib/unictype/joiningtype_longname.c: New file.
1337         * modules/unictype/joiningtype-longname: New file.
1338         * modules/unictype/joiningtype-all (Depends-on): Add
1339         unictype/joiningtype-longname.
1340
1341 2011-03-26  Bruno Haible  <bruno@clisp.org>
1342
1343         unictype/bidiclass-byname: Recognize long names as well.
1344         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1345         name.
1346         * lib/unictype/bidi_byname.c: Include <string.h>,
1347         unictype/bidi_byname.h.
1348         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1349         * lib/unictype/bidi_byname.gperf: New file.
1350         * modules/unictype/bidiclass-byname (Files): Add
1351         lib/unictype/bidi_byname.gperf.
1352         (Depends-on): Add gperf.
1353         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1354         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1355         long names.
1356
1357         Tests for module 'unictype/bidiclass-longname'.
1358         * modules/unictype/bidiclass-longname-tests: New file.
1359         * tests/unictype/test-bidi_longname.c: New file.
1360
1361         New module 'unictype/bidiclass-longname'.
1362         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1363         * lib/unictype/bidi_longname.c: New file.
1364         * modules/unictype/bidiclass-longname: New file.
1365         * modules/unictype/bidiclass-all (Depends-on): Add
1366         unictype/bidiclass-longname.
1367
1368 2011-03-26  Bruno Haible  <bruno@clisp.org>
1369
1370         unictype/bidi*: Rename modules.
1371         * modules/unictype/bidiclass-all: Renamed from
1372         modules/unictype/bidicategory-all.
1373         * modules/unictype/bidiclass-name: Renamed from
1374         modules/unictype/bidiclass-name.
1375         (Description): Update.
1376         * modules/unictype/bidiclass-name-tests: Renamed from
1377         modules/unictype/bidicategory-name-tests.
1378         * modules/unictype/bidiclass-byname: Renamed from
1379         modules/unictype/bidicategory-byname.
1380         (Description): Update.
1381         * modules/unictype/bidiclass-byname-tests: Renamed from
1382         modules/unictype/bidicategory-byname-tests.
1383         * modules/unictype/bidiclass-of: Renamed from
1384         modules/unictype/bidicategory-of.
1385         (Description): Update.
1386         * modules/unictype/bidiclass-of-tests: Renamed from
1387         modules/unictype/bidicategory-of-tests.
1388         * modules/unictype/bidiclass-test: Renamed from
1389         modules/unictype/bidicategory-test.
1390         (Description): Update.
1391         * modules/unictype/bidiclass-test-tests: Renamed from
1392         modules/unictype/bidicategory-test-tests.
1393         * modules/unictype/bidicategory-all: New file, a simple redirection.
1394         * modules/unictype/bidicategory-name: Likewise.
1395         * modules/unictype/bidicategory-byname: Likewise.
1396         * modules/unictype/bidicategory-of: Likewise.
1397         * modules/unictype/bidicategory-test: Likewise.
1398         * modules/unictype/property-bidi-* (Dependencies): Update.
1399         * lib/unictype/bidi_*.c: Update comment.
1400
1401 2011-03-26  Bruno Haible  <bruno@clisp.org>
1402
1403         unictype/bidi*: Rename functions, part 2.
1404         * modules/unictype/bidicategory-name (configure.ac): Update required
1405         libunistring version.
1406         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1407
1408 2011-03-25  Bruno Haible  <bruno@clisp.org>
1409
1410         New module 'unictype/combining-class-all'.
1411         * modules/unictype/combining-class-all: New file.
1412
1413         Tests for module 'unictype/combining-class-byname'.
1414         * modules/unictype/combining-class-byname-tests: New file.
1415         * tests/unictype/test-combiningclass_byname.c: New file.
1416
1417         New module 'unictype/combining-class-byname'.
1418         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1419         * lib/unictype/combiningclass_byname.c: New file.
1420         * lib/unictype/combiningclass_byname.gperf: New file.
1421         * modules/unictype/combining-class-byname: New file.
1422
1423         Tests for module 'unictype/combining-class-longname'.
1424         * modules/unictype/combining-class-longname-tests: New file.
1425         * tests/unictype/test-combiningclass_longname.c: New file.
1426
1427         New module 'unictype/combining-class-longname'.
1428         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1429         * lib/unictype/combiningclass_longname.c: New file.
1430         * modules/unictype/combining-class-longname: New file.
1431
1432         Tests for module 'unictype/combining-class-name'.
1433         * modules/unictype/combining-class-name-tests: New file.
1434         * tests/unictype/test-combiningclass_name.c: New file.
1435
1436         New module 'unictype/combining-class-name'.
1437         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1438         * lib/unictype/combiningclass_name.c: New file.
1439         * modules/unictype/combining-class-name: New file.
1440
1441 2011-03-25  Bruno Haible  <bruno@clisp.org>
1442
1443         unictype/combining-class: Rename source files.
1444         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1445         of unictype/combining.h.
1446         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1447         Update.
1448         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1449         * modules/unictype/combining-class (Description): Fix.
1450         (Files, Makefile.am): Update.
1451         * tests/unictype/test-combiningclass.c: Renamed from
1452         tests/unictype/test-combining.c.
1453         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1454
1455 2011-03-25  Bruno Haible  <bruno@clisp.org>
1456
1457         unictype: Update list of canonical combining classes.
1458         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1459
1460 2011-03-25  Bruno Haible  <bruno@clisp.org>
1461
1462         unictype/category-byname: Recognize long names as well.
1463         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1464         a long name.
1465         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1466         unictype/categ_byname.h.
1467         (UC_CATEGORY_INDEX_*): New enumeration values.
1468         (uc_general_category_byname): Use uc_general_category_lookup and
1469         convert from index to value.
1470         * lib/unictype/categ_byname.gperf: New file.
1471         * modules/unictype/category-byname (Files): Add
1472         lib/unictype/categ_byname.gperf.
1473         (Depends-on): Add gperf.
1474         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1475         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1476         long names.
1477
1478         Tests for module 'unictype/category-longname'.
1479         * modules/unictype/category-longname-tests: New file.
1480         * tests/unictype/test-categ_longname.c: New file.
1481
1482         New module 'unictype/category-longname'.
1483         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1484         * lib/unictype/categ_longname.c: New file.
1485         * modules/unictype/category-longname: New file.
1486         * modules/unictype/category-all (Depends-on): Add it.
1487
1488 2011-03-25  Bruno Haible  <bruno@clisp.org>
1489
1490         Tests for module 'unictype/category-LC'.
1491         * modules/unictype/category-LC-tests: New file.
1492         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1493
1494         New module 'unictype/category-LC'.
1495         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1496         (UC_CATEGORY_LC): New declaration.
1497         (UC_CASED_LETTER): New macro.
1498         * lib/gen-uni-tables.c (is_category_LC): New function.
1499         (output_categories): Also handle category LC.
1500         (UC_CATEGORY_MASK_LC): New enumeration value.
1501         (general_category_byname): Also handle category LC.
1502         * lib/unictype/categ_LC.c: New file.
1503         * lib/unictype/categ_LC.h: New file, automatically generated.
1504         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1505         category LC.
1506         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1507         * modules/unictype/category-LC: New file.
1508         * modules/unictype/category-byname (Depends-on): Add
1509         unictype/category-LC.
1510         * modules/unictype/category-all (Depends-on): Likewise.
1511
1512 2011-03-25  Eric Blake  <eblake@redhat.com>
1513
1514         xmalloc: revert yesterday's regression
1515         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1516         realloc's underlying behavior (allowing allocation of zero-size
1517         objects, especially if malloc-gnu is also in use).
1518
1519 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1520
1521         maint.mk: add missing version to VC-tag
1522         * top/maint.mk: git tag was missing actual tag name; add it.
1523
1524         valgrind: do leak checking, and exit with code 1 on error (not 0)
1525         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1526         to VALGRIND.
1527
1528 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1529
1530         posix-modules: say what it does.
1531         * posix-modules: Add a line to the --help output saying what it does.
1532
1533 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1534
1535         xmalloc: Do not leak if underlying realloc is C99 compatible.
1536         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1537         This avoids a leak on C99-based systems.  See
1538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1539
1540 2011-03-24  Eric Blake  <eblake@redhat.com>
1541
1542         realloc: document portability problem
1543         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1544         passing 0 size to realloc.
1545
1546 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1547
1548         doc: update users.txt
1549         * users.txt: Add cvsps, tmpwatch
1550
1551 2011-03-23  Matt Rice  <ratmice@gmail.com>
1552
1553         doc: update users.txt
1554         * users.txt: Add gdb.
1555
1556 2011-03-23  Jim Meyering  <meyering@redhat.com>
1557
1558         doc: update users.txt
1559         Looking through matches up to the following URL (there are still
1560         several more pages), I found several projects that use gnulib:
1561         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1562         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1563         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1564
1565 2011-03-22  Bruno Haible  <bruno@clisp.org>
1566
1567         unictype/bidi*: Rename functions.
1568         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1569         uc_bidi_class, uc_is_bidi_class): New declarations.
1570         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1571         uc_bidi_category_byname.
1572         (uc_bidi_category_byname): New function.
1573         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1574         u_bidi_category_name.
1575         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1576         (uc_bidi_category_name): New function.
1577         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1578         uc_bidi_category.
1579         (uc_bidi_category): New function.
1580         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1581         uc_is_bidi_category. Invoke uc_bidi_class.
1582         (uc_is_bidi_category): New function.
1583         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1584         instead of uc_bidi_category_byname.
1585         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1586         instead of uc_bidi_category_name.
1587         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1588         uc_bidi_category.
1589         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1590         instead of uc_is_bidi_category.
1591
1592 2011-03-21  Bruno Haible  <bruno@clisp.org>
1593
1594         New module 'unictype/joininggroup-all'.
1595         * modules/unictype/joininggroup-all: New file.
1596
1597         Tests for module 'unictype/joininggroup-of'.
1598         * modules/unictype/joininggroup-of-tests: New file.
1599         * tests/unictype/test-joininggroup_of.c: New file.
1600         * tests/unictype/test-joininggroup_of.h: New file, automatically
1601         generated by gen-uni-tables.
1602
1603         New module 'unictype/joininggroup-of'.
1604         * modules/unictype/joininggroup-of: New file.
1605         * lib/unictype/joininggroup_of.c: New file.
1606         * lib/unictype/joininggroup_of.h: New file, automatically generated by
1607         gen-uni-tables.
1608
1609         Tests for module 'unictype/joininggroup-byname'.
1610         * modules/unictype/joininggroup-byname-tests: New file.
1611         * tests/unictype/test-joininggroup_byname.c: New file.
1612
1613         New module 'unictype/joininggroup-byname'.
1614         * modules/unictype/joininggroup-byname: New file.
1615         * lib/unictype/joininggroup_byname.c: New file.
1616         * lib/unictype/joininggroup_byname.gperf: New file.
1617
1618         Tests for module 'unictype/joininggroup-name'.
1619         * modules/unictype/joininggroup-name-tests: New file.
1620         * tests/unictype/test-joininggroup_name.c: New file.
1621
1622         New module 'unictype/joininggroup-name'.
1623         * modules/unictype/joininggroup-name: New file.
1624         * lib/unictype/joininggroup_name.c: New file.
1625         * lib/unictype/joininggroup_name.h: New file.
1626
1627         New module 'unictype/joiningtype-all'.
1628         * modules/unictype/joiningtype-all: New file.
1629
1630         Tests for module 'unictype/joiningtype-of'.
1631         * modules/unictype/joiningtype-of-tests: New file.
1632         * tests/unictype/test-joiningtype_of.c: New file.
1633         * tests/unictype/test-joiningtype_of.h: New file, automatically
1634         generated by gen-uni-tables.
1635
1636         New module 'unictype/joiningtype-of'.
1637         * modules/unictype/joiningtype-of: New file.
1638         * lib/unictype/joiningtype_of.c: New file.
1639         * lib/unictype/joiningtype_of.h: New file, automatically generated by
1640         gen-uni-tables.
1641
1642         Tests for module 'unictype/joiningtype-byname'.
1643         * modules/unictype/joiningtype-byname-tests: New file.
1644         * tests/unictype/test-joiningtype_byname.c: New file.
1645
1646         New module 'unictype/joiningtype-byname'.
1647         * modules/unictype/joiningtype-byname: New file.
1648         * lib/unictype/joiningtype_byname.c: New file.
1649
1650         Tests for module 'unictype/joiningtype-name'.
1651         * modules/unictype/joiningtype-name-tests: New file.
1652         * tests/unictype/test-joiningtype_name.c: New file.
1653
1654         New module 'unictype/joiningtype-name'.
1655         * modules/unictype/joiningtype-name: New file.
1656         * lib/unictype/joiningtype_name.c: New file.
1657
1658         unictype: Add support for Arabic shaping properties.
1659         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
1660         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
1661         declarations.
1662         (UC_JOINING_GROUP_*): New enumeration values.
1663         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
1664         declarations.
1665         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
1666         (unicode_joining_type): New variable.
1667         (UC_JOINING_GROUP_*): New enumeration values.
1668         (unicode_joining_group): New variable.
1669         (fill_arabicshaping, joining_type_as_c_identifier,
1670         output_joining_type_test, output_joining_type,
1671         joining_group_as_c_identifier, output_joining_group_test,
1672         output_joining_group): New functions.
1673         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
1674         fill_arabicshaping and output_joining_type_test, output_joining_type,
1675         output_joining_group_test, output_joining_group.
1676         Reported by Simon Josefsson.
1677
1678 2011-03-21  Jim Meyering  <meyering@redhat.com>
1679
1680         strftime: fix a bug in yesterday's change
1681         * lib/strftime.c (add): Accommodate width's initial value of -1.
1682         Otherwise, nstrftime would copy uninitialized data into
1683         the result buffer.
1684
1685 2011-03-21  Jim Meyering  <meyering@redhat.com>
1686
1687         tests: add strftime-tests module
1688         * tests/test-strftime.c: New file.
1689         * modules/strftime-tests: New module.
1690
1691 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1692
1693         strftime: don't assume a byte count fits in 'int'
1694         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
1695         found this problem by static analysis, using gcc -Wstrict-overflow
1696         (GCC 4.5.2, x86-64).  This reported an optimization that depended
1697         on an integer overflow having undefined behavior, but it turns out
1698         that the argument is a size, which might not fit in 'int' anyway,
1699
1700 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1701
1702         stdio: don't require ignore_value around fwrite
1703
1704         This patch works around libc bug 11959
1705         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
1706         Without this patch, applications must often write
1707         ignore_value (fwrite (...)) even though the ignore_value is
1708         not helpful here.  It's common to write many objects, using
1709         fwrite/printf/etc., and then use ferror to detect output error.
1710
1711         I considered making this patch optional, but decided against it,
1712         because libc is obviously being inconsistent here: there is no
1713         reason libc should insist that user code must inspect fwrite
1714         return's value without also insisting that it inspect printf's,
1715         putchar's, etc.  If user code wants to have a strict style where
1716         all these functions' values are checked (so that ferror need not
1717         be checked), we could add support for that style in a new gnulib
1718         module, but in the meantime it's better to be consistent and to
1719         support common usage.
1720
1721         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
1722         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
1723         that we are compiling in checking mode, and if not C++, and
1724         if not already wrapping fwrite for some other reason.
1725         (fwrite): #define to rpl_fwrite if the latter is defined.
1726
1727 2011-03-20  Bruno Haible  <bruno@clisp.org>
1728
1729         verror: Fix compilation error introduced on 2011-02-13.
1730         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
1731         instead of __attribute__.
1732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1733
1734 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
1735             Bruno Haible  <bruno@clisp.org>
1736
1737         socklen: do not depend on sys_socket
1738         While trying to modify Emacs to use gnulib's socklen module,
1739         I discovered a circular dependency: socklen depends on sys_socket
1740         and vice versa.  Emacs can use socklen, but it does not need
1741         sys_socket because it has its own substitute for sys/socket.h.
1742         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
1743         gl_TYPE_SOCKLEN_T.
1744         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
1745         gl_PREREQ_SYS_H_SOCKET.
1746         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
1747         gl_PREREQ_SYS_H_SOCKET.
1748         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
1749         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
1750         * modules/socklen (Depends-on): Do not depend on sys_socket.
1751         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
1752
1753 2011-03-20  Jim Meyering  <meyering@redhat.com>
1754
1755         maint.mk: sort file names *after* new transformation
1756         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
1757         prefix would have led to an unwarranted failure in GNU parted.
1758         Sort after that transformation.
1759
1760 2011-03-19  Jim Meyering  <meyering@redhat.com>
1761
1762         maint.mk: fix po-file syntax-check rule
1763         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
1764         Patch by Bruno Haible.
1765
1766 2011-03-19  Bruno Haible  <bruno@clisp.org>
1767
1768         socklen: Update comment.
1769         * m4/socklen.m4: Update comment about platforms.
1770
1771 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1772             Bruno Haible  <bruno@clisp.org>
1773
1774         inet_ntop, inet_pton: Simplify.
1775         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
1776         documented to provide socklen_t and we already depend on sys_socket.
1777         * modules/inet_pton (Depends-on): Likewise.
1778         * lib/arpa_inet.in.h: Adjust comment.
1779
1780 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1781             Bruno Haible  <bruno@clisp.org>
1782
1783         netdb: Simplify.
1784         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
1785         documented to provide socklen_t and we already depend on sys_socket.
1786         * lib/netdb.in.h: Adjust comment.
1787
1788 2011-03-19  Bruno Haible  <bruno@clisp.org>
1789
1790         sys_socket, netdb: Document problem with socklen_t.
1791         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
1792         platforms.
1793         * doc/posix-headers/netdb.texi: Likewise.
1794
1795 2011-03-18  Eric Blake  <eblake@redhat.com>
1796
1797         maint.mk: let po check work in VPATH build
1798         * top/maint.mk (po_file): Allow cfg.mk override.
1799         (sc_po_check): Allow VPATH use.
1800         Reported by Jiri Denemark.
1801
1802 2011-03-16  Jim Meyering  <meyering@redhat.com>
1803
1804         maint.mk: allow fine-grained syntax-check exclusion via Make variables
1805         Before, you would have had to create one .x-sc_ file per rule in order
1806         to exempt offending files.  Now, you may instead use a Make variable --
1807         usually defined in cfg.mk -- whose name identifies the affected rule.
1808         * top/maint.mk (_sc_excl): Define.
1809         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
1810         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
1811
1812 2011-03-13  Bruno Haible  <bruno@clisp.org>
1813
1814         ignore-value tests: Avoid warnings.
1815         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
1816         empty for gcc < 3.4.
1817
1818 2011-03-13  Bruno Haible  <bruno@clisp.org>
1819
1820         passfd: Fix link error on Solaris.
1821         * modules/passfd (Description): Correct.
1822         (Depends-on): Add socketlib.
1823         (Link): New section.
1824         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
1825
1826 2011-03-13  Bruno Haible  <bruno@clisp.org>
1827
1828         passfd: Fix link error on AIX 5.2.
1829         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
1830
1831 2011-03-13  Bruno Haible  <bruno@clisp.org>
1832
1833         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
1834         * lib/sys_socket.in.h: Include <stddef.h>.
1835         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
1836         CMSG_FIRSTHDR. Remove unused variable.
1837
1838 2011-03-13  Bruno Haible  <bruno@clisp.org>
1839
1840         passfd: Fix compilation error on OpenBSD.
1841         * lib/passfd.c: Include <sys/uio.h>.
1842
1843 2011-03-13  Bruno Haible  <bruno@clisp.org>
1844
1845         passfd test: Fix warnings.
1846         * tests/test-passfd.c: Include <sys/wait.h>.
1847         (main): Fix typo.
1848
1849 2011-03-13  Bruno Haible  <bruno@clisp.org>
1850
1851         passfd module, part 4, tweaks.
1852         * tests/test-passfd.c: Reorder includes.
1853         (main): Fix perror and printf calls.
1854
1855 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1856
1857         passfd module, part 4.
1858         * modules/passfd-tests: New file.
1859         * tests/test-passfd.c: New file.
1860
1861 2011-03-13  Jim Meyering  <meyering@redhat.com>
1862
1863         Makefile: rely on GNU make; derive syntax-check rule names
1864         Rather than requiring that each sc_ rule be listed as a dependent
1865         of "check", use features of GNU make to derive the list.
1866         * Makefile (syntax-check-rules): Define.
1867         (check): Depend on the new variable, not the hard-coded list.
1868
1869 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
1870             Bruno Haible  <bruno@clisp.org>
1871
1872         passfd module, part 3.
1873         * lib/passfd.h (recvfd): Add a flags argument.
1874         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
1875         (recvfd): Add a flags argument.
1876         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
1877         exists.
1878         * modules/passfd (Depends-on): Add cloexec.
1879         Suggested by Eric Blake.
1880
1881 2011-03-13  Bruno Haible  <bruno@clisp.org>
1882
1883         passfd module, part 2, tweaks.
1884         * modules/passfd (Files): Reorder.
1885         (Depends-on): Remove errno.
1886         (Include): Remove <sys/socket.h>, <sys/un.h>.
1887         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
1888         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
1889         specification header. Include <sys/socket.h> always. Don't include
1890         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
1891         (sendfd): Clarify that it sets errno when it fails.
1892         (recvfd): Fix specification.
1893
1894 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1895
1896         passfd module, part 2.
1897         * modules/passfd: New file.
1898         * lib/passfd.h: New file.
1899         * lib/passfd.c: New file.
1900
1901 2011-03-12  Bruno Haible  <bruno@clisp.org>
1902
1903         wcswidth, mbswidth: Avoid integer overflow.
1904         * lib/wcswidth.c: Include <limits.h>.
1905         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
1906         * lib/mbswidth.c: Include <limits.h>.
1907         (mbsnwidth): Avoid 'int' overflow.
1908         Reported by Jim Meyering.
1909
1910 2011-03-12  Bruno Haible  <bruno@clisp.org>
1911
1912         futimens, utimensat: Avoid endless recursion on Solaris 10.
1913         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
1914         Solaris.
1915         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
1916         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
1917
1918 2011-03-11  Jim Meyering  <meyering@redhat.com>
1919
1920         maint.mk: relax a regexp to accommodate other formatting styles
1921         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
1922         between "ngettext" and the following "(".
1923
1924 2011-03-11  Pádraig Brady <P@draigBrady.com>
1925
1926         maint.mk: suppress a false positive warning
1927         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
1928         diagnostics are marked with ngettext.
1929
1930 2011-03-10  Eric Blake  <eblake@redhat.com>
1931
1932         wchar: add explicit dependencies, for Tru64
1933         * modules/mbmemcasecoll (Depends-on): Add wchar.
1934         * modules/mbtowc (Depends-on): Likewise.
1935         * modules/vasnprintf (Depends-on): Likewise.
1936         * modules/unistdio/u-printf-args (Depends-on): Likewise.
1937         * modules/wctomb (Depends-on): Likewise.
1938         Reported by Peter O'Gorman.
1939
1940 2011-03-08  Bruno Haible  <bruno@clisp.org>
1941
1942         passfd module, part 1, tweaks.
1943         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
1944         Improve indentation. Improve AC_MSG_CHECKING messages.
1945         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
1946         gl_SOCKET_FAMILIES.
1947
1948 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
1949
1950         passfd module, part 1.
1951         * m4/afunix.m4: New file.
1952         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
1953         sockets.
1954
1955 2011-03-08  Bruno Haible  <bruno@clisp.org>
1956
1957         regex-quote: New API.
1958         * lib/regex-quote.h: Include <stdbool.h>.
1959         (struct regex_quote_spec): New type.
1960         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1961         New declarations.
1962         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1963         'const struct regex_quote_spec *' argument.
1964         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
1965         (pcre_special): New constant.
1966         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
1967         New functions.
1968         (regex_quote_length, regex_quote_copy, regex_quote): Take a
1969         'const struct regex_quote_spec *' argument.
1970         * modules/regex-quote (Depends-on): Add stdbool.
1971         * tests/test-regex-quote.c (check): Update for new API. Add test for
1972         anchored results.
1973         * NEWS: Mention the API change.
1974         Reported by Reuben Thomas and Eric Blake.
1975
1976 2011-03-06  Bruno Haible  <bruno@clisp.org>
1977
1978         regex-quote: Fix creation of POSIX extended regular expressions.
1979         * lib/regex-quote.c (ere_special): Add grouping and alternation
1980         operators.
1981
1982 2011-03-05  Bruno Haible  <bruno@clisp.org>
1983
1984         doc: Improve doc regarding autopoint vs. gnulib.
1985         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
1986         disable autopoint while running autoreconf.
1987         Suggested by Ralf Wildenhues.
1988
1989 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1990
1991         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
1992         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
1993
1994 2011-03-03  Bruce Korb  <bkorb@gnu.org>
1995
1996         parse-duration: remove xalloc.h dependency
1997         * lib/parse-duration.c (parse_period): handle NULL return from
1998         strdup instead of calling xstrdup().
1999         * modules/parse-duration: remove "xalloc" dependency
2000
2001 2011-03-03  Matthew Booth  <mbooth@redhat.com>
2002
2003         bootstrap: honor m4_base when running aclocal
2004         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
2005
2006 2011-03-02  Jim Meyering  <meyering@redhat.com>
2007
2008         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
2009         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
2010         on request from Matt Booth.
2011
2012 2011-03-01  Eric Blake  <eblake@redhat.com>
2013
2014         test-link: work on Hurd
2015         * tests/test-link.h (test_link): Hurd rejects linking directories
2016         with EISDIR instead of the POSIX-mandated EPERM.
2017
2018 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2019
2020         stdio: simplify by moving files to printf-posix, sigpipe
2021         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
2022         since this symbol is needed only if printf is replaced.
2023         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
2024         Require gl_ASM_SYMBOL_PREFIX.
2025         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
2026         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
2027         (Depends-on): Add 'raise'.
2028         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
2029         * modules/stdio (Files): Remove lib/stdio-write.c,
2030         m4/asm-underscore.m4.
2031         (Depends-on): Remove 'raise'.
2032
2033         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
2034         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
2035         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
2036         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
2037
2038 2011-02-28  Bruno Haible  <bruno@clisp.org>
2039
2040         localcharset: Assume ANSI C behaviour of free().
2041         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
2042         calling free().
2043         Suggested by Simon Josefsson <simon@josefsson.org>.
2044
2045 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
2046             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
2047             Bruno Haible  <bruno@clisp.org>  (tiny change)
2048
2049         On Cygwin, use /proc file system instead of win32 API.
2050         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
2051         Win32 file names.
2052         (DllMain): Simplify by removing Cygwin specific code.
2053         (find_shared_library_fullname): Use Linux specific implementation also
2054         for Cygwin.
2055         (get_shared_library_fullname): Update accordingly.
2056         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
2057         Win32 file names.
2058         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
2059         Cygwin specific code.
2060
2061 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
2062             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
2063
2064         Fix OpenMP flag detection for various Fortran compilers.
2065         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
2066         OpenMP-conditional compilation construct, to force compile
2067         failure with missing OpenMP flag.
2068         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
2069
2070 2011-02-25  Eric Blake  <eblake@redhat.com>
2071
2072         strstr: expand test coverage
2073         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
2074         compilation.
2075         * tests/test-memmem.c (main): Duplicate tests.
2076         * tests/test-strcasestr.c (main): Likewise.
2077         * tests/test-c-strcasestr.c (main): Likewise.
2078
2079 2011-02-25  Jim Meyering  <meyering@redhat.com>
2080
2081         maint.mk: detect missing-NL-at-EOF, too
2082         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
2083         it also detects when a file lacks a newline at EOF.
2084         (require_exactly_one_NL_at_EOF_): Renamed from
2085         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
2086         since people may well have .x-sc_... file names tied to the
2087         existing name.  Suggested by Eric Blake.
2088
2089 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2090
2091         dirname: move m4/dos.m4 functionality into lib/dosname.h
2092
2093         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
2094         extracts symbols from it, puts them into config.h; but it's much
2095         easier to use the symbols directly.  filename.h already does this,
2096         but it disagrees with dos.m4 in some respects.  This patch
2097         introduces a different include file dosname.h that packages up
2098         dos.m4, and then later we can work on merging filename.h and
2099         dosname.h.  Applications that need only the easy-to-configure
2100         symbols should consider including dosname.h rather than dirname.h.
2101         * NEWS: Mention incompatible changes.
2102         * m4/dos.m4: Remove.
2103         * lib/dosname.h, modules/dosname: New files.
2104         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
2105         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
2106         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
2107         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
2108         Include dosname.h, not dirname.h.
2109         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
2110         Include dosname.h, for definitions of symbols like ISSLASH
2111         that used to be in config.h.
2112         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
2113         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2114         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2115         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2116         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
2117         * modules/rmdir (Files): Likewise.
2118         * modules/stat (Files): Likewise.
2119         * modules/unlink (Files): Likewise.
2120         * modules/dirname-lgpl (Depends-on): Add dosname.
2121         * modules/lstat (Depends-on): Likewise.
2122         * modules/openat (Depends-on): Likewise.
2123         * modules/rmdir (Depends-on): Likewise.
2124         * modules/savewd (Depends-on): Likewise.
2125         * modules/stat (Depends-on): Likewise.
2126         * modules/unlink (Depends-on): Likewise.
2127         * modules/openat (Depends-on): Remove dirname-lgpl.
2128         * modules/savewd (Depends-on): Likewise.
2129         * tests/test-dirname.c: Do not use removed symbols like
2130         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
2131         the remaining symbols, e.g., ISSLASH ('\\').
2132
2133 2011-02-25  Eric Blake  <eblake@redhat.com>
2134
2135         strstr: revert patches that introduced bug and pessimization
2136         * lib/str-two-way.h: Add another reference.
2137         (two_way_short_needle, two_way_long_needle): Revert changes from
2138         2011-02-24; they pessimize search speed.
2139         (critical_factorization): Partially revert changes from
2140         2010-06-22; they violate the requirement that the left half of the
2141         needle be smaller than the period of the needle.
2142
2143 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2144
2145         filenamecat: remove unnecessary dependency on dirname-lgpl
2146         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
2147         is no direct dependency, just an indirect one via filenamecat-lgpl.
2148
2149         remove: remove unnecessary use of m4/dos.m4
2150         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
2151         * modules/remove (FILES): Remove m4/dos.m4.
2152
2153         * lib/openat-proc.c: Don't include dirname.h; not needed.
2154
2155         backupfile: remove unnecessary use of m4/dos.m4
2156         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2157         of its symbols are used by the backupfile code.  backupfile.c does
2158         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2159         for the rare case of programs that want all their backup file
2160         names to live within 8+3 limits, and dos.m4 doesn't address that.
2161         * modules/backupfile (Files): Remove m4/dos.m4.
2162
2163 2011-02-24  Jim Meyering  <meyering@redhat.com>
2164
2165         strstr: fix a bug whereby strstr would mistakenly return NULL
2166         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2167         in period calculation.
2168         (two_way_long_needle): Likewise.
2169         The original problem was reported by Mike Stump in
2170         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2171         Ralf Wildenhues provided the short needle and haystack.
2172         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2173         Add a more involved test to trigger the bug in two_way_long_needle.
2174
2175 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2176
2177         gnulib-tool: remove use of bold display in help screen
2178         * gnulib-tool (func_usage): Do not use bold display anymore in the
2179         help screen.  That was just meant to be a temporary emphasis for a
2180         backward-incompatible change.
2181
2182 2011-02-23  Bruno Haible  <bruno@clisp.org>
2183
2184         Fix misindentation of preprocessor directives.
2185         * lib/argp-namefrob.h: Reindent preprocessor directives.
2186         * lib/getopt_int.h (struct _getopt_data): Likewise.
2187         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2188         * lib/vasnprintf.c (decode_long_double): Likewise.
2189         * tests/test-argmatch.c: Insert blank lines, for clarity.
2190         * tests/test-exclude.c: Likewise.
2191
2192 2011-02-22  Bruno Haible  <bruno@clisp.org>
2193
2194         ioctl: Fix for MacOS X in 64-bit mode.
2195         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2196         value.
2197         Suggested by Eric Blake.
2198         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2199
2200 2011-02-22  Jim Meyering  <meyering@redhat.com>
2201
2202         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2203         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2204         in lib/.
2205
2206 2011-02-22  Eric Blake  <eblake@redhat.com>
2207
2208         maint: avoid any CDPATH issue
2209         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2210
2211         maint: adjust cpp indentation for my modules, as well
2212         * Makefile (sc_cpp_indent_check): Add my name.
2213         * lib/fbufmode.c: Filter through cppi.
2214         * lib/fpurge.c: Likewise.
2215         * lib/freadable.c: Likewise.
2216         * lib/freading.c: Likewise.
2217         * lib/fwritable.c: Likewise.
2218         * lib/fwriting.c: Likewise.
2219         * lib/sigaction.c: Likewise.
2220
2221 2011-02-22  Jim Meyering  <meyering@redhat.com>
2222
2223         maint: adjust cpp indentation to reflect nesting depth
2224         I.e., in a block of code that begins with an unnested "#if",
2225         put one space between the "#" in column 1 and following token.
2226         For example,
2227         -#include <sys/vfs.h>
2228         +# include <sys/vfs.h>
2229         Do this only in .c files that are part of a module I maintain.
2230         * lib/linkat.c: Filter through cppi.
2231         * lib/nanosleep.c: Likewise.
2232         * lib/openat.c: Likewise.
2233         * lib/openat-die.c: Likewise.
2234         * lib/dup3.c: Likewise.
2235         * lib/fchownat.c: Likewise.
2236         * lib/flock.c: Likewise.
2237         * lib/fsync.c: Likewise.
2238         * lib/fts.c: Likewise.
2239         * lib/getpass.c: Likewise.
2240         * lib/gettimeofday.c: Likewise.
2241         * lib/userspec.c: Likewise.
2242         * Makefile (sc_cpp_indent_check): New rule, to check this.
2243
2244 2011-02-22  Bruno Haible  <bruno@clisp.org>
2245
2246         New module 'wctomb'.
2247         * lib/stdlib.in.h (wctomb): New declaration.
2248         * lib/wctomb.c: New file.
2249         * lib/wctomb-impl.h: New file.
2250         * m4/wctomb.m4: New file.
2251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2252         REPLACE_WCTOMB.
2253         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2254         REPLACE_WCTOMB.
2255         * modules/wctomb: New file.
2256         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2257         * doc/posix-functions/wctomb.texi: Mention the new module.
2258         * modules/wctob (Depends-on): Add wctomb.
2259
2260 2011-02-22  Bruno Haible  <bruno@clisp.org>
2261
2262         New module 'mbtowc'.
2263         * lib/stdlib.in.h (mbtowc): New declaration.
2264         * lib/mbtowc.c: New file.
2265         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2266         * m4/mbtowc.m4: New file.
2267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2268         REPLACE_MBTOWC.
2269         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2270         REPLACE_MBTOWC.
2271         * modules/mbtowc: New file.
2272         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2273         * doc/posix-functions/mbtowc.texi: Mention the new module.
2274         * modules/btowc (Depends-on): Add mbtowc.
2275
2276 2011-02-22  Bruno Haible  <bruno@clisp.org>
2277
2278         wcrtomb: Add more tests for native Windows platforms.
2279         * tests/test-wcrtomb-w32-1.sh: New file.
2280         * tests/test-wcrtomb-w32-2.sh: New file.
2281         * tests/test-wcrtomb-w32-3.sh: New file.
2282         * tests/test-wcrtomb-w32-4.sh: New file.
2283         * tests/test-wcrtomb-w32-5.sh: New file.
2284         * tests/test-wcrtomb-w32.c: New file.
2285         * modules/wcrtomb-tests (Files): Add them.
2286         (Makefile.am): Arrange to run these tests.
2287         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2288         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2289
2290 2011-02-20  Bruno Haible  <bruno@clisp.org>
2291
2292         wcrtomb: Enhance test.
2293         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2294
2295 2011-02-20  Bruno Haible  <bruno@clisp.org>
2296
2297         mbrtowc: Tiny optimization.
2298         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2299
2300 2011-02-20  Jim Meyering  <meyering@redhat.com>
2301
2302         test-exclude.c: remove unmatched #endif
2303         * tests/test-exclude.c: Remove stray #endif, left over from
2304         the change of a week ago.
2305
2306 2011-02-19  Jim Meyering  <meyering@redhat.com>
2307
2308         git-version-gen: skip "-dirty" check when appropriate
2309         * build-aux/git-version-gen: Don't run any git commands when the
2310         version string comes from .tarball-version.  Prior to this, we
2311         would run git update-index --refresh even from a just-unpacked
2312         tarball directory, and that could affect a .git/ directory in a
2313         parent of the build directory.  Reported by Mike Frysinger.
2314
2315 2011-02-19  Bruno Haible  <bruno@clisp.org>
2316
2317         unictype/property-byname: Reduce the size of the 'data' segment.
2318         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2319
2320 2011-02-19  Bruno Haible  <bruno@clisp.org>
2321
2322         unictype/scripts: Reduce the size of the 'data' segment.
2323         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2324         '%pic'.
2325         * lib/unictype/scripts_byname.gperf: Regenerated.
2326
2327 2011-02-19  Bruno Haible  <bruno@clisp.org>
2328
2329         stdint: Update documentation.
2330         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2331
2332 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2333
2334         stdint: omit redundant check for wchar.h
2335         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2336         always tests whether wchar.h exists, so remove the now-redundant test.
2337
2338 2011-02-18  Bruno Haible  <bruno@clisp.org>
2339
2340         stdint: Cut dependency to module 'wchar'.
2341         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2342         include the necessary prerequisites.
2343         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2344         * modules/stdint (Depends-on): Remove wchar.
2345         (Makefile.am): Substitute HAVE_WCHAR_H.
2346         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2347
2348 2011-02-18  Eric Blake  <eblake@redhat.com>
2349
2350         longlong: skip, rather than fail, on cross-compilation
2351         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2352         when cross-compiling; regression from 2011-02-16.
2353
2354 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2355
2356         * NEWS: Mention 2011-02-08 change to stdlib.
2357
2358 2011-02-17  Bruno Haible  <bruno@clisp.org>
2359
2360         getloadavg: Add comments about platforms.
2361         * m4/getloadavg.m4: Add comment.
2362         * lib/getloadavg.c: Likewise.
2363
2364 2011-02-17  Bruno Haible  <bruno@clisp.org>
2365
2366         getloadavg: Fix link error on Solaris 2.6.
2367         * modules/getloadavg (Link): New section.
2368         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2369         linking test-getloadavg.
2370         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2371         getloadavg.
2372
2373 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2374
2375         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2376         It was 'int', but this doesn't match the IRIX 6.5 manual.
2377         Suggested by Bruno Haible in
2378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2379
2380 2011-02-17  Bruno Haible  <bruno@clisp.org>
2381
2382         havelib: Fix comments.
2383         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2384         change.
2385
2386 2011-02-17  Bruno Haible  <bruno@clisp.org>
2387
2388         havelib: Update config.rpath.
2389         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2390
2391 2011-02-17  Bruno Haible  <bruno@clisp.org>
2392
2393         getloadavg test: Add some plausibility checks.
2394         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2395         is improbable.
2396
2397 2011-02-16  Eric Blake  <eblake@redhat.com>
2398
2399         maintainer-makefile: make syntax-check a no-op from tarballs
2400         * top/maint.mk (no-vc-detected): New rule.
2401         (local-checks-available): Use it to avoid hanging if someone tries
2402         'make syntax-check' from a tarball.  Also append to any non-syntax
2403         checks already defined in cfg.mk.
2404
2405 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2406
2407         longlong: tune, particularly for common case of c99
2408
2409         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2410         or running anything if c99, or if unsigned long long int does not
2411         work.  In either case, we know the answer without further tests.
2412         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2413         it at most once, and use its results for both long long int and
2414         unsigned long long int.  This is more likely to be efficient in
2415         the common case where the program wants to check for both long
2416         long int and unsigned long long int.
2417         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2418         since the answer is already known.
2419
2420 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2421
2422         getloadavg: set errno
2423         * lib/getloadavg.c: Set errno when returning -1.  If no other
2424         error number looks appropriate, set it to ENOSYS if the getloadavg
2425         looks like it can't possibly ever work, ENOTSUP otherwise.
2426         Suggested by Bruno Haible in
2427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2428
2429         getloadavg: trim unused parts and speed up 'configure'
2430         * NEWS: Document this.
2431         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2432         always compiled if getloadavg is absent.
2433         Move test code to ...
2434         * tests/test-getloadavg.c: New file, containing previous
2435         contents of test from lib/getloadavg.c.  It also contains
2436         suggestions by Bruno Haible in
2437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2438         * modules/getloadavg-tests: New file.
2439         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2440         Do tests in the same order as they're needed for getloadavg.c.
2441         Omit setgid-related tests that generate symbols KMEM_GROUP,
2442         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2443         Do only the tests that are needed to see whether the system has
2444         getloadavg, moving the other tests into ...
2445         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2446         NLIST_NAME_UNION; nobody should be using it.  Do not define
2447         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2448         relevant, as the user of this module shouldn't care how getloadavg
2449         is implemented.
2450
2451         getloadavg: omit unused var
2452         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2453
2454 2011-02-15  Jim Meyering  <meyering@redhat.com>
2455
2456         doc: update users.txt
2457         * users.txt: Update iwhd's URL.
2458
2459 2011-02-13  Bruno Haible  <bruno@clisp.org>
2460
2461         Consistent macro naming for macros that use GCC __attribute__.
2462         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2463         _ATTRIBUTE_NONNULL_.
2464         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2465         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2466         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2467         ATTRIBUTE_DEPRECATED.
2468         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2469         ATTRIBUTE_NORETURN.
2470         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2471         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2472         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2473         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2474         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2475         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2476         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2477         ATTRIBUTE_SENTINEL.
2478         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2479         ATTRIBUTE_RETURN_CHECK.
2480         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2481         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2482         ATTRIBUTE_NORETURN.
2483         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2484         Reported by Paul Eggert.
2485
2486 2011-02-13  Bruno Haible  <bruno@clisp.org>
2487
2488         Don't interfere with a program's definition of __attribute__.
2489         * lib/argp.h (__attribute__): Remove definition.
2490         (_GL_ATTRIBUTE_FORMAT): New macro.
2491         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2492         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2493         (_GL_ATTRIBUTE_FORMAT): New macro.
2494         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2495         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2496         GCC 3 or newer.
2497         * lib/error.h (__attribute__): Remove definition.
2498         (_GL_ATTRIBUTE_FORMAT): New macro.
2499         (error, error_at_line): Use it.
2500         * lib/hash.h (__attribute__): Remove definition.
2501         (ATTRIBUTE_WUR): Update definition. Define always.
2502         * lib/openat.h (__attribute__): Remove definition.
2503         (ATTRIBUTE_NORETURN): Update definition. Define always.
2504         * lib/sigpipe-die.h (__attribute__): Remove definition.
2505         (ATTRIBUTE_NORETURN): Update definition. Define always.
2506         * lib/vasnprintf.h (__attribute__): Remove definition.
2507         (_GL_ATTRIBUTE_FORMAT): New macro.
2508         (asnprintf, vasnprintf): Use it.
2509         * lib/xalloc.h (__attribute__): Remove definition.
2510         (ATTRIBUTE_NORETURN): Update definition. Define always.
2511         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2512         * lib/xmemdup0.h (__attribute__): Remove definition.
2513         (ATTRIBUTE_NORETURN): Update definition. Define always.
2514         * lib/xprintf.h (__attribute__): Remove definition.
2515         (_GL_ATTRIBUTE_FORMAT): New macro.
2516         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2517         * lib/xstrtol.h (__attribute__): Remove definition.
2518         (ATTRIBUTE_NORETURN): Update definition. Define always.
2519         * lib/xvasprintf.h (__attribute__): Remove definition.
2520         (_GL_ATTRIBUTE_FORMAT): New macro.
2521         (xasprintf, xvasprintf): Use it.
2522         * tests/test-argmatch.c (__attribute__): Remove definition.
2523         (ATTRIBUTE_NORETURN): Update definition. Define always.
2524         * tests/test-exclude.c (__attribute__): Remove definition.
2525         (ATTRIBUTE_NORETURN): Update definition. Define always.
2526         Reported by Paul Eggert.
2527
2528 2011-02-13  Bruno Haible  <bruno@clisp.org>
2529
2530         mbrtowc: Add more tests for native Windows platforms.
2531         * tests/test-mbrtowc-w32-1.sh: New file.
2532         * tests/test-mbrtowc-w32-2.sh: New file.
2533         * tests/test-mbrtowc-w32-3.sh: New file.
2534         * tests/test-mbrtowc-w32-4.sh: New file.
2535         * tests/test-mbrtowc-w32-5.sh: New file.
2536         * tests/test-mbrtowc-w32.c: New file.
2537         * modules/mbrtowc-tests (Files): Add them.
2538         (Makefile.am): Arrange to run these tests.
2539         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2540         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2541
2542 2011-02-13  Bruno Haible  <bruno@clisp.org>
2543
2544         mbrtowc: Work around native Windows bug.
2545         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2546         guess when no suitable locale for testing was found.
2547         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2548
2549 2011-02-13  Bruno Haible  <bruno@clisp.org>
2550
2551         mbsinit: Work around mingw bug.
2552         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2553         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2554         Windows.
2555         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2556
2557 2011-02-13  Bruno Haible  <bruno@clisp.org>
2558
2559         mbsinit: Don't crash for a NULL argument.
2560         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2561         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2562
2563 2011-02-13  Bruno Haible  <bruno@clisp.org>
2564
2565         Don't interfere with a program's definition of __attribute__.
2566         * lib/stdio.in.h (__attribute__): Remove definition.
2567         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2568         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2569         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2570         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2571         * lib/string.in.h (__attribute__): Remove definition.
2572         Reported by Paul Eggert.
2573
2574 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2575
2576         stdlib: don't get in the way of non-GCC __attribute__
2577         See thread starting at
2578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2579         Revert previous stdlib change, installing the following instead:
2580         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2581         to get in the way of a non-GCC compiler that supports __attribute__.
2582         (_GL_ATTRIBUTE_RETURN): New macro.
2583         (_Exit): Use it instead of __attribute__.
2584
2585 2011-02-12  Bruno Haible  <bruno@clisp.org>
2586
2587         quotearg test: Avoid test failure on mingw.
2588         * tests/test-quotearg.sh: Convert the locale identifier from native
2589         Windows syntax to Unix syntax.
2590
2591 2011-02-12  Bruno Haible  <bruno@clisp.org>
2592
2593         setlocale: Prefer gnulib's override over libintl's override.
2594         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2595         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
2596         GNULIB_defined_setlocale is set.
2597
2598 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2599
2600         stdlib: support non-GCC __attribute__
2601
2602         Fix a serious and tricky problem encountered when attempting to
2603         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
2604         5.5, but it crashed due to memory corruption on Solaris 10 with
2605         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
2606         bits that are otherwise zero.  This tagging is optional inside
2607         Emacs but is preferred and is used when __attribute__ ((__aligned
2608         (8))) works, as it does with both recent-enough GCC and with Sun C
2609         5.11.  However, Sun C 5.11 is not GCC and does not #define
2610         __GNUC__ and __GNUC_MINOR__.
2611
2612         When I added the getloadavg module to Emacs, it brought in
2613         stdlib.in.h, which contained this fragment:
2614
2615            #ifndef __attribute__
2616            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
2617            #  define __attribute__(Spec)   /* empty */
2618            # endif
2619            #endif
2620
2621         When files that include <stdlib.h> were compiled with Sun C 5.11,
2622         the above code disabled __attribute__ ((__aligned (8))), which
2623         caused variables to not be properly aligned, which eventually led
2624         to the pointer corruption mentioned above.  (This was a bit hard
2625         to diagnose, unfortunately.)
2626
2627         Several "#define __attribute__(X) /* empty */" code snippets need
2628         to be eradicated from Gnulib to work with non-GCC compilers that
2629         support __attribute__.  The Autoconf way to do this is to test for
2630         each kind of attribute that we want support for, and selectively
2631         enable that in source code.
2632
2633         Fix this problem just for stdlib.h, by adding a test for the
2634         __noreturn__ attribute, and change stdlib.in.h to use that test
2635         when needed.  This technique can be easily generalized to the
2636         other *.in.h files and attributes, and a similar technique can be
2637         used for *.h and *.c files.  This patch is enough to solve the
2638         problem for Emacs + getloadavg, and I thought I'd publish it for
2639         feedback before undertaking further, similar fixes in other
2640         modules.
2641
2642         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
2643         because it's not needed for stdlib.h.  It merely substitutes the
2644         value directly into stdlib.h.  We may well need to #define it, or
2645         similar symbols, for other modules, but it's nice to also have an
2646         option to not #define it for applications like Emacs that do not
2647         need it.
2648
2649         * lib/stdlib.in.h (__attribute__): Do not #define.
2650         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
2651         be defined only if the _Exit module is also used.
2652         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
2653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
2654         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
2655         platforms.
2656         * modules/_Exit (Files): Add m4/attribute.m4.
2657         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
2658         * m4/attribute.m4: New file.
2659
2660 2011-02-12  Bruno Haible  <bruno@clisp.org>
2661
2662         wcsrtombs: Work around bug on native Windows.
2663         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
2664         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
2665         instead of len.
2666         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
2667
2668 2011-02-12  Bruno Haible  <bruno@clisp.org>
2669
2670         mbsrtowcs: Work around bug on native Windows.
2671         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
2672         against mingw bug.
2673         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
2674
2675 2011-02-12  Bruno Haible  <bruno@clisp.org>
2676
2677         Avoid setlocale bugs in tests.
2678         * modules/btowc (Dependencies): Add setlocale.
2679         * modules/c-strcase (Dependencies): Likewise.
2680         * modules/mbmemcasecmp (Dependencies): Likewise.
2681         * modules/mbmemcasecoll (Dependencies): Likewise.
2682         * modules/mbrtowc (Dependencies): Likewise.
2683         * modules/mbscasecmp (Dependencies): Likewise.
2684         * modules/mbscasestr (Dependencies): Likewise.
2685         * modules/mbschr (Dependencies): Likewise.
2686         * modules/mbscspn (Dependencies): Likewise.
2687         * modules/mbsinit (Dependencies): Likewise.
2688         * modules/mbsncasecmp (Dependencies): Likewise.
2689         * modules/mbsnrtowcs (Dependencies): Likewise.
2690         * modules/mbspbrk (Dependencies): Likewise.
2691         * modules/mbspcasecmp (Dependencies): Likewise.
2692         * modules/mbsrchr (Dependencies): Likewise.
2693         * modules/mbsrtowcs (Dependencies): Likewise.
2694         * modules/mbsspn (Dependencies): Likewise.
2695         * modules/mbsstr (Dependencies): Likewise.
2696         * modules/nl_langinfo (Dependencies): Likewise.
2697         * modules/quotearg (Dependencies): Likewise.
2698         * modules/unicase/locale-language (Dependencies): Likewise.
2699         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
2700         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
2701         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
2702         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
2703         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
2704         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
2705         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
2706         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
2707         * modules/vasnprintf-posix (Dependencies): Likewise.
2708         * modules/wcrtomb (Dependencies): Likewise.
2709         * modules/wcsnrtombs (Dependencies): Likewise.
2710         * modules/wcsrtombs (Dependencies): Likewise.
2711
2712 2011-02-12  Bruno Haible  <bruno@clisp.org>
2713
2714         setlocale: Workaround native Windows bug.
2715         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
2716         succeeds but sets LC_CTYPE to "C", report a failure.
2717         * tests/test-setlocale2.sh: New file.
2718         * tests/test-setlocale2.c: New file.
2719         * modules/setlocale-tests (Files): Add the new files.
2720         (Makefile.am): Enable test-setlocale2.sh test.
2721         * doc/posix-functions/setlocale.texi: Mention workaround.
2722
2723 2011-02-11  Bruno Haible  <bruno@clisp.org>
2724
2725         Tests for module 'setlocale'.
2726         * modules/setlocale-tests: New file.
2727         * tests/test-setlocale1.sh: New file.
2728         * tests/test-setlocale1.c: New file.
2729
2730         New module 'setlocale'.
2731         * lib/locale.in.h (setlocale): New declaration.
2732         * lib/setlocale.c: New file, based on
2733         gettext/gettext-runtime/intl/setlocale.c.
2734         * m4/setlocale.m4: New file.
2735         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
2736         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
2737         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
2738         REPLACE_SETLOCALE.
2739         * modules/setlocale: New file.
2740         * tests/test-locale-c++.cc: Test the declaration of setlocale.
2741         * doc/posix-functions/setlocale.texi: Mention the new module.
2742
2743 2011-02-11  Bruno Haible  <bruno@clisp.org>
2744
2745         Prepare for locale dependent tests on mingw.
2746         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
2747         because it has the wrong locale encoding.
2748         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
2749         French_France.1252 instead of "fr".
2750         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
2751         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
2752         because it has the wrong locale encoding.
2753         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
2754         native Windows, try Turkish_Turkey.65001.
2755         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
2756         Chinese_China.54936.
2757
2758         Prepare for locale dependent tests on mingw.
2759         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
2760         differently.
2761         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
2762         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
2763         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2764         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2765
2766 2011-02-11  Eric Blake  <eblake@redhat.com>
2767
2768         strptime: avoid compiler warnings
2769         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
2770         compiler warnings about dead code.
2771         Reported by Daniel P. Berrange.
2772
2773 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
2774
2775         doc: update users.txt
2776         * users.txt: Add rcs.
2777
2778 2011-02-10  John W. Eaton  <jwe@gnu.org>
2779
2780         doc: update users.txt
2781         * users.txt: Add octave.
2782
2783 2011-02-10  Jim Meyering  <meyering@redhat.com>
2784
2785         doc: update users.txt
2786         * users.txt: Add iwhd.
2787
2788 2011-02-09  Bruno Haible  <bruno@clisp.org>
2789
2790         gnulib-tool: Make copyright notice adjustment more robust.
2791         * gnulib-tool (func_import): In sed_transform_main_lib_file,
2792         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
2793         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
2794         License".
2795         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
2796
2797 2011-02-06  Bruno Haible  <bruno@clisp.org>
2798
2799         New module 'towctrans'.
2800         * modules/towctrans: New file.
2801         * lib/wctype.in.h (towctrans): New declaration.
2802         * lib/towctrans.c: New file.
2803         * lib/towctrans-impl.h: New file.
2804         * m4/towctrans.m4: New file.
2805         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
2806         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
2807         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
2808         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
2809         * doc/posix-functions/towctrans.texi: Mention the new module.
2810
2811 2011-02-06  Bruno Haible  <bruno@clisp.org>
2812
2813         New module 'wctrans'.
2814         * modules/wctrans: New file.
2815         * lib/wctype.in.h (wctrans): New declaration.
2816         * lib/wctrans.c: New file.
2817         * lib/wctrans-impl.h: New file.
2818         * m4/wctrans.m4: New file.
2819         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
2820         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
2821         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
2822         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
2823         * doc/posix-functions/wctrans.texi: Mention the new module.
2824
2825 2011-02-06  Bruno Haible  <bruno@clisp.org>
2826
2827         New module 'iswctype'.
2828         * modules/iswctype: New file.
2829         * lib/wctype.in.h (iswctype): New declaration.
2830         * lib/iswctype.c: New file.
2831         * lib/iswctype-impl.h: New file.
2832         * m4/iswctype.m4: New file.
2833         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
2834         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
2835         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
2836         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
2837         * doc/posix-functions/iswctype.texi: Mention the new module and the
2838         HP-UX 11.00 problem.
2839
2840 2011-02-06  Bruno Haible  <bruno@clisp.org>
2841
2842         New module 'wctype'.
2843         * modules/wctype: Change to represent the wctype() substitute.
2844         * lib/wctype.in.h (wctype): New declaration.
2845         * lib/wctype.c: New file.
2846         * lib/wctype-impl.h: New file.
2847         * m4/wctype.m4: New file.
2848         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
2849         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
2850         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
2851         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
2852         * doc/posix-functions/wctype.texi: Mention the new module and the
2853         HP-UX 11.00 problem.
2854
2855 2011-02-06  Bruno Haible  <bruno@clisp.org>
2856
2857         wctype-h: Ensure wctype_t and wctrans_t are defined.
2858         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
2859         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2860         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
2861         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
2862         HAVE_WCTRANS_T.
2863         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
2864
2865 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2866
2867         flock: fix license typo
2868
2869         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
2870         omitted.
2871
2872 2011-02-08  Bruno Haible  <bruno@clisp.org>
2873
2874         Split large sed scripts, for HP-UX sed.
2875         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
2876         to avoid HP-UX limit of 99 commands, in the near future.
2877         * modules/stdlib (Makefile.am): Likewise.
2878         * modules/unistd (Makefile.am): Likewise.
2879         * modules/wchar (Makefile.am): Likewise.
2880         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2881         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
2882         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
2883
2884 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2885             Bruno Haible  <bruno@clisp.org>
2886
2887         stdlib: improve random_r modularization
2888         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
2889         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
2890         you also need the random_r module to get this material right.
2891         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
2892         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
2893         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
2894
2895 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
2896
2897         stdlib: don't depend on stdint
2898         * lib/stdlib.in.h: Don't include <stdint.h> merely because
2899         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
2900         be independent of whether stdint.h is needed.
2901         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
2902         here, instead of ...
2903         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
2904         struct random_data should be using the random_r module, not just
2905         the stdlib module (which wouldn't make sense: what package needs
2906         just struct random_data without also needing random_r?).
2907         * modules/stdlib (Depends-on): Remove stdint.
2908
2909         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
2910         See the thread rooted at
2911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
2912         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
2913         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
2914         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
2915         __VMS)); previously it was always included (via fcntl--.h).
2916         (getloadavg): Do not use c_strtod.  Instead, approximate it by
2917         hand; this is good enough for load averages.  Also, do not use
2918         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
2919         flags directly if available and don't bother otherwise.  (Packages
2920         that need the extra reliability should use the modules that define
2921         these flags on older platforms that lack them.)
2922         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
2923         fcntl-safer.
2924
2925 2011-02-08  Jim Meyering  <meyering@redhat.com>
2926
2927         di-set.h, ino-map.h: add multiple-inclusion guard
2928         Technically, the guard is required only for ino-map.h, due to its
2929         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
2930         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
2931         * lib/ino-map.h: Likewise.
2932
2933 2011-02-06  Bruno Haible  <bruno@clisp.org>
2934
2935         iswblank: Ensure declaration on glibc systems.
2936         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
2937         * modules/iswblank (Dependencies): Add 'extensions'.
2938         * doc/posix-functions/iswblank.texi: Document the glibc problem.
2939
2940 2011-02-06  Bruno Haible  <bruno@clisp.org>
2941
2942         New module 'iswblank'.
2943         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
2944         * modules/iswblank: New file.
2945         * modules/wctype-h (Files): Remove lib/iswblank.c.
2946         (Makefile.am): Substitute GNULIB_ISWBLANK.
2947         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
2948         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
2949         (gl_WCTYPE_H_DEFAULTS): New macro.
2950         (gl_WCTYPE_H): Require it. Remove iswblank related code.
2951         * modules/iswblank-tests: New file.
2952         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
2953         * tests/test-wctype-h.c (main): Remove iswblank tests.
2954         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
2955         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
2956         of 'wctype-h'.
2957         * NEWS: Mention the change.
2958         * modules/mbchar (Depends-on): Add iswblank.
2959
2960 2011-02-08  Bruno Haible  <bruno@clisp.org>
2961
2962         di-set tests: Refactor.
2963         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
2964         unnecessary includes.
2965         (ASSERT): Remove macro.
2966         (main): Make C90 compliant by avoiding variable declaration after
2967         statement.
2968         * modules/di-set-tests (Files): Add tests/macros.h.
2969
2970 2011-02-08  Bruno Haible  <bruno@clisp.org>
2971
2972         ino-map tests: Refactor.
2973         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
2974         unnecessary includes.
2975         (ASSERT): Remove macro.
2976         (main): Make C90 compliant by avoiding variable declaration after
2977         statement.
2978         * modules/ino-map-tests (Files): Add tests/macros.h.
2979
2980 2011-02-08  Jim Meyering  <meyering@redhat.com>
2981
2982         di-set: add "const" to a cast
2983         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
2984         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
2985
2986 2011-02-06  Bruno Haible  <bruno@clisp.org>
2987
2988         Rename module 'wctype' to 'wctype-h'.
2989         * modules/wctype-h: Renamed from modules/wctype.
2990         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
2991         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
2992         (Files, Depends-on, Makefile.am): Update.
2993         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
2994         (Files, Makefile.am): Update.
2995         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
2996         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
2997         * doc/posix-headers/wctype.texi: Update.
2998         * doc/posix-functions/iswalnum.texi: Update.
2999         * doc/posix-functions/iswalpha.texi: Update.
3000         * doc/posix-functions/iswblank.texi: Update.
3001         * doc/posix-functions/iswcntrl.texi: Update.
3002         * doc/posix-functions/iswdigit.texi: Update.
3003         * doc/posix-functions/iswgraph.texi: Update.
3004         * doc/posix-functions/iswlower.texi: Update.
3005         * doc/posix-functions/iswprint.texi: Update.
3006         * doc/posix-functions/iswpunct.texi: Update.
3007         * doc/posix-functions/iswspace.texi: Update.
3008         * doc/posix-functions/iswupper.texi: Update.
3009         * doc/posix-functions/iswxdigit.texi: Update.
3010         * doc/posix-functions/towlower.texi: Update.
3011         * doc/posix-functions/towupper.texi: Update.
3012         * NEWS: Mention the change.
3013         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
3014         * modules/mbchar (Dependencies): Likewise.
3015         * modules/mbswidth (Dependencies): Likewise.
3016         * modules/quotearg (Dependencies): Likewise.
3017         * modules/regex (Dependencies): Likewise.
3018         * modules/wcscasecmp (Dependencies): Likewise.
3019         * modules/wcsncasecmp (Dependencies): Likewise.
3020         * modules/wcwidth (Dependencies): Likewise.
3021
3022 2011-02-06  Bruno Haible  <bruno@clisp.org>
3023
3024         New module 'wcswidth'.
3025         * modules/wcswidth: New file.
3026         * lib/wchar.in.h (wcswidth): New declaration.
3027         * lib/wcswidth.c: New file.
3028         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
3029         * m4/wcswidth.m4: New file.
3030         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
3031         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
3032         REPLACE_WCSWIDTH.
3033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
3034         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
3035         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
3036         * doc/posix-functions/wcswidth.texi: Mention the new module.
3037
3038 2011-02-06  Bruno Haible  <bruno@clisp.org>
3039
3040         New module 'wcstok'.
3041         * modules/wcstok: New file.
3042         * lib/wchar.in.h (wcstok): New declaration.
3043         * lib/wcstok.c: New file.
3044         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
3045         * m4/wcstok.m4: New file.
3046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
3047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
3048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
3049         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
3050         * doc/posix-functions/wcstok.texi: Mention the new module.
3051
3052 2011-02-06  Bruno Haible  <bruno@clisp.org>
3053
3054         New module 'wcsstr'.
3055         * modules/wcsstr: New file.
3056         * lib/wchar.in.h (wcsstr): New declaration.
3057         * lib/wcsstr.c: New file.
3058         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
3059         * m4/wcsstr.m4: New file.
3060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
3061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
3062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
3063         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
3064         * doc/posix-functions/wcsstr.texi: Mention the new module.
3065
3066 2011-02-06  Bruno Haible  <bruno@clisp.org>
3067
3068         New module 'wcspbrk'.
3069         * modules/wcspbrk: New file.
3070         * lib/wchar.in.h (wcspbrk): New declaration.
3071         * lib/wcspbrk.c: New file.
3072         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
3073         * m4/wcspbrk.m4: New file.
3074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
3075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
3076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
3077         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
3078         * doc/posix-functions/wcspbrk.texi: Mention the new module.
3079
3080 2011-02-06  Bruno Haible  <bruno@clisp.org>
3081
3082         New module 'wcsspn'.
3083         * modules/wcsspn: New file.
3084         * lib/wchar.in.h (wcsspn): New declaration.
3085         * lib/wcsspn.c: New file.
3086         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
3087         * m4/wcsspn.m4: New file.
3088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
3089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
3090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
3091         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
3092         * doc/posix-functions/wcsspn.texi: Mention the new module.
3093
3094 2011-02-06  Bruno Haible  <bruno@clisp.org>
3095
3096         New module 'wcscspn'.
3097         * modules/wcscspn: New file.
3098         * lib/wchar.in.h (wcscspn): New declaration.
3099         * lib/wcscspn.c: New file.
3100         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
3101         * m4/wcscspn.m4: New file.
3102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
3103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
3104         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
3105         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
3106         * doc/posix-functions/wcscspn.texi: Mention the new module.
3107
3108 2011-02-06  Bruno Haible  <bruno@clisp.org>
3109
3110         New module 'wcsrchr'.
3111         * modules/wcsrchr: New file.
3112         * lib/wchar.in.h (wcsrchr): New declaration.
3113         * lib/wcsrchr.c: New file.
3114         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
3115         * m4/wcsrchr.m4: New file.
3116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
3117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
3118         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
3119         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
3120         * doc/posix-functions/wcsrchr.texi: Mention the new module.
3121
3122 2011-02-06  Bruno Haible  <bruno@clisp.org>
3123
3124         New module 'wcschr'.
3125         * modules/wcschr: New file.
3126         * lib/wchar.in.h (wcschr): New declaration.
3127         * lib/wcschr.c: New file.
3128         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
3129         * m4/wcschr.m4: New file.
3130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
3131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
3132         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
3133         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
3134         * doc/posix-functions/wcschr.texi: Mention the new module.
3135
3136 2011-02-06  Bruno Haible  <bruno@clisp.org>
3137
3138         New module 'wcsdup'.
3139         * modules/wcsdup: New file.
3140         * lib/wchar.in.h (wcsdup): New declaration.
3141         * lib/wcsdup.c: New file.
3142         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
3143         * m4/wcsdup.m4: New file.
3144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
3145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
3146         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
3147         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
3148         * doc/posix-functions/wcsdup.texi: Mention the new module.
3149
3150 2011-02-06  Bruno Haible  <bruno@clisp.org>
3151
3152         New module 'wcsxfrm'.
3153         * modules/wcsxfrm: New file.
3154         * lib/wchar.in.h (wcsxfrm): New declaration.
3155         * lib/wcsxfrm.c: New file.
3156         * lib/wcsxfrm-impl.h: New file.
3157         * m4/wcsxfrm.m4: New file.
3158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3161         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3162         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3163
3164 2011-02-06  Bruno Haible  <bruno@clisp.org>
3165
3166         New module 'wcscoll'.
3167         * modules/wcscoll: New file.
3168         * lib/wchar.in.h (wcscoll): New declaration.
3169         * lib/wcscoll.c: New file.
3170         * lib/wcscoll-impl.h: New file.
3171         * m4/wcscoll.m4: New file.
3172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3175         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3176         * doc/posix-functions/wcscoll.texi: Mention the new module.
3177
3178 2011-02-06  Bruno Haible  <bruno@clisp.org>
3179
3180         New module 'wcsncasecmp'.
3181         * modules/wcsncasecmp: New file.
3182         * lib/wchar.in.h (wcsncasecmp): New declaration.
3183         * lib/wcsncasecmp.c: New file.
3184         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3185         * m4/wcsncasecmp.m4: New file.
3186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3188         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3189         HAVE_WCSNCASECMP.
3190         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3191         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3192
3193 2011-02-06  Bruno Haible  <bruno@clisp.org>
3194
3195         New module 'wcscasecmp'.
3196         * modules/wcscasecmp: New file.
3197         * lib/wchar.in.h (wcscasecmp): New declaration.
3198         * lib/wcscasecmp.c: New file.
3199         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3200         * m4/wcscasecmp.m4: New file.
3201         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3202         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3204         HAVE_WCSCASECMP.
3205         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3206         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3207
3208 2011-02-05  Bruno Haible  <bruno@clisp.org>
3209
3210         New module 'wcsncmp'.
3211         * modules/wcsncmp: New file.
3212         * lib/wchar.in.h (wcsncmp): New declaration.
3213         * lib/wcsncmp.c: New file.
3214         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3215         * m4/wcsncmp.m4: New file.
3216         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3217         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3218         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3219         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3220         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3221
3222 2011-02-05  Bruno Haible  <bruno@clisp.org>
3223
3224         New module 'wcscmp'.
3225         * modules/wcscmp: New file.
3226         * lib/wchar.in.h (wcscmp): New declaration.
3227         * lib/wcscmp.c: New file.
3228         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3229         * m4/wcscmp.m4: New file.
3230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3233         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3234         * doc/posix-functions/wcscmp.texi: Mention the new module.
3235
3236 2011-02-05  Bruno Haible  <bruno@clisp.org>
3237
3238         New module 'wcsncat'.
3239         * modules/wcsncat: New file.
3240         * lib/wchar.in.h (wcsncat): New declaration.
3241         * lib/wcsncat.c: New file.
3242         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3243         * m4/wcsncat.m4: New file.
3244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3246         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3247         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3248         * doc/posix-functions/wcsncat.texi: Mention the new module.
3249
3250 2011-02-05  Bruno Haible  <bruno@clisp.org>
3251
3252         New module 'wcscat'.
3253         * modules/wcscat: New file.
3254         * lib/wchar.in.h (wcscat): New declaration.
3255         * lib/wcscat.c: New file.
3256         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3257         * m4/wcscat.m4: New file.
3258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3261         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3262         * doc/posix-functions/wcscat.texi: Mention the new module.
3263
3264 2011-02-05  Bruno Haible  <bruno@clisp.org>
3265
3266         New module 'wcpncpy'.
3267         * modules/wcpncpy: New file.
3268         * lib/wchar.in.h (wcpncpy): New declaration.
3269         * lib/wcpncpy.c: New file.
3270         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3271         * m4/wcpncpy.m4: New file.
3272         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3273         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3274         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3275         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3276         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3277
3278 2011-02-05  Bruno Haible  <bruno@clisp.org>
3279
3280         New module 'wcsncpy'.
3281         * modules/wcsncpy: New file.
3282         * lib/wchar.in.h (wcsncpy): New declaration.
3283         * lib/wcsncpy.c: New file.
3284         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3285         * m4/wcsncpy.m4: New file.
3286         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3287         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3289         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3290         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3291
3292 2011-02-05  Bruno Haible  <bruno@clisp.org>
3293
3294         New module 'wcpcpy'.
3295         * modules/wcpcpy: New file.
3296         * lib/wchar.in.h (wcpcpy): New declaration.
3297         * lib/wcpcpy.c: New file.
3298         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3299         * m4/wcpcpy.m4: New file.
3300         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3301         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3302         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3303         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3304         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3305
3306 2011-02-05  Bruno Haible  <bruno@clisp.org>
3307
3308         New module 'wcscpy'.
3309         * modules/wcscpy: New file.
3310         * lib/wchar.in.h (wcscpy): New declaration.
3311         * lib/wcscpy.c: New file.
3312         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3313         * m4/wcscpy.m4: New file.
3314         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3315         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3317         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3318         * doc/posix-functions/wcscpy.texi: Mention the new module.
3319
3320 2011-02-05  Bruno Haible  <bruno@clisp.org>
3321
3322         New module 'wcsnlen'.
3323         * modules/wcsnlen: New file.
3324         * lib/wchar.in.h (wcsnlen): New declaration.
3325         * lib/wcsnlen.c: New file.
3326         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3327         * m4/wcsnlen.m4: New file.
3328         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3329         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3330         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3331         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3332         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3333
3334 2011-02-05  Bruno Haible  <bruno@clisp.org>
3335
3336         New module 'wcslen'.
3337         * modules/wcslen: New file.
3338         * lib/wchar.in.h (wcslen): New declaration.
3339         * lib/wcslen.c: New file.
3340         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3341         * m4/wcslen.m4: New file.
3342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3344         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3345         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3346         * doc/posix-functions/wcslen.texi: Mention the new module.
3347
3348 2011-02-05  Bruno Haible  <bruno@clisp.org>
3349
3350         New module 'wmemset'.
3351         * modules/wmemset: New file.
3352         * lib/wchar.in.h (wmemset): New declaration.
3353         * lib/wmemset.c: New file.
3354         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3355         * m4/wmemset.m4: New file.
3356         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3357         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3358         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3359         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3360         * doc/posix-functions/wmemset.texi: Mention the new module.
3361
3362 2011-02-05  Bruno Haible  <bruno@clisp.org>
3363
3364         New module 'wmemmove'.
3365         * modules/wmemmove: New file.
3366         * lib/wchar.in.h (wmemmove): New declaration.
3367         * lib/wmemmove.c: New file.
3368         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3369         * m4/wmemmove.m4: New file.
3370         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3371         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3372         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3373         HAVE_WMEMMOVE.
3374         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3375         * doc/posix-functions/wmemmove.texi: Mention the new module.
3376
3377 2011-02-05  Bruno Haible  <bruno@clisp.org>
3378
3379         New module 'wmemcpy'.
3380         * modules/wmemcpy: New file.
3381         * lib/wchar.in.h (wmemcpy): New declaration.
3382         * lib/wmemcpy.c: New file.
3383         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3384         * m4/wmemcpy.m4: New file.
3385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3387         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3388         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3389         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3390
3391 2011-02-05  Bruno Haible  <bruno@clisp.org>
3392
3393         New module 'wmemcmp'.
3394         * modules/wmemcmp: New file.
3395         * lib/wchar.in.h (wmemcmp): New declaration.
3396         * lib/wmemcmp.c: New file.
3397         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3398         * m4/wmemcmp.m4: New file.
3399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3401         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3402         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3403         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3404
3405 2011-02-07  Jim Meyering  <meyering@redhat.com>
3406
3407         di-set, ino-map: new modules, from coreutils
3408         * lib/di-set.c: New file.
3409         * lib/di-set.h: Likewise.
3410         * lib/ino-map.c: Likewise.
3411         * lib/ino-map.h: Likewise.
3412         * modules/di-set: Likewise.
3413         * modules/di-set-tests: Likewise.
3414         * modules/ino-map: Likewise.
3415         * modules/ino-map-tests: Likewise.
3416         * tests/test-di-set.c: Likewise.
3417         * tests/test-ino-map.c: Likewise.
3418
3419 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3420
3421         getloadavg: merge minor changes from Emacs
3422
3423         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3424         (getloadavg): Use memset, not bzero.
3425
3426         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3427         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3428         clash (bug#86).
3429
3430 2010-11-14  Bruno Haible  <bruno@clisp.org>
3431
3432         Allow multiple gnulib generated replacements to coexist.
3433         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3434         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3435         * lib/langinfo.in.h (nl_item): Likewise.
3436         * lib/math.in.h (_NaN, NAN): Likewise.
3437         * lib/netdb.in.h (struct addrinfo): Likewise.
3438         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3439         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3440         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3441         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3442         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3443         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3444         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3445         pthread_mutexattr_init, pthread_mutexattr_settype,
3446         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3447         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3448         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3449         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3450         * lib/sched.in.h (struct sched_param): Likewise.
3451         * lib/se-selinux.in.h (security_class_t, security_context_t,
3452         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3453         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3454         lsetfilecon, fsetfilecon, security_check_context,
3455         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3456         Likewise.
3457         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3458         Likewise.
3459         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3460         _gl_function_taking_int_returning_void_t, union sigval,
3461         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3462         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3463         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3464         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3465         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3466         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3467         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3468         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3469         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3470         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3471         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3472         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3473         socklen_t, rpl_fd_isset): Likewise.
3474         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3475         * lib/sys_time.in.h (struct timeval): Likewise.
3476         * lib/sys_times.in.h (struct tms): Likewise.
3477         * lib/sys_utsname.in.h (struct utsname):
3478         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3479         * lib/unistd.in.h (getpagesize): Likewise.
3480         * lib/wchar.in.h (mbstate_t): Likewise.
3481         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3482         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3483         towlower, towupper): Likewise.
3484         Reported by Sam Steingold <sds@gnu.org>.
3485
3486 2011-02-05  Eric Blake  <eblake@redhat.com>
3487
3488         unsetenv: work around Haiku issues
3489         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3490         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3491
3492 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3493
3494         libposix: avoid calling error() within libposix
3495         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3496         is defined.
3497
3498 2011-02-05  Eric Blake  <eblake@redhat.com>
3499
3500         strerror_r-posix: port to cygwin
3501         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3502         implementation.
3503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3504         * tests/test-strerror_r.c (main): Fix test.
3505         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3506         issue.
3507
3508 2011-02-05  Bruno Haible  <bruno@clisp.org>
3509
3510         New module 'wmemchr'.
3511         * modules/wmemchr: New file.
3512         * lib/wchar.in.h (wmemchr): New declaration.
3513         * lib/wmemchr.c: New file.
3514         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3515         * m4/wmemchr.m4: New file.
3516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3518         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3519         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3520         * doc/posix-functions/wmemchr.texi: Mention the new module.
3521
3522 2011-02-04  Eric Blake  <eblake@redhat.com>
3523
3524         fdopendir: detect FreeBSD bug
3525         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3526         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3527
3528 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3529
3530         stdbool: do not define HAVE_STDBOOL_H
3531         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
3532         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3533         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3534         imported from the latest Autoconf git.  It was motivated by Emacs,
3535         which uses gnulib but does not need HAVE_STDBOOL_H.
3536
3537 2011-02-04  Bruno Haible  <bruno@clisp.org>
3538
3539         wcsnrtombs: Prepare for new module wwcsnrtombs.
3540         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3541         * lib/wcsnrtombs.c: Include it.
3542         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3543
3544         wcsrtombs: Prepare for new module wwcsrtombs.
3545         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3546         * lib/wcsrtombs.c: Include it.
3547         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3548
3549         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3550         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3551         * lib/mbsnrtowcs.c: Include it.
3552         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3553
3554         mbsrtowcs: Prepare for new module mbsrtowwcs.
3555         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3556         * lib/mbsrtowcs.c: Include it.
3557         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3558
3559 2011-02-04  Bruno Haible  <bruno@clisp.org>
3560
3561         vasnprintf: Reduce use of malloc for small format strings.
3562         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3563         (arguments): Add room for the first 7 arguments.
3564         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3565         (char_directives, u8_directives, u16_directives, u32_directives): Add
3566         room for the first 7 directives.
3567         * lib/printf-parse.c: Include <string.h>.
3568         (PRINTF_PARSE): Change memory handling code so that it uses the first
3569         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3570         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3571         Reported by Pádraig Brady <P@draigbrady.com>.
3572
3573 2011-01-31  Eric Blake  <eblake@redhat.com>
3574
3575         dup2: work around Haiku bug
3576         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3577         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3578         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3579         * tests/test-dup2.c (main): Enhance test.
3580
3581 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3582
3583         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3584         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3585         declared by eglibc 2.11.2.
3586         * lib/stdio.in.h: Likewise.
3587
3588 2011-01-31  Eric Blake  <eblake@redhat.com>
3589
3590         ignore-value: add missing test dependency
3591         * tests/test-ignore-value.c: Revert previous change; stdio.h
3592         provides off_t.
3593         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3594
3595 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3596
3597         mktime: clarify long_int width checking
3598         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
3599         the top level, to make it clearer that the assumption about
3600         long_int width is being checked.  See
3601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
3602
3603 2011-01-30  Simon Josefsson  <simon@josefsson.org>
3604
3605         ignore-value: Fix self-test.
3606         * tests/test-ignore-value.c: Include sys/types.h for off_t.
3607
3608 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
3609
3610         TYPE_MAXIMUM: avoid theoretically undefined behavior
3611         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
3612         negative number, which the C Standard says has undefined behavior.
3613         In practice this is not a problem, but might as well do it by the book.
3614         Reported by Rich Felker and Eric Blake; see
3615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
3616         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
3617         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3619         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
3620         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3621         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
3622
3623         mktime: #undef mktime before #defining it
3624         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
3625
3626         mktime: systematically normalize tm_isdst comparisons
3627         * lib/mktime.c (isdst_differ): New function.
3628         (__mktime_internal): Use it systematically for all isdst comparisons.
3629         This completes the fix for libc BZ #6723, and removes the need for
3630         normalizing tm_isdst.  See
3631         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
3632         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
3633
3634         mktime: fix some integer overflow issues and sidestep the rest
3635
3636         This was prompted by a bug report by Benjamin Lindner for MinGW
3637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
3638         His bug is due to signed integer overflow (0 - INT_MIN), and I
3639         I scanned through mktime.c looking for other integer overflow
3640         problems, fixing all the bugs I found.
3641
3642         Although the C Standard says the resulting code is still not safe
3643         in the presence of integer overflow, in practice it should be good
3644         enough for all real-world two's-complement implementations, except
3645         for debugging environments that deliberately trap on integer
3646         overflow (e.g., gcc -ftrapv).
3647
3648         * lib/mktime.c (WRAPV): New macro.
3649         (SHR): Also check that long_int and time_t shift right in the
3650         usual way, before using the fast-but-unportable method.
3651         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
3652         used.  The code already assumed two's complement, so there's
3653         no need to test for alternatives.  All uses removed.
3654         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
3655         the C standard.  Problem reported by Rich Felker in
3656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
3657         (twos_complement_arithmetic): Also check long_int and time_t.
3658         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
3659         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
3660         (__mktime_internal): Avoid integer overflow with unary subtraction
3661         in two instances where -1 - X is an adequate replacement for -X,
3662         since the calculations are approximate.
3663
3664 2011-01-29  Eric Blake  <eblake@redhat.com>
3665
3666         mktime: avoid infinite loop
3667         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
3668         type; behavior is still undefined but portable to all known targets.
3669         Reported by Rich Felker.
3670
3671 2011-01-29  Simon Josefsson  <simon@josefsson.org>
3672
3673         rename, unlink, same-inode: Relicense.
3674         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
3675         * modules/unlink (License): Likewise.
3676         * modules/same-inode (License): Likewise.
3677
3678 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3679
3680         mktime: avoid problems on NetBSD 5 / i386
3681         * lib/mktime.c (long_int): New type.  This works around a problem
3682         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
3683         but time_t is 64 bits, and where I expect the existing code is
3684         wrong in some cases.
3685         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
3686         (ydhms_diff): Bring back the compile-time check for wide-enough
3687         year and yday.
3688
3689         mktime: fix misspelling in comment
3690         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
3691         This merges all recent glibc changes of importance.
3692
3693 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3694
3695         move-if-change: cope with concurrent mv of identical file.
3696         * build-aux/move-if-change (CMPPROG): Accept environment
3697         variable as an override for `cmp'.
3698         (usage): Document CMPPROG.
3699         Adjust comparison to drop stdout.  Cope with failure of mv if
3700         the target file exists and is identical to the source, for
3701         parallel builds.
3702         Report from H.J. Lu against binutils in PR binutils/12283.
3703
3704 2011-01-28  Bruce Korb  <bkorb@gnu.org>
3705
3706         * users.txt: Mention sharutils.
3707
3708 2011-01-28  Simon Josefsson  <simon@josefsson.org>
3709
3710         * users.txt: Mention OATH Toolkit.
3711
3712 2011-01-27  Bruno Haible  <bruno@clisp.org>
3713
3714         Prepare for supporting FreeBSD 10.
3715         * build-aux/config.libpath: Remove handling of freebsd1*.
3716
3717 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
3718
3719         Prepare for supporting FreeBSD 10.
3720         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
3721         match FreeBSD 10.0.
3722
3723 2011-01-27  Bruno Haible  <bruno@clisp.org>
3724
3725         vma-iter, get-rusage-as: Add OpenBSD support.
3726         * modules/vma-iter (configure.ac): Test for mquery.
3727         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
3728         * lib/vma-iter.c: Include <sys/mman.h>.
3729         (vma_iterate): Add an implementation based on mquery().
3730         * lib/resource-ext.h (get_rusage_as): Update comments.
3731         * lib/get-rusage-as.c: Likewise.
3732         * lib/get-rusage-data.c: Likewise.
3733
3734 2011-01-26  Karl Berry  <karl@gnu.org>
3735
3736         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
3737         variables to make it easier to override the makeinfo program used.
3738
3739 2011-01-26  Eric Blake  <eblake@redhat.com>
3740
3741         fcntl: work around Haiku F_DUPFD bugs
3742         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
3743         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
3744         cloexec bit on duplication.
3745         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
3746
3747 2011-01-26  Bruno Haible  <bruno@clisp.org>
3748
3749         Enable memory leak tests on AIX.
3750         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
3751         * tests/test-fprintf-posix3.c (main): Likewise.
3752
3753 2011-01-26  Bruno Haible  <bruno@clisp.org>
3754
3755         Tests for module 'get-rusage-data'.
3756         * modules/get-rusage-data-tests: New file.
3757         * tests/test-get-rusage-data.c: New file.
3758
3759         New module 'get-rusage-data'.
3760         * lib/resource-ext.h (get_rusage_data): New declaration.
3761         * lib/get-rusage-data.c: New file.
3762         * modules/get-rusage-data: New file.
3763
3764 2011-01-25  Bruno Haible  <bruno@clisp.org>
3765
3766         get-rusage-as: Allow for easier testing.
3767         * lib/resource-ext.h (get_rusage_as): Add comment.
3768         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
3769         (main): New function for interactive testing.
3770
3771 2011-01-25  Bruno Haible  <bruno@clisp.org>
3772
3773         vma-iter: Treat Haiku like BeOS.
3774         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
3775         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
3776
3777 2011-01-25  Eric Blake  <eblake@redhat.com>
3778
3779         c-stack: fix regression on cygwin when libsigsegv is present
3780         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
3781
3782 2011-01-24  Bruno Haible  <bruno@clisp.org>
3783
3784         vma-iter: Avoid empty intervals.
3785         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
3786         on an empty interval.
3787
3788 2011-01-24  Jim Meyering  <meyering@redhat.com>
3789
3790         u64: remove unnecessary #include
3791         * lib/u64.h: Don't include <stddef.h>.  It was not used.
3792
3793 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3794
3795         Allow the user to avoid the HAVE_RAW_DECL_* macros.
3796         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
3797
3798 2011-01-23  Bruno Haible  <bruno@clisp.org>
3799
3800         New module 'vma-iter'.
3801         * lib/vma-iter.h: New file.
3802         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
3803         * modules/vma-iter: New file.
3804         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
3805         for get_rusage_as_via_iterator.
3806         (vma_iterate_callback): New function.
3807         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
3808         * modules/get-rusage-as (Depends-on): Add vma-iter.
3809
3810 2011-01-23  Bruno Haible  <bruno@clisp.org>
3811
3812         uninorm: Tweak includes.
3813         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
3814         Reported by Jim Meyering.
3815
3816 2011-01-23  Bruno Haible  <bruno@clisp.org>
3817
3818         get-rusage-as: Improve on NetBSD.
3819         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
3820         /proc, like on FreeBSD.
3821
3822 2011-01-23  Jim Meyering  <meyering@redhat.com>
3823
3824         xreadlink.h: remove unnecessary #include
3825         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
3826
3827         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
3828         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
3829
3830 2011-01-23  Bruno Haible  <bruno@clisp.org>
3831
3832         get-rusage-as: Fix bug.
3833         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
3834         original limit when aborting the first loop.
3835
3836 2011-01-23  Bruno Haible  <bruno@clisp.org>
3837
3838         wctype: Ensure valid C syntax.
3839         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
3840         unconditionally, instead of gl_NEXT_HEADERS conditionally.
3841
3842 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
3843
3844         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
3845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
3846         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
3847         as they are needed only for configure's test case.
3848         This removes two unnecessary symbols from config.h.
3849
3850         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
3851         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
3852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
3853         AC_CHECK_HEADERS_ONCE on a header that we also invoke
3854         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
3855         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
3856         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
3857         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3858         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3859         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3860         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3861         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3862         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3863         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3864         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3865         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3866         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
3867         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3868
3869 2011-01-21  Eric Blake  <eblake@redhat.com>
3870
3871         maintainer-makefile: work with older git for submodule check
3872         * top/maint.mk (public-submodule-commit): Rewrite to avoid
3873         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
3874         Reported by Matthias Bolte.
3875
3876         bootstrap: minor portability fixes
3877         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
3878         (usage): Omit leading capital and trailing . on help phrases, per
3879         GNU Coding Standards.
3880         (check_versions, top level): Prefix messages with script name.
3881
3882 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
3883
3884         bootstrap: support --no-git option
3885         * build-aux/bootstrap: Add --no-git option, to be used when
3886         --gnulib-srcdir points to the exact desired checkout.
3887
3888 2011-01-21  Eric Blake  <eblake@redhat.com>
3889
3890         strerror_r-posix: work with glibc 2.13
3891         * lib/strerror_r.c (strerror_r): Fix return type.
3892
3893 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3894             Bruno Haible  <bruno@clisp.org>
3895
3896         uN_strstr: New unit tests.
3897         * modules/unistr/u8-strstr-tests: New file.
3898         * modules/unistr/u16-strstr-tests: New file.
3899         * modules/unistr/u32-strstr-tests: New file.
3900         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
3901         * tests/unistr/test-u8-strstr.c: New file.
3902         * tests/unistr/test-u16-strstr.c: New file.
3903         * tests/unistr/test-u32-strstr.c: New file.
3904
3905 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3906             Bruno Haible  <bruno@clisp.org>
3907
3908         Make uN_strstr functions O(n) worst-case.
3909         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
3910         16-bit and 32-bit unit cases, use the unibyte algorithm from
3911         lib/mbsstr.c.
3912         * lib/unistr/u8-strstr.c: Include <string.h>.
3913         (UNIT_IS_UINT8_T): New macro.
3914         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
3915         (U_STRLEN, U_STRNLEN): New macros.
3916         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
3917         (U_STRLEN, U_STRNLEN): New macros.
3918         * modules/unistr/u8-strstr (Depends-on): Add strstr.
3919         (configure.ac): Update required libunistring version.
3920         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
3921         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
3922         malloca.
3923         (configure.ac): Update required libunistring version.
3924         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
3925         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
3926         malloca.
3927         (configure.ac): Update required libunistring version.
3928
3929 2011-01-21  Pádraig Brady  <P@draigBrady.com>
3930             Bruno Haible  <bruno@clisp.org>
3931
3932         Prepare for faster uN_strstr functions.
3933         * lib/str-kmp.h: Support definable UNITs.
3934         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
3935         needle_len argument.
3936         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
3937         * lib/mbscasestr.c (mbscasestr): Likewise.
3938
3939 2011-01-21  Pádraig Brady <P@draigBrady.com>
3940
3941         malloca-tests: make faster by unsetting MALLOC_PERTURB_
3942         * tests/test-malloca.c (main): Unset the environment variable
3943         to greatly speed up the test.
3944         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
3945         * modules/malloca-tests: Depend on unsetenv.
3946
3947 2011-01-21  Pádraig Brady <P@draigBrady.com>
3948
3949         ignore-value: remove stdint dependency
3950         * lib/ignore-value.h: Remove <stdint.h>
3951         * modules/ignore-value: Remove stdint dependency.
3952
3953 2011-01-21  Jim Meyering  <meyering@redhat.com>
3954
3955         maint.mk: adjust variable name to be consistent with other gl_ vars
3956         * top/maint.mk (gl_public_submodule_commit): Rename the variable
3957         to be lower case.
3958
3959 2011-01-20  Jim Meyering  <meyering@redhat.com>
3960
3961         maint.mk: make "check" depend on public-submodule-commit by default
3962         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
3963
3964 2011-01-20  Bruno Haible  <bruno@clisp.org>
3965
3966         mbfile, mbiter: Complete change from 2008-12-21.
3967         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
3968         * m4/mbiter.m4 (gl_MBITER): Likewise.
3969
3970 2011-01-20  Jim Meyering  <meyering@redhat.com>
3971
3972         init.sh: insert space between each function name and "()"
3973         * tests/init.sh: Make it a little easier to see that a function's
3974         name is "warn_", and not "warn" when looking at the first part of
3975         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
3976
3977 2011-01-20  Jim Meyering  <meyering@redhat.com>
3978
3979         mountlist: clean up code formatting
3980         * lib/mountlist.c (read_file_system_list): Split a long line,
3981         correct bracing style, use NULL in place of "(struct statfs *)0",
3982         don't parenthesize return value, add spaces around "=" and after
3983         ";-in-for-stmt".
3984
3985 2011-01-14  Markus Duft <mduft@gentoo.org>
3986
3987         mountlist: add support for Interix
3988         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
3989         Apply statvfs to all entries of /dev/fs.
3990         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
3991         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
3992
3993 2011-01-20  Jim Meyering  <meyering@redhat.com>
3994
3995         maint.mk: improve the public-submodule-commit rule
3996         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
3997         to suppress printing of its commands... unless V=1.
3998         Add git submodule's --quiet option to suppress printing of e.g.,
3999         "Entering gnulib" output.
4000         "cd" into $(srcdir) before running git submodule.
4001
4002 2011-01-20  Bruno Haible  <bruno@clisp.org>
4003
4004         include_next: Fix bug introduced on 2011-01-18.
4005         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
4006         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
4007         ac_cv_header_... variable if the second argument is not 'check'.
4008         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
4009         gl_NEXT_HEADERS_INTERNAL.
4010
4011 2011-01-20  Bruno Haible  <bruno@clisp.org>
4012
4013         Allow the user to avoid the GNULIB_TEST_* macros.
4014         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
4015         Suggested by Paul Eggert.
4016
4017 2011-01-14  Jim Meyering  <meyering@redhat.com>
4018
4019         bootstrap: avoid failure when there is no .gitmodules file
4020         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
4021         has been assigned to, even when its value is the empty string.
4022         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
4023         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
4024         Reported by John W. Eaton <jwe@gnu.org>.
4025
4026 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4027
4028         assume <ctype.h>, ..., <time.h> exist
4029         For years gnulib has been assuming the existence of the headers
4030         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
4031         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
4032         them, since they don't appear to be needed.
4033         * README (Portability guidelines): Document this.
4034         * lib/flock.c: Assume <fcntl.h> exists.
4035         * lib/regex_internal.h: Assume <locale.h> exists.
4036         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
4037         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
4038         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
4039         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
4040         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
4041         * m4/regex.m4 (gl_REGEX): Likewise.
4042         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
4043         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
4044         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
4045         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
4046         * tests/test-argp.c: Likewise.
4047         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
4048
4049         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
4050         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
4051         AA_APPLE_UNIVERSAL_BUILD.  See
4052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
4053         * NEWS: Document this.
4054
4055 2011-01-19  Eric Blake  <eblake@redhat.com>
4056
4057         c-stack: assume stack overflow if SA_SIGINFO unsupported
4058         * lib/c-stack.c (SIGACTION_WORKS): Rename...
4059         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
4060         sigaction will work.
4061         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
4062         behavior match Linux.
4063         * tests/test-c-stack.c (main): Prefer NULL for pointers.
4064
4065         stdbool-tests: accomodate Haiku
4066         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
4067
4068         binary-io: fix O_TEXT on Haiku
4069         * modules/binary-io (Depends-on): Add fcntl-h.
4070         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
4071         than blindly undefining O_TEXT.
4072         Reported by Scott McCreary.
4073
4074 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4075
4076         include_next: do not check for standard headers like stddef.h
4077
4078         I found this problem when modifying Emacs to use gnulib.
4079         I noticed that it added HAVE_STDDEF_H to config.h, even though
4080         gnulib always assumes <stddef.h> exists as per README and this
4081         symbol is unnecessary.
4082         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
4083         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
4084         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
4085         faster for headers like stddef.h that are known to exist.
4086         (gl_CHECK_NEXT_HEADERS): Use it.
4087         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
4088         rather than gl_CHECK_NEXT_HEADERS.
4089         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
4090         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
4091
4092 2011-01-18  Eric Blake  <eblake@redhat.com>
4093
4094         ansi-c++-opt: skip C++ dependency style if C++ is unused
4095         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
4096         tests when we know C++ compilation is not desired.
4097         Reported by Scott McCreary.
4098
4099 2011-01-18  Bruno Haible  <bruno@clisp.org>
4100
4101         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
4102         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
4103         (main): Perform test also when getrlimit and setrlimit don't exist or
4104         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
4105         limiting the address space size using setrlimit, compare the address
4106         space size before and after the the test.
4107         * tests/test-dprintf-posix2.c: Likewise.
4108         * tests/test-fprintf-posix3.sh: Update skip messages.
4109         * tests/test-dprintf-posix2.sh: Likewise.
4110         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
4111         * modules/dprintf-posix-tests (Depends-on): Likewise.
4112         Reported by Bruce Korb <bkorb@gnu.org> and
4113         Gary V. Vaughan <gary@gnu.org>.
4114
4115 2011-01-18  Bruno Haible  <bruno@clisp.org>
4116
4117         get-rusage-as: Improvement for Cygwin.
4118         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
4119         areas that are merely reserved.
4120
4121 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4122
4123         strftime: remove dependencies on multibyte modules
4124
4125         strftime depended on mbrlen, mbsinit, and wchar, but these modules
4126         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
4127         only if __osf__ is defined, and I suspect OSF doesn't need these
4128         other modules.  If my guess is wrong, we'll need to come up with a
4129         variant of strftime that doesn't need the multibyte modules.
4130
4131         I discovered this problem when attempting modify Emacs to use the
4132         strftime module.  With the previous gnulib, this caused Emacs to
4133         need 31 new files, ranging from lib/config.charset to
4134         m4/wint_t.m4.  This was overkill and I expect would be offputting
4135         to the Emacs maintainers.  After this change, only 6 new files are
4136         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
4137         stdbool.m4, and tm_gmtoff.m4.
4138
4139         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
4140         Suggested by Bruno Haible in
4141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
4142         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
4143         and do not check for wchar.h.
4144         * modules/strftime (Files): Remove m4/mbstate_t.m4.
4145         (Depends-on): Remove mbrlen, mbsinit, wchar.
4146
4147 2011-01-18  Bruno Haible  <bruno@clisp.org>
4148
4149         Tests for module 'get-rusage-as'.
4150         * modules/get-rusage-as-tests: New file.
4151         * tests/test-get-rusage-as.c: New file.
4152
4153         New module 'get-rusage-as'.
4154         * modules/get-rusage-as: New file.
4155         * lib/resource-ext.h: New file.
4156         * lib/get-rusage-as.c: New file.
4157
4158 2011-01-17  Eric Blake  <eblake@redhat.com>
4159
4160         sigaction: relax license from LGPLv3+ to LGPLv2+
4161         * modules/sigaction (License): Relax to LGPLv2+.
4162
4163 2011-01-14  Bruno Haible  <bruno@clisp.org>
4164
4165         filemode: Make function declarations usable in C++ mode.
4166         * lib/filemode.h: Enclose function declarations in extern "C" block.
4167         Reported by John W. Eaton <jwe@gnu.org>.
4168
4169 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4170
4171         save-cwd: no longer include "xgetcwd.h"
4172         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4173         This avoids a compilation failure in projects that use save-cwd
4174         without also using the xgetcwd module.
4175
4176 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4177
4178         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4179         This is so that a program like Emacs, which needs only dtoastr,
4180         does not have to bother with distributing and compiling ftoastr
4181         and ldtoastr.
4182         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4183         * modules/dtoastr, modules/ldtoastr: New files.
4184         * modules/ftoastr: Now works just for 'float'.
4185         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4186         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4187         dtoastr.c, ldtoastr.c.
4188
4189 2011-01-11  Jim Meyering  <meyering@redhat.com>
4190
4191         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4192         There is no need to work around the lack of the fchdir function,
4193         since gnulib can now provide a replacement when required.
4194         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4195         * modules/save-cwd (Depends-on): Add fchdir.
4196
4197 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4198
4199         openat, save-cwd: avoid xmalloc
4200
4201         This removes a direct (but undocumented) dependency of openat on
4202         xalloc, along with an indirect dependency via save-cwd.  It also
4203         removes a dependency of save-cwd on xgetcwd, and thereby
4204         indirectly on xalloc.  This change causes the openat substitute
4205         to fall back on save_cwd when memory is tight, and for save_cwd to
4206         fail instead of dying when memory is tight, but that's good enough.
4207         Problem and initial idea for fix reported by Bastien Roucaries in
4208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4209
4210         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4211         xalloc.h (for xmalloc).
4212         (openat_proc_name): Use malloc, not xmalloc.
4213         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4214         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4215
4216         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4217         This avoids heap allocation for file names whose lengths are in
4218         the range 512..1023, with the upper bound increasing to at most
4219         4031 depending on the platform's PATH_MAX.  (We do not want
4220         pathmax.h here as it might supply a non-constant PATH_MAX.)
4221         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4222         Perhaps they should be moved to malloca.h?
4223         (OPENAT_BUFFER_SIZE): Use them.
4224
4225 2011-01-10  Bruno Haible  <bruno@clisp.org>
4226
4227         doc: Update users.txt.
4228         * users.txt: Add recutils.
4229
4230 2011-01-09  Karl Berry  <karl@gnu.org>
4231
4232         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4233
4234         * doc/configmake.texi: New file.
4235         * doc/gnulib.texi: Include it.
4236         * modules/configmake: Move documentation from here.
4237
4238 2011-01-09  Bruno Haible  <bruno@clisp.org>
4239
4240         Update to Unicode 6.0.0.
4241         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4242         (get_lbp): Update for Unicode 6.0.0.
4243         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4244         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4245         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4246         U+11001, U+11038..U+11046. Remove U+06DE.
4247         (uc_width): Fix bounds of planes.
4248         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4249         lib/uniwidth/width.c.
4250         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4251         trailing whitespace removed.
4252         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4253         without comments, but with the original copyright notice.
4254         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4255         * lib/unicase/ignorable.h: Likewise.
4256         * lib/unicase/tocasefold.h: Likewise.
4257         * lib/unicase/tolower.h: Likewise.
4258         * lib/unicase/totitle.h: Likewise.
4259         * lib/unicase/toupper.h: Likewise.
4260         * lib/unictype/bidi_of.h: Likewise.
4261         * lib/unictype/blocks.h: Likewise.
4262         * lib/unictype/categ_C.h: Likewise.
4263         * lib/unictype/categ_Cn.h: Likewise.
4264         * lib/unictype/categ_L.h: Likewise.
4265         * lib/unictype/categ_Ll.h: Likewise.
4266         * lib/unictype/categ_Lm.h: Likewise.
4267         * lib/unictype/categ_Lo.h: Likewise.
4268         * lib/unictype/categ_Lu.h: Likewise.
4269         * lib/unictype/categ_M.h: Likewise.
4270         * lib/unictype/categ_Mc.h: Likewise.
4271         * lib/unictype/categ_Me.h: Likewise.
4272         * lib/unictype/categ_Mn.h: Likewise.
4273         * lib/unictype/categ_N.h: Likewise.
4274         * lib/unictype/categ_Nd.h: Likewise.
4275         * lib/unictype/categ_No.h: Likewise.
4276         * lib/unictype/categ_P.h: Likewise.
4277         * lib/unictype/categ_Po.h: Likewise.
4278         * lib/unictype/categ_S.h: Likewise.
4279         * lib/unictype/categ_Sc.h: Likewise.
4280         * lib/unictype/categ_Sk.h: Likewise.
4281         * lib/unictype/categ_Sm.h: Likewise.
4282         * lib/unictype/categ_So.h: Likewise.
4283         * lib/unictype/categ_of.h: Likewise.
4284         * lib/unictype/combining.h: Likewise.
4285         * lib/unictype/ctype_alnum.h: Likewise.
4286         * lib/unictype/ctype_alpha.h: Likewise.
4287         * lib/unictype/ctype_graph.h: Likewise.
4288         * lib/unictype/ctype_lower.h: Likewise.
4289         * lib/unictype/ctype_print.h: Likewise.
4290         * lib/unictype/ctype_punct.h: Likewise.
4291         * lib/unictype/ctype_upper.h: Likewise.
4292         * lib/unictype/decdigit.h: Likewise.
4293         * lib/unictype/digit.h: Likewise.
4294         * lib/unictype/numeric.h: Likewise.
4295         * lib/unictype/pr_alphabetic.h: Likewise.
4296         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4297         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4298         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4299         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4300         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4301         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4302         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4303         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4304         * lib/unictype/pr_case_ignorable.h: Likewise.
4305         * lib/unictype/pr_cased.h: Likewise.
4306         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4307         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4308         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4309         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4310         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4311         * lib/unictype/pr_combining.h: Likewise.
4312         * lib/unictype/pr_composite.h: Likewise.
4313         * lib/unictype/pr_currency_symbol.h: Likewise.
4314         * lib/unictype/pr_decimal_digit.h: Likewise.
4315         * lib/unictype/pr_deprecated.h: Likewise.
4316         * lib/unictype/pr_format_control.h: Likewise.
4317         * lib/unictype/pr_grapheme_base.h: Likewise.
4318         * lib/unictype/pr_grapheme_extend.h: Likewise.
4319         * lib/unictype/pr_grapheme_link.h: Likewise.
4320         * lib/unictype/pr_id_continue.h: Likewise.
4321         * lib/unictype/pr_id_start.h: Likewise.
4322         * lib/unictype/pr_ideographic.h: Likewise.
4323         * lib/unictype/pr_lowercase.h: Likewise.
4324         * lib/unictype/pr_math.h: Likewise.
4325         * lib/unictype/pr_numeric.h: Likewise.
4326         * lib/unictype/pr_other_alphabetic.h: Likewise.
4327         * lib/unictype/pr_other_id_continue.h: Likewise.
4328         * lib/unictype/pr_other_math.h: Likewise.
4329         * lib/unictype/pr_punctuation.h: Likewise.
4330         * lib/unictype/pr_sentence_terminal.h: Likewise.
4331         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4332         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4333         * lib/unictype/pr_unified_ideograph.h: Likewise.
4334         * lib/unictype/pr_uppercase.h: Likewise.
4335         * lib/unictype/pr_xid_continue.h: Likewise.
4336         * lib/unictype/pr_xid_start.h: Likewise.
4337         * lib/unictype/scripts.h: Likewise.
4338         * lib/unictype/scripts_byname.gperf: Likewise.
4339         * lib/unictype/sy_java_ident.h: Likewise.
4340         * lib/unigbrk/gbrkprop.h: Likewise.
4341         * lib/unilbrk/lbrkprop1.h: Likewise.
4342         * lib/unilbrk/lbrkprop2.h: Likewise.
4343         * lib/uninorm/decomposition-table2.h: Likewise.
4344         * lib/uniwbrk/wbrkprop.h: Likewise.
4345         * tests/unicase/test-cased.c: Likewise.
4346         * tests/unicase/test-ignorable.c: Likewise.
4347         * tests/unicase/test-uc_tolower.c: Likewise.
4348         * tests/unicase/test-uc_totitle.c: Likewise.
4349         * tests/unicase/test-uc_toupper.c: Likewise.
4350         * tests/unictype/test-categ_C.c: Likewise.
4351         * tests/unictype/test-categ_Cn.c: Likewise.
4352         * tests/unictype/test-categ_L.c: Likewise.
4353         * tests/unictype/test-categ_Ll.c: Likewise.
4354         * tests/unictype/test-categ_Lm.c: Likewise.
4355         * tests/unictype/test-categ_Lo.c: Likewise.
4356         * tests/unictype/test-categ_Lu.c: Likewise.
4357         * tests/unictype/test-categ_M.c: Likewise.
4358         * tests/unictype/test-categ_Mc.c: Likewise.
4359         * tests/unictype/test-categ_Me.c: Likewise.
4360         * tests/unictype/test-categ_Mn.c: Likewise.
4361         * tests/unictype/test-categ_N.c: Likewise.
4362         * tests/unictype/test-categ_Nd.c: Likewise.
4363         * tests/unictype/test-categ_No.c: Likewise.
4364         * tests/unictype/test-categ_P.c: Likewise.
4365         * tests/unictype/test-categ_Po.c: Likewise.
4366         * tests/unictype/test-categ_S.c: Likewise.
4367         * tests/unictype/test-categ_Sc.c: Likewise.
4368         * tests/unictype/test-categ_Sk.c: Likewise.
4369         * tests/unictype/test-categ_Sm.c: Likewise.
4370         * tests/unictype/test-categ_So.c: Likewise.
4371         * tests/unictype/test-ctype_alnum.c: Likewise.
4372         * tests/unictype/test-ctype_alpha.c: Likewise.
4373         * tests/unictype/test-ctype_graph.c: Likewise.
4374         * tests/unictype/test-ctype_lower.c: Likewise.
4375         * tests/unictype/test-ctype_print.c: Likewise.
4376         * tests/unictype/test-ctype_punct.c: Likewise.
4377         * tests/unictype/test-ctype_upper.c: Likewise.
4378         * tests/unictype/test-decdigit.h: Likewise.
4379         * tests/unictype/test-digit.h: Likewise.
4380         * tests/unictype/test-numeric.h: Likewise.
4381         * tests/unictype/test-pr_alphabetic.c: Likewise.
4382         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4383         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4384         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4385         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4386         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4387         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4388         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4389         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4390         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4391         * tests/unictype/test-pr_cased.c: Likewise.
4392         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4393         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4394         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4395         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4396         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4397         * tests/unictype/test-pr_combining.c: Likewise.
4398         * tests/unictype/test-pr_composite.c: Likewise.
4399         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4400         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4401         * tests/unictype/test-pr_deprecated.c: Likewise.
4402         * tests/unictype/test-pr_format_control.c: Likewise.
4403         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4404         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4405         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4406         * tests/unictype/test-pr_id_continue.c: Likewise.
4407         * tests/unictype/test-pr_id_start.c: Likewise.
4408         * tests/unictype/test-pr_ideographic.c: Likewise.
4409         * tests/unictype/test-pr_lowercase.c: Likewise.
4410         * tests/unictype/test-pr_math.c: Likewise.
4411         * tests/unictype/test-pr_numeric.c: Likewise.
4412         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4413         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4414         * tests/unictype/test-pr_other_math.c: Likewise.
4415         * tests/unictype/test-pr_punctuation.c: Likewise.
4416         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4417         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4418         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4419         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4420         * tests/unictype/test-pr_uppercase.c: Likewise.
4421         * tests/unictype/test-pr_xid_continue.c: Likewise.
4422         * tests/unictype/test-pr_xid_start.c: Likewise.
4423         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4424         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4425         changes.
4426         * lib/unictype/categ_Cc.h: Likewise.
4427         * lib/unictype/categ_Cf.h: Likewise.
4428         * lib/unictype/categ_Co.h: Likewise.
4429         * lib/unictype/categ_Cs.h: Likewise.
4430         * lib/unictype/categ_Lt.h: Likewise.
4431         * lib/unictype/categ_Nl.h: Likewise.
4432         * lib/unictype/categ_Pc.h: Likewise.
4433         * lib/unictype/categ_Pd.h: Likewise.
4434         * lib/unictype/categ_Pe.h: Likewise.
4435         * lib/unictype/categ_Pf.h: Likewise.
4436         * lib/unictype/categ_Pi.h: Likewise.
4437         * lib/unictype/categ_Ps.h: Likewise.
4438         * lib/unictype/categ_Z.h: Likewise.
4439         * lib/unictype/categ_Zl.h: Likewise.
4440         * lib/unictype/categ_Zp.h: Likewise.
4441         * lib/unictype/categ_Zs.h: Likewise.
4442         * lib/unictype/ctype_blank.h: Likewise.
4443         * lib/unictype/ctype_cntrl.h: Likewise.
4444         * lib/unictype/ctype_digit.h: Likewise.
4445         * lib/unictype/ctype_space.h: Likewise.
4446         * lib/unictype/ctype_xdigit.h: Likewise.
4447         * lib/unictype/mirror.h: Likewise.
4448         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4449         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4450         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4451         * lib/unictype/pr_bidi_control.h: Likewise.
4452         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4453         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4454         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4455         * lib/unictype/pr_bidi_pdf.h: Likewise.
4456         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4457         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4458         * lib/unictype/pr_dash.h: Likewise.
4459         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4460         * lib/unictype/pr_diacritic.h: Likewise.
4461         * lib/unictype/pr_extender.h: Likewise.
4462         * lib/unictype/pr_hex_digit.h: Likewise.
4463         * lib/unictype/pr_hyphen.h: Likewise.
4464         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4465         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4466         * lib/unictype/pr_ignorable_control.h: Likewise.
4467         * lib/unictype/pr_iso_control.h: Likewise.
4468         * lib/unictype/pr_join_control.h: Likewise.
4469         * lib/unictype/pr_left_of_pair.h: Likewise.
4470         * lib/unictype/pr_line_separator.h: Likewise.
4471         * lib/unictype/pr_logical_order_exception.h: Likewise.
4472         * lib/unictype/pr_non_break.h: Likewise.
4473         * lib/unictype/pr_not_a_character.h: Likewise.
4474         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4475         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4476         * lib/unictype/pr_other_id_start.h: Likewise.
4477         * lib/unictype/pr_other_lowercase.h: Likewise.
4478         * lib/unictype/pr_other_uppercase.h: Likewise.
4479         * lib/unictype/pr_paired_punctuation.h: Likewise.
4480         * lib/unictype/pr_paragraph_separator.h: Likewise.
4481         * lib/unictype/pr_pattern_syntax.h: Likewise.
4482         * lib/unictype/pr_pattern_white_space.h: Likewise.
4483         * lib/unictype/pr_private_use.h: Likewise.
4484         * lib/unictype/pr_quotation_mark.h: Likewise.
4485         * lib/unictype/pr_radical.h: Likewise.
4486         * lib/unictype/pr_soft_dotted.h: Likewise.
4487         * lib/unictype/pr_space.h: Likewise.
4488         * lib/unictype/pr_titlecase.h: Likewise.
4489         * lib/unictype/pr_variation_selector.h: Likewise.
4490         * lib/unictype/pr_white_space.h: Likewise.
4491         * lib/unictype/pr_zero_width.h: Likewise.
4492         * lib/unictype/sy_c_ident.h: Likewise.
4493         * lib/unictype/sy_c_whitespace.h: Likewise.
4494         * lib/unictype/sy_java_whitespace.h: Likewise.
4495         * lib/uninorm/composition-table.gperf: Likewise.
4496         * lib/uninorm/decomposition-table1.h: Likewise.
4497         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4498         LB8.
4499         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4500         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4501         * modules/unictype/*: Bump version number of expected libunistring
4502         version.
4503
4504 2011-01-09  Bruno Haible  <bruno@clisp.org>
4505
4506         Update to Unicode 5.2.0.
4507         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4508         trailing whitespace removed.
4509
4510 2011-01-09  Bruno Haible  <bruno@clisp.org>
4511
4512         New Unicode character properties, from Unicode 5.2.0.
4513         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4514         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4515         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4516         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4517         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4518         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4519         uc_is_property_cased, uc_is_property_case_ignorable,
4520         uc_is_property_changes_when_lowercased,
4521         uc_is_property_changes_when_uppercased,
4522         uc_is_property_changes_when_titlecased,
4523         uc_is_property_changes_when_casefolded,
4524         uc_is_property_changes_when_casemapped): New declarations.
4525         * lib/unictype/pr_byname.gperf: Add the new properties.
4526         * modules/unictype/property-byname (Depends-on): Depend on the new
4527         properties modules.
4528         * modules/unictype/property-all (Depends-on): Likewise.
4529         * MODULES.html.sh (Unicode string functions): Add
4530         unictype/property-case-ignorable, unictype/property-cased,
4531         unictype/property-changes-when-casefolded,
4532         unictype/property-changes-when-casemapped,
4533         unictype/property-changes-when-lowercased,
4534         unictype/property-changes-when-titlecased,
4535         unictype/property-changes-when-uppercased.
4536
4537         New module 'unictype/property-changes-when-casemapped'.
4538         * modules/unictype/property-changes-when-casemapped: New file.
4539         * lib/unictype/pr_changes_when_casemapped.c: New file.
4540         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4541         generated by gen-uni-tables.
4542         * modules/unictype/property-changes-when-casemapped-tests: New file.
4543         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4544         automatically generated by gen-uni-tables.
4545
4546         New module 'unictype/property-changes-when-casefolded'.
4547         * modules/unictype/property-changes-when-casefolded: New file.
4548         * lib/unictype/pr_changes_when_casefolded.c: New file.
4549         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4550         generated by gen-uni-tables.
4551         * modules/unictype/property-changes-when-casefolded-tests: New file.
4552         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4553         automatically generated by gen-uni-tables.
4554
4555         New module 'unictype/property-changes-when-titlecased'.
4556         * modules/unictype/property-changes-when-titlecased: New file.
4557         * lib/unictype/pr_changes_when_titlecased.c: New file.
4558         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4559         generated by gen-uni-tables.
4560         * modules/unictype/property-changes-when-titlecased-tests: New file.
4561         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4562         automatically generated by gen-uni-tables.
4563
4564         New module 'unictype/property-changes-when-uppercased'.
4565         * modules/unictype/property-changes-when-uppercased: New file.
4566         * lib/unictype/pr_changes_when_uppercased.c: New file.
4567         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4568         generated by gen-uni-tables.
4569         * modules/unictype/property-changes-when-uppercased-tests: New file.
4570         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4571         automatically generated by gen-uni-tables.
4572
4573         New module 'unictype/property-changes-when-lowercased'.
4574         * modules/unictype/property-changes-when-lowercased: New file.
4575         * lib/unictype/pr_changes_when_lowercased.c: New file.
4576         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4577         generated by gen-uni-tables.
4578         * modules/unictype/property-changes-when-lowercased-tests: New file.
4579         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4580         automatically generated by gen-uni-tables.
4581
4582         New module 'unictype/property-case-ignorable'.
4583         * modules/unictype/property-case-ignorable: New file.
4584         * lib/unictype/pr_case_ignorable.c: New file.
4585         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4586         by gen-uni-tables.
4587         * modules/unictype/property-case-ignorable-tests: New file.
4588         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4589         generated by gen-uni-tables.
4590
4591         New module 'unictype/property-cased'.
4592         * modules/unictype/property-cased: New file.
4593         * lib/unictype/pr_cased.c: New file.
4594         * lib/unictype/pr_cased.h: New file, automatically generated by
4595         gen-uni-tables.
4596         * modules/unictype/property-cased-tests: New file.
4597         * tests/unictype/test-pr_cased.c: New file, automatically generated by
4598         gen-uni-tables.
4599
4600 2011-01-09  Bruno Haible  <bruno@clisp.org>
4601
4602         Update to Unicode 5.2.0.
4603         * lib/gen-uni-tables.c (output_predicate, output_category,
4604         output_combclass, output_bidi_category, output_decimal_digit_test,
4605         output_decimal_digit, output_digit_test, output_digit,
4606         output_numeric_test, output_numeric, output_mirror, output_scripts,
4607         output_scripts_byname, output_blocks, output_ident_category): Fix
4608         comment header.
4609         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
4610         get_wbp.
4611         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
4612         items.
4613         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
4614         Changes_When_Lowercased, Changes_When_Uppercased,
4615         Changes_When_Titlecased, Changes_When_Casefolded,
4616         Changes_When_Casemapped.
4617         (is_property_alphabetic, is_property_default_ignorable_code_point):
4618         Update for Unicode 5.2.0.
4619         (is_property_cased, is_property_case_ignorable,
4620         is_property_changes_when_lowercased,
4621         is_property_changes_when_uppercased,
4622         is_property_changes_when_titlecased,
4623         is_property_changes_when_casefolded,
4624         is_property_changes_when_casemapped): New functions.
4625         (output_properties): Output also the properties cased, case_ignorable,
4626         changes_when_lowercased, changes_when_uppercased,
4627         changes_when_titlecased, changes_when_casefolded,
4628         changes_when_casemapped.
4629         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
4630         Unicode TR#11 revision 17 -> 19.
4631         (LBP_CP): New enumeration value.
4632         (LBP_*): Adjust values accordingly.
4633         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4634         TR#14 revision 22 -> 24.
4635         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
4636         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
4637         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4638         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
4639         is_WBP_MIDLETTER.
4640         (output_composition_tables): Allow for 24 bits instead of 16 bits in
4641         the code1 and code2 of each composition rule.
4642         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
4643         * lib/unicase/ignorable.h: Likewise.
4644         * lib/unicase/tocasefold.h: Likewise.
4645         * lib/unicase/tolower.h: Likewise.
4646         * lib/unicase/totitle.h: Likewise.
4647         * lib/unicase/toupper.h: Likewise.
4648         * lib/unictype/bidi_of.h: Likewise.
4649         * lib/unictype/blocks.h: Likewise.
4650         * lib/unictype/categ_C.h: Likewise.
4651         * lib/unictype/categ_Cf.h: Likewise.
4652         * lib/unictype/categ_Cn.h: Likewise.
4653         * lib/unictype/categ_L.h: Likewise.
4654         * lib/unictype/categ_Ll.h: Likewise.
4655         * lib/unictype/categ_Lm.h: Likewise.
4656         * lib/unictype/categ_Lo.h: Likewise.
4657         * lib/unictype/categ_Lu.h: Likewise.
4658         * lib/unictype/categ_M.h: Likewise.
4659         * lib/unictype/categ_Mc.h: Likewise.
4660         * lib/unictype/categ_Mn.h: Likewise.
4661         * lib/unictype/categ_N.h: Likewise.
4662         * lib/unictype/categ_Nd.h: Likewise.
4663         * lib/unictype/categ_Nl.h: Likewise.
4664         * lib/unictype/categ_No.h: Likewise.
4665         * lib/unictype/categ_P.h: Likewise.
4666         * lib/unictype/categ_Pd.h: Likewise.
4667         * lib/unictype/categ_Po.h: Likewise.
4668         * lib/unictype/categ_S.h: Likewise.
4669         * lib/unictype/categ_Sc.h: Likewise.
4670         * lib/unictype/categ_So.h: Likewise.
4671         * lib/unictype/categ_of.h: Likewise.
4672         * lib/unictype/combining.h: Likewise.
4673         * lib/unictype/ctype_alnum.h: Likewise.
4674         * lib/unictype/ctype_alpha.h: Likewise.
4675         * lib/unictype/ctype_graph.h: Likewise.
4676         * lib/unictype/ctype_lower.h: Likewise.
4677         * lib/unictype/ctype_print.h: Likewise.
4678         * lib/unictype/ctype_punct.h: Likewise.
4679         * lib/unictype/ctype_upper.h: Likewise.
4680         * lib/unictype/decdigit.h: Likewise.
4681         * lib/unictype/digit.h: Likewise.
4682         * lib/unictype/numeric.h: Likewise.
4683         * lib/unictype/pr_alphabetic.h: Likewise.
4684         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4685         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4686         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4687         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4688         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4689         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4690         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4691         * lib/unictype/pr_combining.h: Likewise.
4692         * lib/unictype/pr_composite.h: Likewise.
4693         * lib/unictype/pr_currency_symbol.h: Likewise.
4694         * lib/unictype/pr_dash.h: Likewise.
4695         * lib/unictype/pr_decimal_digit.h: Likewise.
4696         * lib/unictype/pr_deprecated.h: Likewise.
4697         * lib/unictype/pr_diacritic.h: Likewise.
4698         * lib/unictype/pr_extender.h: Likewise.
4699         * lib/unictype/pr_grapheme_base.h: Likewise.
4700         * lib/unictype/pr_grapheme_extend.h: Likewise.
4701         * lib/unictype/pr_grapheme_link.h: Likewise.
4702         * lib/unictype/pr_id_continue.h: Likewise.
4703         * lib/unictype/pr_id_start.h: Likewise.
4704         * lib/unictype/pr_ideographic.h: Likewise.
4705         * lib/unictype/pr_ignorable_control.h: Likewise.
4706         * lib/unictype/pr_logical_order_exception.h: Likewise.
4707         * lib/unictype/pr_lowercase.h: Likewise.
4708         * lib/unictype/pr_numeric.h: Likewise.
4709         * lib/unictype/pr_other_alphabetic.h: Likewise.
4710         * lib/unictype/pr_punctuation.h: Likewise.
4711         * lib/unictype/pr_sentence_terminal.h: Likewise.
4712         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4713         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4714         * lib/unictype/pr_unified_ideograph.h: Likewise.
4715         * lib/unictype/pr_uppercase.h: Likewise.
4716         * lib/unictype/pr_xid_continue.h: Likewise.
4717         * lib/unictype/pr_xid_start.h: Likewise.
4718         * lib/unictype/pr_zero_width.h: Likewise.
4719         * lib/unictype/scripts.h: Likewise.
4720         * lib/unictype/scripts_byname.gperf: Likewise.
4721         * lib/unictype/sy_java_ident.h: Likewise.
4722         * lib/unigbrk/gbrkprop.h: Likewise.
4723         * lib/unilbrk/lbrkprop1.h: Likewise.
4724         * lib/unilbrk/lbrkprop2.h: Likewise.
4725         * lib/unilbrk/lbrktables.h: Likewise.
4726         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
4727         LBP_CP. Implement rule LB30.
4728         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
4729         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
4730         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
4731         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
4732         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
4733         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
4734         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
4735         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
4736         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
4737         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
4738         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
4739         bits instead of 16 bits in the code1 and code2 of each composition
4740         rule.
4741         (uc_composition): Update for Unicode 5.2.0.
4742         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
4743         * lib/uninorm/decomposition-table2.h: Likewise.
4744         * lib/uniwbrk/wbrkprop.h: Likewise.
4745         * tests/unicase/test-cased.c: Likewise.
4746         * tests/unicase/test-ignorable.c: Likewise.
4747         * tests/unicase/test-uc_tolower.c: Likewise.
4748         * tests/unicase/test-uc_totitle.c: Likewise.
4749         * tests/unicase/test-uc_toupper.c: Likewise.
4750         * tests/unictype/test-categ_C.c: Likewise.
4751         * tests/unictype/test-categ_Cf.c: Likewise.
4752         * tests/unictype/test-categ_Cn.c: Likewise.
4753         * tests/unictype/test-categ_L.c: Likewise.
4754         * tests/unictype/test-categ_Ll.c: Likewise.
4755         * tests/unictype/test-categ_Lm.c: Likewise.
4756         * tests/unictype/test-categ_Lo.c: Likewise.
4757         * tests/unictype/test-categ_Lu.c: Likewise.
4758         * tests/unictype/test-categ_M.c: Likewise.
4759         * tests/unictype/test-categ_Mc.c: Likewise.
4760         * tests/unictype/test-categ_Mn.c: Likewise.
4761         * tests/unictype/test-categ_N.c: Likewise.
4762         * tests/unictype/test-categ_Nd.c: Likewise.
4763         * tests/unictype/test-categ_Nl.c: Likewise.
4764         * tests/unictype/test-categ_No.c: Likewise.
4765         * tests/unictype/test-categ_P.c: Likewise.
4766         * tests/unictype/test-categ_Pd.c: Likewise.
4767         * tests/unictype/test-categ_Po.c: Likewise.
4768         * tests/unictype/test-categ_S.c: Likewise.
4769         * tests/unictype/test-categ_Sc.c: Likewise.
4770         * tests/unictype/test-categ_So.c: Likewise.
4771         * tests/unictype/test-ctype_alnum.c: Likewise.
4772         * tests/unictype/test-ctype_alpha.c: Likewise.
4773         * tests/unictype/test-ctype_graph.c: Likewise.
4774         * tests/unictype/test-ctype_lower.c: Likewise.
4775         * tests/unictype/test-ctype_print.c: Likewise.
4776         * tests/unictype/test-ctype_punct.c: Likewise.
4777         * tests/unictype/test-ctype_upper.c: Likewise.
4778         * tests/unictype/test-decdigit.h: Likewise.
4779         * tests/unictype/test-digit.h: Likewise.
4780         * tests/unictype/test-numeric.h: Likewise.
4781         * tests/unictype/test-pr_alphabetic.c: Likewise.
4782         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4783         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4784         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4785         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4786         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4787         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4788         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4789         * tests/unictype/test-pr_combining.c: Likewise.
4790         * tests/unictype/test-pr_composite.c: Likewise.
4791         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4792         * tests/unictype/test-pr_dash.c: Likewise.
4793         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4794         * tests/unictype/test-pr_deprecated.c: Likewise.
4795         * tests/unictype/test-pr_diacritic.c: Likewise.
4796         * tests/unictype/test-pr_extender.c: Likewise.
4797         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4798         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4799         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4800         * tests/unictype/test-pr_id_continue.c: Likewise.
4801         * tests/unictype/test-pr_id_start.c: Likewise.
4802         * tests/unictype/test-pr_ideographic.c: Likewise.
4803         * tests/unictype/test-pr_ignorable_control.c: Likewise.
4804         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4805         * tests/unictype/test-pr_lowercase.c: Likewise.
4806         * tests/unictype/test-pr_numeric.c: Likewise.
4807         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4808         * tests/unictype/test-pr_punctuation.c: Likewise.
4809         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4810         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4811         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4812         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4813         * tests/unictype/test-pr_uppercase.c: Likewise.
4814         * tests/unictype/test-pr_xid_continue.c: Likewise.
4815         * tests/unictype/test-pr_xid_start.c: Likewise.
4816         * tests/unictype/test-pr_zero_width.c: Likewise.
4817         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4818         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
4819         changed behaviour: line breaking is now disallowed between a letter
4820         or '=' and '('.
4821         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4822         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4823         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
4824         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
4825         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4826         lib/uniwidth/width.c.
4827         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
4828         without comments, but with the original copyright notice.
4829         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4830         changes.
4831         * lib/unictype/categ_Cc.h: Likewise.
4832         * lib/unictype/categ_Co.h: Likewise.
4833         * lib/unictype/categ_Cs.h: Likewise.
4834         * lib/unictype/categ_Lt.h: Likewise.
4835         * lib/unictype/categ_Me.h: Likewise.
4836         * lib/unictype/categ_Pc.h: Likewise.
4837         * lib/unictype/categ_Pe.h: Likewise.
4838         * lib/unictype/categ_Pf.h: Likewise.
4839         * lib/unictype/categ_Pi.h: Likewise.
4840         * lib/unictype/categ_Ps.h: Likewise.
4841         * lib/unictype/categ_Sk.h: Likewise.
4842         * lib/unictype/categ_Sm.h: Likewise.
4843         * lib/unictype/categ_Z.h: Likewise.
4844         * lib/unictype/categ_Zl.h: Likewise.
4845         * lib/unictype/categ_Zp.h: Likewise.
4846         * lib/unictype/categ_Zs.h: Likewise.
4847         * lib/unictype/ctype_blank.h: Likewise.
4848         * lib/unictype/ctype_cntrl.h: Likewise.
4849         * lib/unictype/ctype_digit.h: Likewise.
4850         * lib/unictype/ctype_space.h: Likewise.
4851         * lib/unictype/ctype_xdigit.h: Likewise.
4852         * lib/unictype/mirror.h: Likewise.
4853         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4854         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4855         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4856         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4857         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4858         * lib/unictype/pr_bidi_control.h: Likewise.
4859         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4860         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4861         * lib/unictype/pr_bidi_pdf.h: Likewise.
4862         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4863         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4864         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4865         * lib/unictype/pr_format_control.h: Likewise.
4866         * lib/unictype/pr_hex_digit.h: Likewise.
4867         * lib/unictype/pr_hyphen.h: Likewise.
4868         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4869         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4870         * lib/unictype/pr_iso_control.h: Likewise.
4871         * lib/unictype/pr_join_control.h: Likewise.
4872         * lib/unictype/pr_left_of_pair.h: Likewise.
4873         * lib/unictype/pr_line_separator.h: Likewise.
4874         * lib/unictype/pr_math.h: Likewise.
4875         * lib/unictype/pr_non_break.h: Likewise.
4876         * lib/unictype/pr_not_a_character.h: Likewise.
4877         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4878         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4879         * lib/unictype/pr_other_id_continue.h: Likewise.
4880         * lib/unictype/pr_other_id_start.h: Likewise.
4881         * lib/unictype/pr_other_lowercase.h: Likewise.
4882         * lib/unictype/pr_other_math.h: Likewise.
4883         * lib/unictype/pr_other_uppercase.h: Likewise.
4884         * lib/unictype/pr_paired_punctuation.h: Likewise.
4885         * lib/unictype/pr_paragraph_separator.h: Likewise.
4886         * lib/unictype/pr_pattern_syntax.h: Likewise.
4887         * lib/unictype/pr_pattern_white_space.h: Likewise.
4888         * lib/unictype/pr_private_use.h: Likewise.
4889         * lib/unictype/pr_quotation_mark.h: Likewise.
4890         * lib/unictype/pr_radical.h: Likewise.
4891         * lib/unictype/pr_soft_dotted.h: Likewise.
4892         * lib/unictype/pr_space.h: Likewise.
4893         * lib/unictype/pr_titlecase.h: Likewise.
4894         * lib/unictype/pr_variation_selector.h: Likewise.
4895         * lib/unictype/pr_white_space.h: Likewise.
4896         * lib/unictype/sy_c_ident.h: Likewise.
4897         * lib/unictype/sy_c_whitespace.h: Likewise.
4898         * lib/unictype/sy_java_whitespace.h: Likewise.
4899         * modules/uni*/*: Bump version number of expected libunistring version.
4900         Reported by Simon Josefsson.
4901
4902 2011-01-09  Karl Heuer  <kwzh@gnu.org>
4903
4904         useless-if-before-free: fix typo in --help and make the internal,
4905         automatic version date update process work once again.
4906         --help output contained a NUL character instead of the
4907         backslash-zero that was intended.  Also, the "must lie within
4908         the first 8 lines" line is on line 9, and hence not getting
4909         automatically updated.
4910         * build-aux/useless-if-before-free: Fix the former by adding a
4911         backslash, and the latter by condensing the three lines of what-it-does
4912         to a single line, leaving one line of slack for the future.
4913
4914 2011-01-09  Bruno Haible  <bruno@clisp.org>
4915
4916         uniwidth/width: Fix width of U+1D173..U+1D17A.
4917         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
4918         symbolic_width, output_width_property_test): New functions.
4919         (main): Invoke output_nonspacing_property, output_width_property_test.
4920         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
4921         U+1D173..U+1D17A.
4922         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
4923         1.
4924         * modules/uniwidth/*: Bump version number of expected libunistring
4925         version.
4926         * modules/unilbrk/*: Likewise.
4927
4928 2011-01-08  Bruno Haible  <bruno@clisp.org>
4929
4930         uninorm tests: Preserve copyright of Unicode data file.
4931         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
4932         Mention modifications.
4933
4934 2011-01-08  Bruno Haible  <bruno@clisp.org>
4935
4936         gen-uni-tables: Prepare for Unicode 5.2.0.
4937         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
4938         (debug_output_lbp, output_lbp): Update.
4939
4940 2011-01-08  Bruno Haible  <bruno@clisp.org>
4941
4942         unilbrk: Clarify gen-uni-tables.c code.
4943         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
4944         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
4945         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
4946
4947 2011-01-07  Bruno Haible  <bruno@clisp.org>
4948
4949         strtod: Restore errno when successfully parsing Infinity or NaN.
4950         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
4951         restore the original errno.
4952
4953 2011-01-07  Bruno Haible  <bruno@clisp.org>
4954
4955         remove test: Avoid failure on HP-UX 11.
4956         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
4957
4958 2011-01-07  Bruno Haible  <bruno@clisp.org>
4959
4960         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
4961         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
4962         error code.
4963
4964 2011-01-07  Pádraig Brady <P@draigBrady.com>
4965
4966         ignore-value: fixup comments, and add Eric Blake
4967         as an author since he rewrote the macros.
4968         * lib/ignore-value.h (ignore_value):  State that
4969         we now support aggregates.  Also specify exactly
4970         when the GCC warn_unused_result feature was added.
4971
4972 2011-01-06  Eric Blake  <eblake@redhat.com>
4973
4974         ignore-value: support aggregate types
4975         * lib/ignore-value.h (ignore_value): Provide separate gcc
4976         definition.
4977         * modules/ignore-value-tests: New test module.
4978         * tests/test-ignore-value.c: New test.
4979
4980         maint.mk: improve sc_prohibit_strcmp regex
4981         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
4982         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
4983         definition of STRNEQ.
4984
4985         signal: work around Haiku issue with SIGBUS
4986         * lib/siglist.h: Add comment.
4987         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
4988         strsignal's favoring of SIGSEGV.
4989         * tests/test-signal.c (main): Avoid test failure.
4990         * doc/posix-headers/signal.texi (signal.h): Document the issue.
4991         Reported by Scott McCreary.
4992
4993         maint.mk: add pre-release check to ensure submodule commits are public
4994         * top/maint.mk (public-submodule-commit): New rule.
4995         (submodule-checks): New variable.
4996         (alpha beta stable): Depend on the variable.
4997
4998 2011-01-05  Pádraig Brady <P@draigBrady.com>
4999         and Jim Meyering  <meyering@redhat.com>
5000
5001         ignore-value: make ignore_value more generic; deprecate ignore_ptr
5002         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
5003         (ATTRIBUTE_DEPRECATED): Define.
5004         (_ignore_case): New function.
5005         (ignore_value): New macro, to replace the old function.
5006         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
5007         * modules/ignore-value (Depends-on): Add stdint.
5008
5009 2011-01-04  Eric Blake  <eblake@redhat.com>
5010
5011         doc: regenerate INSTALL
5012         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
5013         @firstparagraphindent support, now that autoconf dropped it.
5014         (INSTALL_PRELUDE): Reinstate old macro.
5015         * doc/install.texi: Resync from autoconf.
5016         * doc/INSTALL: Reflect recent autoconf update.
5017         * doc/INSTALL.ISO: Likewise.
5018         * doc/INSTALL.UTF-8: Likewise.
5019         Reported by Karl Berry.
5020
5021 2011-01-04  Bruce Korb  <address@hidden>
5022
5023         git-version-gen: avoid a sub-shell
5024         * build-aux/git-version-gen: Redirect stderr in `...` via
5025         "exec 2>...", rather than via an added sub-shell.
5026
5027 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
5028
5029         git-version-gen: use (...) rather than sh -c '...'
5030         * build-aux/git-version-gen: Rather than hard-coding a shell's name
5031         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
5032
5033 2011-01-03  Jim Meyering  <meyering@redhat.com>
5034
5035         git-version-gen: convert leading TABs to spaces
5036         * build-aux/git-version-gen: Expand leading TABs.
5037
5038         git-version-gen: handle failed "git rev-list"
5039         * build-aux/git-version-gen: Rather than leaking a "fatal" error
5040         from git and proceeding as if it had succeeded but printed no SHA1
5041         checksums, suppress the diagnostic and handle the failure.
5042         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
5043
5044         git-version-gen: include command name in one more diagnostic
5045         * build-aux/git-version-gen: When the required .tarball-version file
5046         was missing or unreadable, you might see the diagnostic from "cat",
5047         but no trace of the name of the invoking script.  Now, you still see
5048         the diagnostic from cat, but also get one from "git-version-gen: ".
5049         Inspired by a patch from Bruce Korb.
5050
5051         update-copyright: adjust test to match changed code
5052         * tests/test-update-copyright.sh: Change test's expected output
5053         to match new actual output.
5054
5055 2011-01-02  Bruno Haible  <bruno@clisp.org>
5056
5057         getlogin_r: Avoid test failure on HP-UX 11.
5058         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
5059         ERANGE when the second argument is zero.
5060         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
5061         portability problem.
5062
5063 2011-01-02  Bruce Korb  <bkorb@gnu.org>
5064
5065         * build-aux/update-copyright: doc Simon's changes
5066
5067 2011-01-02  Simon Josefsson  <simon@josefsson.org>
5068
5069         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
5070         environment variable.
5071
5072 2011-01-02  Bruno Haible  <bruno@clisp.org>
5073
5074         unigbrk: Avoid gcc warnings.
5075         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
5076         unused variable.
5077         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
5078         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
5079         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
5080         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
5081         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
5082         Change type of first argument to 'const char *'.
5083         (main): Remove unused variable.
5084         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
5085         type of first argument to 'const char *'.
5086         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
5087         Likewise.
5088         (main): Change type of variable 's'.
5089         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
5090         to 'int'.
5091
5092 2011-01-02  Bruno Haible  <bruno@clisp.org>
5093
5094         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
5095         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
5096         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
5097         bug.
5098         * lib/pwrite.c: Undo 2010-12-31 patch.
5099         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
5100
5101 2011-01-02  Bruno Haible  <bruno@clisp.org>
5102
5103         pread: Fix test whether it works.
5104         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
5105
5106 2011-01-02  Bruno Haible  <bruno@clisp.org>
5107
5108         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
5109         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
5110         ends in "6". Don't require a specific month name. Try also the locale
5111         names found on HP-UX 11 and Solaris 7.
5112
5113 2011-01-02  Bruno Haible  <bruno@clisp.org>
5114
5115         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
5116         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5117         C linkage.
5118         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
5119
5120 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5121
5122         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
5123         for consistency, since the "cluster" term is not used elsewhere.
5124         * lib/unigbrk.in.h: Update name.
5125         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
5126         * lib/unigbrk/u16-grapheme-next.c: Update name.
5127         * lib/unigbrk/u16-grapheme-prev.c: Update name.
5128         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
5129         * lib/unigbrk/u32-grapheme-next.c: Update name.
5130         * lib/unigbrk/u32-grapheme-prev.c: Update name.
5131         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
5132         * lib/unigbrk/u8-grapheme-next.c: Update name.
5133         * lib/unigbrk/u8-grapheme-prev.c: Update name.
5134         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
5135         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
5136         Suggested by Bruno Haible.
5137
5138 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5139
5140         Remove module 'u8-grapheme-len' as too redundant with
5141         'u8-grapheme-next'.
5142         * modules/unigbrk/u8-grapheme-len: Delete file.
5143         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
5144         * lib/unigbrk.in.h: Remove prototype for deleted function.
5145         * lib/unigbrk/u8-grapheme-len.c: Delete file.
5146         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
5147
5148         Remove module 'u16-grapheme-len' as too redundant with
5149         'u16-grapheme-next'.
5150         * modules/unigbrk/u16-grapheme-len: Delete file.
5151         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
5152         * lib/unigbrk.in.h: Remove prototype for deleted function.
5153         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5154         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5155
5156         Remove module 'u32-grapheme-len' as too redundant with
5157         'u32-grapheme-next'.
5158         * modules/unigbrk/u32-grapheme-len: Delete file.
5159         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5160         * lib/unigbrk.in.h: Remove prototype for deleted function.
5161         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5162         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5163
5164         Suggested by Bruno Haible.
5165
5166 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5167
5168         * unigbrk.in.h: Fix typo: "ben" => "been".
5169         Reported by Bruno Haible.
5170
5171 2011-01-01  Jim Meyering  <meyering@redhat.com>
5172
5173         maint: update almost all copyright ranges to include 2011
5174         Run the new "make update-copyright" rule.
5175
5176 2011-01-01  Jim Meyering  <meyering@redhat.com>
5177
5178         maint: update-copyright: exempt doc/INSTALL*
5179         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5180         since they are generated.  Suggested by Bruno Haible.
5181
5182 2011-01-01  Jim Meyering  <meyering@redhat.com>
5183
5184         maint: refine the update-copyright rule
5185         * Makefile (update-copyright): Also exclude any file that includes
5186         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5187         code that merely generates the comment.
5188
5189 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5190
5191         New module 'u8-grapheme-len'.
5192         * modules/unigbrk/u8-grapheme-len: New file.
5193         * modules/unigbrk/u8-grapheme-len-tests: New file.
5194         * lib/unigbrk.in.h: Add prototype for new function.
5195         * lib/unigbrk/u8-grapheme-len.c: New file.
5196         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5197
5198         New module 'u16-grapheme-len'.
5199         * modules/unigbrk/u16-grapheme-len: New file.
5200         * modules/unigbrk/u16-grapheme-len-tests: New file.
5201         * lib/unigbrk.in.h: Add prototype for new function.
5202         * lib/unigbrk/u16-grapheme-len.c: New file.
5203         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5204
5205         New module 'u32-grapheme-len'.
5206         * modules/unigbrk/u32-grapheme-len: New file.
5207         * modules/unigbrk/u32-grapheme-len-tests: New file.
5208         * lib/unigbrk.in.h: Add prototype for new function.
5209         * lib/unigbrk/u32-grapheme-len.c: New file.
5210         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5211
5212         New module 'u8-grapheme-next'.
5213         * modules/unigbrk/u8-grapheme-next: New file.
5214         * modules/unigbrk/u8-grapheme-next-tests: New file.
5215         * lib/unigbrk.in.h: Add prototype for new function.
5216         * lib/unigbrk/u8-grapheme-next.c: New file.
5217         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5218
5219         New module 'u16-grapheme-next'.
5220         * modules/unigbrk/u16-grapheme-next: New file.
5221         * modules/unigbrk/u16-grapheme-next-tests: New file.
5222         * lib/unigbrk.in.h: Add prototype for new function.
5223         * lib/unigbrk/u16-grapheme-next.c: New file.
5224         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5225
5226         New module 'u32-grapheme-next'.
5227         * modules/unigbrk/u32-grapheme-next: New file.
5228         * modules/unigbrk/u32-grapheme-next-tests: New file.
5229         * lib/unigbrk.in.h: Add prototype for new function.
5230         * lib/unigbrk/u32-grapheme-next.c: New file.
5231         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5232
5233         New module 'u8-grapheme-prev'.
5234         * modules/unigbrk/u8-grapheme-prev: New file.
5235         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5236         * lib/unigbrk.in.h: Add prototype for new function.
5237         * lib/unigbrk/u8-grapheme-prev.c: New file.
5238         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5239
5240         New module 'u16-grapheme-prev'.
5241         * modules/unigbrk/u16-grapheme-prev: New file.
5242         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5243         * lib/unigbrk.in.h: Add prototype for new function.
5244         * lib/unigbrk/u16-grapheme-prev.c: New file.
5245         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5246
5247         New module 'u32-grapheme-prev'.
5248         * modules/unigbrk/u32-grapheme-prev: New file.
5249         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5250         * lib/unigbrk.in.h: Add prototype for new function.
5251         * lib/unigbrk/u32-grapheme-prev.c: New file.
5252         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5253
5254         New module 'u8-grapheme-breaks'.
5255         * modules/unigbrk/u8-grapheme-breaks: New file.
5256         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5257         * lib/unigbrk.in.h: Add prototype for new function.
5258         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5259         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5260
5261         New module 'u16-grapheme-breaks'.
5262         * modules/unigbrk/u16-grapheme-breaks: New file.
5263         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5264         * lib/unigbrk.in.h: Add prototype for new function.
5265         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5266         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5267
5268         New module 'u32-grapheme-breaks'.
5269         * modules/unigbrk/u32-grapheme-breaks: New file.
5270         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5271         * lib/unigbrk.in.h: Add prototype for new function.
5272         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5273         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5274
5275         New module 'ulc-grapheme-breaks'.
5276         * modules/unigbrk/ulc-grapheme-breaks: New file.
5277         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5278         * m4/locale-ar.m4: New file.
5279         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5280         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5281         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5282
5283 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5284
5285         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5286         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5287         modified how this file was generated before I initially submitted
5288         the module, but failed to regenerate it.  This meant that several
5289         of the level2 entries were wrong.
5290         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5291         Remove the division-by-2 that is folded into the table now that
5292         gbrkprop.h has been regenerated properly.  Now -1 entries are
5293         handled correctly.
5294
5295         New module 'unigbrk/uc-gbrk-prop-tests'.
5296         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5297         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5298         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5299         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5300
5301 2011-01-01  Bruno Haible  <bruno@clisp.org>
5302
5303         Avoid use of hexadecimal escapes.
5304         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5305         instead of hexadecimal escapes.
5306
5307 2011-01-01  Jim Meyering  <meyering@redhat.com>
5308
5309         maint: new rule to update copyright year ranges
5310         * Makefile (update-copyright): New rule.
5311
5312         maint: indent with TABs in Makefile
5313         * Makefile: Expand leading sequences of spaces to TABs
5314
5315         version-etc: update the copyright year it reports
5316         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5317
5318 2010-12-31  Bruno Haible  <bruno@clisp.org>
5319
5320         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5321         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5322         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5323         zero.
5324
5325 2010-12-31  Bruno Haible  <bruno@clisp.org>
5326
5327         pwrite: Work around HP-UX 11.11 bug.
5328         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5329         works and set REPLACE_PWRITE if not.
5330         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5331         function.
5332         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5333
5334 2010-12-31  Bruno Haible  <bruno@clisp.org>
5335
5336         pread: Work around HP-UX 11 bugs.
5337         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5338         and set REPLACE_PREAD if not.
5339         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5340
5341 2010-12-31  Eric Blake  <eblake@redhat.com>
5342
5343         nl_langinfo: fix YESEXPR on Irix 6.5
5344         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5345         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5346         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5347         it.
5348
5349 2010-12-31  Bruno Haible  <bruno@clisp.org>
5350
5351         iconv: Document HP-UX 11 bug.
5352         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5353
5354 2010-12-31  Bruno Haible  <bruno@clisp.org>
5355
5356         ldexpl: Fix link error on HP-UX 11.
5357         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5358         LDEXPL_LIBM, using $ISNANL_LIBM.
5359
5360 2010-12-31  Eric Blake  <eblake@redhat.com>
5361
5362         ftello: avoid compilation failure with SunStudio c89
5363         * lib/ftello.c (ftello): Use lseek, not llseek.
5364
5365         tests: avoid failing coreutils tests on cygwin
5366         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5367         (create_exe_shims_): Return 0 when skipping.
5368
5369 2010-12-31  Bruno Haible  <bruno@clisp.org>
5370
5371         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5372         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5373
5374 2010-12-31  Bruno Haible  <bruno@clisp.org>
5375
5376         waitpid: Fix link error in C++ mode.
5377         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5378
5379 2010-12-31  Bruno Haible  <bruno@clisp.org>
5380
5381         isnan: Use GCC built-ins when possible.
5382         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5383         __builtin_isnan.
5384         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5385         (isnan): Define using GCC built-ins for GCC >= 4.0.
5386
5387 2010-12-31  Bruno Haible  <bruno@clisp.org>
5388
5389         isnand: Fix mistake.
5390         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5391         __builtin_isnand.
5392
5393 2010-12-31  Bruno Haible  <bruno@clisp.org>
5394
5395         open: Avoid C++ error on HP-UX 11.
5396         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5397
5398 2010-12-31  Bruno Haible  <bruno@clisp.org>
5399
5400         time_r: Add missing declarations on HP-UX 11.
5401         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5402         instead of HAVE_LOCALTIME_R.
5403         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5404         HAVE_LOCALTIME_R always.
5405         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5406         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5407         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5408         HAVE_LOCALTIME_R.
5409         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5410         * doc/posix-functions/localtime_r.texi: Likewise.
5411
5412 2010-12-29  Eric Blake  <eblake@redhat.com>
5413
5414         mountlist: tweak previous commit
5415         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5416         Reported by Paul Eggert.
5417
5418         mountlist: fix local drive detection on cygwin
5419         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5420         that works for cygwin.
5421
5422 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5423
5424         ftoastr, snprintf: ftoastr + snprintf module
5425         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5426         since the snprintf module now should be good enough here.
5427         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5428         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5429         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5430         GNULIB_SNPRINTF only for the test directory, and the latter
5431         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5432         seems to suffice by itself.
5433
5434 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5435
5436         alloca: one step towards thread-safety
5437         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5438         need for a static variable.  All callers changed.  This does not
5439         make the alloca replacement thread-safe, but it's one step.
5440
5441         tests: minor indenting change
5442         * tests/init.sh: Sync from coreutils housekeeping patch
5443         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5444         to keep lines within 80 columns.
5445
5446 2010-12-28  Jim Meyering  <meyering@redhat.com>
5447
5448         regex: don't infloop on persistent failing calloc
5449         * lib/regexec.c (build_trtable): Return failure indication upon
5450         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5451         In glibc, this was fixed for version 2.13:
5452         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5453
5454 2010-12-28  Bruno Haible  <bruno@clisp.org>
5455             Paul Eggert <eggert@cs.ucla.edu>
5456
5457         linkat: Make implementation robust against system behaviour variations.
5458         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5459         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5460         way, and to -2 if it needs a generic runtime test.
5461         * lib/linkat.c (solaris_optimized_link_immediate,
5462         solaris_optimized_link_follow): New functions.
5463         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5464         (check_same_link): Use it.
5465
5466 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5467
5468         New module 'unigbrk/base'.
5469         * modules/unigbrk/base: New file.
5470         * lib/unigbrk.in.h: New file.
5471
5472         New module 'unigbrk/uc-gbrk-prop'.
5473         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5474         * modules/unigbrk/uc-gbrk-prop: New file.
5475         * lib/unigbrk/gbrkprop.h: New file.
5476         * lib/unigbrk/uc-gbrk-prop.c: New file.
5477
5478         New module 'unigbrk/uc-is-grapheme-break'.
5479         * modules/unigbrk/uc-is-grapheme-break: New file.
5480         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5481         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5482         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5483         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5484         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5485
5486         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5487
5488 2010-12-27  Bruno Haible  <bruno@clisp.org>
5489
5490         linkat test: Avoid failure on Solaris 11 2010-11.
5491         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5492
5493 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5494
5495         utimens: work around glibc rounding bug on more platforms
5496         * lib/utimens.c (fdutimens): Work around rounding bug even if
5497         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5498         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5499
5500 2010-12-27  Bruno Haible  <bruno@clisp.org>
5501
5502         select tests: Improve comments.
5503         * tests/test-select.c (do_select): Add comments.
5504
5505 2010-12-27  Bruno Haible  <bruno@clisp.org>
5506
5507         select tests: Safer way of handling timeout.
5508         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5509         at every invocation.
5510
5511 2010-12-27  Bruno Haible  <bruno@clisp.org>
5512
5513         select tests: Use 'bool' where appropriate.
5514         * tests/test-select.c (connect_to_socket): Change argument type to
5515         'bool'.
5516
5517 2010-12-27  Bruno Haible  <bruno@clisp.org>
5518
5519         select tests: Use existing modules.
5520         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5521         (configure.ac): Don't test for unistd.h.
5522         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5523         declared in <unistd.h>.
5524
5525 2010-12-27  Bruno Haible  <bruno@clisp.org>
5526
5527         mbrtowc: Work around a Solaris 7 bug.
5528         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5529         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
5530         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
5531         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
5532         MBRTOWC_NULL_ARG1_BUG.
5533         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5534         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5535         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5536         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5537
5538 2010-12-27  Jim Meyering  <meyering@redhat.com>
5539
5540         read-file.c: tweak syntax
5541         * lib/read-file.c (fread_file): Remove space after "*" in function
5542         definitions.
5543
5544 2010-12-27  Bruno Haible  <bruno@clisp.org>
5545
5546         times test: Avoid gcc warnings on OSF/1.
5547         * tests/test-times.c (main): Cast printf arguments from clock_t to
5548         'long int'.
5549
5550 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5551
5552         utimens: work around glibc rounding bug on older Linux kernels
5553         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5554         on Linux with a glibc whose utimes might not work, then work
5555         around a longstanding glibc bug involving rounding rather than
5556         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5557         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5558
5559 2010-12-26  Bruno Haible  <bruno@clisp.org>
5560
5561         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5562         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5563         _GL_CXXALIAS_SYS.
5564         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5565
5566 2010-12-26  Bruno Haible  <bruno@clisp.org>
5567
5568         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5569         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5570         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5571         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5572         looking for the declaration.
5573         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5574         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5575         problem.
5576         * doc/posix-functions/inet_pton.texi: Likewise.
5577
5578 2010-12-26  Bruno Haible  <bruno@clisp.org>
5579
5580         arpa_inet: Use the common idioms with C++ support.
5581         * lib/arpa_inet.in.h: Include c++defs.h.
5582         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5583         support.
5584         * modules/arpa_inet (Depends-on): Add c++defs.
5585         (Makefile.am): Substitute the contents of c++defs.h.
5586         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5587         * modules/arpa_inet-c++-tests: New file.
5588         * tests/test-arpa_inet-c++.cc: New file.
5589
5590 2010-12-25  Bruno Haible  <bruno@clisp.org>
5591
5592         Fix more C++ link errors on Solaris 8.
5593         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5594         $(LIB_EACCESS).
5595         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
5596         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
5597         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
5598         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
5599         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
5600
5601 2010-12-25  Bruno Haible  <bruno@clisp.org>
5602
5603         printf-posix: Fix link error when a non-GCC compiler is used.
5604         * lib/stdio.in.h (printf): When not using GCC, override printf
5605         correctly.
5606         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5607
5608 2010-12-25  Bruno Haible  <bruno@clisp.org>
5609
5610         strerror_r-posix: Update doc.
5611         * doc/posix-functions/strerror_r.texi: Update doc about the return
5612         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
5613
5614 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5615
5616         utimens: simplify the logic of the previous change
5617         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
5618         This should not affect whether the test succeeds or fails.
5619
5620         utimens: configure better on hosts with NFS clock skew
5621         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
5622         uses the clock of the local host.  It might use the clock of the
5623         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
5624         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5625
5626 2010-12-25  Bruno Haible  <bruno@clisp.org>
5627
5628         ptsname test: Avoid failure on Solaris.
5629         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
5630         open a pseudo-terminal; don't use BSD-style ptys.
5631         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
5632
5633 2010-12-25  Bruno Haible  <bruno@clisp.org>
5634
5635         ptsname: Avoid ERANGE failure on some systems.
5636         * lib/ptsname.c (buffer): Increase size.
5637
5638 2010-12-25  Bruno Haible  <bruno@clisp.org>
5639
5640         rename, renameat: Avoid test failures at NFS mounted locations.
5641         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
5642         so that subsequent mkdir calls succeed.
5643
5644 2010-12-25  Bruno Haible  <bruno@clisp.org>
5645
5646         iswblank: Fix C++ link error on Solaris 8.
5647         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
5648         _GL_FUNCDECL_SYS.
5649
5650 2010-12-25  Bruno Haible  <bruno@clisp.org>
5651
5652         unistd: Fix C++ link error on Solaris 8.
5653         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
5654
5655 2010-12-25  Bruno Haible  <bruno@clisp.org>
5656
5657         readlink doc: Mention an old glibc bug.
5658         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
5659
5660 2010-12-25  Bruno Haible  <bruno@clisp.org>
5661
5662         fcntl-h: Fix for use of C++ on glibc systems.
5663         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5664         also on glibc systems in C++ mode.
5665         Reported by Gary V. Vaughan <gary@gnu.org>.
5666
5667 2010-12-25  Bruno Haible  <bruno@clisp.org>
5668
5669         roundl-ieee: Make it work on OSF/1 5.1 with cc.
5670         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
5671
5672 2010-12-25  Bruno Haible  <bruno@clisp.org>
5673
5674         truncl-ieee: Make it work on OSF/1 5.1 with cc.
5675         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
5676         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
5677         test whether truncl works according to ISO C 99 with IEC 60559.
5678         * m4/truncl-ieee.m4: New file.
5679         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
5680         m4/signbit.m4.
5681         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
5682
5683 2010-12-25  Bruno Haible  <bruno@clisp.org>
5684
5685         ceill-ieee: Make it work on OSF/1 5.1 with cc.
5686         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
5687         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
5688         test whether ceill works according to ISO C 99 with IEC 60559.
5689         * m4/ceill-ieee.m4: New file.
5690         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
5691         m4/signbit.m4.
5692         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
5693
5694 2010-12-25  Bruno Haible  <bruno@clisp.org>
5695
5696         Ensure all prerequisites of <wchar.h> are included.
5697         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
5698         before <wchar.h>.
5699         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
5700         gl_MBRLEN_NUL_RETVAL): Likewise.
5701         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5702         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
5703         AC_FUNC_MBRTOWC): Likewise.
5704         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5705         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
5706         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
5707         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5708         Likewise.
5709         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5710         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
5711         (gl_WCHAR_H): Improve comments.
5712         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5713
5714 2010-12-25  Bruno Haible  <bruno@clisp.org>
5715
5716         strtok_r: Fix C syntax error in autoconf macro.
5717         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
5718         characters in test program.
5719
5720 2010-12-24  Bruno Haible  <bruno@clisp.org>
5721
5722         ceil, trunc, round: Fix gcc warnings.
5723         * lib/ceil.c (MIN): Undefine before redefining.
5724         * lib/trunc.c (MIN): Likewise.
5725         * lib/round.c (MIN): Likewise.
5726         Include <math.h> first.
5727
5728 2010-12-24  Bruno Haible  <bruno@clisp.org>
5729
5730         select tests: Avoid failures on OSF/1 5.1.
5731         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
5732         failure of closing the last socket; it may fail with ECONNRESET.
5733
5734 2010-12-24  Eric Blake  <eblake@redhat.com>
5735
5736         stdint: avoid HP-UX 10.20 preprocessor bug
5737         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
5738         than #if.
5739         * tests/test-floor2.c (main): Likewise.
5740         Reported by Peter O'Gorman.
5741
5742         pipe: make obsoletion transition easier
5743         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
5744         * modules/pipe (Files): Include revived file.
5745         (Include): Drop reference, to mirror getdate's behavior.
5746
5747 2010-12-24  Bruno Haible  <bruno@clisp.org>
5748
5749         sys_socket: Hide mismatch of declarations on NonStop Kernel.
5750         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
5751         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
5752         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5753
5754 2010-12-24  Bruno Haible  <bruno@clisp.org>
5755
5756         gethostname: Ensure declaration on NonStop Kernel.
5757         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
5758         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5759
5760 2010-12-24  Bruno Haible  <bruno@clisp.org>
5761
5762         sys_select: Ensure all necessary types on NonStop Kernel.
5763         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
5764         include <sys/time.h>.
5765         * doc/posix-headers/sys_select.texi: Mention that it's missing on
5766         NonStop Kernel.
5767         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5768
5769 2010-12-24  Bruno Haible  <bruno@clisp.org>
5770
5771         sys_select: Remove unneeded include.
5772         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
5773         have <sys/select.h>.
5774
5775 2010-12-24  Bruno Haible  <bruno@clisp.org>
5776
5777         gethostname: Provide a fallback for HOST_NAME_MAX.
5778         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
5779         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
5780         instead.
5781         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5782
5783 2010-12-24  Bruno Haible  <bruno@clisp.org>
5784
5785         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
5786         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
5787         (SA_RESTART): Likewise.
5788         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5789
5790 2010-12-24  Bruno Haible  <bruno@clisp.org>
5791
5792         signal: Define NSIG.
5793         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
5794         * tests/test-signal.c (nsig): New variable.
5795         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5796
5797 2010-12-24  Bruno Haible  <bruno@clisp.org>
5798
5799         rename, renameat: Avoid test failures on OSF/1 5.1.
5800         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
5801         alternative error codes.
5802         * tests/test-renameat.c (main): Likewise.
5803
5804 2010-12-24  Bruno Haible  <bruno@clisp.org>
5805
5806         *printf: Detect large precisions bug on Solaris 10/SPARC.
5807         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
5808         by Paul Eggert.
5809         * tests/test-snprintf-posix.h (test_function): Add this test code here
5810         too.
5811         * tests/test-sprintf-posix.h (test_function): Likewise.
5812         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5813         * tests/test-vasprintf-posix.c (test_function): Likewise.
5814         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
5815         around by gnulib.
5816         * doc/posix-functions/printf.texi: Likewise.
5817         * doc/posix-functions/snprintf.texi: Likewise.
5818         * doc/posix-functions/sprintf.texi: Likewise.
5819         * doc/posix-functions/vfprintf.texi: Likewise.
5820         * doc/posix-functions/vprintf.texi: Likewise.
5821         * doc/posix-functions/vsnprintf.texi: Likewise.
5822         * doc/posix-functions/vsprintf.texi: Likewise.
5823         * doc/posix-functions/dprintf.texi: Undo last commit.
5824         * doc/posix-functions/vdprintf.texi: Likewise.
5825
5826 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5827
5828         tests: port test-fdutimensat.c to Solaris 8
5829         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
5830         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
5831         On Solaris 8, it fails with errno == ENOSYS, because there is no
5832         futimens (so it can't use the fd), and there is no lutimens (so it
5833         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
5834
5835         vsnprintf: make more consistent with snprintf; doc fixes
5836
5837         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
5838         the byte count return problem was promoted from the snprintf-posix
5839         to the snprintf module.
5840         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5841         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
5842         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
5843         * tests/test-snprintf.c (main): Check the byte count returned.
5844         * tests/test-vsnprintf.c (main): Likewise.
5845
5846 2010-12-23  Eric Blake  <eblake@redhat.com>
5847
5848         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
5849         * modules/sigpipe (License): Relax license.
5850
5851 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5852
5853         doc: document Solaris printf bug with large float precisions
5854         * doc/posix-functions/dprintf.texi (dprintf):
5855         * doc/posix-functions/fprintf.texi (fprintf):
5856         * doc/posix-functions/printf.texi (printf):
5857         * doc/posix-functions/snprintf.texi (snprintf):
5858         * doc/posix-functions/sprintf.texi (sprintf):
5859         * doc/posix-functions/vdprintf.texi (vdprintf):
5860         * doc/posix-functions/vfprintf.texi (vfprintf):
5861         * doc/posix-functions/vprintf.texi (vprintf):
5862         * doc/posix-functions/vsnprintf.texi (vsnprintf):
5863         * doc/posix-functions/vsprintf.texi (vsprintf):
5864         Mention that these functions mishandle large floating point
5865         precisions on Solaris 10.  The same bug is also present in Solaris
5866         8, and I assume earlier.  This causes "cd gnulib-tests; make
5867         check" to fail on Solaris 8 (and I assume, later) when building
5868         the latest coreutils, in test-vasprintf-posix's call to
5869         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
5870         the wide flavors (e.g., wprintf) so this patch just updates the
5871         documentation for the narrow ones.
5872
5873         test-posixtm.c: add two tests
5874         * tests/test-posixtm.c: Add two tests, to highlight the
5875         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
5876         around this bug; this is merely to document it.
5877
5878 2010-12-22  Bruno Haible  <bruno@clisp.org>
5879
5880         getlogin_r: Work around portability problem on OSF/1.
5881         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
5882         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
5883         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
5884         test for a truncated result.
5885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
5886         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
5887         * modules/getlogin_r (Depends-on): Add memchr.
5888         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
5889
5890 2010-12-22  Bruno Haible  <bruno@clisp.org>
5891
5892         ptsname: Avoid test failure on OSF/1 5.1.
5893         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
5894         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
5895         (same_slave): New function.
5896         (main): Use it to compare ptsname's result with the expected file name.
5897
5898 2010-12-22  Bruno Haible  <bruno@clisp.org>
5899
5900         Port extended stdio modules to HP NonStop Kernel.
5901         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
5902         macros.
5903         * lib/fbufmode.c: Update comments.
5904         * lib/fflush.c: Likewise.
5905         * lib/fpurge.c: Likewise.
5906         * lib/freadable.c: Likewise.
5907         * lib/freadahead.c: Likewise.
5908         * lib/freading.c: Likewise.
5909         * lib/freadptr.c: Likewise.
5910         * lib/freadseek.c: Likewise.
5911         * lib/fseeko.c: Likewise.
5912         * lib/fseterr.c: Likewise.
5913         * lib/fwritable.c: Likewise.
5914         * lib/fwriting.c: Likewise.
5915         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5916
5917 2010-12-22  Bruno Haible  <bruno@clisp.org>
5918
5919         ttyname_r: Work around bug on OSF/1 5.1.
5920         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
5921         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
5922         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
5923         present.
5924         * lib/ttyname_r.c (ttyname_r): Update comments.
5925
5926 2010-12-22  Bruno Haible  <bruno@clisp.org>
5927
5928         round: Implement result sign according to IEEE 754.
5929         * lib/round.c (MIN, MINUS_ZERO): New macros.
5930         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
5931         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
5932         * tests/test-round-ieee.c (main): Likewise.
5933         * tests/test-roundl-ieee.c (main): Likewise.
5934
5935         trunc: Implement result sign according to IEEE 754.
5936         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
5937         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
5938         * tests/test-trunc2.c: Include minus-zero.h.
5939         (MINUS_ZERO): New macro.
5940         (trunc_reference): Keep in sync with lib/trunc.c.
5941         * tests/test-truncf2.c: Include minus-zero.h.
5942         (MINUS_ZERO): New macro.
5943         (truncf_reference): Keep in sync with lib/trunc.c.
5944         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
5945         * tests/test-trunc-ieee.c (main): Likewise.
5946         * tests/test-truncl-ieee.c (main): Likewise.
5947
5948         ceil: Implement result sign according to IEEE 754.
5949         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
5950         (FUNC): Return -0.0 for -1 < x < 0.
5951         * tests/test-ceil2.c: Include minus-zero.h.
5952         (MINUS_ZERO): New macro.
5953         (ceil_reference): Keep in sync with lib/ceil.c.
5954         * tests/test-ceilf2.c: Include minus-zero.h.
5955         (MINUS_ZERO): New macro.
5956         (ceilf_reference): Keep in sync with lib/ceil.c.
5957         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
5958         * tests/test-ceil-ieee.c (main): Likewise.
5959         * tests/test-ceill-ieee.c (main): Likewise.
5960
5961         floor: Implement result sign according to IEEE 754.
5962         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
5963         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
5964         * tests/test-floorf2.c (floorf_reference): Likewise.
5965         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
5966         * tests/test-floor-ieee.c (main): Likewise.
5967         * tests/test-floorl-ieee.c (main): Likewise.
5968
5969 2010-12-22  Bruno Haible  <bruno@clisp.org>
5970
5971         getaddrinfo: Update doc.
5972         * doc/posix-functions/gai_strerror.texi: Return type is also different
5973         on AIX and HP-UX.
5974
5975 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5976
5977         getaddrinfo, inet_ntop: Update doc for Solaris.
5978         * doc/posix-functions/gai_strerror.texi: Return type is also an
5979         issue on Solaris 9 and earlier.
5980         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
5981         on Solaris 10 and earlier.
5982
5983 2010-12-21  Bruno Haible  <bruno@clisp.org>
5984
5985         New module 'roundl-ieee'.
5986         * modules/roundl-ieee: New file.
5987         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
5988         test whether roundl works according to ISO C 99 with IEC 60559.
5989         * m4/roundl-ieee.m4: New file.
5990         * modules/roundl-ieee-tests: New file.
5991         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
5992         * tests/test-roundl.c (main): Remove signbit tests.
5993         * modules/roundl-tests (Depends-on): Remove signbit.
5994         * doc/posix-functions/roundl.texi: Mention the new module.
5995
5996 2010-12-21  Bruno Haible  <bruno@clisp.org>
5997
5998         New module 'truncl-ieee'.
5999         * modules/truncl-ieee: New file.
6000         * modules/truncl-ieee-tests: New file.
6001         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
6002         * tests/test-truncl.c (main): Remove signbit tests.
6003         * modules/truncl-tests (Depends-on): Remove signbit.
6004         * doc/posix-functions/truncl.texi: Mention the new module.
6005
6006 2010-12-21  Bruno Haible  <bruno@clisp.org>
6007
6008         New module 'ceill-ieee'.
6009         * modules/ceill-ieee: New file.
6010         * modules/ceill-ieee-tests: New file.
6011         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
6012         * tests/test-ceill.c (main): Remove signbit tests.
6013         * modules/ceill-tests (Depends-on): Remove signbit.
6014         * doc/posix-functions/ceill.texi: Mention the new module.
6015
6016 2010-12-21  Bruno Haible  <bruno@clisp.org>
6017
6018         New module 'floorl-ieee'.
6019         * modules/floorl-ieee: New file.
6020         * modules/floorl-ieee-tests: New file.
6021         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
6022         * tests/test-floorl.c (main): Remove signbit tests.
6023         * modules/floorl-tests (Depends-on): Remove signbit.
6024         * doc/posix-functions/floorl.texi: Mention the new module.
6025
6026 2010-12-21  Bruno Haible  <bruno@clisp.org>
6027
6028         New module 'round-ieee'.
6029         * modules/round-ieee: New file.
6030         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
6031         whether round works according to ISO C 99 with IEC 60559.
6032         * m4/round-ieee.m4: New file.
6033         * modules/round-ieee-tests: New file.
6034         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
6035         * tests/test-round1.c (main): Remove signbit tests.
6036         * modules/round-tests (Depends-on): Remove 'signbit'.
6037         * doc/posix-functions/round.texi: Mention the new module.
6038
6039 2010-12-21  Bruno Haible  <bruno@clisp.org>
6040
6041         New module 'trunc-ieee'.
6042         * modules/trunc-ieee: New file.
6043         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
6044         whether trunc works according to ISO C 99 with IEC 60559.
6045         * m4/trunc-ieee.m4: New file.
6046         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
6047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
6048         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
6049         * modules/trunc-ieee-tests: New file.
6050         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
6051         * tests/test-trunc1.c (main): Remove signbit tests.
6052         * modules/trunc-tests (Depends-on): Remove 'signbit'.
6053         * doc/posix-functions/trunc.texi: Mention the new module.
6054
6055 2010-12-21  Bruno Haible  <bruno@clisp.org>
6056
6057         New module 'ceil-ieee'.
6058         * modules/ceil-ieee: New file.
6059         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
6060         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
6061         ISO C 99 with IEC 60559.
6062         * m4/ceil-ieee.m4: New file.
6063         * modules/ceil (Files): Add lib/ceil.c.
6064         (Depends-on): Add 'float'.
6065         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6066         * lib/math.in.h (ceil): New declaration.
6067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
6068         REPLACE_CEIL.
6069         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
6070         * modules/ceil-ieee-tests: New file.
6071         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
6072         * tests/test-math-c++.cc: Check the signature of 'ceil'.
6073         * doc/posix-functions/ceil.texi: Mention the new module.
6074
6075 2010-12-21  Bruno Haible  <bruno@clisp.org>
6076
6077         New module 'floor-ieee'.
6078         * modules/floor-ieee: New file.
6079         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
6080         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
6081         ISO C 99 with IEC 60559.
6082         * m4/floor-ieee.m4: New file.
6083         * modules/floor (Files): Add lib/floor.c.
6084         (Depends-on): Add 'float'.
6085         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6086         * lib/math.in.h (floor): New declaration.
6087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
6088         REPLACE_FLOOR.
6089         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
6090         * modules/floor-ieee-tests: New file.
6091         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
6092         * tests/test-math-c++.cc: Check the signature of 'floor'.
6093         * doc/posix-functions/floor.texi: Mention the new module.
6094
6095 2010-12-21  Bruno Haible  <bruno@clisp.org>
6096
6097         New module 'roundf-ieee'.
6098         * modules/roundf-ieee: New file.
6099         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
6100         test whether roundf works according to ISO C 99 with IEC 60559.
6101         * m4/roundf-ieee.m4: New file.
6102         * modules/roundf-ieee-tests: New file.
6103         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
6104         * tests/test-roundf1.c (main): Remove signbit tests.
6105         * modules/roundf-tests (Depends-on): Remove 'signbit'.
6106         * doc/posix-functions/roundf.texi: Mention the new module.
6107
6108 2010-12-21  Bruno Haible  <bruno@clisp.org>
6109
6110         New module 'truncf-ieee'.
6111         * modules/truncf-ieee: New file.
6112         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
6113         test whether truncf works according to ISO C 99 with IEC 60559.
6114         * m4/truncf-ieee.m4: New file.
6115         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
6116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
6117         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
6118         * modules/truncf-ieee-tests: New file.
6119         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
6120         * tests/test-truncf1.c (main): Remove signbit tests.
6121         * modules/truncf-tests (Depends-on): Remove 'signbit'.
6122         * doc/posix-functions/truncf.texi: Mention the new module.
6123
6124 2010-12-21  Bruno Haible  <bruno@clisp.org>
6125
6126         New module 'ceilf-ieee'.
6127         * modules/ceilf-ieee: New file.
6128         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
6129         test whether ceilf works according to ISO C 99 with IEC 60559.
6130         * m4/ceilf-ieee.m4: New file.
6131         * modules/ceilf-ieee-tests: New file.
6132         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
6133         * tests/test-ceilf1.c (main): Remove signbit tests.
6134         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
6135         * doc/posix-functions/ceilf.texi: Mention the new module.
6136
6137 2010-12-21  Bruno Haible  <bruno@clisp.org>
6138
6139         New module 'floorf-ieee'.
6140         * modules/floorf-ieee: New file.
6141         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
6142         test whether floorf works according to ISO C 99 with IEC 60559.
6143         * m4/floorf-ieee.m4: New file.
6144         * modules/floorf-ieee-tests: New file.
6145         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
6146         * tests/test-floorf1.c (main): Remove signbit tests.
6147         * modules/floorf-tests (Depends-on): Remove 'signbit'.
6148         * doc/posix-functions/floorf.texi: Mention the new module.
6149
6150 2010-12-21  Bruno Haible  <bruno@clisp.org>
6151
6152         Support for minus zero in autoconf macros.
6153         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6154         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6155         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6156         * tests/minus-zero.h: Update comments.
6157
6158 2010-12-21  Bruno Haible  <bruno@clisp.org>
6159
6160         Tests for module 'ceil'.
6161         * modules/ceil-tests: New file.
6162         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6163         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6164
6165 2010-12-21  Bruno Haible  <bruno@clisp.org>
6166
6167         Tests for module 'floor'.
6168         * modules/floor-tests: New file.
6169         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6170         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6171
6172 2010-12-21  Bruno Haible  <bruno@clisp.org>
6173
6174         math: Fix indentation.
6175         * lib/math.in.h (floorf): Fix indentation.
6176
6177 2010-12-21  Bruno Haible  <bruno@clisp.org>
6178
6179         Fix cross-compilation guesses on Solaris.
6180         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6181         not match "solaris2.10".
6182         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6183         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6184         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6185
6186 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6187
6188         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6189         This fixes a problem observed with the latest coreutils snapshot
6190         that caused a test to fail on Solaris 8.  src/csplit.c's call
6191         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6192         earlier, instead of returning the number of bytes that would have
6193         been generated; this causes csplit to incorrectly report memory
6194         exhaustion.
6195         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6196         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6197         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6198         comments to match.
6199         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6200         Fix typo in matching older versions of Solaris: "solaris2.10"
6201         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6202         only for guessing while cross-compiling.
6203         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6204
6205 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6206
6207         ftoastr: fix comment again
6208         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6210         Also, simplify example a bit by using flags = 0.
6211
6212 2010-12-20  Bruno Haible  <bruno@clisp.org>
6213
6214         round*, trunc*: Update documentation regarding glibc.
6215         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6216         * doc/posix-functions/round.texi: Likewise.
6217         * doc/posix-functions/roundl.texi: Likewise.
6218         * doc/posix-functions/truncf.texi: Likewise.
6219         * doc/posix-functions/trunc.texi: Likewise.
6220         * doc/posix-functions/truncl.texi: Likewise.
6221
6222 2010-12-20  Bruno Haible  <bruno@clisp.org>
6223
6224         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6225         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6226         * doc/posix-functions/round.texi: Likewise.
6227         * doc/posix-functions/roundl.texi: Likewise.
6228
6229 2010-12-20  Bruno Haible  <bruno@clisp.org>
6230
6231         ttyname_r: Add missing declaration on HP-UX 11.
6232         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6233         HAVE_TTYNAME_R.
6234         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6235         declared. Set HAVE_TTYNAME_R always.
6236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6237         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6238         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6239         HAVE_TTYNAME_R.
6240         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6241
6242 2010-12-20  Bruno Haible  <bruno@clisp.org>
6243
6244         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6245         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6246         * doc/posix-functions/getlogin_r.texi: Likewise.
6247         * tests/test-getlogin.c: Include <errno.h>.
6248         (main): Avoid test failure on HP-UX 11.11.
6249         * tests/test-getlogin_r.c (main): Likewise.
6250
6251 2010-12-20  Bruno Haible  <bruno@clisp.org>
6252
6253         getlogin_r: Add missing declaration on HP-UX 11.
6254         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6255         declared also when it exists as a function.
6256         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6257
6258 2010-12-20  Bruno Haible  <bruno@clisp.org>
6259
6260         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6261         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6262         through wcrtomb.
6263
6264 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6265
6266         ftoastr: fix comment
6267         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6269
6270 2010-12-19  Bruno Haible  <bruno@clisp.org>
6271
6272         isnan: Ensure it is a macro.
6273         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6274         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6275         Solaris.
6276
6277 2010-12-19  Bruno Haible  <bruno@clisp.org>
6278
6279         ldexpl test: Fix link error on OSF/1 5.1.
6280         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6281
6282 2010-12-19  Bruno Haible  <bruno@clisp.org>
6283
6284         wctype: Make it work in C++ mode on OSF/1 5.1.
6285         * lib/wctype.in.h (iswblank): Declare but not define here.
6286         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6287         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6288         * modules/wctype (Files): Add lib/iswblank.c.
6289
6290 2010-12-19  Bruno Haible  <bruno@clisp.org>
6291
6292         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6293         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6294         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6295
6296 2010-12-19  Bruno Haible  <bruno@clisp.org>
6297
6298         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6300         _POSIX_PII_SOCKET.
6301         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6302         * doc/posix-functions/recvfrom.texi: Likewise.
6303         * doc/posix-functions/send.texi: Likewise.
6304         * doc/posix-functions/sendto.texi: Likewise.
6305
6306 2010-12-19  Bruno Haible  <bruno@clisp.org>
6307
6308         tcgetsid: Add missing declaration on OSF/1 5.1.
6309         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6310         HAVE_TCGETSID.
6311         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6312         Don't set HAVE_TCGETSID.
6313         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6314         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6315         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6316         HAVE_TCGETSID.
6317         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6318
6319 2010-12-19  Bruno Haible  <bruno@clisp.org>
6320
6321         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6322         * lib/stdio.in.h: During the include_next statement, let recursive
6323         includes of this file include only the system header file.
6324
6325 2010-12-19  Bruno Haible  <bruno@clisp.org>
6326
6327         iconv_open: Fix regression from 2010-12-04.
6328         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6329         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6330
6331 2010-12-19  Bruno Haible  <bruno@clisp.org>
6332
6333         stdbool test: Avoid a gcc warning.
6334         * tests/test-stdbool.c (main): Fail if e1 is false.
6335         Reported by Jim Meyering.
6336
6337 2010-12-19  Jim Meyering  <meyering@redhat.com>
6338
6339         setenv: restore to working order
6340         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6341         mistakenly removed.
6342         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6343         HAVE_SETENV.
6344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6345         HAVE_SETENV.
6346
6347 2010-12-19  Bruno Haible  <bruno@clisp.org>
6348
6349         Document some different function declarations on OSF/1 5.1.
6350         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6351         * doc/posix-functions/inet_ntop.texi: Likewise.
6352         * doc/posix-functions/gethostname.texi: Likewise.
6353         * lib/unistd.in.h (gethostname): Update comment.
6354
6355 2010-12-19  Bruno Haible  <bruno@clisp.org>
6356
6357         doc: Mention vasprintf-posix module.
6358         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6359         the 'vasprintf-posix' module.
6360         * doc/glibc-functions/vasprintf.texi: Likewise.
6361
6362 2010-12-19  Bruno Haible  <bruno@clisp.org>
6363
6364         unsetenv: Add missing declaration on OSF/1 5.1.
6365         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6366         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6367         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6369         not HAVE_UNSETENV.
6370         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6371         HAVE_UNSETENV.
6372         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6373
6374 2010-12-19  Bruno Haible  <bruno@clisp.org>
6375
6376         setenv: Add missing declaration on OSF/1 5.1.
6377         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6378         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6379         declared. Don't set HAVE_SETENV.
6380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6381         not HAVE_SETENV.
6382         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6383         HAVE_SETENV.
6384         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6385
6386 2010-12-19  Bruno Haible  <bruno@clisp.org>
6387
6388         nl_langinfo tests: Avoid gcc warning.
6389         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6390
6391 2010-12-19  Bruno Haible  <bruno@clisp.org>
6392
6393         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6394         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6395         _GL_CXXALIAS_SYS.
6396
6397 2010-12-19  Bruno Haible  <bruno@clisp.org>
6398
6399         stdbool: Relax test.
6400         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6401         address to 'bool' work in static initializer, for compilers other than
6402         GCC.
6403
6404 2010-12-19  Bruno Haible  <bruno@clisp.org>
6405
6406         ftello: Add missing declaration on OSF/1 5.1.
6407         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6408         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6410         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6411         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6412
6413 2010-12-19  Bruno Haible  <bruno@clisp.org>
6414
6415         fseeko: Add missing declaration on OSF/1 5.1.
6416         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6419         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6420         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6421
6422 2010-12-19  Bruno Haible  <bruno@clisp.org>
6423
6424         fchdir: Add missing declaration on OSF/1 5.1.
6425         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6428         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6429         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6430
6431 2010-12-19  Bruno Haible  <bruno@clisp.org>
6432
6433         relocatable-prog-wrapper: Separate from relocatable-prog.
6434         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6435         uninstall-relocwrapper rule here.
6436         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6437         Reported by Ian Beckwith <ianb@erislabs.net>.
6438
6439 2010-12-19  Bruno Haible  <bruno@clisp.org>
6440
6441         unistr/u8-mbsnlen: Add missing dependency.
6442         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6443         Reported by Ian Beckwith <ianb@erislabs.net>.
6444
6445 2010-12-19  Bruno Haible  <bruno@clisp.org>
6446
6447         iconv: Make it possible again to use this module without 'iconv-h'.
6448         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6449         if it is not defined.
6450         Reported by Ian Beckwith <ianb@erislabs.net>.
6451
6452 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6453
6454         acl: port to Solaris 8 when copying from tmpfs to ufs
6455         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6456         error number.  Problem observed on Solaris 8 with latest
6457         coreutils, with "mv A B", where A is on a tmpfs file system and B
6458         is on a ufs file system.  This caused coreutils' mv/part-symlink
6459         test to fail.
6460
6461         tests: set fail=0 at start
6462         * tests/init.sh (setup_): Move fail=0 initialization here ...
6463         (mktempd_): ... from here, so that tests can rely on fail being
6464         set to 0 initially.  This fixes a problem in coreutils; see:
6465         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6466
6467 2010-12-18  Bruno Haible  <bruno@clisp.org>
6468
6469         memmem-simple: Stylistic changes.
6470         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6471         Fix preprocessor directive indentation.
6472
6473 2010-12-15  Pádraig Brady <P@draigBrady.com>
6474
6475         memmem, memmem-simple: reorganize and expand empty needle check
6476         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6477         functional checks to memmem-simple so that one has a fully functional
6478         memmem by using just this module.
6479         Restrict the performance only check to the memmem module.
6480         Also expand the empty needle check to ensure the correct
6481         pointer is returned, not just a non NULL pointer.
6482         * doc/glibc-functions/memmem.texi: Rearrange the portability
6483         documentation to correlate with the rearranged checks.
6484         Clarify exactly how the memmem and memmem-simple modules
6485         relate to each other.
6486
6487 2010-12-15  Pádraig Brady <P@draigBrady.com>
6488             Bruno Haible  <bruno@clisp.org>
6489
6490         Improve cross-compilation guesses for uClibc.
6491         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6492         that uClibc does not have the glibc bug.
6493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6494         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6495
6496 2010-12-14  Eric Blake  <eblake@redhat.com>
6497
6498         configmake: provide fallbacks for oldest supported autotools
6499         * m4/configmake.m4: New file.
6500         * modules/configmake (Files): Ship it.
6501         (configure.ac): Use it to guarantee fallbacks.
6502
6503 2010-12-13  Pádraig Brady <P@draigBrady.com>
6504
6505         read-file: Improve handling of large files
6506         * lib/read-file.c (fread_file): Minimize realloc()s
6507         for regular files, and better manage sizes around SIZE_MAX.
6508
6509 2010-12-13  Eric Blake  <eblake@redhat.com>
6510
6511         cloexec, fcntl: relax license
6512         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6513         consent from all contributors.
6514         * modules/fcntl (License): Likewise.
6515
6516 2010-12-10  Bruno Haible  <bruno@clisp.org>
6517
6518         Tests for module 'pipe-posix'.
6519         * modules/pipe-posix-tests: New file.
6520         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6521
6522 2010-12-10  Bruno Haible  <bruno@clisp.org>
6523
6524         pipe-posix: Make it work in C++ mode.
6525         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6526         (pipe): Use common idiom, not a macro definition.
6527         * lib/pipe.c: New file.
6528         * m4/pipe.m4: New file.
6529         * modules/pipe-posix (Description): Enhance.
6530         (Files): Add lib/pipe.c, m4/pipe.m4.
6531         (configure.ac): Invoke gl_FUNC_PIPE.
6532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6533         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6534         * tests/test-unistd-c++.cc: Check the signature of pipe.
6535
6536 2010-12-10  Bruno Haible  <bruno@clisp.org>
6537
6538         Rename module 'pipe' to 'spawn-pipe'.
6539         * modules/spawn-pipe: New file, renamed from modules/pipe.
6540         (Files, configure.ac, Makefile.am): Update.
6541         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6542         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6543         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6544         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6545         "spawn-pipe.h" instead of "pipe.h".
6546         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6547         to gl_SPAWN_PIPE.
6548         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6549         (Files, Makefile.am): Update.
6550         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6551         Update.
6552         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6553         Include "spawn-pipe.h" instead of "pipe.h".
6554         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6555         * lib/javacomp.c: Likewise.
6556         * lib/javaversion.c: Likewise.
6557         * lib/pipe-filter-gi.c: Likewise.
6558         * lib/pipe-filter-ii.c: Likewise.
6559         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6560         * modules/javacomp (Depends-on): Likewise.
6561         * modules/javaversion (Depends-on): Likewise.
6562         * modules/pipe-filter-gi (Depends-on): Likewise.
6563         * modules/pipe-filter-ii (Depends-on): Likewise.
6564         * MODULES.html.sh (Executing programs): Update.
6565         * NEWS: Mention the change.
6566
6567 2010-12-10  Eric Blake  <eblake@redhat.com>
6568
6569         pipe-posix: new module
6570         * modules/pipe-posix: New file.
6571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6572         (gl_UNISTD_H): Check for declaration.
6573         * modules/unistd (Makefile.am): Substitute it.
6574         * lib/unistd.in.h (pipe): Provide it for mingw.
6575         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6576         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6577
6578 2010-12-07  Bruno Haible  <bruno@clisp.org>
6579
6580         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6581         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6582         u8_strcmp_gnu.
6583         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6584
6585 2010-12-06  Bruno Haible  <bruno@clisp.org>
6586
6587         Update internal documentation.
6588         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6589
6590 2010-12-04  Bruno Haible  <bruno@clisp.org>
6591
6592         Put more information about failed tests into the test return codes.
6593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6594         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6595         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6596         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6597         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6598         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6599         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6600         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6601         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
6602         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6603         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
6604         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6605         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6606         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6607         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
6608         returns a bit mask.
6609         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6610         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
6611         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
6612         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6613         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6614         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6615         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6616         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6617         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6618         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6619         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6620         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6621         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6622         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6623         * m4/link.m4 (gl_FUNC_LINK): Likewise.
6624         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6625         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
6626         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
6627         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6628         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
6629         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6630         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6631         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6632         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6633         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6634         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6635         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6636         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6637         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6638         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
6639         gl_PRINTF_PRECISION): Likewise.
6640         * m4/regex.m4 (gl_REGEX): Likewise.
6641         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6642         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6643         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
6644         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6645         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6646         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6647         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6648         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
6649         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6650         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6651         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6652         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6653         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6654         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6655         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6656         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6657         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6658         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6660         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
6661         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
6662         enumerated value.
6663         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
6664
6665 2010-12-04  Bruno Haible  <bruno@clisp.org>
6666
6667         Update for Solaris 11 2010-11.
6668         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
6669         Express, released in November 2010.
6670
6671 2010-12-04  Bruno Haible  <bruno@clisp.org>
6672
6673         nproc: Relax license.
6674         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
6675         and Paul Eggert.
6676         Requested by Ludovic Courtès <ludo@gnu.org>.
6677
6678 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
6679
6680         utimecmp: fine-grained src to nearby coarse-grained dest
6681
6682         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
6683         and the source is on a file system with higher-resolution time
6684         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
6685         not work, and the time stamps are close together, the algorithm to
6686         determine the exact resolution from the read-back mtime was buggy:
6687         it had a "!=" where it should have had an "==".  This bug has been
6688         in the code ever since it was introduced to gnulib.
6689         Problem reported by Dan Jacobson in
6690         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
6691
6692 2010-11-30  Bruno Haible  <bruno@clisp.org>
6693
6694         strerror_r-posix: Fix autoconf test.
6695         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
6696
6697 2010-11-28  Bruno Haible  <bruno@clisp.org>
6698             Paul Eggert  <eggert@cs.ucla.edu>
6699
6700         Tests for module 'getdomainname'.
6701         * modules/getdomainname-tests: New file.
6702         * tests/test-getdomainname.c: New file, based on
6703         tests/test-gethostname.c.
6704
6705 2010-11-28  Bruno Haible  <bruno@clisp.org>
6706             Paul Eggert  <eggert@cs.ucla.edu>
6707
6708         getdomainname: Use the system function when possible.
6709         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
6710         (getdomainname): Replace if needed. Provide the declaration if it is
6711         missing. Don't use _GL_CXXALIAS_SYS_CAST.
6712         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
6713         (getdomainname): When the system has getdomainname, call the system
6714         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
6715         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6716         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
6717         found in libnsl. Look for the declaration also in <netdb.h>. Replace
6718         the function if its second argument is of type 'int' or if it is found
6719         in libnsl.
6720         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
6721         <sys/systeminfo.h> and sysinfo().
6722         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
6723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6724         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
6725         HAVE_GETDOMAINNAME.
6726         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
6727         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
6728         * doc/glibc-functions/getdomainname.texi: Document the problems with
6729         the getdomainname declaration.
6730
6731 2010-11-28  Bruno Haible  <bruno@clisp.org>
6732
6733         sys_socket: Ensure ss_family field on AIX.
6734         * lib/sys_socket.in.h (ss_family): New macro definition.
6735         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
6736         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
6737         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6738         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6739         * modules/sys_socket (Makefile.am): Substitute
6740         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
6741         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
6742
6743 2010-11-27  Bruno Haible  <bruno@clisp.org>
6744
6745         readline: Improve configure output.
6746         * m4/readline.m4 (gl_FUNC_READLINE): Make the
6747         "checking for readline..." result understandable.
6748
6749 2010-11-27  Bruno Haible  <bruno@clisp.org>
6750
6751         *printf-posix: Detect a bug on Solaris 10/x86.
6752         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
6753         for floating-point output.
6754         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
6755         directive.
6756         * tests/test-snprintf-posix.h (test_function): Likewise.
6757         * tests/test-sprintf-posix.h (test_function): Likewise.
6758         * tests/test-vasprintf-posix.c (test_function): Likewise.
6759         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
6760         * doc/posix-functions/printf.texi: Likewise.
6761         * doc/posix-functions/snprintf.texi: Likewise.
6762         * doc/posix-functions/sprintf.texi: Likewise.
6763         * doc/posix-functions/vfprintf.texi: Likewise.
6764         * doc/posix-functions/vprintf.texi: Likewise.
6765         * doc/posix-functions/vsnprintf.texi: Likewise.
6766         * doc/posix-functions/vsprintf.texi: Likewise.
6767         * doc/glibc-functions/obstack_printf.texi: Likewise.
6768         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6769
6770 2010-11-27  Bruno Haible  <bruno@clisp.org>
6771
6772         Fix link error when module libunistring-optional is in use.
6773         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
6774         * modules/striconveha-tests (Makefile.am): Likewise.
6775
6776 2010-11-27  Bruno Haible  <bruno@clisp.org>
6777
6778         regex: Mention link dependencies.
6779         * modules/regex (Link): New section.
6780         * modules/rpmatch (Link): Likewise.
6781         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
6782
6783 2010-11-27  Bruno Haible  <bruno@clisp.org>
6784
6785         ftoastr: Fix compilation error on Solaris.
6786         * lib/ftoastr.c: Include <config.h>.
6787
6788 2010-11-27  Bruno Haible  <bruno@clisp.org>
6789
6790         getloadavg: Update documentation.
6791         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
6792
6793 2010-11-27  Bruno Haible  <bruno@clisp.org>
6794
6795         sys_socket: Fix test whether the functions are declared.
6796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
6797         not <sys/select.h>.
6798
6799 2010-11-27  Bruno Haible  <bruno@clisp.org>
6800
6801         getpass: Make sure to get system declaration on some platforms.
6802         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
6803         gl_USE_SYSTEM_EXTENSIONS.
6804         * modules/getpass (Depends-on): Add extensions.
6805
6806 2010-11-26  Bruno Haible  <bruno@clisp.org>
6807
6808         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
6809         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
6810         'iconv' module is present.
6811         (ICONV_CONST): New macro.
6812         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
6813         ICONV_CONST.
6814         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
6815         set ICONV_CONST.
6816         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
6817         here.
6818         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
6819         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
6820         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
6821         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
6822         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
6823         present.
6824
6825 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6826
6827         ftoastr: comment fix
6828         * lib/ftoastr.c: "little" -> "little or no" in comment
6829
6830 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
6831
6832         stdint: port to GCC 4.3 + OSX + Octave
6833         On this platform, stdint.h is buggy and defines int64_t to long
6834         long int.  The replacement defined it to long int, causing
6835         problems with C++ style name mangling.  Instead, trust the system
6836         definition if INT64_MAX is defined, and likewise for the unsigned
6837         variant.   Problem reported by Jarno Rajahalme in
6838         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
6839         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
6840         and don't mess with int64_t and INT64_MAX in this case.
6841         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
6842
6843 2010-11-24  Bruno Haible  <bruno@clisp.org>
6844
6845         doc: Corrections regarding MacOS X 10.4 and 10.5.
6846         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
6847         MacOS X.
6848         Reported by Simon Josefsson.
6849
6850 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
6851
6852         Uninstall ".bin" files installed by relocwrapper.
6853         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
6854         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
6855         unless it is already there.
6856
6857 2010-11-21  Bruno Haible  <bruno@clisp.org>
6858
6859         Update for NetBSD 5.0.
6860         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6861         NetBSD; the test fails on NetBSD 5.0.
6862         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6863         about NetBSD.
6864
6865 2010-11-21  Bruno Haible  <bruno@clisp.org>
6866
6867         Update for HP-UX 11.23 and HP-UX 11.31.
6868         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
6869         HP-UX.
6870
6871 2010-11-21  Bruno Haible  <bruno@clisp.org>
6872
6873         Update for MacOS X 10.5.
6874         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
6875         MacOS X; the test fails on MacOS X 10.5.8.
6876         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
6877         about MacOS X.
6878
6879 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
6880
6881         bootstrap: add bootstrap_sync option.
6882         See discussion at
6883         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
6884         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
6885         * build-aux/bootstrap: Accept --bootstrap-sync to update
6886         bootstrap if it is not identical to the local gnulib's
6887         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
6888         enable this by default.  Accept --no-bootstrap-sync to disable
6889         it.
6890
6891 2010-11-20  Bruno Haible  <bruno@clisp.org>
6892
6893         Ensure that <features.h> is included before __GLIBC__ is tested.
6894         * lib/printf-parse.h: Include <features.h>.
6895         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
6896         Reported by Mike Frysinger <vapier@gentoo.org>.
6897
6898         Ensure that <features.h> is included before __GLIBC__ is tested.
6899         * lib/wchar.in.h: Include <features.h>.
6900         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
6901         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
6902         Reported by Mike Frysinger <vapier@gentoo.org>.
6903
6904         Ensure that <features.h> is included before __GLIBC__ is tested.
6905         * lib/arpa_inet.in.h: Include <features.h>.
6906         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
6907         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
6908         Reported by Mike Frysinger <vapier@gentoo.org>.
6909
6910         Ensure that <features.h> is included before __GLIBC__ is tested.
6911         * build-aux/link-warning.h: Include <features.h>.
6912         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
6913         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
6914         Reported by Mike Frysinger <vapier@gentoo.org>.
6915
6916         Ensure that <features.h> is included before __GLIBC__ is tested.
6917         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
6918         Reported by Mike Frysinger <vapier@gentoo.org>.
6919
6920 2010-11-20  Bruno Haible  <bruno@clisp.org>
6921
6922         memmem: Fix autoconf test.
6923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
6924
6925 2010-11-20  Bruno Haible  <bruno@clisp.org>
6926
6927         Port to uClibc.
6928         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
6929         * lib/fcntl.in.h: Likewise.
6930         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
6931         * lib/mbrtowc.c (mbrtowc): Likewise.
6932         * lib/relocatable.c (find_shared_library_fullname): Likewise.
6933         * lib/strerror_r.c: Likewise.
6934         * lib/unistr/u8-strnlen.c: Likewise.
6935         * lib/vasnprintf.c (decimal_point_char): Likewise.
6936         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6937         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
6938         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6939         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6940         * tests/test-sigaction.c (handler, main): Likewise.
6941         * lib/freading.h: Treat uClibc like a non-glibc platform.
6942         * lib/freading.c: Likewise.
6943         * lib/gettext.h: Likewise.
6944         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
6945         Likewise.
6946         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
6947         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6948         * lib/propername.c (proper_name_utf8): Likewise.
6949         * lib/spawn.in.h: Likewise.
6950         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
6951         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
6952         mem_cd_iconveh_internal): Likewise.
6953         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
6954         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6955         strstr, strcasestr): Likewise.
6956         * lib/unicodeio.c (unicode_to_mb): Likewise.
6957         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
6958         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
6959         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
6960         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
6961         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
6962         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
6963         * lib/unistr/u8-stpncpy.c: Likewise.
6964         * lib/vasnprintf.c (VASNPRINTF): Likewise.
6965         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
6966         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6967         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6968         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6969         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
6970         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
6971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
6972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6973         Likewise.
6974         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
6975         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6976         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6977         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6978         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6979         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6980         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6981         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6982         * tests/test-getopt.h (OPTIND_MIN): Likewise.
6983         * tests/test-striconveha.c (main): Likewise.
6984         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6985         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
6986         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
6987         * doc/posix-functions/getline.texi: Likewise.
6988         Reported by Mike Frysinger <vapier@gentoo.org>.
6989
6990 2010-11-20  Bruno Haible  <bruno@clisp.org>
6991
6992         nproc: Fix condition.
6993         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
6994         HAVE_PTHREAD_AFFINITY_NP.
6995
6996 2010-11-20  Bruno Haible  <bruno@clisp.org>
6997
6998         Fix a comment.
6999         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
7000
7001 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7002
7003         ftoastr: don't assume snprintf
7004         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
7005         Implement a subset of snprintf here, by using sprintf safely.
7006         * modules/ftoastr (Depends-on): Remove snprintf.
7007
7008 2010-11-19  Jim Meyering  <meyering@redhat.com>
7009
7010         test-rename.h: fix compilation failure
7011         * tests/test-rename.h (test_rename): Add omitted "}".
7012
7013 2010-11-17  Jim Meyering  <meyering@redhat.com>
7014
7015         maint.mk: add a URL discussing the no-@acronym policy
7016         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
7017
7018 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7019
7020         ftoastr: depend on snprintf, improve comments
7021         * lib/ftoastr.c: Also mention Loitsch's draft.
7022         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
7023         needed in the current implementation, but it might simplify
7024         speeding up the code later.
7025         * modules/ftoastr: Depend on snprintf; this improves portability.
7026         Suggested by Bruno Haible in the same email.
7027
7028         ftoastr: port to hosts lacking strtof and strtold
7029         Problem reported by Bruno Haible in
7030         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
7031         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
7032         environment and strtold (and presumably strtof) are not available.
7033         * modules/ftoastr (Files): Add m4/c-strtod.m4.
7034         (configure.ac): Require gl_C99_STRTOLD.
7035
7036 2010-11-18  Bruno Haible  <bruno@clisp.org>
7037
7038         c-strtold: Avoid link error on AIX 7.
7039         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
7040         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
7041         (gl_C_STRTOLD): Test whether strtold_l exists.
7042         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7043
7044 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7045
7046         intprops: new macro INT_BITS_STRLEN_BOUND
7047         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
7048         ftoastr.h.  This exposes an internal of intprops.h that was formerly
7049         not exposed.  Also, it uses a slightly tighter bound than before;
7050         though this makes no practical difference, we might as well be as
7051         tight as we easily can.
7052
7053         ftoastr: new module, for lossless conversion of floats to short strings
7054         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
7055         * modules/ftoastr: New files.
7056
7057 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7058
7059         bootstrap: port to Solaris sed
7060         * build-aux/bootstrap (get_version): Port to Solaris sed.
7061         See Ralf Wildenhues's note in
7062         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
7063
7064 2010-11-14  Jim Meyering  <meyering@redhat.com>
7065
7066         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
7067         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
7068         and move definition closer to sole use.
7069
7070 2010-11-13  Jim Meyering  <meyering@redhat.com>
7071
7072         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
7073         Now we require at least autoconf-2.59, which means the work-around
7074         is no longer needed.
7075         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
7076         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7077         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7078         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
7079         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7080
7081 2010-11-13  Bruno Haible  <bruno@clisp.org>
7082
7083         rename, renameat: Avoid test failures at NFS mounted locations.
7084         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
7085         functions.
7086         (test_rename): Use assert_nonexistent.
7087         * tests/test-rename.c: Include <dirent.h>.
7088         * tests/test-renameat.c: Likewise.
7089         Reported by Gary V. Vaughan <gary@gnu.org>.
7090
7091         rename, renameat: Document Linux bug with NFS
7092         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
7093         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
7094         * doc/posix-functions/renameat.texi: Likewise.
7095         Suggested by Eric Blake.
7096
7097 2010-11-13  Bruno Haible  <bruno@clisp.org>
7098
7099         rename test: Add comments.
7100         * tests/test-rename.h (test_rename): Add structure and comments.
7101
7102 2010-11-13  Eric Blake  <eblake@redhat.com>
7103
7104         maintainer-makefile: cover a few more files
7105         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
7106         scripts generated within C files, for libvirt.
7107
7108 2010-11-13  Bruno Haible  <bruno@clisp.org>
7109
7110         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
7111         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
7112         character, return the number of bytes that belong together, not always
7113         1.
7114         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7115         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7116         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7117         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
7118         number of bytes of an invalid character.
7119         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
7120         (main): Invoke it.
7121         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
7122         results.
7123         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
7124         malformed byte sequences.
7125         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
7126         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
7127         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
7128         Reported by Ben Pfaff and Paolo Bonzini.
7129
7130 2010-11-13  Bruno Haible  <bruno@clisp.org>
7131
7132         openat: Work around glibc bug with fchownat() and empty file names.
7133         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
7134         (gl_FUNC_FCHOWNAT): Invoke it.
7135         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
7136         * doc/posix-functions/fchownat.texi: Document the glibc bug.
7137         Reported by Gary V. Vaughan <gary@gnu.org>.
7138
7139 2010-11-13  Bruno Haible  <bruno@clisp.org>
7140
7141         openat: Ensure autoconf macro ordering.
7142         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
7143         gl_USE_SYSTEM_EXTENSIONS.
7144         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
7145
7146 2010-11-13  Bruno Haible  <bruno@clisp.org>
7147
7148         Update comments.
7149         * lib/unistr/u8-check.c: Update file name in comments.
7150         * lib/unistr/u8-mblen.c: Likewise.
7151         * lib/unistr/u8-prev.c: Likewise.
7152         * lib/unistr/u8-strmblen.c: Likewise.
7153         * lib/unistr/u8-strmbtouc.c: Likewise.
7154
7155 2010-11-13  Jim Meyering  <meyering@redhat.com>
7156
7157         tests: avoid test failure on Solaris 10 due to lack of PATH export
7158         * tests/test-update-copyright.sh: Don't forget to export PATH.
7159
7160         init.sh: ensure that IFS is defined, just in case...
7161         * tests/init.sh (setup_): Ensure that IFS is defined,
7162         so that saving and restoring it works as expected.  This
7163         appears to be useful at least for an old version of dash
7164         from a long time ago (RH 6).  See here for details:
7165         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7166
7167         maint.mk: tighten "test a == b" check
7168         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7169         test to files that contain something like #!/bin/sh.
7170         Without this, coreutils would get two false positives in
7171         the comments of C source files.
7172
7173 2010-11-12  Eric Blake  <eblake@redhat.com>
7174
7175         bootstrap: fix typo in previous attempt
7176         * build-aux/bootstrap (buildreq): Correct the grouping.
7177         Reported by Paul Eggert.
7178
7179         maintainer-makefile: prohibit test x == x
7180         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7181         Based on a report by Matthias Bolte.
7182
7183         bootstrap: allow FreeBSD gzip
7184         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7185         which has no '.' and goes to stderr.
7186         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7187         Reported by Matthias Bolte.
7188
7189         maintainer-makefile: check for i18n setup
7190         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7191         will likely work.
7192
7193 2010-11-12  Bruno Haible  <bruno@clisp.org>
7194
7195         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7196         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7197         * lib/nanosleep.c (nanosleep): Likewise.
7198
7199 2010-11-11  Bruno Haible  <bruno@clisp.org>
7200
7201         fcntl-h: Fix for use of C++ on glibc systems.
7202         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7203         also on glibc systems in C++ mode.
7204         Reported by Gary V. Vaughan <gary@gnu.org>.
7205
7206 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7207
7208         mknod: avoid false failure with dash
7209         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7210
7211 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7212
7213         unlink: Fix "is it should" typo in diagnostic.
7214         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7215         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7216
7217 2010-11-11  Bruno Haible  <bruno@clisp.org>
7218
7219         Tests for module 'strerror_r-posix'.
7220         * modules/strerror_r-posix-tests: New file.
7221         * tests/test-strerror_r.c: New file.
7222         * tests/test-string-c++.cc: Check the signature of strerror_r.
7223
7224         New module 'strerror_r-posix'.
7225         * lib/string.in.h (strerror_r): New declaration.
7226         * lib/strerror_r.c: New file.
7227         * m4/strerror_r.m4: New file.
7228         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7229         of strerror_r.
7230         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7231         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7232         * modules/strerror_r-posix: New file.
7233         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7234         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7235         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7236         portability problems.
7237
7238 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7239
7240         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7241         line is also considered for output. Quoted function name in shell
7242         command, so temporary files for functions like MyClass::operator()
7243         are removed correctly without errors.
7244
7245 2010-11-09  Bruno Haible  <bruno@clisp.org>
7246
7247         * doc/posix-functions/strerror.texi: List more failing platforms.
7248
7249         * doc/posix-functions/strerror.texi: Add a comment.
7250
7251 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7252
7253         fdopendir: fix bug on MacOS X when low on file descriptors
7254
7255         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7256         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7257         All callers changed.
7258         (fdopendir): Invoke save_cwd at the top level, not after using
7259         multiple dup() calls to use up file descriptors.  Then retry
7260         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7261         less than the maximum number of open file descriptors, because
7262         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7263         on Mac OS X 10.6.4 for tar 1.24
7264         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7265         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7266         and for tar 1.25
7267         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7268
7269 2010-11-07  Bruno Haible  <bruno@clisp.org>
7270
7271         vasnprintf: Support I flag on glibc systems.
7272         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7273         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7274         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7275         snprintf function.
7276         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7277         glibc systems.
7278         * tests/test-vasnprintf-posix3.c: New file.
7279         * modules/vasnprintf-posix-tests (Files): Add it.
7280         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7281
7282 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7283
7284         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7285         * MODULES.html.sh: For compiler warnings, use name
7286         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7287
7288 2010-11-05  Eric Blake  <eblake@redhat.com>
7289
7290         ceil, floor: avoid spurious failure with icc
7291         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7292         [denormals-as-zero] when optimizing without -mieee-fp option.
7293         * tests/test-floorf2.c (floorf_reference): Likewise.
7294         * tests/test-ceilf1.c (dummy): New function.
7295         (main): Use it to outsmart icc's optimization.
7296         * tests/test-floorf1.c (dummy, main): Likewise.
7297
7298         tests: require working signbit
7299         * modules/ceilf-tests (Depends-on): Add signbit.
7300         * modules/ceill-tests (Depends-on): Likewise.
7301         * modules/floorf-tests (Depends-on): Likewise.
7302         * modules/floorl-tests (Depends-on): Likewise.
7303         * modules/round-tests (Depends-on): Likewise.
7304         * modules/roundf-tests (Depends-on): Likewise.
7305         * modules/roundl-tests (Depends-on): Likewise.
7306         * modules/trunc-tests (Depends-on): Likewise.
7307         * modules/truncf-tests (Depends-on): Likewise.
7308         * modules/truncl-tests (Depends-on): Likewise.
7309
7310         strtod: work around icc bug
7311         * lib/strtod.c (minus_zero): Define to working value.
7312         (strtod): Use it to avoid icc bug.
7313
7314         copysign: enhance tests
7315         * modules/copysign-tests (Files): Add minus-zero.h.
7316         * tests/test-copysign.c (main): Also test zeros.
7317
7318 2010-11-04  Eric Blake  <eblake@redhat.com>
7319
7320         ceil, floor, round, trunc: enhance tests of -0
7321         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7322         * tests/test-ceill.c (main): Likewise.
7323         * tests/test-floorf1.c (main): Likewise.
7324         * tests/test-floorl.c (main): Likewise.
7325         * tests/test-round1.c (main): Likewise.
7326         * tests/test-roundf1.c (main): Likewise.
7327         * tests/test-roundl.c (main): Likewise.
7328         * tests/test-trunc1.c (main): Likewise.
7329         * tests/test-truncf1.c (main): Likewise.
7330         * tests/test-truncl.c (main): Likewise.
7331
7332 2010-11-04  Eric Blake  <eblake@redhat.com>
7333
7334         frexp, tests: work around ICC bug with -zero
7335         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7336         works with more compilers.
7337         * tests/minus-zero.h: New file.
7338         * modules/ceilf-tests (Files): Include it.
7339         * modules/ceill-tests (Files): Likewise.
7340         * modules/floorf-tests (Files): Likewise.
7341         * modules/floorl-tests (Files): Likewise.
7342         * modules/frexp-nolibm-tests (Files): Likewise.
7343         * modules/frexp-tests (Files): Likewise.
7344         * modules/frexpl-nolibm-tests (Files): Likewise.
7345         * modules/frexpl-tests (Files): Likewise.
7346         * modules/isnan-tests (Files): Likewise.
7347         * modules/isnand-nolibm-tests (Files): Likewise.
7348         * modules/isnand-tests (Files): Likewise.
7349         * modules/isnanf-nolibm-tests (Files): Likewise.
7350         * modules/isnanf-tests (Files): Likewise.
7351         * modules/isnanl-nolibm-tests (Files): Likewise.
7352         * modules/isnanl-tests (Files): Likewise.
7353         * modules/round-tests (Files): Likewise.
7354         * modules/roundf-tests (Files): Likewise.
7355         * modules/roundl-tests (Files): Likewise.
7356         * modules/ldexpl-tests (Files): Likewise.
7357         * modules/signbit-tests (Files): Likewise.
7358         * modules/snprintf-posix-tests (Files): Likewise.
7359         * modules/sprintf-posix-tests (Files): Likewise.
7360         * modules/strtod-tests (Files): Likewise.
7361         * modules/trunc-tests (Files): Likewise.
7362         * modules/truncf-tests (Files): Likewise.
7363         * modules/truncl-tests (Files): Likewise.
7364         * modules/vsnprintf-posix-tests (Files): Likewise.
7365         * modules/vsprintf-posix-tests (Files): Likewise.
7366         * modules/vasnprintf-posix-tests (Files): Likewise.
7367         * modules/vasprintf-posix-tests (Files): Likewise.
7368         * tests/test-ceilf1.c (main): Use it.
7369         * tests/test-ceill.c (main): Likewise.
7370         * tests/test-floorf1.c (main): Likewise.
7371         * tests/test-floorl.c (main): Likewise.
7372         * tests/test-frexp.c (main): Likewise.
7373         * tests/test-frexpl.c (main): Likewise.
7374         * tests/test-isnan.c (main): Likewise.
7375         * tests/test-isnand.h (main): Likewise.
7376         * tests/test-isnanf.h (main): Likewise.
7377         * tests/test-isnanl.h (main): Likewise.
7378         * tests/test-ldexpl.c (main): Likewise.
7379         * tests/test-round.c (main): Likewise.
7380         * tests/test-roundf.c (main): Likewise.
7381         * tests/test-roundl.c (main): Likewise.
7382         * tests/test-signbit.c (test_signbitf, test_signbitd)
7383         (test_signbitl): Likewise.
7384         * tests/test-snprintf-posix.h (test_function): Likewise.
7385         * tests/test-sprintf-posix.h (test_function): Likewise.
7386         * tests/test-strtod.c (main): Likewise.
7387         * tests/test-trunc1.c (main): Likewise.
7388         * tests/test-truncf1.c (main): Likewise.
7389         * tests/test-truncl.c (main): Likewise.
7390
7391         isnanl: work around icc bug
7392         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7393
7394 2010-11-03  Eric Blake  <eblake@redhat.com>
7395
7396         tests: fix compiler warnings
7397         * tests/test-getopt.h (test_getopt): Fix condition.
7398         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7399         * tests/test-pipe2.c (main): Likewise.
7400         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7401
7402         utimens: fix broken m4 test
7403         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7404
7405 2010-10-28  Bruno Haible  <bruno@clisp.org>
7406
7407         posix_spawn*, getdtablesize: Relax license.
7408         * modules/posix_spawn (License): Change to LGPLv2+.
7409         * modules/posix_spawnp (License): Likewise.
7410         * modules/posix_spawn-internal (License): Likewise.
7411         * modules/posix_spawnattr_init (License): Likewise.
7412         * modules/posix_spawnattr_getflags (License): Likewise.
7413         * modules/posix_spawnattr_setflags (License): Likewise.
7414         * modules/posix_spawnattr_getpgroup (License): Likewise.
7415         * modules/posix_spawnattr_setpgroup (License): Likewise.
7416         * modules/posix_spawnattr_getschedparam (License): Likewise.
7417         * modules/posix_spawnattr_setschedparam (License): Likewise.
7418         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7419         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7420         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7421         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7422         * modules/posix_spawnattr_getsigmask (License): Likewise.
7423         * modules/posix_spawnattr_setsigmask (License): Likewise.
7424         * modules/posix_spawnattr_destroy (License): Likewise.
7425         * modules/posix_spawn_file_actions_init (License): Likewise.
7426         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7427         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7428         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7429         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7430         * modules/getdtablesize (License): Likewise.
7431         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7432
7433 2010-10-26  Bruno Haible  <bruno@clisp.org>
7434
7435         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7436         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7437         Cygwin and mingw.
7438         Suggested by Eric Blake.
7439
7440 2010-10-26  Bruno Haible  <bruno@clisp.org>
7441
7442         stdio: Work around compilation error due to renameat() on Solaris 10.
7443         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7444         * lib/renameat.c: Don't include <unistd.h> here.
7445         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7446         Reported by Paul Eggert and Eric Blake.
7447
7448 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7449
7450         renameat: port to Solaris 10, which declares renameat in unistd.h
7451
7452         * lib/renameat.c: Include unistd.h before stdio.h, because
7453         Solaris 10 declares renameat in unistd.h.  Problem encountered
7454         when building GNU tar 1.24 on Solaris 10.
7455
7456 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7457
7458         fdopendir: fix C89 compilation
7459         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7460         compilers.
7461
7462 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7463
7464         inttostr: simplify by removing unnecessary redundancy
7465         * lib/anytostr.c: Don't include verify.h.
7466         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7467         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7468         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7469         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7470         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7471         Likewise.
7472         * modules/inttostr (Depends-on): Remove 'verify'.
7473
7474 2010-10-23  Bruno Haible  <bruno@clisp.org>
7475
7476         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7477         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7478         Reported by Eric Blake.
7479
7480 2010-10-23  Bruno Haible  <bruno@clisp.org>
7481
7482         Tests: Fix LOCALE_JA on MirBSD 10.
7483         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7484         to an UTF-8 locale.
7485         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7486         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7487         Reported by Eric Blake.
7488
7489 2010-10-21  Bruno Haible  <bruno@clisp.org>
7490
7491         nl_langinfo test: Avoid test failure on NetBSD 5.
7492         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7493         Reported by Eric Blake.
7494
7495 2010-10-21  Eric Blake  <eblake@redhat.com>
7496
7497         c-stack: work around libsigsegv 2.8 bug
7498         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7499         overflow on at least PowerPC64.
7500
7501 2010-10-17  Bruno Haible  <bruno@clisp.org>
7502
7503         userspec: Drop redundant file.
7504         * modules/userspec (Files): Remove lib/inttostr.h.
7505
7506 2010-10-17  Bruno Haible  <bruno@clisp.org>
7507
7508         nl_langinfo tests: Silence some warnings.
7509         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7510         Reported by Jim Meyering.
7511
7512 2010-10-17  Bruno Haible  <bruno@clisp.org>
7513
7514         Make use of GCC's attribute __alloc_size__.
7515         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7516         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7517         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7518         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7519         __alloc_size__.
7520         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7521         Suggested by Jim Meyering.
7522
7523 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7524
7525         bootstrap: anchor .gitignore entries.
7526         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7527         with...
7528         (insert_vc_ignore): ... this new function, which prepends `/' to
7529         all .gitignore entries before passing them to
7530         insert_sorted_if_absent.
7531
7532 2010-10-16  Bruno Haible  <bruno@clisp.org>
7533
7534         nextafter: Fix configure check.
7535         * modules/nextafter (configure.ac): Correct expected prototype.
7536
7537 2010-10-16  Bruno Haible  <bruno@clisp.org>
7538
7539         termios: Update documentation.
7540         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7541
7542 2010-10-16  Bruno Haible  <bruno@clisp.org>
7543
7544         tests: Make them compile with TinyCC.
7545         * tests/test-strstr.c (main): Remove parentheses around array
7546         initializer.
7547
7548 2010-10-15  Eric Blake  <eblake@redhat.com>
7549
7550         ignore-value: make header idempotent
7551         * lib/ignore-value.h: Add double-inclusion guards.
7552         Reported by Stefan Berger.
7553
7554 2010-10-15  Jim Meyering  <meyering@redhat.com>
7555
7556         GNUmakefile: handle "stable" target, not "major"
7557         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7558         lists in maint.mk and announce-gen.  Without this, "make stable"
7559         would fail to ensure that $(VERSION) is up to date.
7560
7561 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7562
7563         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7564         & co.
7565
7566 2010-10-14  Bruno Haible  <bruno@clisp.org>
7567
7568         vasnprintf: Don't set errno to 0.
7569         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7570         block that sets it to 0.
7571         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7572
7573 2010-10-14  Bruno Haible  <bruno@clisp.org>
7574
7575         socketlib: Fix.
7576         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7577         gl_PREREQ_SYS_H_WINSOCK2.
7578         Reported by Ian Beckwith <ianb@erislabs.net>.
7579
7580 2010-10-13  Jim Meyering  <meyering@redhat.com>
7581
7582         test-select-stdin.c: avoid warn_unused_result warnings
7583         * tests/test-select-stdin.c: Include "macros.h".
7584         ASSERT that read and fflush succeed.
7585
7586 2010-10-13  Jim Meyering  <meyering@redhat.com>
7587
7588         git-version-gen: do require git-VC'd files in cwd
7589         * build-aux/git-version-gen: Reject a git version string
7590         if there are no commits associated with the current directory.
7591         This avoids an unlikely false-positive (unrelated dir whose parent
7592         repository also contains a tag matching v*), as pointed out
7593         by Giuseppe Scrivano in
7594         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7595
7596 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7597
7598         argv-iter: omit nonconforming declaration
7599         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
7600         enum arg_iter_err declaration, which doesn't conform to C99.
7601         Solaris 10 cc warns about this.
7602
7603 2010-10-13  Eric Blake  <eblake@redhat.com>
7604
7605         termios: fix compilation on mingw
7606         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
7607         (gl_TERMIOS_H): Adjust it on mingw.
7608         * modules/termios (Makefile.am): Substitute new key.
7609         * lib/termios.in.h (includes): Make include_next conditional.
7610         * doc/posix-headers/termios.texi (termios.h): Update
7611         documentation.
7612         Reported by Daniel P. Berrange.
7613
7614 2010-10-13  Jim Meyering  <meyering@redhat.com>
7615
7616         git-version-gen: don't require that .git/ be in the current dir
7617         * build-aux/git-version-gen: Adjust this script so that it works
7618         when run from any working directory beneath the top-level .git/-
7619         containing directory.  Inspired by a patch from Giuseppe Scrivano,
7620         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
7621
7622         test-select: avoid warn_unused_result warnings
7623         * tests/test-select.c: Include "macros.h".
7624         ASSERT that each call to read, write, and pipe succeeds.
7625         While not technically required, also check each "close".
7626         * modules/select-tests (Files): Add tests/macros.h.
7627
7628         test-symlinkat: remove declaration of unused local
7629         * tests/test-symlinkat.c (main): Remove unused local, "buf".
7630
7631         test-inttostr: avoid shadowing warnings
7632         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
7633         and use malloc rather than the stack for the same reason as
7634         mentioned in the comment justifying the other allocation.
7635
7636 2010-10-11  Bruno Haible  <bruno@clisp.org>
7637
7638         stdlib: Allow multiple gnulib generated replacements to coexist.
7639         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
7640         Reported by Sam Steingold <sds@gnu.org>.
7641
7642 2010-10-11  Jim Meyering  <meyering@redhat.com>
7643
7644         fix a documentation typo
7645         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
7646
7647 2010-10-11  Eric Blake  <eblake@redhat.com>
7648
7649         futimens: work around Solaris 11 bug
7650         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
7651         * tests/test-futimens.h (test_futimens): Enhance, rather than
7652         weaken test.
7653         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7654
7655 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7656
7657         Indentation.
7658         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
7659         higher-level operators more to the left.
7660
7661 2010-10-11  Jim Meyering  <meyering@redhat.com>
7662
7663         test-futimens: avoid unwarranted test failure on Solaris 5.11
7664         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
7665         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
7666         because it tries to dereference the NULL name argument.
7667
7668 2010-10-11  Bruno Haible  <bruno@clisp.org>
7669
7670         Indentation.
7671         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
7672         indentation.
7673
7674 2010-10-11  Jim Meyering  <meyering@redhat.com>
7675
7676         spawn.in.h: make indentation consistent with parentheses
7677         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
7678         Make indentation consistent with parentheses.
7679
7680 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
7681
7682         Fix mismatched parens in previous commit
7683         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
7684         parens.
7685
7686 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7687
7688         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
7689
7690         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
7691         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
7692         * lib/malloca.c: Include "verify.h".
7693         (verify1): Remove, replacing with a verify call.
7694         * lib/relocwrapper.c (verify1): Likewise.
7695         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
7696         Likewise.
7697         * modules/malloca (Depends-on): Add 'verify'.
7698         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
7699         * modules/vasnprintf (Depends-on): Add 'verify'.
7700         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7701         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7702         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7703         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7704         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7705         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7706         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7707
7708         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
7709
7710         Formerly the style was sometimes 2*X - 1, because the C standard
7711         was wrongly thought to disallow ?: in integral constant expressions.
7712         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
7713         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
7714         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7715         * lib/stdint.in.h (_verify_intmax_size): Likewise.
7716         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
7717         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
7718         verify that time_t cannot be floating.
7719
7720 2010-10-08  Eric Blake  <eblake@redhat.com>
7721
7722         time: enforce recent POSIX ruling that time_t is integral
7723         * lib/time.in.h (__time_t_must_be_integral): Detect any
7724         problematic systems, allowing the rest of gnulib to assume POSIX.
7725
7726 2010-10-08  Jim Meyering  <meyering@redhat.com>
7727
7728         fdopendir: fix a bug on systems lacking openat and /proc support
7729         OpenBSD 4.7 is one such system.  The most noticeable effect was
7730         failure of any application making nontrivial use of fts: rm, du,
7731         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
7732           ./rm: traversal failed: `a': Bad file descriptor
7733         Debugging that, you see that even though FD 6 was closed just
7734         prior to the opendir call in fd_clone_opendir, its resulting
7735         dir->dd_fd was 8, rather than the expected value of 6:
7736
7737         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
7738         93                close (fd);
7739         (gdb) n
7740         94                dir = fd_clone_opendir (dupfd);
7741         (gdb) n
7742         95                saved_errno = errno;
7743         (gdb) p dir->dd_fd
7744         $11 = 8
7745
7746         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
7747         The problem is that on OpenBSD, fd_clone_opendir has to resort
7748         to using the old-style save/restore CWD mechanism, due to its
7749         lack of openat/proc support, and *that* would steal the FD (6)
7750         that opendir was supposed to use.
7751
7752         The fix is to squirrel away the desired FD so that save_cwd uses a
7753         different one, and then free the dest FD right before calling opendir.
7754         That guarantees opendir will use the required file descriptor.
7755
7756         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
7757
7758 2010-10-08  Bruno Haible  <bruno@clisp.org>
7759
7760         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
7761         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
7762
7763 2010-10-08  Bruno Haible  <bruno@clisp.org>
7764
7765         nanosleep: Make replacement POSIX compliant.
7766         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
7767         is out of range.
7768         Reported by Jim Meyering.
7769
7770 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7771
7772         bootstrap: add hook for altering gnulib.mk, for Bison
7773         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
7774         the Bison bootstrapping process can rewrite file names and variables
7775         in this file before later parts of 'bootstrap' use the file.
7776         Bison wants to include lib/gnulib.mk from the top-level makefile,
7777         so it needs the file names in this file to be relative to the top
7778         level, not relative to lib; plus it needs variable names to be
7779         rewritten.
7780         (slurp): Use the new function.
7781
7782         bootstrap: reformat for readability
7783         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
7784
7785 2010-10-08  Eric Blake  <eblake@redhat.com>
7786
7787         docs: update cygwin progress
7788         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
7789         1.7.7.
7790         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
7791         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
7792         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
7793         * doc/posix-functions/carg.texi (carg): Likewise.
7794         * doc/posix-functions/cargf.texi (cargf): Likewise.
7795         * doc/posix-functions/casin.texi (casin): Likewise.
7796         * doc/posix-functions/casinf.texi (casinf): Likewise.
7797         * doc/posix-functions/casinh.texi (casinh): Likewise.
7798         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
7799         * doc/posix-functions/catan.texi (catan): Likewise.
7800         * doc/posix-functions/catanf.texi (catanf): Likewise.
7801         * doc/posix-functions/catanh.texi (catanh): Likewise.
7802         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
7803         * doc/posix-functions/ccos.texi (ccos): Likewise.
7804         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
7805         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
7806         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
7807         * doc/posix-functions/cexp.texi (cexp): Likewise.
7808         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
7809         * doc/posix-functions/cimag.texi (cimag): Likewise.
7810         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
7811         * doc/posix-functions/clog.texi (clog): Likewise.
7812         * doc/posix-functions/clogf.texi (clogf): Likewise.
7813         * doc/posix-functions/conj.texi (conj): Likewise.
7814         * doc/posix-functions/conjf.texi (conjf): Likewise.
7815         * doc/posix-functions/cpow.texi (cpow): Likewise.
7816         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
7817         * doc/posix-functions/cproj.texi (cproj): Likewise.
7818         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
7819         * doc/posix-functions/creal.texi (creal): Likewise.
7820         * doc/posix-functions/crealf.texi (crealf): Likewise.
7821         * doc/posix-functions/csin.texi (csin): Likewise.
7822         * doc/posix-functions/csinf.texi (csinf): Likewise.
7823         * doc/posix-functions/csinh.texi (csinh): Likewise.
7824         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
7825         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
7826         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
7827         * doc/posix-functions/ctan.texi (ctan): Likewise.
7828         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
7829         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
7830         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
7831         * doc/posix-headers/complex.texi (complex.h): Likewise.
7832
7833 2010-10-07  Jim Meyering  <meyering@redhat.com>
7834
7835         parse-datetime: avoid compilation failure on OpenBSD 4.7
7836         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
7837         This works around a compilation failure on OpenBSD 4.7:
7838         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
7839
7840 2010-10-07  Eric Blake  <eblake@redhat.com>
7841
7842         docs: update cygwin progress
7843         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
7844         1.7.6.
7845         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7846         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
7847         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
7848         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
7849         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
7850         Likewise.
7851         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
7852         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
7853         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
7854         Likewise.
7855         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
7856         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
7857         Likewise.
7858         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
7859         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
7860         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
7861         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
7862         Likewise.
7863         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
7864         Likewise.
7865         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
7866
7867         docs: update parse-datetime history
7868         * doc/parse-datetime.texi (Authors of parse_datetime): Better
7869         documentation of this function's history and alternatives.
7870
7871         cygwin: use more robust version check
7872         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
7873         exclude an eventual cygwin 1.9.1.
7874         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7876         (gl_FUNC_STRCASESTR): Likewise.
7877         Reported by Bruno Haible.
7878
7879 2010-10-06  Bruno Haible  <bruno@clisp.org>
7880
7881         string, sys_select: Avoid #including large headers unless necessary.
7882         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
7883         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
7884         OSF/1, BeOS, Haiku.
7885         Reported by Jim Meyering.
7886
7887 2010-10-05  Eric Blake  <eblake@redhat.com>
7888
7889         memmem, strstr, strcasestr: fix bug with long periodic needle
7890         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
7891         periodic needle having false positive.
7892         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
7893         and cygwin 1.7.7.
7894         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
7895         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
7896         (gl_FUNC_STRCASESTR): Likewise.
7897         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7898         * tests/test-memmem.c (main): Expose the bug.
7899         * tests/test-strcasestr.c (main): Likewise.
7900         * tests/test-strstr.c (main): Likewise.
7901         * tests/test-c-strcasestr.c (main): Likewise.
7902         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
7903         * doc/posix-functions/strstr.texi (strstr): Likewise.
7904         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7905         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
7906
7907 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7908
7909         parse-datetime: do some more renaming
7910         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
7911         parse_datetime, not get_date.  Mention the renaming.
7912         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
7913         in comments.
7914         * m4/bison.m4: Likewise.
7915
7916 2010-10-05  Eric Blake  <eblake@redhat.com>
7917
7918         parse-datetime: better name than get_date
7919         * NEWS: Reword the deprecation notice.
7920         * modules/get_date: Rename to modules/parse-datetime.
7921         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
7922         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
7923         * lib/get_date.y: Rename to lib/parse-datetime.y.
7924         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
7925         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
7926         * doc/getdate.texi: Provide fallback wrapper.
7927         * lib/getdate.h: Move guts, and wrap...
7928         * lib/parse-datetime.h: ...new file.
7929         * lib/parse-datetime.y (get_date): Rename...
7930         (parse_datetime): ...to this.
7931         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
7932         (gl_PARSE_DATETIME): ...to this.
7933         * doc/posix-functions/getdate.texi (get_date): Provide fallback
7934         documentation.
7935         * modules/getdate (Files): Provide fallback docs and header.
7936         (Notice, Depends-on): Update references.
7937         * tests/test-parse-datetime.c: Likewise.
7938         * DEPENDENCIES: Likewise.
7939         * MODULES.html.sh (Date and time <time.h>): Likewise.
7940         * doc/parse-datetime.texi (Date input formats)
7941         (Authors of parse_datetime): Likewise.
7942         * modules/parse-datetime (Files, configure.ac, Makefile.am)
7943         (Include): Likewise.
7944         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
7945         * gnulib-tool: Likewise.
7946         * m4/bison.m4 (gl_BISON): Likewise.
7947         Suggested by Bruno Haible.
7948
7949 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7950
7951         more ports to Solaris tr, which needs [] around ranges
7952         * gnulib-tool: Solaris tr needs [] around ranges.
7953         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7954         * tests/test-pipe-filter-gi1.c (main): Likewise.
7955         * tests/test-pipe-filter-ii1.c (main): Likewise.
7956
7957 2010-10-05  Eric Blake  <eblake@redhat.com>
7958
7959         bootstrap: fix Solaris regression
7960         * build-aux/bootstrap (check_versions): Solaris tr still needs []
7961         around ranges.
7962         Reported by Pádraig Brady.
7963
7964         bootstrap: work with pkg-config
7965         * build-aux/bootstrap (check_versions): Also transliterate - in
7966         prerequisite name.
7967         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
7968         prerequisites that were already found, to avoid confusion.
7969         Reported by Justin Clift.
7970
7971         faccessat: remove unused wrappers
7972         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
7973         presence of these wrappers dragged in -lgen on Solaris.
7974         Reported by Clemens Brogi; fix suggested by Paul Eggert.
7975
7976 2010-10-05  Jim Meyering  <meyering@redhat.com>
7977
7978         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
7979         * Makefile (sc_pragma_columns): New syntax-check rule.
7980
7981 2010-10-04  Bruno Haible  <bruno@clisp.org>
7982
7983         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
7984         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
7985         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
7986         Reported by Bruce Korb and Eric Blake.
7987
7988 2010-10-04  Bruno Haible  <bruno@clisp.org>
7989
7990         threadlib: Make option --with-libpth-prefix work.
7991         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
7992         use $LIBPTH, not just -lpth.
7993
7994 2010-10-04  Bruno Haible  <bruno@clisp.org>
7995
7996         Avoid line length limitation from HP NonStop system header files.
7997         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
7998         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
7999         * lib/ctype.in.h: Likewise.
8000         * lib/dirent.in.h: Likewise.
8001         * lib/errno.in.h: Likewise.
8002         * lib/fcntl.in.h: Likewise.
8003         * lib/float.in.h: Likewise.
8004         * lib/getopt.in.h: Likewise.
8005         * lib/iconv.in.h: Likewise.
8006         * lib/inttypes.in.h: Likewise.
8007         * lib/langinfo.in.h: Likewise.
8008         * lib/locale.in.h: Likewise.
8009         * lib/math.in.h: Likewise.
8010         * lib/netdb.in.h: Likewise.
8011         * lib/netinet_in.in.h: Likewise.
8012         * lib/poll.in.h: Likewise.
8013         * lib/pthread.in.h: Likewise.
8014         * lib/pty.in.h: Likewise.
8015         * lib/sched.in.h: Likewise.
8016         * lib/se-selinux.in.h: Likewise.
8017         * lib/search.in.h: Likewise.
8018         * lib/signal.in.h: Likewise.
8019         * lib/spawn.in.h: Likewise.
8020         * lib/stdarg.in.h: Likewise.
8021         * lib/stddef.in.h: Likewise.
8022         * lib/stdint.in.h: Likewise.
8023         * lib/stdio.in.h: Likewise.
8024         * lib/stdlib.in.h: Likewise.
8025         * lib/string.in.h: Likewise.
8026         * lib/strings.in.h: Likewise.
8027         * lib/sys_file.in.h: Likewise.
8028         * lib/sys_ioctl.in.h: Likewise.
8029         * lib/sys_select.in.h: Likewise.
8030         * lib/sys_socket.in.h: Likewise.
8031         * lib/sys_stat.in.h: Likewise.
8032         * lib/sys_time.in.h: Likewise.
8033         * lib/sys_times.in.h: Likewise.
8034         * lib/sys_utsname.in.h: Likewise.
8035         * lib/sys_wait.in.h: Likewise.
8036         * lib/sysexits.in.h: Likewise.
8037         * lib/termios.in.h: Likewise.
8038         * lib/time.in.h: Likewise.
8039         * lib/unistd.in.h: Likewise.
8040         * lib/wchar.in.h: Likewise.
8041         * lib/wctype.in.h: Likewise.
8042         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
8043         * modules/ctype (Makefile.am): Likewise.
8044         * modules/dirent (Makefile.am): Likewise.
8045         * modules/errno (Makefile.am): Likewise.
8046         * modules/fcntl-h (Makefile.am): Likewise.
8047         * modules/float (Makefile.am): Likewise.
8048         * modules/getopt-posix (Makefile.am): Likewise.
8049         * modules/iconv-h (Makefile.am): Likewise.
8050         * modules/inttypes (Makefile.am): Likewise.
8051         * modules/langinfo (Makefile.am): Likewise.
8052         * modules/locale (Makefile.am): Likewise.
8053         * modules/math (Makefile.am): Likewise.
8054         * modules/netdb (Makefile.am): Likewise.
8055         * modules/netinet_in (Makefile.am): Likewise.
8056         * modules/poll-h (Makefile.am): Likewise.
8057         * modules/pthread (Makefile.am): Likewise.
8058         * modules/pty (Makefile.am): Likewise.
8059         * modules/sched (Makefile.am): Likewise.
8060         * modules/search (Makefile.am): Likewise.
8061         * modules/selinux-h (Makefile.am): Likewise.
8062         * modules/signal (Makefile.am): Likewise.
8063         * modules/spawn (Makefile.am): Likewise.
8064         * modules/stdarg (Makefile.am): Likewise.
8065         * modules/stddef (Makefile.am): Likewise.
8066         * modules/stdint (Makefile.am): Likewise.
8067         * modules/stdio (Makefile.am): Likewise.
8068         * modules/stdlib (Makefile.am): Likewise.
8069         * modules/string (Makefile.am): Likewise.
8070         * modules/strings (Makefile.am): Likewise.
8071         * modules/sys_file (Makefile.am): Likewise.
8072         * modules/sys_ioctl (Makefile.am): Likewise.
8073         * modules/sys_select (Makefile.am): Likewise.
8074         * modules/sys_socket (Makefile.am): Likewise.
8075         * modules/sys_stat (Makefile.am): Likewise.
8076         * modules/sys_time (Makefile.am): Likewise.
8077         * modules/sys_times (Makefile.am): Likewise.
8078         * modules/sys_utsname (Makefile.am): Likewise.
8079         * modules/sys_wait (Makefile.am): Likewise.
8080         * modules/sysexits (Makefile.am): Likewise.
8081         * modules/termios (Makefile.am): Likewise.
8082         * modules/time (Makefile.am): Likewise.
8083         * modules/unistd (Makefile.am): Likewise.
8084         * modules/wchar (Makefile.am): Likewise.
8085         * modules/wctype (Makefile.am): Likewise.
8086
8087 2010-10-04  Bruno Haible  <bruno@clisp.org>
8088
8089         read-file tests: Avoid a test failure on NonStop Kernel.
8090         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
8091         a regular file.
8092         Reported by Joachim Schmitz <schmitz@hp.com>.
8093
8094 2010-10-03  Bruno Haible  <bruno@clisp.org>
8095
8096         gnulib-tool: Fixes for --create-testdir with --libtool.
8097         * gnulib-tool (func_get_automake_snippet): Don't augment
8098         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
8099         an executable.
8100         (func_create_testdir): Handle module 'alloca' like func_import.
8101         Reported by Bruce Korb <bruce.korb@gmail.com>.
8102
8103 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8104
8105         Avoid some lines longer than 80 characters.
8106         * lib/stdint.in.h: Break long comment lines.
8107         * lib/math.in.h: Likewise.
8108         (_GL_NUM_UINT_WORDS): New macro, for readability.
8109         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
8110         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
8111         * lib/stdlib.in.h: Likewise.
8112         * lib/spawn.in.h: Likewise.
8113         * lib/sys_socket.in.h: Update an URL.
8114         * lib/sys_stat.in.h: Break long line.
8115
8116 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
8117
8118         Improve pmccabe2html.
8119         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
8120         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
8121         when the sources change. Remove the line in the HTML about "Used
8122         ranges" (which implied that there might be other unused ranges),
8123         rename "Resume" to "Summary" (easier to understand for more users).
8124         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
8125         styles, and some unnecessary blank lines.
8126
8127 2010-10-03  Bruno Haible  <bruno@clisp.org>
8128             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8129
8130         acl: Add support for ACLs on NonStop Kernel.
8131         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
8132         Check whether the function aclsort() exists.
8133         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8134         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
8135         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8136         (acl_nontrivial [HAVE_ACLSORT]: New function.
8137         (file_has_acl): Implement for NonStop Kernel.
8138         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8139         (qset_acl): Implement for NonStop Kernel.
8140         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
8141         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8142         (main): Implement for NonStop Kernel.
8143         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
8144         Kernel. Handle this flavor.
8145         * tests/test-set-mode-acl.sh: Likewise.
8146         * tests/test-copy-acl.sh: Likewise.
8147         * tests/test-copy-file.sh: Likewise.
8148
8149 2010-10-03  Bruno Haible  <bruno@clisp.org>
8150
8151         Info about ACLs on NonStop Kernel.
8152         * doc/acl-resources.txt: Add info about NonStop Kernel.
8153         References by Joachim Schmitz <schmitz@hp.com>.
8154
8155 2010-10-02  Bruno Haible  <bruno@clisp.org>
8156
8157         Define missing EDQUOT on NonStop Kernel.
8158         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8159         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8160         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8161         missing.
8162         * doc/posix-headers/errno.texi: Mention the NSK bug.
8163         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8164         Reported by Joachim Schmitz <schmitz@hp.com>.
8165
8166 2010-10-02  Bruno Haible  <bruno@clisp.org>
8167
8168         Update doc for POSIX:2008.
8169         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8170         Update URL of POSIX specification.
8171
8172 2010-10-02  Bruno Haible  <bruno@clisp.org>
8173
8174         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8175         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8176         from gnulib, not from Automake.
8177
8178 2010-10-02  Bruno Haible  <bruno@clisp.org>
8179
8180         New module 'system-posix'.
8181         * modules/system-posix: New file.
8182         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8183         module is present.
8184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8185         GNULIB_SYSTEM_POSIX.
8186         * modules/stdlib (Depends-on): Remove sys_wait.
8187         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8188         * doc/posix-functions/system.texi: Mention the new module.
8189         * doc/posix-headers/stdlib.texi: Likewise.
8190         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8191         define test_sys_wait_macros to a no-op.
8192         Reported by Sam Steingold <sds@gnu.org>.
8193
8194 2010-09-30  Bruno Haible  <bruno@clisp.org>
8195
8196         More renaming from 'getdate' to 'get_date'.
8197         * doc/get_date.texi: Renamed from doc/getdate.texi.
8198         * modules/get_date (Files): Update.
8199         * MODULES.html.sh (Date and time <time.h>): Update.
8200         * DEPENDENCIES: Update.
8201         * gnulib-tool: Update comment.
8202         * m4/bison.m4 (gl_BISON): Likewise.
8203         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8204
8205 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8206
8207         bootstrap: support ACLOCAL_FLAGS during aclocal
8208         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8209         can add additional -I dir for third-party .m4 files.
8210
8211 2010-09-30  Eric Blake  <eblake@redhat.com>
8212
8213         bootstrap: use glibtoolize on MacOS
8214         * build-aux/bootstrap (check_versions): Convert libtool into
8215         libtoolize.
8216         (tool search): Move libtool check earlier, and look for
8217         glibtoolize for MacOS.
8218         (gnulib_tool_options): Auto-add --libtool when appropriate.
8219         Reported by Justin Clift.
8220
8221         poll: fix typo that broke test on MacOS
8222         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8223         Reported by Justin Clift.
8224
8225         getdate: rename to get_date
8226         Note: getdate.h is not renamed, to minimize client impact.
8227         * modules/getdate: Mark obsolete.  Move old contents...
8228         * modules/get_date: ...to new module name.
8229         * modules/getdate-tests: Move...
8230         * modules/get_date-tests: ...here.
8231         * m4/getdate.m4: Move...
8232         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8233         * lib/getdate.y: Move...
8234         * lib/get_date.y: ...here.
8235         * tests/test-getdate.c: Move...
8236         * tests/test-get_date.c: ...here.
8237         * doc/posix-functions/getdate.texi (getdate): Update name.
8238         * NEWS: Mention the change.
8239
8240 2010-09-29  Bruno Haible  <bruno@clisp.org>
8241
8242         Separate the module 'waitpid' from the module 'sys_wait'.
8243         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8244         present.
8245         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8246         gl_MODULE_INDICATOR_FOR_TESTS.
8247         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8248         * modules/sys_wait (Depends-on): Remove waitpid.
8249         (Makefile.am): Substitute GNULIB_WAITPID.
8250         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8251         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8252         signature only if the 'waitpid' module is present.
8253         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8254         * NEWS: Mention the change.
8255         * modules/grantpt (Depends-on): Add waitpid.
8256         * modules/wait-process (Depends-on): Likewise.
8257
8258 2010-09-29  Bruno Haible  <bruno@clisp.org>
8259
8260         More tests for module 'sys_wait'.
8261         * modules/sys_wait-c++-tests: New file.
8262         * tests/test-sys_wait-c++.cc: New file.
8263         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8264         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8265
8266 2010-09-29  Bruno Haible  <bruno@clisp.org>
8267
8268         New module 'waitpid'.
8269         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8270         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8271         Don't include <process.h>.
8272         (waitpid): Declare only, using modern idiom.
8273         * m4/waitpid.m4: New file.
8274         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8275         * modules/waitpid: New file.
8276         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8277         (Makefile.am): Update.
8278         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8279
8280 2010-09-28  Bruno Haible  <bruno@clisp.org>
8281
8282         poll: Assume ANSI C.
8283         * lib/poll.c (poll): Use an ANSI C declaration.
8284
8285 2010-09-28  Bruno Haible  <bruno@clisp.org>
8286
8287         poll-h: Create poll.h on all platforms.
8288         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8289         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8290         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8291         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8292         (gl_REPLACE_POLL_H): Don't set POLL_H.
8293         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8294         * modules/poll-h (Depends-on): Add include_next.
8295         (Makefile.am): Create poll.h unconditionally. Substitute also
8296         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8297
8298 2010-09-28  Bruno Haible  <bruno@clisp.org>
8299
8300         Tests for module 'poll-h'.
8301         * modules/poll-h-c++-tests: New file.
8302         * tests/test-poll-h-c++.cc: New file.
8303
8304         Tests for module 'poll-h'.
8305         * modules/poll-h-tests: New file.
8306         * tests/test-poll-h.c: New file.
8307
8308 2010-09-28  Bruno Haible  <bruno@clisp.org>
8309
8310         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8311         * modules/poll-h (Depends-on): Add 'extensions'.
8312
8313 2010-09-28  Bruno Haible  <bruno@clisp.org>
8314
8315         New module 'poll-h'.
8316         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8317         (poll): Use modern idiom.
8318         * modules/poll-h: New file.
8319         * modules/poll (Files): Remove lib/poll.in.h.
8320         (Depends-on): Add poll-h.
8321         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8322         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8323         * m4/poll_h.m4: New file.
8324         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8325         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8326         and invoke gl_REPLACE_POLL_H.
8327         * lib/poll.c: Use common idiom.
8328         * tests/test-poll.c: Likewise.
8329         * doc/posix-headers/poll.texi: Mention the poll-h module.
8330         Suggested by Eric Blake.
8331
8332 2010-09-26  Bruno Haible  <bruno@clisp.org>
8333
8334         sys_wait: Implement WSTOPSIG.
8335         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8336         Reported by Simon Josefsson.
8337
8338 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8339
8340         stdlib, sys_wait: Avoid compilation error on mingw.
8341         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8342
8343 2010-09-26  Bruno Haible  <bruno@clisp.org>
8344
8345         stdlib tests: Avoid code duplication.
8346         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8347         * modules/sys_wait-tests (Files): Likewise.
8348         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8349         * tests/test-stdlib.c: Include test-sys_wait.h.
8350         (main): Invoke test_sys_wait_macros.
8351         * tests/test-sys_wait.c: Include test-sys_wait.h.
8352         (main): Invoke test_sys_wait_macros.
8353
8354 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8355
8356         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8357         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8358         sure Windows sockets are working before calling getaddrinfo.
8359         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8360         * doc/gnulib.texi (Windows sockets): Fix typo.
8361
8362 2010-09-25  Bruno Haible  <bruno@clisp.org>
8363
8364         Tests for module 'regex-quote'.
8365         * modules/regex-quote-tests: New file.
8366         * tests/test-regex-quote.c: New file.
8367
8368         New module 'regex-quote'.
8369         * lib/regex-quote.h: New file.
8370         * lib/regex-quote.c: New file.
8371         * modules/regex-quote: New file.
8372         Suggested by Reuben Thomas <rrt@sc3d.org>.
8373
8374 2010-09-24  Bruno Haible  <bruno@clisp.org>
8375
8376         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8377         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8378
8379 2010-09-23  Bruno Haible  <bruno@clisp.org>
8380
8381         setenv: Relax license.
8382         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8383         Blake.
8384         Requested by Eric Blake.
8385
8386 2010-09-22  Bruno Haible  <bruno@clisp.org>
8387
8388         termios: Relax license.
8389         * modules/termios (License): Change to LGPLv2+.
8390         Requested by Eric Blake.
8391
8392 2010-09-22  Bruno Haible  <bruno@clisp.org>
8393
8394         threadlib: Allow the package to change the default to 'no'.
8395         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8396         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8397         Reported by Paul Eggert.
8398
8399 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8400             Bruno Haible  <bruno@clisp.org>
8401
8402         Fix endless loop in mbmemcasecoll.
8403         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8404         byte.
8405         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8406
8407 2010-09-22  Bruno Haible  <bruno@clisp.org>
8408
8409         Tests for module 'memcoll'.
8410         * modules/memcoll-tests: New file.
8411         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8412
8413         memcoll, xmemcoll: Clarify size vs. length.
8414         * modules/memcoll.c (memcoll0): Clarify specification.
8415         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8416         passed to collate_error.
8417
8418 2010-09-22  Bruno Haible  <bruno@clisp.org>
8419
8420         Tests for module 'memcasecmp'.
8421         * modules/memcasecmp-tests: New file.
8422         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8423
8424 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8425
8426         * lib/pthread.in.h: Add split double-inclusion guard, and include
8427         system <pthread.h> if there is one.  Use @@-style as in other
8428         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8429         pthread.h doesn't.
8430         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8431         (pthread_mutexattr_settype, pthread_mutex_trylock):
8432         New static inline functions, if there's no system <pthread.h>.
8433         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8434         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8435         Approximate with mutexes if the system lacks spinlocks, as in
8436         MacOS.
8437         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8438         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8439         @@-style.  Check for spinlocks separately.
8440         (gl_PTHREAD_DEFAULTS): New macro.
8441         * modules/pthread: Redo to use a more typical style for in.h files.
8442
8443 2010-09-21  Eric Blake  <eblake@redhat.com>
8444
8445         net_if: enhance tests
8446         * tests/test-net_if.c (main): Move signature checks earlier.
8447         Print failures to stderr.
8448         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8449         Document the bug that we do not yet fix.
8450
8451 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8452
8453         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8454         about gnulib, not GSS.
8455
8456 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8457
8458         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8459         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8460         for Emacs.
8461         * build-aux/pmccabe2html: Make Makefile.am example code more
8462         cut-and-paste friendly.
8463
8464 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8465
8466         * tests/test-net_if.c: New file.
8467         * modules/net_if-tests: New file.
8468
8469 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8470
8471         pthread: add pthread_spin_destroy
8472         * lib/pthread.in.h (pthread_spin_destroy): New function.
8473
8474 2010-09-19  Bruno Haible  <bruno@clisp.org>
8475
8476         gnulib-tool: Fix --help output.
8477         * gnulib-tool (func_usage): Fix help message.
8478         Reported by Reuben Thomas <rrt@sc3d.org>.
8479
8480 2010-09-18  Jim Meyering  <meyering@redhat.com>
8481
8482         maint.mk: avoid unexpanded \n in two diagnostics
8483         * top/maint.mk (sc_prohibit_always_true_header_tests):
8484         Don't use a literal \n in a halt=... assignment.  It would not be
8485         expanded, and the two \n bytes would appear in the diagnostic output
8486         rather than the desired newline.  Use halt=$$(printf ... instead.
8487         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8488
8489 2010-09-18  Bruno Haible  <bruno@clisp.org>
8490
8491         netinet_in: Doc tweak.
8492         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8493         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8494
8495 2010-09-18  Jim Meyering  <meyering@redhat.com>
8496
8497         init.sh: correct an outdated comment
8498         * tests/init.sh (create_exe_shims_):  s/function/alias/
8499
8500         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8501         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8502         a file named "*.exe" is removed between the glob expansion and the
8503         processing of that oddly named file.
8504
8505 2010-09-17  Eric Blake  <eblake@redhat.com>
8506
8507         mirbsd: add some more support
8508         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8509         in BSD family.
8510         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8511         devices as OpenBSD.
8512         * m4/host-os.m4 (mirbsd): Add MirBSD.
8513
8514         tests: fix unportable assumption on sys/wait.h
8515         * tests/test-sys_wait.c (main): Relax test.
8516         * tests/test-stdlib.c (main): Likewise.
8517
8518         init.sh: accomodate directory with no .exes
8519         * tests/init.sh: Accomodate directory containing only scripts.
8520
8521         tests: avoid compiler warning
8522         * tests/test-stdlib.c (main): Use the variable.
8523
8524         fdutimens, fdutimensat: update signature, again
8525         * lib/utimens.h (gl_futimens): Delete, and move signature...
8526         (fdutimens): ...here.
8527         (fdutimensat): Rearrange signature.
8528         (lutimensat): Rename variable for clarity.
8529         * lib/fdutimensat.c (fdutimensat): Update signature.
8530         * lib/utimens.c (fdutimens): Likewise.
8531         (gl_futimens): Delete.
8532         (utimens, lutimens): Update callers.
8533         * lib/futimens.c (futimens): Likewise.
8534         * tests/test-fdutimensat.c: Likewise.
8535         * tests/test-utimens.c: Likewise.
8536         * tests/test-futimens.h: Update comment.
8537         * NEWS: Mention this.
8538         Suggested by Paul Eggert.
8539
8540 2010-09-17  Bruno Haible  <bruno@clisp.org>
8541
8542         Take over the maintenance of some older macros from Autoconf.
8543         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8544         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8545         GNU Autoconf.
8546         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8547         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8548
8549 2010-09-17  Eric Blake  <eblake@redhat.com>
8550
8551         fdutimensat: drop atflag validation
8552         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8553         with valid fd, to close a race scenario where futimens is
8554         unsupported and FILE was replaced by a symlink.
8555         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8556         accordingly.
8557         Suggested by Paul Eggert.
8558
8559 2010-09-16  Bruno Haible  <bruno@clisp.org>
8560
8561         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8562         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8563
8564 2010-09-16  Bruno Haible  <bruno@clisp.org>
8565
8566         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8567         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8568         login_tty exists.
8569         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8570
8571 2010-09-16  Bruno Haible  <bruno@clisp.org>
8572
8573         login_tty: Make the replacement code work on BSD systems.
8574         * lib/login_tty.c: Include <sys/ioctl.h>.
8575         (login_tty): Use ioctl TIOCSCTTY when available.
8576         * modules/login_tty (Depends-on): Add sys_ioctl.
8577         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8578
8579 2010-09-16  Bruno Haible  <bruno@clisp.org>
8580
8581         login_tty: Stricter unit test.
8582         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8583         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8584         and tcgetsid() after login_tty.
8585         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8586
8587 2010-09-16  Bruno Haible  <bruno@clisp.org>
8588
8589         New module 'tcgetsid'.
8590         * lib/tcgetsid.c: New file.
8591         * m4/tcgetsid.m4: New file.
8592         * modules/tcgetsid: New file.
8593         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8594         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8595         GNULIB_TCGETSID, HAVE_TCGETSID.
8596         * lib/termios.in.h: Include <sys/types.h>.
8597         (tcgetsid): New declaration.
8598         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
8599         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
8600         * doc/posix-functions/tcgetsid.texi: Mention the new module.
8601         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
8602
8603 2010-09-16  Bruno Haible  <bruno@clisp.org>
8604
8605         Tests for module 'termios'.
8606         * modules/termios-c++-tests: New file.
8607         * modules/termios-tests: New file.
8608         * tests/test-termios-c++.cc: New file.
8609         * tests/test-termios.c: New file.
8610
8611         New module 'termios'.
8612         * modules/termios: New file.
8613         * lib/termios.in.h: New file.
8614         * m4/termios_h.m4: New file.
8615         * doc/posix-headers/termios.texi: Mention the new module.
8616
8617 2010-09-16  Eric Blake  <eblake@redhat.com>
8618
8619         fdutimensat: add an atflag parameter
8620         * lib/fdutimensat.c (fdutimensat): Add new parameter.
8621         * lib/utimens.h (fdutimensat): Update prototype.
8622         * tests/test-fdutimensat.c: Adjust test to match.
8623         * NEWS: Document the change.
8624         Suggested by Paul Eggert.
8625
8626 2010-09-16  Bruno Haible  <bruno@clisp.org>
8627
8628         Fix typos in comments.
8629         * lib/striconveh.h: Fix typo in comment.
8630         * lib/login_tty.c (login_tty): Likewise.
8631
8632 2010-09-15  Bruno Haible  <bruno@clisp.org>
8633
8634         stdlib: clarify MirBSD WEXITSTATUS bug
8635         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
8636         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8637
8638 2010-09-15  Eric Blake  <eblake@redhat.com>
8639
8640         stdlib: work around MirBSD WEXITSTATUS bug
8641         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
8642         * modules/stdlib (Depends-on): Add sys_wait.
8643         * tests/test-sys_wait.c (main): Enhance test.
8644         * tests/test-stdlib.c (main): Likewise.
8645         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
8646
8647         docs: mention MacOS issue with WEXITSTATUS(constant)
8648         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
8649         issue.
8650         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8651
8652         strnlen: add tests
8653         * modules/strnlen-tests: New file.
8654         * tests/test-strnlen.c: Likewise.
8655
8656 2010-09-14  Bruno Haible  <bruno@clisp.org>
8657
8658         unistr/base: Avoid link errors when module 'libunistring' is also used.
8659         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
8660         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
8661         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
8662         Declare also when HAVE_LIBUNISTRING is set.
8663         Reported by Pádraig Brady <P@draigbrady.com>.
8664
8665 2010-09-14  Eric Blake  <eblake@redhat.com>
8666
8667         test-rawmemchr: make more robust
8668         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
8669         (Depends-on, configure.ac): Add needed prerequisites to use it.
8670         * modules/memchr-tests (Files, Depends-on, configure.ac):
8671         Likewise, to avoid implicit reliance on memchr module prereqs.
8672         * tests/test-memchr.c (main): Ensure proper masking.
8673         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
8674         reads.
8675
8676         memchr: detect glibc Alpha bug
8677         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
8678         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
8679         Alpha.
8680         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
8681         * tests/test-memchr.c (main): Enhance test.
8682         Reported by Nelson H. F. Beebe.
8683
8684 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8685
8686         fts, getcwd, glob: audit for dirfd returning -1
8687         * lib/fts.c (opendir): Remove #define; no longer used.
8688         (opendirat): New arg PDIR_FD.  All callers changed.
8689         (fts_build, _opendir2): Use new opendirat to avoid the need for
8690         dirfd, or for checking whether dirfd returns a negative value.
8691         Don't use opendir; always use openat followed by fdopendir.
8692         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
8693         it.
8694         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
8695         returns -1 here.
8696         * modules/fts (Depends-on): Remove dirfd.
8697         * modules/getcwd (Depends-on): Likewise.
8698
8699 2010-09-13  Eric Blake  <eblake@redhat.com>
8700
8701         float: fix broken MirBSD header
8702         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
8703         * doc/posix-headers/float.texi (float.h): Document it.
8704
8705 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8706
8707         fts: use O_NOFOLLOW to avoid race condition when opening a directory
8708         * lib/fts.c (opendirat): New arg extra_flags.
8709         (__opendir2): Use it to avoid following symlinks when opening
8710         a directory, if symlinks are not supposed to be followed.  See
8711         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
8712
8713         fdopendir: preserve argument fd before returning
8714         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
8715         (fdopendir_with_dup, fd_clone_opendir): New static functions.
8716         (fdopendir): Use them, arranging for FD to be open to the same
8717         directory that it was when it started.  (It might be temporarily
8718         closed while fdopendir is running, so this not thread- or
8719         signal-safe.)  Be careful to do the right thing even when file
8720         descriptors are scarce and dup fails with errno == EMFILE.  See
8721         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
8722
8723 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
8724
8725         regex: Pass the system regex if its only problem is 32-bit regoff_t.
8726         * NEWS: Document change.
8727         * m4/regex.m4: Disable test for regoff_t size.
8728
8729 2010-09-13  Jim Meyering  <meyering@redhat.com>
8730
8731         fts: don't operate on an invalid file descriptor after failed dup
8732         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
8733         negative file descriptor.
8734
8735 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
8736
8737         savedir: add streamsavedir, deprecate fdsavedir
8738         * NEWS: Mention deprecation of fdsavedir.
8739         * lib/savedir.c (streamsavedir): New extern function, whose name
8740         ends in "savedir" to be consistent with the others.  This differs
8741         from savedirstream in that it doesn't close its argument.  The
8742         next version of GNU tar will use this instead of fdsavedir, to
8743         avoid some race conditions and conserve file descriptors.
8744         (savedirstream): Reimplement as a wrapper around streamsavedir.
8745         (fdsavedir): Add a comment deprecating this function.  As far as
8746         I know, only GNU tar used it, and GNU tar doesn't need it any more.
8747         * lib/savedir.h (streamsavedir): New decl.
8748         (fdsavedir): Add a comment deprecating this.
8749
8750 2010-09-10  Bruno Haible  <bruno@clisp.org>
8751
8752         langinfo: Fix last commit.
8753         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
8754         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
8755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8756
8757 2010-09-10  Bruno Haible  <bruno@clisp.org>
8758
8759         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
8760         * lib/progreloc.c (O_EXEC): Define fallback.
8761
8762 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
8763
8764         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
8765         * NEWS: Document recent changes to fcntl-h.
8766         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
8767         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
8768         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
8769         Similarly for O_SEARCH; this last was already true, but not documented.
8770         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
8771         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
8772         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
8773         Likewise.
8774         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
8775         is zero, not whether it is defined.
8776         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
8777         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
8778         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
8779
8780 2010-09-10  Bruno Haible  <bruno@clisp.org>
8781
8782         langinfo, nl_langinfo: Fix for IRIX 5.3.
8783         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
8784         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
8785         HAVE_LANGINFO_YESEXPR.
8786         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
8787         HAVE_LANGINFO_YESEXPR.
8788         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
8789         HAVE_LANGINFO_T_FMT_AMPM is 0.
8790         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
8791         HAVE_LANGINFO_YESEXPR is 0.
8792         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
8793         NOEXPR.
8794         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
8795         * doc/posix-functions/nl_langinfo.texi: Likewise.
8796         Reported by Eric Blake.
8797
8798 2010-09-10  Bruno Haible  <bruno@clisp.org>
8799
8800         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
8801         * doc/glibc-functions/login_tty.texi: Mention the include file problem
8802         on FreeBSD 8.0 and OpenBSD 4.6.
8803         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
8804         * m4/pty_h.m4 (gl_PTY_H): Likewise.
8805         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
8806         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
8807         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
8808         ac_includes_default.
8809         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8810
8811 2010-09-09  Eric Blake  <eblake@redhat.com>
8812
8813         strsignal: work around NetBSD bug
8814         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
8815         * lib/string.in.h (includes): Likewise.
8816         * doc/posix-functions/strsignal.texi (strsignal): Document the
8817         bug.
8818         Reported by Nelson H. F. Beebe.
8819
8820         gnulib-tool: work with NetBSD /bin/sh
8821         * gnulib-tool (func_cache_var, func_cache_lookup_module)
8822         (func_get_description, func_get_comment, func_get_status)
8823         (func_get_notice, func_get_applicability, func_get_filelist)
8824         (func_get_dependencies, func_get_autoconf_early_snippet)
8825         (func_get_autoconf_snippet, func_get_automake_snippet)
8826         (func_get_include_directive, func_get_link_directive)
8827         (func_get_license, func_get_maintainer, func_import): Avoid
8828         shell syntax errors from parsing syntax extensions.
8829
8830 2010-09-09  Bruno Haible  <bruno@clisp.org>
8831
8832         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8833         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
8834         a reliable way to determine whether the 'alias' command works.
8835
8836 2010-09-08  Jim Meyering  <meyering@redhat.com>
8837
8838         init.sh: penalize a set-x-impaired shell; don't disqualify it
8839         * tests/init.sh: Too many shells corrupt application stderr when
8840         you set -x, so we can't afford to disqualify them, since at least
8841         on Irix-6.5, that would disqualify all bourne shells.
8842         Instead, use a two-pass approach.
8843         On the first pass, try to find a shell that meets the stricter
8844         condition that set -x does not corrupt stderr.
8845         If no shell meets the stricter condition, retest each candidate
8846         shell, but without that extra condition.  Finally, when
8847         VERBOSE=yes is requested and set -x might cause trouble, simply
8848         issue a warning and refrain from enabling debug output.
8849
8850 2010-09-08  Eric Blake  <eblake@redhat.com>
8851
8852         unsetenv: fix OpenBSD bug
8853         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
8854         * doc/posix-functions/unsetenv.texi (unsetenv): Update
8855         documentation.
8856         Reported by Jim Meyering.
8857
8858         strtod: work around IRIX 6.5 bug
8859         * lib/strtod.c (strtod): Reparse number on shorter string if
8860         exponent parse was invalid.
8861         * tests/test-strtod.c (main): Add check for "0x1p 2".
8862         Reported by Tom G. Christensen.
8863
8864         getopt: optimize previous patch
8865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
8866         empty variable.  Speed up awk script.
8867         Reported by Paolo Bonzini.
8868
8869 2010-09-08  Jim Meyering  <meyering@redhat.com>
8870
8871         test.sh: disqualify shells for which set -x corrupts stderr
8872         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
8873         and OpenBSD 4.7.  They make it so with "set -x", environment settings
8874         appear in stderr output.  For example, this command:
8875             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
8876         prints "P=1" on those two systems:
8877
8878 2010-09-08  Bruno Haible  <bruno@clisp.org>
8879
8880         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
8881         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
8882         commands, because some shells ignore redirections when there is an
8883         error in the command lookup.
8884         Reported by Eric Blake.
8885
8886 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
8887
8888         * lib/regex.h: Fix a mention of `regex_compile' (should be
8889         `re_compile_pattern').
8890         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
8891         (re_set_registers): Correct name of parameter in comment.
8892
8893         * doc/regex.texi: Add documentation for missing syntax flags.
8894         Remove commented-out documentation of defunct syntax option
8895         RE_NO_EMPTY_ALTS.
8896         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
8897         Add documentation of re_set_registers.
8898         Document trick to re-use a pattern buffer by setting fastmap manually.
8899         Update documentation of struct re_pattern_buffer per public members.
8900         Uncomment documentation of equivalence class operators and
8901         collating symbol operators, since they are now implemented,
8902         Explain leftmost-longest matching in relation to alternatives.
8903         Tidy documentation of substring matching.
8904         Remove POSIX documentation, which is done better in
8905         glibc, and refer the reader there. Keep BSD API documentation, as
8906         that is not readily available elsewhere.
8907
8908 2010-09-07  Eric Blake  <eblake@redhat.com>
8909
8910         getopt: handle POSIXLY_CORRECT set but not exported
8911         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
8912         export state of POSIXLY_CORRECT, due to bash set -o posix.
8913         Reported by Dustin J. Mitchell.
8914
8915 2010-09-05  Bruno Haible  <bruno@clisp.org>
8916
8917         gnulib-tool: Highlight the changed options.
8918         * gnulib-tool (func_usage): Display the --import, --add-import,
8919         --remove-import explanations in bold font.
8920
8921 2010-09-06  Karl Berry  <karl@gnu.org>
8922
8923         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
8924
8925 2010-09-05  Bruno Haible  <bruno@clisp.org>
8926
8927         uniwidth/width: Update comment.
8928         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
8929         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
8930
8931 2010-09-05  Bruno Haible  <bruno@clisp.org>
8932
8933         isinf, isnan: Relax license.
8934         * modules/isinf (License): Change from GPL to LGPL, with consent from
8935         Ben Pfaff.
8936         * modules/isnan (License): Likewise.
8937         Requested by Ludovic Courtès.
8938
8939 2010-09-04  Bruno Haible  <bruno@clisp.org>
8940
8941         gnulib-tool: Help migration from --import to --add-import or --update.
8942         * gnulib-tool: Emit a verbose error message when --import is used
8943         without any module name.
8944
8945 2010-09-04  Bruno Haible  <bruno@clisp.org>
8946
8947         Update doc about gnulib-tool.
8948         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
8949         'gnulib-tool --update' in more detail.
8950         Reported by Eric Blake.
8951
8952 2010-09-04  Bruno Haible  <bruno@clisp.org>
8953
8954         gnulib-tool: Change --import. New options --add/remove-import.
8955         * gnulib-tool: New options --add-import, --remove-import.
8956         (func_usage): Document them.
8957         (have_associative): Define always.
8958         (func_import): In import mode, don't merge the specified settings with
8959         the cached settings. Implement remove-import mode.
8960         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
8961         Explain when to use them versus --import.
8962         (Simple update): Use --add-import instead of --import.
8963         * NEWS: Mention the change.
8964
8965 2010-09-04  Bruno Haible  <bruno@clisp.org>
8966
8967         * doc/gnulib-tool.texi (Initial import): Update paragraph about
8968         separate gnulib.mk.
8969
8970 2010-09-04  Bruno Haible  <bruno@clisp.org>
8971
8972         gnulib-tool: Don't talk about CVS any more.
8973         * gnulib-tool (func_usage, func_import): Write "version control"
8974         instead of CVS.
8975
8976 2010-09-04  Jim Meyering  <meyering@redhat.com>
8977
8978         maint.mk: avoid obscure sc_copyright_check failure in coreutils
8979         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
8980         false positives (whose names may be ill-chosen) when searching
8981         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
8982         would cause a false-positive.
8983
8984         avoid coreutils "make distcheck" failure
8985         Coreutils tests with an absolute build directory name that contains
8986         a space.  Not quoting this directory name caused a failure.
8987         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
8988         * tests/test-vc-list-files-cvs.sh: Likewise.
8989
8990 2010-09-04  Bruno Haible  <bruno@clisp.org>
8991
8992         gnulib-tool: Avoid error when run in a package without Makefile.am.
8993         * gnulib-tool: When collecting the m4dirs in a package that does not
8994         have a Makefile.am, eliminate those directories that contain no
8995         gnulib-cache.m4. Fix expression that counts these directories.
8996
8997 2010-09-04  Bruno Haible  <bruno@clisp.org>
8998
8999         update-copyright test: Improve output when perl is missing or too old.
9000         * tests/test-update-copyright.sh: Move test of Perl version down after
9001         the test whether Perl exists. Provide an explanation relating Perl's
9002         error message to Automake's SKIP: message.
9003
9004 2010-09-04  Bruno Haible  <bruno@clisp.org>
9005
9006         Don't augment PATH in TESTS_ENVIRONMENT.
9007         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
9008         set abs_aux_dir instead of augmenting PATH.
9009         * modules/vc-list-files-tests (Makefile.am): Likewise.
9010         * tests/test-update-copyright.sh: Augment PATH here.
9011         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
9012         path_prepend_.
9013         * tests/test-vc-list-files-git.sh: Likewise.
9014
9015 2010-09-04  Jim Meyering  <meyering@redhat.com>
9016
9017         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
9018         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
9019
9020 2010-09-04  Bruno Haible  <bruno@clisp.org>
9021
9022         strdup: Fix compilation error in C++ mode.
9023         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
9024         the macro.
9025
9026 2010-09-04  Bruno Haible  <bruno@clisp.org>
9027
9028         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
9029         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
9030         macro into a function.
9031         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9032
9033 2010-09-04  Bruno Haible  <bruno@clisp.org>
9034
9035         Set PATH_SEPARATOR the same way autoconf does.
9036         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
9037         the value of PATH_SEPARATOR the same way autoconf-generated configure
9038         scripts do.
9039         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
9040         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9041
9042 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9043
9044         Set PATH_SEPARATOR the same way autoconf does.
9045         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
9046         the same way autoconf-generated configure scripts do.
9047         * posix-modules: Likewise.
9048
9049 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9050
9051         hash: fix safe_hasher const typo
9052         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
9053         const; otherwise, there is a type error later.
9054
9055 2010-09-02  Jim Meyering  <meyering@redhat.com>
9056
9057         test-update-copyright.sh: require perl 5.8.0
9058         * tests/test-update-copyright.sh: Require 5.8.0,
9059         which Tom G. Christensen has confirmed is adequate,
9060         while 5.6.1 is not.
9061
9062 2010-09-02  Eric Blake  <eblake@redhat.com>
9063
9064         tests: init.sh improvements for re-exec'ing with zsh
9065         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
9066         -vx through shell re-exec.
9067         Reported by Tom G. Christensen.
9068
9069         wctype: fix typo in previous commit
9070         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
9071         Reported by Ludovic Courtès.
9072
9073 2010-09-02  Jim Meyering  <meyering@redhat.com>
9074
9075         test-update-copyright.sh: skip test if Perl is too old
9076         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
9077         Reported by Tom G. Christensen.
9078
9079 2010-09-02  Bruno Haible  <bruno@clisp.org>
9080
9081         wctype: Avoid compilation error on IRIX 6.5.30.
9082         * lib/wctype.in.h (iswblank): Declare with a replacement if
9083         REPLACE_ISWBLANK is set.
9084         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
9085         declared. Set REPLACE_ISWBLANK.
9086         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
9087         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
9088         * doc/posix-headers/wctype.texi: Likewise.
9089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9090
9091 2010-09-01  Bruno Haible  <bruno@clisp.org>
9092
9093         New module 'socketlib'.
9094         * modules/socketlib: New file.
9095         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
9096         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
9097         * modules/sockets (Depends-on): Add socketlib.
9098         Suggested by Sam Steingold <sds@gnu.org>.
9099
9100 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9101
9102         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
9103
9104         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
9105         when one needs search access to a directory but not read access.
9106         On systems where it is available, it works in some cases where
9107         O_RDONLY does not, namely on directories that are searchable but
9108         not readable, and which need only to be searchable.  If O_SEARCH
9109         is not available, fall back to the traditional method of using
9110         O_RDONLY.
9111
9112         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
9113         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
9114         when opening a directory that needs only to be searchable.
9115         * lib/chdir-safer.c (chdir_no_follow): Likewise.
9116         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
9117         * lib/openat-proc.c (openat_proc_name): Likewise.
9118         * lib/openat.c (openat_needs_fchdir): Likewise.
9119         * lib/save-cwd.c (save_cwd): Likewise.
9120         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
9121
9122 2010-08-28  Bruno Haible  <bruno@clisp.org>
9123
9124         New module 'host-cpu-c-abi'.
9125         * modules/host-cpu-c-abi: New file.
9126         * m4/host-cpu-c-abi.m4: New file, based on part of
9127         clisp/src/m4/general.m4.
9128         Requested by Sam Steingold <sds@gnu.org>.
9129
9130 2010-08-31  Eric Blake  <eblake@redhat.com>
9131         and Jim Meyering  <meyering@redhat.com>
9132
9133         hash: factor, and guard against misbehaving hasher function
9134         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
9135         of table->hasher's return value.  Also protect against a hash value
9136         so large that adding it to table->bucket results in a NULL pointer.
9137         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
9138         Use it in place of open-coded check-and-abort.
9139
9140 2010-08-30  Bruno Haible  <bruno@clisp.org>
9141
9142         hash: silence spurious clang warning
9143         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
9144         Reported by Eric Blake.
9145
9146 2010-08-30  Eric Blake  <eblake@redhat.com>
9147
9148         strstr, memmem, strcasestr: avoid leaked shell message
9149         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
9150         FreeBSD.
9151         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9152         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9153
9154         tests: silence clang warning
9155         * tests/test-malloca.c (do_allocation): Avoid dead store.
9156
9157 2010-08-29  Bruno Haible  <bruno@clisp.org>
9158
9159         gettext: Fix recent mistake.
9160         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9161
9162 2010-08-29  Bruno Haible  <bruno@clisp.org>
9163
9164         selinux-h: Offer a --without-selinux option.
9165         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9166         --without-selinux was specified, skip all tests and define
9167         HAVE_SELINUX_SELINUX_H to 0.
9168         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9169         set LIB_SELINUX to empty.
9170         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9171         gl_LIBSELINUX. If --without-selinux was specified, replace
9172         selinux/context.h.
9173         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9174
9175 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9176             Bruno Haible  <bruno@clisp.org>
9177
9178         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9179         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9180         of HAVE_REALLOC.
9181         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9182         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9183         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9184         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9185
9186 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9187             Bruno Haible  <bruno@clisp.org>
9188
9189         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9190         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9191         HAVE_CALLOC.
9192         * lib/xmalloc.c: Update accordingly.
9193         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9194         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9195         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9196
9197 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9198             Bruno Haible  <bruno@clisp.org>
9199
9200         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9201         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9202         HAVE_MALLOC.
9203         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9204         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9205         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9206
9207 2010-08-29  Bruno Haible  <bruno@clisp.org>
9208
9209         Update modules list.
9210         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9211         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9212         (String handling <string.h>): Add astrxfrm.
9213         (File system functions): Add readlinkat.
9214
9215 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9216
9217         Tests for module 'realloc-gnu'.
9218         * modules/realloc-gnu-tests: New file.
9219         * tests/test-realloc-gnu.c: New file.
9220
9221         Tests for module 'calloc-gnu'.
9222         * modules/calloc-gnu-tests: New file.
9223         * tests/test-calloc-gnu.c: New file.
9224
9225         Tests for module 'malloc-gnu'.
9226         * modules/malloc-gnu-tests: New file.
9227         * tests/test-malloc-gnu.c: New file.
9228
9229 2010-08-28  Bruno Haible  <bruno@clisp.org>
9230
9231         Rename module 'realloc' -> 'realloc-gnu'.
9232         * modules/realloc-gnu: New file, copied from modules/realloc.
9233         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9234         obsolete.
9235         * modules/mgetgroups (Depends-on): Update.
9236         * doc/posix-functions/realloc.texi: Update.
9237         * NEWS: Mention the change.
9238
9239         Rename module 'calloc' -> 'calloc-gnu'.
9240         * modules/calloc-gnu: New file, copied from modules/calloc.
9241         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9242         obsolete.
9243         * doc/posix-functions/calloc.texi: Update.
9244         * NEWS: Mention the change.
9245
9246         Rename module 'malloc' -> 'malloc-gnu'.
9247         * modules/malloc-gnu: New file, copied from modules/malloc.
9248         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9249         obsolete.
9250         * modules/argp (Depends-on): Update.
9251         * modules/regex (Depends-on): Update.
9252         * doc/posix-functions/malloc.texi: Update.
9253         * NEWS: Mention the change.
9254
9255 2010-08-28  Eric Blake  <eblake@redhat.com>
9256
9257         pread, pwrite: add missing dependency
9258         * modules/pread (Depends-on): Add extensions.
9259         * modules/pwrite (Depends-on): Likewise.
9260
9261 2010-08-28  Bruno Haible  <bruno@clisp.org>
9262
9263         unistr/u*-strchr: Fix tests dependencies.
9264         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9265         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9266         Reported by Ian Beckwith <ianb@erislabs.net>.
9267
9268 2010-08-28  Bruno Haible  <bruno@clisp.org>
9269
9270         read-file: Don't occupy too much unused memory.
9271         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9272
9273 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9274             Eric Blake  <eblake@redhat.com>
9275             Bruno Haible  <bruno@clisp.org>
9276
9277         read-file: Avoid memory reallocations with regular files.
9278         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9279         (fread_file): With regular files, use the remaining length as the
9280         initial buffer size.  Check against overflow.
9281         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9282         sys_stat.
9283
9284 2010-08-28  Bruno Haible  <bruno@clisp.org>
9285
9286         ftello: Relax license.
9287         * modules/ftello (License): Relax to LGPLv2+.
9288         Reported by Eric Blake.
9289
9290 2010-08-28  Bruno Haible  <bruno@clisp.org>
9291
9292         Avoid relocwrapper link errors due to gnulib replacement functions.
9293         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9294         function.
9295         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9296
9297 2010-08-28  Bruno Haible  <bruno@clisp.org>
9298
9299         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9300         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9301         defined.
9302         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9303         Suggested by Eric Blake.
9304
9305 2010-08-28  Bruno Haible  <bruno@clisp.org>
9306
9307         sys_socket, netdb: Ensure socklen_t gets defined.
9308         * modules/sys_socket (Depends-on): Add socklen.
9309         * modules/netdb (Depends-on): Likewise.
9310         * modules/getaddrinfo (Depends-on): Remove socklen.
9311         * modules/getsockopt (Depends-on): Likewise.
9312         * modules/setsockopt (Depends-on): Likewise.
9313         * tests/test-sys_socket.c: Check that socklen_t is defined.
9314         * tests/test-netdb.c: Likewise.
9315         * m4/socklen.m4: Update comments.
9316         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9317
9318 2010-08-27  Eric Blake  <eblake@redhat.com>
9319
9320         login_tty: add missing dependency
9321         * modules/login_tty (Depends-on): Add pty.
9322
9323 2010-08-26  Eric Blake  <eblake@redhat.com>
9324
9325         lib-symbol-versions: fix m4 quoting
9326         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9327         format for AC_LINK_IFELSE.
9328
9329         glob: fix compile test
9330         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9331
9332         btowc: fix missing file
9333         * modules/btowc (Files): Also ship locale-fr.m4.
9334
9335         lseek: fix link test
9336         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9337         AC_LINK_IFELSE.
9338
9339         include_next: silence autoconf 2.68 warning
9340         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9341         AC_COMPILE_IFELSE as special.
9342         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9343         autoconf < 2.68.
9344
9345         acl: fix compilation test
9346         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9347         AC_COMPILE_IFELSE.
9348
9349 2010-08-26  Bruno Haible  <bruno@clisp.org>
9350
9351         Modernize AC_TRY_RUN invocations.
9352         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9353         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9354         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9355         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9356         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9357         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9358         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9359         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9360         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9361         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9362         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9363         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9364         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9365         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9366         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9367         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9368         gl_MBRLEN_NUL_RETVAL): Likewise.
9369         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9370         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9371         Likewise.
9372         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9373         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9374         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9375         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9376         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9377         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9378         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9379         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9380         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9381         Likewise.
9382         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9383         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9384         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9385         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9386         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9387         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9388         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9389         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9390         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9392
9393 2010-08-26  Bruno Haible  <bruno@clisp.org>
9394
9395         Modernize AC_TRY_LINK invocations.
9396         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9397         AC_TRY_LINK.
9398         * m4/argp.m4 (gl_ARGP): Likewise.
9399         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9400         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9401         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9402         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9403         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9404         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9405         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9406         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9407         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9408         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9409         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9410         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9411         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9412         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9413         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9414         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9415         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9416         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9417         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9418         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9419         Likewise.
9420         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9421         Likewise.
9422         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9423         Likewise.
9424         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9425         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9426         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9427         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9428         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9429         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9430         * m4/servent.m4 (gl_SERVENT): Likewise.
9431         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9432         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9433         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9434         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9435         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9436         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9437         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9438         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9439         * modules/tsearch-tests (configure.ac): Likewise.
9440
9441 2010-08-26  Bruno Haible  <bruno@clisp.org>
9442
9443         Modernize AC_TRY_COMPILE invocations.
9444         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9445         AC_TRY_COMPILE.
9446         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9447         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9448         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9449         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9450         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9451         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9452         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9453         * m4/lock.m4 (gl_LOCK): Likewise.
9454         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9455         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9456         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9457         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9458         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9459         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9460         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9461         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9462         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9463         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9464         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9465         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9466         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9467         extraneous semicolon.
9468
9469 2010-08-26  Jim Meyering  <meyering@redhat.com>
9470
9471         stat-time: relax license LGPL
9472         * modules/stat-time (License): Change from GPL to LGPL,
9473         with consent from all contributors, for use in libguile.
9474         Requested by Ludovic Courtès.
9475
9476 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9477
9478         poll: return immediately on POLLHUP.
9479         * lib/poll.c (poll): Always set timeout before wait_timeout is
9480         computed.
9481
9482 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9483
9484         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9485         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9486         rmdir ("dir/.//"), unlinkat.
9487
9488 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9489
9490         stdbool: avoid spurious failure with modern xlc
9491         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9492
9493 2010-08-24  Bruno Haible  <bruno@clisp.org>
9494
9495         getloadavg: simplify code
9496         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9497         gl_have_func. Update comments.
9498
9499 2010-08-24  Eric Blake  <eblake@redhat.com>
9500
9501         getloadavg: don't define SVR4 on cygwin
9502         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9503         only define SVR4 when -lkvm is required.
9504         Reported by Yaakov Selkowitz.
9505
9506 2010-08-24  Bruno Haible  <bruno@clisp.org>
9507
9508         priv-set: fix comment
9509         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9510
9511 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9512
9513         priv-set: fix comments
9514         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9515         to match code, as suggested by David Bartley in:
9516         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9517
9518 2010-08-23  Eric Blake  <eblake@redhat.com>
9519
9520         stdbool: avoid rejecting clang
9521         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9522         * tests/test-stdbool.c: Enable more tests if using the system
9523         <stdbool.h> instead of the gnulib replacement.
9524         (main): Move xlc bug test to a runtime test for all compilers.
9525         Reported by Anders Kaseorg.
9526
9527         argz: fix shell quoting issue
9528         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9529         Reported by Charles Wilson.
9530
9531 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
9532             Erik Faye-Lund <kusmabite@gmail.com>
9533
9534         poll, select: handle ERROR_BROKEN_PIPE.
9535         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9536         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9537         * lib/select.c (win32_compute_revents): Do not mark a pipe
9538         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9539
9540 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9541
9542         fts: allow compilation with C++
9543         * lib/fts_.h: Specify extern "C" linkage with C++.
9544
9545 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9546
9547         Fix gnulib-tool sed script de-commentation for AIX sed.
9548         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9549         sed.
9550
9551 2010-08-17  Eric Blake  <eblake@redhat.com>
9552
9553         test-stddef: test for (some) offsetof bugs
9554         * tests/test-stddef.c: Enhance test to ensure correct type of
9555         offsetof.
9556         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9557         that we are not fixing at this time.
9558
9559 2010-08-15  Bruno Haible  <bruno@clisp.org>
9560
9561         stpncpy: Allow stpncpy to be defined as a macro.
9562         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9563         if it's already correctly declared.
9564         * lib/string.in.h (stpncpy): Undefine before redefining.
9565         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9566
9567 2010-08-14  Bruno Haible  <bruno@clisp.org>
9568
9569         Rename module 'memxfrm' to 'amemxfrm'.
9570         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9571         (amemxfrm): Renamed from memxfrm.
9572         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9573         (amemxfrm): Renamed from memxfrm.
9574         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9575         * NEWS: Mention the change.
9576         * MODULES.html.sh (String handling <string.h>): Update.
9577         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9578         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9579         * lib/unicase/u16-casexfrm.c: Likewise.
9580         * lib/unicase/u32-casexfrm.c: Likewise.
9581         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9582         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9583         * lib/uninorm/u16-normxfrm.c: Likewise.
9584         * lib/uninorm/u32-normxfrm.c: Likewise.
9585         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9586         memxfrm.
9587         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9588         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9589         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9590         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9591         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9592         Suggested by Paul Eggert.
9593
9594 2010-08-14  Bruno Haible  <bruno@clisp.org>
9595
9596         Tests for module 'astrxfrm'.
9597         * modules/astrxfrm-tests: New file.
9598         * tests/test-astrxfrm.c: New file.
9599
9600         New module 'astrxfrm'.
9601         * lib/astrxfrm.h: New file.
9602         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
9603         * modules/astrxfrm: New file.
9604
9605 2010-08-14  Reuben Thomas <rrt@sc3d.org>
9606
9607         regex: Tweak doc.
9608         * doc/regex.texi (Overview): Don't mention regex.c.
9609         (GNU Regular Expression Compiling): Likewise.
9610         (Match-end-of-line Operator): Mention 'not_eol'.
9611
9612 2010-08-14  Brian Gough  <bjg@gnu.org>
9613             Bruno Haible  <bruno@clisp.org>
9614
9615         git-merge-changelog: add doc relating to use with bzr and hg.
9616         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
9617
9618 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
9619
9620         pthread: fix pthread.h creation for srcdir != builddir
9621         * modules/pthread (Makefile.am): Fix the rule to work also in a
9622         non-srcdir build.
9623
9624 2010-08-13  Karl Berry  <karl@gnu.org>
9625
9626         * doc/regex.texi (Predefined Syntaxes): @smallexample.
9627         * doc/posix-*/*: force line break before @url of POSIX
9628         specifications.
9629         Suggested by Werner Lemberg.
9630
9631 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9632
9633         strtod: fix const diagnostic
9634         * lib/strtod.c (strtod): Don't assign const char * to char *,
9635         as this elicits a warning from GCC when warnings are enabled.
9636
9637 2010-08-10  Pádraig Brady <P@draigbrady.com>
9638         and Eric Blake  <eblake@redhat.com>
9639
9640         copy-acl: ignore ENOTSUP on HP-UX
9641         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
9642         so that it is available for HP-UX.
9643         * lib/copy-acl.c (qcopy_acl): Use it.
9644         Reported by Patrick M. Callahan.
9645
9646 2010-08-10  Eric Blake  <eblake@redhat.com>
9647
9648         open, chown: relax license
9649         * modules/open (License): Change to LGPLv2+, with consent by all
9650         authors, for use in augeas.
9651         * modules/chown (License): Likewise.
9652         * modules/lchown (Likewise): Likewise.
9653         Requested by Adam Stokes.
9654
9655 2010-08-09  Karl Berry  <karl@gnu.org>
9656
9657         * build-aux/ar-lib: new file, import from Automake.
9658         * config/srclist.txt: autocheck for updates.
9659
9660 2010-08-09  Eric Blake  <eblake@redhat.com>
9661
9662         readlinkat: adjust client modules
9663         * modules/areadlinkat (Depends-on): Use readlinkat, not
9664         symlinkat.
9665         * modules/areadlinkat-with-size (Depends-on): Likewise.
9666
9667         mknod: be more vocal about danger of running tests as root
9668         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
9669         root, since that is just asking for problems.
9670         Suggested by Bruno Haible, based on a report by Rainer Tammer.
9671
9672         readlinkat: split into its own module
9673         * modules/symlinkat: Split readlinkat...
9674         * modules/readlinkat: ...into separate module.
9675         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
9676         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
9677         * lib/symlinkat.c (readlinkat): Move...
9678         * lib/readlinkat.c: ...into new file.
9679         * modules/symlinkat-tests: Split readlinkat test...
9680         * modules/readlinkat-tests: ...into separate module.
9681         * tests/test-symlinkat.c: Split...
9682         * tests/test-readlinkat.c: ...into new file.
9683         * NEWS: Document the split.
9684         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9685         * lib/unistd.in.h (readlinkat): Likewise.
9686         Suggested by Bruno Haible.
9687
9688 2010-08-08  Bruno Haible  <bruno@clisp.org>
9689
9690         memxfrm: Speed up.
9691         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
9692         that usually only one call to strxfrm is necessary for each string
9693         part.
9694         Reported by Paul Eggert <eggert@cs.ucla.edu>.
9695
9696 2010-08-07  Karl Berry  <karl@gnu.org>
9697
9698         * doc/posix-headers/limits.texi,
9699         * doc/posix-functions/malloc.texi,
9700         * doc/posix-functions/strsignal.texi: missing @item.
9701         * doc/ld-version-script.texi: spurious leading i.
9702         * doc/regex.texi (Interval Operators): no commas inside @var.
9703
9704 2010-08-01  Bruno Haible  <bruno@clisp.org>
9705
9706         Integrate the regex documentation.
9707         * doc/gnulib.texi: Define 'cn' index.
9708         (Regular expressions): New a chapter that includes regex.texi and
9709         regexprops-generic.texi.
9710         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
9711         syntax.
9712
9713         Whitespace cleanup.
9714         * doc/regex.texi: Remove trailing spaces.
9715
9716         Add regex documentation.
9717         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
9718         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
9719         Written by Kathy A. Hargreaves and Karl Berry.
9720
9721 2010-08-01  Bruno Haible  <bruno@clisp.org>
9722
9723         link: Update documentation.
9724         * doc/posix-functions/link.texi: Update regarding Solaris.
9725
9726 2010-07-31  Bruno Haible  <bruno@clisp.org>
9727
9728         Update modules list.
9729         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
9730         (String handling <string.h>): Add memcmp2, memxfrm.
9731         (Container data structures): Add xlist, xsublist, xoset.
9732         (Core language properties): Add alignof, unused-parameter.
9733         (Process control, Numeric conversion functions <stdlib.h>): Renamed
9734         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
9735         (Unibyte characters <ctype.h>): New section.
9736         (String handling <string.h>): New section.
9737         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
9738         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
9739         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
9740         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
9741         tan, tanh, tanl, y0, y1, yn.
9742         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
9743         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
9744         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
9745         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
9746         unlockpt, vdprintf, vdprintf-posix.
9747         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
9748         (File system functions): Add concat-filename, sys_file, sys_ioctl,
9749         xconcat-filename.
9750         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
9751         getdtablesize, pipe2, pipe2-safer.
9752         (Security): New section.
9753         (Networking functions): Add accept4.
9754         (Signal handling): Add sigpipe.
9755         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
9756         mbmemcasecoll.
9757         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
9758         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
9759         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
9760         pipe-filter-ii.
9761         (Misc): Add argp-version-etc, login_tty, parse-duration.
9762
9763 2010-07-31  Bruno Haible  <bruno@clisp.org>
9764
9765         Improve doc in MODULES.html.
9766         * modules/linkat (Description): Add the word "function".
9767         * modules/mkfifo (Description): Likewise.
9768         * modules/mknod (Description): Likewise.
9769         * modules/remove (Description): Likewise.
9770         * modules/renameat (Description): Likewise.
9771         * modules/stat (Description): Likewise.
9772         * modules/symlink (Description): Likewise.
9773         * modules/unlink (Description): Likewise.
9774
9775 2010-07-31  Bruno Haible  <bruno@clisp.org>
9776
9777         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
9778         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
9779         option --enable/disable-c++ instead of --enable/disable-cxx.
9780         * NEWS: Mention the change.
9781
9782 2010-07-31  Bruno Haible  <bruno@clisp.org>
9783
9784         readlink, areadlink: Relax test a bit.
9785         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
9786         alternative to ENOTDIR.
9787         * tests/test-areadlink.h (test_areadlink): Likewise.
9788         Reported by Rainer Tammer.
9789
9790 2010-07-31  Bruno Haible  <bruno@clisp.org>
9791
9792         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
9793         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
9794         character, perform the search using U_STRCHR.
9795         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
9796         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
9797         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
9798         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
9799         Suggested by Paolo Bonzini.
9800
9801 2010-07-31  Bruno Haible  <bruno@clisp.org>
9802
9803         unistr/u*-strstr: Fix dependencies.
9804         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
9805         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
9806         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
9807
9808 2010-07-31  Bruno Haible  <bruno@clisp.org>
9809
9810         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
9811         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
9812         the beginning of the loop.
9813         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
9814         cases in 'switch' statement.
9815
9816         unistr/u8-strchr: Fix several bugs.
9817         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
9818         the string. When not found, return NULL, not a pointer near the end.
9819
9820         More tests for unistr/u8-strchr.
9821         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
9822         that the function does not read past the first occurrence of the byte
9823         being searched.
9824         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
9825         * tests/unistr/test-u16-strchr.c (main): New function.
9826         * tests/unistr/test-u32-strchr.c (main): New function.
9827
9828 2010-07-31  Bruno Haible  <bruno@clisp.org>
9829
9830         posix-modules: Ignore backup files of documentation files.
9831         * posix-modules: grep only through files named *.texi.
9832
9833 2010-07-31  Bruno Haible  <bruno@clisp.org>
9834
9835         symlinkat: Fix documentation.
9836         * doc/posix-functions/readlinkat.texi: Fix module name.
9837
9838 2010-07-31  Bruno Haible  <bruno@clisp.org>
9839
9840         fchownat: Replace also when chown has the trailing slash bug.
9841         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
9842         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
9843         introduced on 2010-04-10.
9844         Reported by Rainer Tammer.
9845
9846 2010-07-31  Bruno Haible  <bruno@clisp.org>
9847
9848         linkat: Work around AIX 7.1 bug.
9849         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
9850         whether linkat handles trailing slash correctly. If not, replace linkat
9851         and define LINKAT_TRAILING_SLASH_BUG.
9852         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
9853         check whether (fd1,file1) points to a directory if file1 or file2 ends
9854         in a slash. Code taken from lib/link.c.
9855         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
9856         Reported by Rainer Tammer.
9857
9858 2010-07-31  Bruno Haible  <bruno@clisp.org>
9859
9860         Correctly determine whether pow is available in libc on AIX 7 with xlc.
9861         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
9862         This disables an xlc optimization that was causing wrong test results.
9863         Reported by Rainer Tammer.
9864
9865 2010-07-31  Bruno Haible  <bruno@clisp.org>
9866
9867         iconv: Work around AIX 6.1..7.1 bug.
9868         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
9869         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
9870         cross-compiling, guess no on all versions of AIX.
9871         Reported by Rainer Tammer.
9872
9873 2010-07-31  Bruno Haible  <bruno@clisp.org>
9874
9875         readlink: Relax test a bit.
9876         * tests/test-readlink.h (test_readlink): Allow different errno value
9877         when readlink is called with a file name that ends in / and refers to
9878         a file.
9879         Suggested by Eric Blake.
9880         Reported by Rainer Tammer.
9881
9882 2010-07-31  Bruno Haible  <bruno@clisp.org>
9883
9884         copysign: Does not require -lm on glibc systems.
9885         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
9886         gl_COMMON_DOUBLE_MATHFUNC.
9887         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
9888
9889 2010-07-31  Bruno Haible  <bruno@clisp.org>
9890
9891         duplocale: Work around AIX 7.1 bug.
9892         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
9893         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
9894         * lib/duplocale.c (rpl_duplocale): Update comment.
9895         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
9896         Reported by Rainer Tammer.
9897
9898 2010-07-30  Bruno Haible  <bruno@clisp.org>
9899
9900         dirfd: Avoid link error on AIX 7.1.
9901         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
9902         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
9903         exist, set REPLACE_DIRFD.
9904         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
9905         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
9906         * doc/posix-functions/dirfd.texi: Update.
9907         Reported by Rainer Tammer.
9908
9909 2010-07-30  Eric Blake  <eblake@redhat.com>
9910
9911         strtod: next round of AIX fixes
9912         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
9913         exponent.
9914         * tests/test-strtod.c (main): Enhance tests.
9915         * doc/posix-functions/strtod.texi (strtod): Document next bug.
9916         Reported by Rainer Tammer.
9917
9918         futimens: fix configure check
9919         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
9920         Reported by Bruno Haible.
9921
9922 2010-07-30  Bruno Haible  <bruno@clisp.org>
9923
9924         getline: Update regarding AIX.
9925         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
9926         Reported by Rainer Tammer.
9927
9928 2010-07-30  Bruno Haible  <bruno@clisp.org>
9929
9930         wcwidth: Drop replacement on AIX 7.
9931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
9932         AIX 7.
9933         Reported by Rainer Tammer.
9934
9935 2010-07-30  Bruno Haible  <bruno@clisp.org>
9936
9937         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
9938         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
9939         a 'char *'.
9940         Reported by Rainer Tammer.
9941
9942 2010-07-30  Bruno Haible  <bruno@clisp.org>
9943
9944         unlink: Update regarding AIX.
9945         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
9946         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
9947         Reported by Rainer Tammer.
9948
9949 2010-07-30  Bruno Haible  <bruno@clisp.org>
9950
9951         symlink: Update regarding AIX.
9952         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
9953         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
9954         Reported by Rainer Tammer.
9955
9956 2010-07-30  Bruno Haible  <bruno@clisp.org>
9957
9958         strndup: Update regarding AIX.
9959         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
9960         AIX 7.
9961         Reported by Rainer Tammer.
9962
9963 2010-07-30  Bruno Haible  <bruno@clisp.org>
9964
9965         stat: Update regarding AIX.
9966         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
9967         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
9968         Reported by Rainer Tammer.
9969
9970 2010-07-30  Bruno Haible  <bruno@clisp.org>
9971
9972         truncl: Fix autoconf test.
9973         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
9974         whether truncl works.
9975         Reported by Rainer Tammer.
9976
9977 2010-07-30  Bruno Haible  <bruno@clisp.org>
9978
9979         round: Update regarding AIX.
9980         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
9981         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
9982         Reported by Rainer Tammer.
9983
9984 2010-07-30  Bruno Haible  <bruno@clisp.org>
9985
9986         rename: Update regarding AIX.
9987         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
9988         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
9989         Reported by Rainer Tammer.
9990
9991 2010-07-30  Bruno Haible  <bruno@clisp.org>
9992
9993         printf.m4: Update regarding AIX.
9994         * m4/printf.m4: Update comments regarding AIX.
9995         Reported by Rainer Tammer.
9996
9997 2010-07-30  Bruno Haible  <bruno@clisp.org>
9998
9999         iconv: Update regarding AIX.
10000         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
10001         AIX 7.
10002         Reported by Rainer Tammer.
10003
10004 2010-07-30  Bruno Haible  <bruno@clisp.org>
10005
10006         getopt: Update regarding AIX.
10007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
10008         no on AIX.
10009         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
10010         Reported by Rainer Tammer.
10011
10012 2010-07-30  Bruno Haible  <bruno@clisp.org>
10013
10014         ldexpl; Update regarding AIX.
10015         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
10016         on AIX 7.
10017         Reported by Rainer Tammer.
10018
10019 2010-07-30  Bruno Haible  <bruno@clisp.org>
10020
10021         frexpl: Update regarding AIX.
10022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
10023         on AIX 7.
10024         Reported by Rainer Tammer.
10025
10026 2010-07-30  Bruno Haible  <bruno@clisp.org>
10027
10028         open, fopen: Update regarding AIX.
10029         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
10030         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10031         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
10032         * doc/posix-functions/fopen.texi: Likewise.
10033         Reported by Rainer Tammer.
10034
10035 2010-07-30  Bruno Haible  <bruno@clisp.org>
10036
10037         chown: Update doc regarding AIX.
10038         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
10039         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
10040         Reported by Rainer Tammer.
10041
10042 2010-07-30  Eric Blake  <eblake@redhat.com>
10043
10044         strtod: fix bug in replacement function on AIX
10045         * lib/strtod.c (strtod): Special case broken "0x" parse in
10046         underlying strtod.
10047         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
10048         * doc/posix-functions/strtod.texi (strtod): Likewise.
10049         Reported by Rainer Tammer.
10050
10051 2010-07-30  Bruno Haible  <bruno@clisp.org>
10052
10053         mbrlen: Fix cross-compilation guess for AIX.
10054         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
10055         guess. Leftover from 2008-12-22.
10056
10057 2010-07-30  Bruno Haible  <bruno@clisp.org>
10058
10059         mbrtowc: Fix cross-compilation guess for AIX.
10060         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
10061         guess. Leftover from 2008-12-21.
10062
10063 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
10064
10065         init.sh: work around trap limitation of some shells
10066         * tests/init.sh (setup_): Move exit trap outside of shell function.
10067
10068 2010-07-29  Eric Blake  <eblake@redhat.com>
10069
10070         strtod: aid debugging
10071         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
10072         understanding why strtod is rejected.
10073
10074 2010-07-28  Bruno Haible  <bruno@clisp.org>
10075
10076         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
10077         * lib/unistr/u8-chr.c: Include <string.h>.
10078         * tests/unistr/test-u8-chr.c: Likewise.
10079         * tests/unistr/test-u16-chr.c: Likewise.
10080         * tests/unistr/test-u32-chr.c: Likewise.
10081         * tests/unistr/test-u8-strchr.c: Likewise.
10082         * tests/unistr/test-u16-strchr.c: Likewise.
10083         * tests/unistr/test-u32-strchr.c: Likewise.
10084         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
10085         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
10086         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
10087         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
10088
10089 2010-07-28  Bruno Haible  <bruno@clisp.org>
10090
10091         Use spaces for indentation, not tabs.
10092         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10093
10094 2010-07-27  Bruno Haible  <bruno@clisp.org>
10095
10096         mbspcasecmp: Fix function specification.
10097         * lib/string.in.h (mbspcasecmp): Fix specification comment.
10098         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
10099         Reported by Eric Blake <eblake@redhat.com>.
10100
10101 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
10102
10103         timespec: use cast and not conditional, as truncation isn't possible
10104         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
10105         instead of a conditional.  Comment about the situation in more detail.
10106         This undoes most of the 2009-10-29 patch.
10107
10108 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
10109
10110         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
10111         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
10112         * lib/unistr/u8-strchr.c: Likewise.
10113         * modules/unistr/u8-chr: Depend on memchr.
10114
10115         unistr/u*-strchr: add tests
10116         * modules/unistr/u8-strchr-tests: New file.
10117         * modules/unistr/u16-strchr-tests: New file.
10118         * modules/unistr/u32-strchr-tests: New file.
10119         * tests/unistr/test-strchr.h: New file.
10120         * tests/unistr/test-u8-strchr.c: New file.
10121         * tests/unistr/test-u16-strchr.c: New file.
10122         * tests/unistr/test-u32-strchr.c: New file.
10123
10124         unistr/u*-chr: test multibyte sequences more
10125         * tests/unistr/test-chr.h: Do complete testing of the characters in the
10126         test vector.
10127         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
10128         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
10129         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
10130
10131         unistr/u*-chr: test multibyte sequences
10132         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
10133
10134         unistr/u*-chr: prepare for multibyte tests
10135         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
10136         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
10137         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
10138         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
10139         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
10140         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
10141
10142 2010-07-18  Bruno Haible  <bruno@clisp.org>
10143
10144         unistr/u8-strchr: Optimize non-ASCII argument case.
10145         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
10146         because the first byte often matches anyway.
10147         Reported by Pádraig Brady <P@draigbrady.com>.
10148
10149 2010-07-15  Karl Berry  <karl@gnu.org>
10150
10151         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
10152
10153 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10154
10155         getcwd: on Solaris, work better if ancestors are inaccessible
10156         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10157         buffer and size, try again with a large buffer.  This works better
10158         on Solaris, since its getcwd succeeds even if the path to the root
10159         is inaccessible, and this is helpful in common cases such as .zfs
10160         hidden directories.  Problem reported by J Chapman Flack in
10161         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10162         Use system getcwd if it's declared, not merely if it's partly
10163         working; use the partly-working test only to avoid needless effort
10164         if the system getcwd fails.
10165         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10166         comment that was already obsolete and is now even more obsolete.
10167         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10168         now might call strdup.
10169
10170 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10171
10172         pthread: Add enough so that coreutils/src/sort.c compiles.
10173         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10174         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10175         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10176         Include <sys/types.h>, in case it defines pthread_t.
10177         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10178         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10179         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10180         (pthread_rwlockattr_t, pthread_spinlock_t):
10181         New typedefs, if HAVE_PTHREAD_T is not defined.
10182         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10183         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10184         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10185         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10186         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10187         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10188         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10189         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10190         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10191         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10192         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10193         New macros.
10194         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10195         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10196         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10197         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10198         (pthread_spin_unlock): New dummy functions.
10199         (pthread_create): Return EAGAIN; don't set errno.
10200         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10201         require AC_C_INLINE.
10202         * modules/pthread (Depends-on): Add sched, time.
10203         (pthread.h): Use AM_V_GEN.
10204
10205 2010-07-13  Bruno Haible  <bruno@clisp.org>
10206
10207         striconveh: Don't malloc memory if the result buffer is sufficient.
10208         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10209         buffer if its size is sufficient.
10210         Reported by Ludovic Courtès <ludo@gnu.org>.
10211
10212 2010-07-13  Bruno Haible  <bruno@clisp.org>
10213
10214         strtod: Add safety check.
10215         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10216
10217 2010-07-12  Bruno Haible  <bruno@clisp.org>
10218
10219         Unify tests that set gl_cv_func_ldexpl_no_libm.
10220         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10221         gl_FUNC_LDEXPL.
10222         (gl_FUNC_LDEXPL): Invoke it.
10223         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10224
10225 2010-07-12  Bruno Haible  <bruno@clisp.org>
10226
10227         Unify tests that set gl_cv_func_ldexp_no_libm.
10228         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10229         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10230         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10231         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10232         * modules/strtod (Files): Add m4/ldexp.m4.
10233
10234 2010-07-12  Bruno Haible  <bruno@clisp.org>
10235
10236         Unify tests that set gl_cv_func_frexpl_no_libm.
10237         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10238         gl_FUNC_FREXPL_NO_LIBM.
10239         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10240         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10241
10242 2010-07-12  Bruno Haible  <bruno@clisp.org>
10243
10244         Unify tests that set gl_cv_func_frexp_no_libm.
10245         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10246         gl_FUNC_FREXP_NO_LIBM.
10247         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10248         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10249
10250 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10251
10252         memcoll: clarify sizes versus lengths, document better, and tweak perf
10253         * lib/memcoll.c (strcoll_loop, memcoll0):
10254         Improve quality of descriptive comments.  Name variables
10255         consistently as to whether they are lengths (which do not include
10256         terminating null) versus sizes (which do).
10257         * lib/xmemcoll.c (xmemcoll0): Likewise.
10258         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10259         returned when s1size == 0; this is easier to compile and saves
10260         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10261
10262 2010-07-12  Bruno Haible  <bruno@clisp.org>
10263
10264         Tests for module '_Exit'.
10265         * modules/_Exit-tests: New file.
10266         * tests/test-_Exit.sh: New file.
10267         * tests/test-_Exit.c: New file.
10268
10269         New module '_Exit'.
10270         * lib/stdlib.in.h (__attribute__): New macro.
10271         (_Exit): New declaration.
10272         * lib/_Exit.c: New file.
10273         * m4/_Exit.m4: New file.
10274         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10275         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10276         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10277         * modules/_Exit: New file.
10278         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10279         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10280
10281 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10282
10283         strtod: make it more-accurate typically, and don't require libm
10284         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10285         Include limits.h.  Don't include string.h.
10286         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10287         (locale_isspace): New function, so that no casts are needed to
10288         check whether *s is a space.
10289         (ldexp): Provide an unused dummy if not available.
10290         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10291         (strtod): Use them.  This implementation prefers to use the
10292         underlying strtod if available, falling back on our own code
10293         only to fix known bugs.  This is more likely to produce an
10294         accurate result.  Also, it avoids the use of libm functions.
10295         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10296         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10297         was absent, but it caused a test failure with coreutils.
10298         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10299         with libm.
10300         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10301         * modules/strtod-tests (Makefile.am): Likewise.
10302
10303 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10304             Bruno Haible  <bruno@clisp.org>
10305
10306         unistr/u8-strchr: Optimize ASCII argument case.
10307         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10308
10309 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10310
10311         (x)memcoll: minor tweaks
10312         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10313         is after the type that it qualifies.
10314         (memcoll0): Likewise.
10315         * lib/memcoll.h (memcoll0): Likewise.
10316         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10317         * lib/xmemcoll.h (xmemcoll0): Likewise.
10318         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10319         differs from memcoll in that the NUL byte is part of the argument.
10320         Omit the abort-checks, as performance is a real issue here.  Plus,
10321         the checks were wrong anyway (an off-by-one error).  Omit local
10322         variable 'diff', as it's a bit clearer that way.
10323         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10324         no longer needed.
10325
10326 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10327
10328         (x)memcoll: speedup when input is known to be NUL delimited
10329         * lib/memcoll.c: Include stdlib.
10330         (memcoll0) New function.
10331         (strcoll_loop) New function, refactored for use in both memcoll
10332         and memcoll0.
10333         * lib/memcoll.h: Add prototype for memcoll0.
10334         * lib/xmemcoll.c: (xmemcoll0) New function.
10335         (collate_error) New function, refactored for use in both xmemcoll
10336         and xmemcoll0.
10337         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10338         * m4/memcoll.m4: add inline invocation.
10339
10340 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10341
10342         * build-aux/bootstrap: Remove any local translations
10343         from the translation project synchronization directory,
10344         so that local only translations are not distributed.
10345
10346 2010-07-04  Bruno Haible  <bruno@clisp.org>
10347
10348         fsusage: Clarify which code applies to which platforms.
10349         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10350         platform.
10351         * lib/fsusage.c (get_fs_usage): Likewise.
10352
10353 2010-07-04  Bruno Haible  <bruno@clisp.org>
10354
10355         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10356         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10357         Reported by Martin Lambers <marlam@marlam.de>.
10358
10359 2010-07-04  Jim Meyering  <meyering@redhat.com>
10360
10361         hash: once again explicitly disallow insertion of NULL
10362         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10363         inserting a NULL pointer cannot work with these functions.
10364         Add a comment with details.
10365         This reverts part of the 2010-07-01 commit, 5bef1a35
10366         "hash: extend module to deal with non-pointer keys".
10367
10368 2010-07-01  Bruno Haible  <bruno@clisp.org>
10369
10370         stdbool: Update doc.
10371         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10372         Info from Christian Weisgerber <naddy@mips.inka.de>.
10373
10374 2010-07-01  Jim Meyering  <meyering@redhat.com>
10375
10376         hash: extend module to deal with non-pointer keys
10377         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10378         but that allows insertion of non-pointer entries.
10379         Do not disallow an ENTRY value of NULL.
10380         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10381         * lib/hash.h (hash_insert0): Declare.
10382
10383 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10384
10385         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10386         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10387         not present (i.e. with autoconf 2.59 and when using gettextize, not
10388         gnulib), require AC_GNU_SOURCE instead.
10389
10390 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10391
10392         idpriv-drop: Fix tests.
10393         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10394         not to the test-idpriv-droptemp program.
10395
10396 2010-06-29  Bruno Haible  <bruno@clisp.org>
10397
10398         string: Fix syntax error with g++ 2.96.
10399         * lib/string.in.h (__pure__): Remove definition.
10400         (_GL_ATTRIBUTE_PURE): New macro.
10401         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10402         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10403         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10404
10405 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10406
10407         unitypes: Fix bug introduced on 2010-05-18.
10408         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10409
10410 2010-06-22  Eric Blake  <eblake@redhat.com>
10411
10412         memmem: slight optimization
10413         * lib/str-two-way.h (critical_factorization): Update comments.
10414         Reduce work during factorization phase.
10415         Reported by Carlos Bueno <carlos@bueno.org>.
10416
10417 2010-06-21  Bruno Haible  <bruno@clisp.org>
10418
10419         Fix HAVE_CALLOC_POSIX misnomer.
10420         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10421         !HAVE_CALLOC_POSIX.
10422         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10423         HAVE_CALLOC_POSIX.
10424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10425         instead of HAVE_CALLOC_POSIX.
10426         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10427         HAVE_CALLOC_POSIX.
10428
10429         Use modern idiom for calloc() replacement.
10430         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10431         AC_FUNC_CALLOC.
10432         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10433         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10434         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10435         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10436         (gl_REPLACE_CALLOC): New macro.
10437
10438 2010-06-21  Bruno Haible  <bruno@clisp.org>
10439
10440         Fix HAVE_REALLOC_POSIX misnomer.
10441         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10442         !HAVE_REALLOC_POSIX.
10443         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10444         HAVE_REALLOC_POSIX.
10445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10446         instead of HAVE_REALLOC_POSIX.
10447         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10448         HAVE_REALLOC_POSIX.
10449
10450         Use modern idiom for realloc() replacement.
10451         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10452         AC_FUNC_REALLOC.
10453         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10454         Autoconf's AC_FUNC_REALLOC.
10455         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10456         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10457         (gl_REPLACE_REALLOC): New macro.
10458         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10459
10460 2010-06-21  Bruno Haible  <bruno@clisp.org>
10461
10462         Fix HAVE_MALLOC_POSIX misnomer.
10463         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10464         !HAVE_MALLOC_POSIX.
10465         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10466         HAVE_MALLOC_POSIX.
10467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10468         instead of HAVE_MALLOC_POSIX.
10469         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10470         HAVE_MALLOC_POSIX.
10471
10472         Use modern idiom for malloc() replacement.
10473         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10474         AC_FUNC_MALLOC.
10475         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10476         Autoconf's AC_FUNC_MALLOC.
10477         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10478         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10479         (gl_REPLACE_MALLOC): New macro.
10480         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10481
10482 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10483
10484         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10485         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10486         This macro takes 3 arguments, not 4.
10487
10488 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10489
10490         ipv6: fix detection under mingw
10491         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10492         in6_addr.
10493
10494 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10495
10496         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10497         that strtod() works when cross-compiling to a glibc version known
10498         to work.
10499
10500 2010-06-15  Bruno Haible  <bruno@clisp.org>
10501
10502         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10503
10504 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10505
10506         select: Correct timeout.
10507         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10508
10509 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10510
10511         git-version-gen: init shell var to avoid env var influence
10512         * build-aux/git-version-gen (v): Init shell var to empty.
10513
10514 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10515
10516         priv-set: Don't assume that priv.h exists merely because getppriv does.
10517         See Jan Andersen's bug report about AIX 5L in
10518         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10519         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10520         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10521         * lib/priv-set.h: Likewise.
10522         * tests/test-priv-set.c: Likewise.
10523
10524 2010-06-13  Bruno Haible  <bruno@clisp.org>
10525
10526         relocatable: Make it easier to test whether to install wrappers.
10527         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10528         RELOCATABLE_VIA_WRAPPER.
10529
10530 2010-06-13  Bruno Haible  <bruno@clisp.org>
10531
10532         gnulib-tool: Display specified modules and dependencies differently.
10533         * gnulib-tool (func_show_module_list): New function.
10534         (func_import, func_create_testdir): Invoke it.
10535         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10536
10537 2010-06-13  Bruno Haible  <bruno@clisp.org>
10538
10539         gnulib-tool: Align code of func_import and func_create_testdir.
10540         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10541         specified_modules.
10542
10543 2010-06-12  Jim Meyering  <meyering@redhat.com>
10544
10545         test-inttostr: avoid spurious failure on Solaris 9
10546         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10547         to accept "%ju".  Reported by Bruno Haible.
10548
10549 2010-06-11  Jim Meyering  <meyering@redhat.com>
10550
10551         test-sys_socket: mark variables as used more readably
10552         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10553         as "used" explicitly via (void) statement casts.  This is more
10554         readable than using them in an artificial return expression.
10555         Suggestion from Bruno Haible.
10556
10557 2010-06-11  Bruno Haible  <bruno@clisp.org>
10558
10559         Avoid some more warnings from "gcc -Wwrite-strings".
10560         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10561         to 'const char *'.
10562         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10563         * tests/test-c-strcasestr.c (main): Likewise.
10564         * tests/test-mbscasestr1.c (main): Likewise.
10565         * tests/test-mbscasestr2.c (main): Likewise.
10566         * tests/test-memmem.c (main): Likewise.
10567         * tests/test-strstr.c (main): Likewise.
10568         * tests/test-strcasestr.c (main): Likewise.
10569
10570 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10571
10572         init.sh: change framework_failure_ to fail with status 99, not 1
10573         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10574         automake's parallel-tests rule that this is an unexpected failure,
10575         even if the test is listed in XFAIL_TESTS.
10576
10577 2010-06-11  Jim Meyering  <meyering@redhat.com>
10578
10579         test-inttostr: avoid warnings about 4-6KB literal strings
10580         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10581         Include "macros.h", for its definition of ASSERT.
10582         (CK): s/assert/ASSERT/
10583         * modules/inttostr-tests (Files): Add macros.h.
10584
10585         init.sh: don't use $ME_ or skip_ before they are defined
10586         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10587         their first uses.  Also hoist their companions: warn_, fail_,
10588         framework_failure_, $stderr_fileno.  Prompted by a patch from
10589         Stefano Lattarini.
10590
10591         test-sys_socket: avoid set-but-not-used warnings from gcc
10592         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10593         avoid warning about set-but-not-used variables.
10594
10595         test-xvasprintf: avoid 'const' discard warnings
10596         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
10597         "const" when assigning from literal strings.
10598         (test_xasprintf): Add "void" in function argument list to placate
10599         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
10600
10601         tests: avoid compilation warnings in argmatch and exclude tests...
10602         in packages that define ARGMATCH_DIE_DECL, like coreutils.
10603         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
10604         Since it always exits, declare with the "noreturn" attribute.
10605         * tests/test-argmatch.c: Likewise.
10606
10607         tests: avoid 'const' discard warnings in mbsstr tests
10608         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
10609         * tests/test-mbsstr2.c (main): Likewise.
10610
10611         test-verify: avoid warning from gcc's -Wmissing-declarations
10612         * tests/test-verify.c (function): Declare to be static.
10613
10614         test-inttostr.c: include <string.h> for use of strcmp
10615         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
10616
10617         test-linkat: avoid failed assertion on "other" architectures
10618         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
10619         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
10620         sparc: https://bugs.launchpad.net/bugs/591968
10621
10622 2010-06-11  Jim Meyering  <meyering@redhat.com>
10623
10624         printf.m4: avoid autoconf's "Expanded Before Required" warning
10625         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
10626         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
10627         autoconf warning.
10628
10629 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
10630
10631         Replacement header templates are now named with ".in", not "_".
10632         * doc/gnulib-intro.texi: Correct.
10633
10634 2010-06-10  Jim Meyering  <meyering@redhat.com>
10635
10636         inttostr-tests: depend on snprintf, not snprintf-posix
10637         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
10638         snprintf-posix, to avoid this aclocal failure:
10639           missing file gnulib-tests/vasnprintf.c
10640           configure.ac:45: error: expected source file, required through \
10641           AC_LIBSOURCES, not found
10642
10643 2010-06-10  Jim Meyering  <meyering@redhat.com>
10644
10645         inttostr: add a new function, inttostr, and tests
10646         The namesake function was not available.  The existence of the
10647         template file, inttostr.c makes its addition nontrivial.
10648         * lib/anytostr.c: Rename from inttostr.c.
10649         (anytostr): Rename from inttostr.
10650         * lib/inttostr.c: New file.
10651         * modules/inttostr (Files): Add anytostr.c.
10652         (Makefile.am): Set lib_SOURCES instead of ...
10653         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
10654         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
10655         * lib/offtostr.c: Likewise.
10656         * lib/uinttostr.c: Likewise.
10657         * lib/umaxtostr.c: Likewise.
10658         * modules/inttostr-tests: New file.
10659         * tests/test-inttostr.c: New file.  Test these functions.
10660
10661 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
10662             Bruno Haible  <bruno@clisp.org>
10663
10664         Add "Extending Gnulib" chapter to manual.
10665         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
10666         chapter.
10667         (Extending Gnulib): New chapter.
10668         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
10669         chapter.
10670
10671 2010-06-09  Bruno Haible  <bruno@clisp.org>
10672
10673         Avoid relocwrapper link errors due to gnulib replacement functions.
10674         * lib/areadlink.c: Use the system's malloc, realloc functions.
10675         (areadlink): Set errno to ENOMEM explicitly.
10676         * modules/areadlink (Depends-on): Remove malloc-posix.
10677         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10678
10679 2010-06-09  Bruno Haible  <bruno@clisp.org>
10680
10681         Avoid relocwrapper link errors due to gnulib replacement functions.
10682         * lib/canonicalize-lgpl.c: Use the system's malloc function.
10683         * lib/malloca.c: Likewise.
10684         * lib/relocatable.c: Likewise.
10685         * lib/progreloc.c: Use the system's malloc, sprintf functions.
10686         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
10687         * lib/setenv.c: Use the system's malloc, realloc functions.
10688         * lib/strerror.c: Use the system's sprintf function.
10689         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10690
10691 2010-06-04  Bruno Haible  <bruno@clisp.org>
10692
10693         Prefer documented low-level autoconf macro names.
10694         * m4/lib-link.m4: Use m4_translit instead of translit.
10695         * m4/environ.m4: Likewise.
10696         * m4/mathfunc.m4: Likewise.
10697         * m4/onceonly.m4: Likewise.
10698         * m4/stdint.m4: Likewise.
10699         Suggested by Eric Blake.
10700
10701 2010-06-04  Martin Lambers  <marlam@marlam.de>
10702             Bruno Haible  <bruno@clisp.org>
10703
10704         havelib: Allow library names with '+' characters.
10705         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
10706         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
10707
10708 2010-06-09  Bruno Haible  <bruno@clisp.org>
10709
10710         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
10711         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
10712         realloc failed.
10713
10714 2010-06-08  Peter Simons  <simons@cryp.to>
10715
10716         maint.mk: make the news-check rule more configurable
10717         * top/maint.mk (news-check-lines-spec) New variable.
10718         (news-check): Use "sed -n 1,10p" in place of "head".
10719
10720 2010-06-07  Jim Meyering  <meyering@redhat.com>
10721
10722         do-release-commit-and-tag: fix typo in --help
10723         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
10724
10725         regex: avoid new dead-code warning with gcc-4.6.0
10726         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
10727         if-block containing a while-loop.  It's been unused for at least
10728         5 years.
10729
10730 2010-06-05  Bruno Haible  <bruno@clisp.org>
10731
10732         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
10733         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
10734
10735 2010-06-04  Bruno Haible  <bruno@clisp.org>
10736
10737         Update to GNU gettext 0.18.1.
10738         * modules/gettext (configure.ac): Require gettext infrastructure from
10739         version 0.18.1.
10740
10741 2010-06-03  Bruno Haible  <bruno@clisp.org>
10742
10743         Don't use AC_LIBOBJ with file names in subdirectories.
10744         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
10745         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
10746         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
10747         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
10748         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
10749         gl_LIBUNISTRING_LIBSOURCE.
10750         (Makefile.am): Augment lib_SOURCES here, conditionally.
10751         * NEWS: Drop requirement for Automake option 'subdir-objects'.
10752
10753 2010-06-03  Bruno Haible  <bruno@clisp.org>
10754
10755         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
10756         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
10757         expansion does not end with a newline.
10758         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
10759         unnecessary newline.
10760
10761 2010-06-03  Bruno Haible  <bruno@clisp.org>
10762
10763         Reduce dependencies.
10764         * tests/test-quotearg.h: New file, extracted from
10765         tests/test-quotearg.c.
10766         * tests/test-quotearg-simple.c: New file, extracted from
10767         tests/test-quotearg.c.
10768         * tests/test-quotearg.c: Don't include <ctype.h>.
10769         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
10770         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
10771         use_quote_double_quotes, use_quotearg_colon): Moved to
10772         tests/test-quotearg.h.
10773         (results_g, flag_results, custom_quotes, custom_results): Moved
10774         to tests/test-quotearg-simple.c.
10775         (main): Moved the part that does not depend on gettext to
10776         tests/test-quotearg-simple.c. Return 77 if the test cannot be
10777         performed.
10778         * modules/quotearg-simple: New file.
10779         * modules/quotearg-simple-tests: New file.
10780         * modules/quotearg (Depends-on): Add quotearg-simple.
10781         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
10782         (Files): Add tests/test-quotearg.h.
10783         Reported by Paolo Bonzini.
10784
10785 2010-06-03  Bruno Haible  <bruno@clisp.org>
10786
10787         Reduce dependencies.
10788         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
10789
10790 2010-06-03  Bruno Haible  <bruno@clisp.org>
10791
10792         time: Undefine more broken macros.
10793         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
10794         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
10795         Reported by Eric Blake.
10796
10797 2010-06-03  Bruno Haible  <bruno@clisp.org>
10798
10799         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
10800         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
10801         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
10802         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
10803         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
10804         Reported by Ludovic Courtès <ludo@gnu.org>.
10805
10806 2010-06-02  Eric Blake  <eblake@redhat.com>
10807
10808         time: work with mingw + pthreads-win32 library
10809         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
10810         if timespec is defined only in pthread.h.
10811         * modules/time (Makefile.am): Substitute it.
10812         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
10813         <pthread.h>, when needed.
10814         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
10815         from the library.
10816
10817 2010-05-31  Bruno Haible  <bruno@clisp.org>
10818
10819         Avoid expanding two macros in the wrong order.
10820         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
10821         gl_LIBUNISTRING if it is defined.
10822         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
10823         autoconf >= 2.64.
10824         Reported by Ludovic Courtès <ludo@gnu.org>.
10825
10826 2010-05-27  Jim Meyering  <meyering@redhat.com>
10827
10828         maint.mk: also prohibit "#undef" of always-defined symbols
10829         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
10830         Allow more than one space before the symbol name.
10831         (sc_prohibit_always-defined_macros): Use grep's -E, now that
10832         the regexp uses alternation.
10833
10834 2010-05-26  Eric Blake  <eblake@redhat.com>
10835
10836         maint.mk: avoid echo -e
10837         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
10838         Convert all uses of echo -* to printf.
10839         Reported by Matthias Bolte.
10840
10841 2010-05-25  Bruno Haible  <bruno@clisp.org>
10842
10843         Update to GNU gettext 0.18, part 2.
10844         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
10845         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
10846
10847 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10848
10849         Add missing include in test-pwrite.c.
10850         * tests/test-pwrite.c: Include string.h, for strcmp.
10851
10852 2010-05-24  Bruno Haible  <bruno@clisp.org>
10853
10854         * NEWS: Mention requirement for Automake option 'subdir-objects'.
10855
10856 2010-05-24  Bruno Haible  <bruno@clisp.org>
10857
10858         Don't use conversion with transliteration in u{8,16,32}_strcoll.
10859         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
10860         iconveh_error argument.
10861         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
10862         U_STRCONV_TO_LOCALE.
10863         * lib/unistr/u16-strcoll.c: Likewise.
10864         * lib/unistr/u32-strcoll.c: Likewise.
10865         * modules/unistr/u8-strcoll (Depends-on): Add
10866         uniconv/u8-strconv-to-enc, localcharset. Remove
10867         uniconv/u8-strconv-to-locale.
10868         (configure.ac): Bump version number.
10869         * modules/unistr/u16-strcoll (Depends-on): Add
10870         uniconv/u16-strconv-to-enc, localcharset. Remove
10871         uniconv/u16-strconv-to-locale.
10872         (configure.ac): Bump version number.
10873         * modules/unistr/u32-strcoll (Depends-on): Add
10874         uniconv/u32-strconv-to-enc, localcharset. Remove
10875         uniconv/u32-strconv-to-locale.
10876         (configure.ac): Bump version number.
10877
10878 2010-05-24  Bruno Haible  <bruno@clisp.org>
10879
10880         Avoid a test failure on NetBSD 5.0.
10881         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
10882         an iconv() bug.
10883
10884 2010-05-24  Bruno Haible  <bruno@clisp.org>
10885
10886         Adjust #include directive style.
10887         * modules/regex (Includes): Recommend to write <regex.h>.
10888
10889 2010-05-24  Bruno Haible  <bruno@clisp.org>
10890
10891         regex: Don't require alloca.
10892         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
10893         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
10894         only inside if (0).
10895
10896 2010-05-23  Jim Meyering  <meyering@redhat.com>
10897
10898         test-renameat.c: include <sys/stat.h>
10899         * tests/test-renameat.c: Include <sys/stat.h>; required for
10900         definition of S_IS* macros.
10901
10902 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
10903
10904         Update maintainer documentation for 'relocatable-prog' module.
10905         * doc/relocatable-maint.texi: Update.
10906         Comments by Bruno Haible.
10907
10908 2010-05-23  Bruno Haible  <bruno@clisp.org>
10909
10910         git-merge-changelog: Enable --split-merged-entry by default.
10911         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
10912         (usage): Don't mention this option any more.
10913         Reported by Ralf Wildenhues.
10914
10915 2010-05-23  Jim Meyering  <meyering@redhat.com>
10916
10917         test-pwrite: do not leave behind a test file named "out"
10918         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
10919         The trivial-looking use of init.sh is really necessary.
10920         It ensures that the temporary file, "out", is created in
10921         a temporary directory, and removed upon termination.
10922         * tests/test-pwrite.sh: Re-add file.
10923         * modules/pwrite-tests: Reference it.
10924
10925 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10926
10927         Fix output redirection buglet in init.sh.
10928         * tests/init.sh: Fix redirection of stderr.
10929
10930 2010-05-20  Simon Josefsson  <simon@josefsson.org>
10931
10932         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
10933
10934 2010-05-17  Simon Josefsson  <simon@josefsson.org>
10935
10936         * modules/valgrind-tests: New file.
10937         * m4/valgrind-tests.m4: New file.
10938         * doc/valgrind-tests.texi: New file.
10939         * doc/gnulib.texi (Running self-tests under valgrind): New
10940         section.
10941
10942 2010-05-19  Bruno Haible  <bruno@clisp.org>
10943
10944         Clean up dead code in recent commit.
10945         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
10946         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
10947         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
10948         Suggested by Paolo Bonzini.
10949
10950 2010-05-19  Bruno Haible  <bruno@clisp.org>
10951
10952         Avoid valgrind error reports from libunistring.
10953         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
10954         * modules/libunistring (Files): Add it.
10955         * modules/libunistring-optional (Files): Likewise.
10956
10957 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
10958             Bruno Haible  <bruno@clisp.org>
10959
10960         New module 'libunistring-optional'.
10961         * modules/libunistring-optional: New file.
10962         * m4/libunistring-base.m4: New file.
10963         * m4/libunistring-optional.m4: New file.
10964         * lib/unicase.in.h: Renamed from lib/unicase.h.
10965         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
10966         * lib/unictype.in.h: Renamed from lib/unictype.h.
10967         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
10968         * lib/uniname.in.h: Renamed from lib/uniname.h.
10969         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
10970         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
10971         * lib/unistr.in.h: Renamed from lib/unistr.h.
10972         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
10973         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
10974         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
10975         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
10976         gl_LIBUNISTRING. If the library was found, determine the installed
10977         version and set LIBUNISTRING_VERSION.
10978         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
10979         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
10980         handle a configuration option --with-included-libunistring.
10981         * modules/libunistring (Files): Add m4/absolute-header.m4.
10982         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
10983         Add m4/libunistring-base.m4.
10984         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10985         (Makefile.am): Build unicase.h from unicase.in.h.
10986         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
10987         Add m4/libunistring-base.m4.
10988         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10989         (Makefile.am): Build uniconv.h from uniconv.in.h.
10990         * modules/unictype/base (Files): Use unictype.in.h instead of
10991         unictype.h. Add m4/libunistring-base.m4.
10992         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10993         (Makefile.am): Build unictype.h from unictype.in.h.
10994         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
10995         Add m4/libunistring-base.m4.
10996         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
10997         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
10998         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
10999         Add m4/libunistring-base.m4.
11000         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11001         (Makefile.am): Build uniname.h from uniname.in.h.
11002         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
11003         Add m4/libunistring-base.m4.
11004         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11005         (Makefile.am): Build uninorm.h from uninorm.in.h.
11006         * modules/unistdio/base (Files): Use unistdio.in.h instead of
11007         unistdio.h. Add m4/libunistring-base.m4.
11008         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11009         (Makefile.am): Build unistdio.h from unistdio.in.h.
11010         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
11011         Add m4/libunistring-base.m4.
11012         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11013         (Makefile.am): Build unistr.h from unistr.in.h.
11014         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
11015         Add m4/libunistring-base.m4.
11016         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11017         (Makefile.am): Build unitypes.h from unitypes.in.h.
11018         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
11019         Add m4/libunistring-base.m4.
11020         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11021         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
11022         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
11023         uniwidth.h. Add m4/libunistring-base.m4.
11024         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11025         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
11026         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
11027         instead of augmenting lib_SOURCES.
11028         * modules/unicase/empty-suffix-context: Likewise.
11029         * modules/unicase/locale-language: Likewise.
11030         * modules/unicase/tolower: Likewise.
11031         * modules/unicase/totitle: Likewise.
11032         * modules/unicase/toupper: Likewise.
11033         * modules/unicase/u8-casecmp: Likewise.
11034         * modules/unicase/u8-casecoll: Likewise.
11035         * modules/unicase/u8-casefold: Likewise.
11036         * modules/unicase/u8-casexfrm: Likewise.
11037         * modules/unicase/u8-ct-casefold: Likewise.
11038         * modules/unicase/u8-ct-tolower: Likewise.
11039         * modules/unicase/u8-ct-totitle: Likewise.
11040         * modules/unicase/u8-ct-toupper: Likewise.
11041         * modules/unicase/u8-is-cased: Likewise.
11042         * modules/unicase/u8-is-casefolded: Likewise.
11043         * modules/unicase/u8-is-lowercase: Likewise.
11044         * modules/unicase/u8-is-titlecase: Likewise.
11045         * modules/unicase/u8-is-uppercase: Likewise.
11046         * modules/unicase/u8-prefix-context: Likewise.
11047         * modules/unicase/u8-suffix-context: Likewise.
11048         * modules/unicase/u8-tolower: Likewise.
11049         * modules/unicase/u8-totitle: Likewise.
11050         * modules/unicase/u8-toupper: Likewise.
11051         * modules/unicase/u16-casecmp: Likewise.
11052         * modules/unicase/u16-casecoll: Likewise.
11053         * modules/unicase/u16-casefold: Likewise.
11054         * modules/unicase/u16-casexfrm: Likewise.
11055         * modules/unicase/u16-ct-casefold: Likewise.
11056         * modules/unicase/u16-ct-tolower: Likewise.
11057         * modules/unicase/u16-ct-totitle: Likewise.
11058         * modules/unicase/u16-ct-toupper: Likewise.
11059         * modules/unicase/u16-is-cased: Likewise.
11060         * modules/unicase/u16-is-casefolded: Likewise.
11061         * modules/unicase/u16-is-lowercase: Likewise.
11062         * modules/unicase/u16-is-titlecase: Likewise.
11063         * modules/unicase/u16-is-uppercase: Likewise.
11064         * modules/unicase/u16-prefix-context: Likewise.
11065         * modules/unicase/u16-suffix-context: Likewise.
11066         * modules/unicase/u16-tolower: Likewise.
11067         * modules/unicase/u16-totitle: Likewise.
11068         * modules/unicase/u16-toupper: Likewise.
11069         * modules/unicase/u32-casecmp: Likewise.
11070         * modules/unicase/u32-casecoll: Likewise.
11071         * modules/unicase/u32-casefold: Likewise.
11072         * modules/unicase/u32-casexfrm: Likewise.
11073         * modules/unicase/u32-ct-casefold: Likewise.
11074         * modules/unicase/u32-ct-tolower: Likewise.
11075         * modules/unicase/u32-ct-totitle: Likewise.
11076         * modules/unicase/u32-ct-toupper: Likewise.
11077         * modules/unicase/u32-is-cased: Likewise.
11078         * modules/unicase/u32-is-casefolded: Likewise.
11079         * modules/unicase/u32-is-lowercase: Likewise.
11080         * modules/unicase/u32-is-titlecase: Likewise.
11081         * modules/unicase/u32-is-uppercase: Likewise.
11082         * modules/unicase/u32-prefix-context: Likewise.
11083         * modules/unicase/u32-suffix-context: Likewise.
11084         * modules/unicase/u32-tolower: Likewise.
11085         * modules/unicase/u32-totitle: Likewise.
11086         * modules/unicase/u32-toupper: Likewise.
11087         * modules/unicase/ulc-casecmp: Likewise.
11088         * modules/unicase/ulc-casecoll: Likewise.
11089         * modules/unicase/ulc-casexfrm: Likewise.
11090         * modules/uniconv/u8-conv-from-enc: Likewise.
11091         * modules/uniconv/u8-conv-to-enc: Likewise.
11092         * modules/uniconv/u8-strconv-from-enc: Likewise.
11093         * modules/uniconv/u8-strconv-from-locale: Likewise.
11094         * modules/uniconv/u8-strconv-to-enc: Likewise.
11095         * modules/uniconv/u8-strconv-to-locale: Likewise.
11096         * modules/uniconv/u16-conv-from-enc: Likewise.
11097         * modules/uniconv/u16-conv-to-enc: Likewise.
11098         * modules/uniconv/u16-strconv-from-enc: Likewise.
11099         * modules/uniconv/u16-strconv-from-locale: Likewise.
11100         * modules/uniconv/u16-strconv-to-enc: Likewise.
11101         * modules/uniconv/u16-strconv-to-locale: Likewise.
11102         * modules/uniconv/u32-conv-from-enc: Likewise.
11103         * modules/uniconv/u32-conv-to-enc: Likewise.
11104         * modules/uniconv/u32-strconv-from-enc: Likewise.
11105         * modules/uniconv/u32-strconv-from-locale: Likewise.
11106         * modules/uniconv/u32-strconv-to-enc: Likewise.
11107         * modules/uniconv/u32-strconv-to-locale: Likewise.
11108         * modules/unictype/bidicategory-byname: Likewise.
11109         * modules/unictype/bidicategory-name: Likewise.
11110         * modules/unictype/bidicategory-of: Likewise.
11111         * modules/unictype/bidicategory-test: Likewise.
11112         * modules/unictype/block-list: Likewise.
11113         * modules/unictype/block-test: Likewise.
11114         * modules/unictype/category-C: Likewise.
11115         * modules/unictype/category-Cc: Likewise.
11116         * modules/unictype/category-Cf: Likewise.
11117         * modules/unictype/category-Cn: Likewise.
11118         * modules/unictype/category-Co: Likewise.
11119         * modules/unictype/category-Cs: Likewise.
11120         * modules/unictype/category-L: Likewise.
11121         * modules/unictype/category-Ll: Likewise.
11122         * modules/unictype/category-Lm: Likewise.
11123         * modules/unictype/category-Lo: Likewise.
11124         * modules/unictype/category-Lt: Likewise.
11125         * modules/unictype/category-Lu: Likewise.
11126         * modules/unictype/category-M: Likewise.
11127         * modules/unictype/category-Mc: Likewise.
11128         * modules/unictype/category-Me: Likewise.
11129         * modules/unictype/category-Mn: Likewise.
11130         * modules/unictype/category-N: Likewise.
11131         * modules/unictype/category-Nd: Likewise.
11132         * modules/unictype/category-Nl: Likewise.
11133         * modules/unictype/category-No: Likewise.
11134         * modules/unictype/category-P: Likewise.
11135         * modules/unictype/category-Pc: Likewise.
11136         * modules/unictype/category-Pd: Likewise.
11137         * modules/unictype/category-Pe: Likewise.
11138         * modules/unictype/category-Pf: Likewise.
11139         * modules/unictype/category-Pi: Likewise.
11140         * modules/unictype/category-Po: Likewise.
11141         * modules/unictype/category-Ps: Likewise.
11142         * modules/unictype/category-S: Likewise.
11143         * modules/unictype/category-Sc: Likewise.
11144         * modules/unictype/category-Sk: Likewise.
11145         * modules/unictype/category-Sm: Likewise.
11146         * modules/unictype/category-So: Likewise.
11147         * modules/unictype/category-Z: Likewise.
11148         * modules/unictype/category-Zl: Likewise.
11149         * modules/unictype/category-Zp: Likewise.
11150         * modules/unictype/category-Zs: Likewise.
11151         * modules/unictype/category-and: Likewise.
11152         * modules/unictype/category-and-not: Likewise.
11153         * modules/unictype/category-byname: Likewise.
11154         * modules/unictype/category-name: Likewise.
11155         * modules/unictype/category-none: Likewise.
11156         * modules/unictype/category-of: Likewise.
11157         * modules/unictype/category-or: Likewise.
11158         * modules/unictype/category-test: Likewise.
11159         * modules/unictype/combining-class: Likewise.
11160         * modules/unictype/ctype-alnum: Likewise.
11161         * modules/unictype/ctype-alpha: Likewise.
11162         * modules/unictype/ctype-blank: Likewise.
11163         * modules/unictype/ctype-cntrl: Likewise.
11164         * modules/unictype/ctype-digit: Likewise.
11165         * modules/unictype/ctype-graph: Likewise.
11166         * modules/unictype/ctype-lower: Likewise.
11167         * modules/unictype/ctype-print: Likewise.
11168         * modules/unictype/ctype-punct: Likewise.
11169         * modules/unictype/ctype-space: Likewise.
11170         * modules/unictype/ctype-upper: Likewise.
11171         * modules/unictype/ctype-xdigit: Likewise.
11172         * modules/unictype/decimal-digit: Likewise.
11173         * modules/unictype/digit: Likewise.
11174         * modules/unictype/mirror: Likewise.
11175         * modules/unictype/numeric: Likewise.
11176         * modules/unictype/property-alphabetic: Likewise.
11177         * modules/unictype/property-ascii-hex-digit: Likewise.
11178         * modules/unictype/property-bidi-arabic-digit: Likewise.
11179         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11180         * modules/unictype/property-bidi-block-separator: Likewise.
11181         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11182         * modules/unictype/property-bidi-common-separator: Likewise.
11183         * modules/unictype/property-bidi-control: Likewise.
11184         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11185         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11186         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11187         * modules/unictype/property-bidi-european-digit: Likewise.
11188         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11189         * modules/unictype/property-bidi-left-to-right: Likewise.
11190         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11191         * modules/unictype/property-bidi-other-neutral: Likewise.
11192         * modules/unictype/property-bidi-pdf: Likewise.
11193         * modules/unictype/property-bidi-segment-separator: Likewise.
11194         * modules/unictype/property-bidi-whitespace: Likewise.
11195         * modules/unictype/property-byname: Likewise.
11196         * modules/unictype/property-combining: Likewise.
11197         * modules/unictype/property-composite: Likewise.
11198         * modules/unictype/property-currency-symbol: Likewise.
11199         * modules/unictype/property-dash: Likewise.
11200         * modules/unictype/property-decimal-digit: Likewise.
11201         * modules/unictype/property-default-ignorable-code-point: Likewise.
11202         * modules/unictype/property-deprecated: Likewise.
11203         * modules/unictype/property-diacritic: Likewise.
11204         * modules/unictype/property-extender: Likewise.
11205         * modules/unictype/property-format-control: Likewise.
11206         * modules/unictype/property-grapheme-base: Likewise.
11207         * modules/unictype/property-grapheme-extend: Likewise.
11208         * modules/unictype/property-grapheme-link: Likewise.
11209         * modules/unictype/property-hex-digit: Likewise.
11210         * modules/unictype/property-hyphen: Likewise.
11211         * modules/unictype/property-id-continue: Likewise.
11212         * modules/unictype/property-id-start: Likewise.
11213         * modules/unictype/property-ideographic: Likewise.
11214         * modules/unictype/property-ids-binary-operator: Likewise.
11215         * modules/unictype/property-ids-trinary-operator: Likewise.
11216         * modules/unictype/property-ignorable-control: Likewise.
11217         * modules/unictype/property-iso-control: Likewise.
11218         * modules/unictype/property-join-control: Likewise.
11219         * modules/unictype/property-left-of-pair: Likewise.
11220         * modules/unictype/property-line-separator: Likewise.
11221         * modules/unictype/property-logical-order-exception: Likewise.
11222         * modules/unictype/property-lowercase: Likewise.
11223         * modules/unictype/property-math: Likewise.
11224         * modules/unictype/property-non-break: Likewise.
11225         * modules/unictype/property-not-a-character: Likewise.
11226         * modules/unictype/property-numeric: Likewise.
11227         * modules/unictype/property-other-alphabetic: Likewise.
11228         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11229         * modules/unictype/property-other-grapheme-extend: Likewise.
11230         * modules/unictype/property-other-id-continue: Likewise.
11231         * modules/unictype/property-other-id-start: Likewise.
11232         * modules/unictype/property-other-lowercase: Likewise.
11233         * modules/unictype/property-other-math: Likewise.
11234         * modules/unictype/property-other-uppercase: Likewise.
11235         * modules/unictype/property-paired-punctuation: Likewise.
11236         * modules/unictype/property-paragraph-separator: Likewise.
11237         * modules/unictype/property-pattern-syntax: Likewise.
11238         * modules/unictype/property-pattern-white-space: Likewise.
11239         * modules/unictype/property-private-use: Likewise.
11240         * modules/unictype/property-punctuation: Likewise.
11241         * modules/unictype/property-quotation-mark: Likewise.
11242         * modules/unictype/property-radical: Likewise.
11243         * modules/unictype/property-sentence-terminal: Likewise.
11244         * modules/unictype/property-soft-dotted: Likewise.
11245         * modules/unictype/property-space: Likewise.
11246         * modules/unictype/property-terminal-punctuation: Likewise.
11247         * modules/unictype/property-test: Likewise.
11248         * modules/unictype/property-titlecase: Likewise.
11249         * modules/unictype/property-unassigned-code-value: Likewise.
11250         * modules/unictype/property-unified-ideograph: Likewise.
11251         * modules/unictype/property-uppercase: Likewise.
11252         * modules/unictype/property-variation-selector: Likewise.
11253         * modules/unictype/property-white-space: Likewise.
11254         * modules/unictype/property-xid-continue: Likewise.
11255         * modules/unictype/property-xid-start: Likewise.
11256         * modules/unictype/property-zero-width: Likewise.
11257         * modules/unictype/scripts: Likewise.
11258         * modules/unictype/syntax-c-ident: Likewise.
11259         * modules/unictype/syntax-c-whitespace: Likewise.
11260         * modules/unictype/syntax-java-ident: Likewise.
11261         * modules/unictype/syntax-java-whitespace: Likewise.
11262         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11263         * modules/unilbrk/u8-width-linebreaks: Likewise.
11264         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11265         * modules/unilbrk/u16-width-linebreaks: Likewise.
11266         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11267         * modules/unilbrk/u32-width-linebreaks: Likewise.
11268         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11269         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11270         * modules/uniname/uniname: Likewise.
11271         * modules/uninorm/canonical-decomposition: Likewise.
11272         * modules/uninorm/composition: Likewise.
11273         * modules/uninorm/decomposing-form: Likewise.
11274         * modules/uninorm/decomposition: Likewise.
11275         * modules/uninorm/filter: Likewise.
11276         * modules/uninorm/nfc: Likewise.
11277         * modules/uninorm/nfd: Likewise.
11278         * modules/uninorm/nfkc: Likewise.
11279         * modules/uninorm/nfkd: Likewise.
11280         * modules/uninorm/u8-normalize: Likewise.
11281         * modules/uninorm/u8-normcmp: Likewise.
11282         * modules/uninorm/u8-normcoll: Likewise.
11283         * modules/uninorm/u8-normxfrm: Likewise.
11284         * modules/uninorm/u16-normalize: Likewise.
11285         * modules/uninorm/u16-normcmp: Likewise.
11286         * modules/uninorm/u16-normcoll: Likewise.
11287         * modules/uninorm/u16-normxfrm: Likewise.
11288         * modules/uninorm/u32-normalize: Likewise.
11289         * modules/uninorm/u32-normcmp: Likewise.
11290         * modules/uninorm/u32-normcoll: Likewise.
11291         * modules/uninorm/u32-normxfrm: Likewise.
11292         * modules/unistdio/u8-asnprintf: Likewise.
11293         * modules/unistdio/u8-asprintf: Likewise.
11294         * modules/unistdio/u8-snprintf: Likewise.
11295         * modules/unistdio/u8-sprintf: Likewise.
11296         * modules/unistdio/u8-u8-asnprintf: Likewise.
11297         * modules/unistdio/u8-u8-asprintf: Likewise.
11298         * modules/unistdio/u8-u8-snprintf: Likewise.
11299         * modules/unistdio/u8-u8-sprintf: Likewise.
11300         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11301         * modules/unistdio/u8-u8-vasprintf: Likewise.
11302         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11303         * modules/unistdio/u8-u8-vsprintf: Likewise.
11304         * modules/unistdio/u8-vasnprintf: Likewise.
11305         * modules/unistdio/u8-vasprintf: Likewise.
11306         * modules/unistdio/u8-vsnprintf: Likewise.
11307         * modules/unistdio/u8-vsprintf: Likewise.
11308         * modules/unistdio/u16-asnprintf: Likewise.
11309         * modules/unistdio/u16-asprintf: Likewise.
11310         * modules/unistdio/u16-snprintf: Likewise.
11311         * modules/unistdio/u16-sprintf: Likewise.
11312         * modules/unistdio/u16-u16-asnprintf: Likewise.
11313         * modules/unistdio/u16-u16-asprintf: Likewise.
11314         * modules/unistdio/u16-u16-snprintf: Likewise.
11315         * modules/unistdio/u16-u16-sprintf: Likewise.
11316         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11317         * modules/unistdio/u16-u16-vasprintf: Likewise.
11318         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11319         * modules/unistdio/u16-u16-vsprintf: Likewise.
11320         * modules/unistdio/u16-vasnprintf: Likewise.
11321         * modules/unistdio/u16-vasprintf: Likewise.
11322         * modules/unistdio/u16-vsnprintf: Likewise.
11323         * modules/unistdio/u16-vsprintf: Likewise.
11324         * modules/unistdio/u32-asnprintf: Likewise.
11325         * modules/unistdio/u32-asprintf: Likewise.
11326         * modules/unistdio/u32-snprintf: Likewise.
11327         * modules/unistdio/u32-sprintf: Likewise.
11328         * modules/unistdio/u32-u32-asnprintf: Likewise.
11329         * modules/unistdio/u32-u32-asprintf: Likewise.
11330         * modules/unistdio/u32-u32-snprintf: Likewise.
11331         * modules/unistdio/u32-u32-sprintf: Likewise.
11332         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11333         * modules/unistdio/u32-u32-vasprintf: Likewise.
11334         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11335         * modules/unistdio/u32-u32-vsprintf: Likewise.
11336         * modules/unistdio/u32-vasnprintf: Likewise.
11337         * modules/unistdio/u32-vasprintf: Likewise.
11338         * modules/unistdio/u32-vsnprintf: Likewise.
11339         * modules/unistdio/u32-vsprintf: Likewise.
11340         * modules/unistdio/ulc-asnprintf: Likewise.
11341         * modules/unistdio/ulc-asprintf: Likewise.
11342         * modules/unistdio/ulc-fprintf: Likewise.
11343         * modules/unistdio/ulc-snprintf: Likewise.
11344         * modules/unistdio/ulc-sprintf: Likewise.
11345         * modules/unistdio/ulc-vasnprintf: Likewise.
11346         * modules/unistdio/ulc-vasprintf: Likewise.
11347         * modules/unistdio/ulc-vfprintf: Likewise.
11348         * modules/unistdio/ulc-vsnprintf: Likewise.
11349         * modules/unistdio/ulc-vsprintf: Likewise.
11350         * modules/unistr/u8-check: Likewise.
11351         * modules/unistr/u8-chr: Likewise.
11352         * modules/unistr/u8-cmp: Likewise.
11353         * modules/unistr/u8-cmp2: Likewise.
11354         * modules/unistr/u8-cpy: Likewise.
11355         * modules/unistr/u8-cpy-alloc: Likewise.
11356         * modules/unistr/u8-endswith: Likewise.
11357         * modules/unistr/u8-mblen: Likewise.
11358         * modules/unistr/u8-mbsnlen: Likewise.
11359         * modules/unistr/u8-mbtouc: Likewise.
11360         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11361         * modules/unistr/u8-mbtoucr: Likewise.
11362         * modules/unistr/u8-move: Likewise.
11363         * modules/unistr/u8-next: Likewise.
11364         * modules/unistr/u8-prev: Likewise.
11365         * modules/unistr/u8-set: Likewise.
11366         * modules/unistr/u8-startswith: Likewise.
11367         * modules/unistr/u8-stpcpy: Likewise.
11368         * modules/unistr/u8-stpncpy: Likewise.
11369         * modules/unistr/u8-strcat: Likewise.
11370         * modules/unistr/u8-strchr: Likewise.
11371         * modules/unistr/u8-strcmp: Likewise.
11372         * modules/unistr/u8-strcoll: Likewise.
11373         * modules/unistr/u8-strcpy: Likewise.
11374         * modules/unistr/u8-strcspn: Likewise.
11375         * modules/unistr/u8-strdup: Likewise.
11376         * modules/unistr/u8-strlen: Likewise.
11377         * modules/unistr/u8-strmblen: Likewise.
11378         * modules/unistr/u8-strmbtouc: Likewise.
11379         * modules/unistr/u8-strncat: Likewise.
11380         * modules/unistr/u8-strncmp: Likewise.
11381         * modules/unistr/u8-strncpy: Likewise.
11382         * modules/unistr/u8-strnlen: Likewise.
11383         * modules/unistr/u8-strpbrk: Likewise.
11384         * modules/unistr/u8-strrchr: Likewise.
11385         * modules/unistr/u8-strspn: Likewise.
11386         * modules/unistr/u8-strstr: Likewise.
11387         * modules/unistr/u8-strtok: Likewise.
11388         * modules/unistr/u8-to-u16: Likewise.
11389         * modules/unistr/u8-to-u32: Likewise.
11390         * modules/unistr/u8-uctomb: Likewise.
11391         * modules/unistr/u16-check: Likewise.
11392         * modules/unistr/u16-chr: Likewise.
11393         * modules/unistr/u16-cmp: Likewise.
11394         * modules/unistr/u16-cmp2: Likewise.
11395         * modules/unistr/u16-cpy: Likewise.
11396         * modules/unistr/u16-cpy-alloc: Likewise.
11397         * modules/unistr/u16-endswith: Likewise.
11398         * modules/unistr/u16-mblen: Likewise.
11399         * modules/unistr/u16-mbsnlen: Likewise.
11400         * modules/unistr/u16-mbtouc: Likewise.
11401         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11402         * modules/unistr/u16-mbtoucr: Likewise.
11403         * modules/unistr/u16-move: Likewise.
11404         * modules/unistr/u16-next: Likewise.
11405         * modules/unistr/u16-prev: Likewise.
11406         * modules/unistr/u16-set: Likewise.
11407         * modules/unistr/u16-startswith: Likewise.
11408         * modules/unistr/u16-stpcpy: Likewise.
11409         * modules/unistr/u16-stpncpy: Likewise.
11410         * modules/unistr/u16-strcat: Likewise.
11411         * modules/unistr/u16-strchr: Likewise.
11412         * modules/unistr/u16-strcmp: Likewise.
11413         * modules/unistr/u16-strcoll: Likewise.
11414         * modules/unistr/u16-strcpy: Likewise.
11415         * modules/unistr/u16-strcspn: Likewise.
11416         * modules/unistr/u16-strdup: Likewise.
11417         * modules/unistr/u16-strlen: Likewise.
11418         * modules/unistr/u16-strmblen: Likewise.
11419         * modules/unistr/u16-strmbtouc: Likewise.
11420         * modules/unistr/u16-strncat: Likewise.
11421         * modules/unistr/u16-strncmp: Likewise.
11422         * modules/unistr/u16-strncpy: Likewise.
11423         * modules/unistr/u16-strnlen: Likewise.
11424         * modules/unistr/u16-strpbrk: Likewise.
11425         * modules/unistr/u16-strrchr: Likewise.
11426         * modules/unistr/u16-strspn: Likewise.
11427         * modules/unistr/u16-strstr: Likewise.
11428         * modules/unistr/u16-strtok: Likewise.
11429         * modules/unistr/u16-to-u32: Likewise.
11430         * modules/unistr/u16-to-u8: Likewise.
11431         * modules/unistr/u16-uctomb: Likewise.
11432         * modules/unistr/u32-check: Likewise.
11433         * modules/unistr/u32-chr: Likewise.
11434         * modules/unistr/u32-cmp: Likewise.
11435         * modules/unistr/u32-cmp2: Likewise.
11436         * modules/unistr/u32-cpy: Likewise.
11437         * modules/unistr/u32-cpy-alloc: Likewise.
11438         * modules/unistr/u32-endswith: Likewise.
11439         * modules/unistr/u32-mblen: Likewise.
11440         * modules/unistr/u32-mbsnlen: Likewise.
11441         * modules/unistr/u32-mbtouc: Likewise.
11442         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11443         * modules/unistr/u32-mbtoucr: Likewise.
11444         * modules/unistr/u32-move: Likewise.
11445         * modules/unistr/u32-next: Likewise.
11446         * modules/unistr/u32-prev: Likewise.
11447         * modules/unistr/u32-set: Likewise.
11448         * modules/unistr/u32-startswith: Likewise.
11449         * modules/unistr/u32-stpcpy: Likewise.
11450         * modules/unistr/u32-stpncpy: Likewise.
11451         * modules/unistr/u32-strcat: Likewise.
11452         * modules/unistr/u32-strchr: Likewise.
11453         * modules/unistr/u32-strcmp: Likewise.
11454         * modules/unistr/u32-strcoll: Likewise.
11455         * modules/unistr/u32-strcpy: Likewise.
11456         * modules/unistr/u32-strcspn: Likewise.
11457         * modules/unistr/u32-strdup: Likewise.
11458         * modules/unistr/u32-strlen: Likewise.
11459         * modules/unistr/u32-strmblen: Likewise.
11460         * modules/unistr/u32-strmbtouc: Likewise.
11461         * modules/unistr/u32-strncat: Likewise.
11462         * modules/unistr/u32-strncmp: Likewise.
11463         * modules/unistr/u32-strncpy: Likewise.
11464         * modules/unistr/u32-strnlen: Likewise.
11465         * modules/unistr/u32-strpbrk: Likewise.
11466         * modules/unistr/u32-strrchr: Likewise.
11467         * modules/unistr/u32-strspn: Likewise.
11468         * modules/unistr/u32-strstr: Likewise.
11469         * modules/unistr/u32-strtok: Likewise.
11470         * modules/unistr/u32-to-u16: Likewise.
11471         * modules/unistr/u32-to-u8: Likewise.
11472         * modules/unistr/u32-uctomb: Likewise.
11473         * modules/uniwbrk/u8-wordbreaks: Likewise.
11474         * modules/uniwbrk/u16-wordbreaks: Likewise.
11475         * modules/uniwbrk/u32-wordbreaks: Likewise.
11476         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11477         * modules/uniwbrk/wordbreak-property: Likewise.
11478         * modules/uniwidth/u8-strwidth: Likewise.
11479         * modules/uniwidth/u8-width: Likewise.
11480         * modules/uniwidth/u16-strwidth: Likewise.
11481         * modules/uniwidth/u16-width: Likewise.
11482         * modules/uniwidth/u32-strwidth: Likewise.
11483         * modules/uniwidth/u32-width: Likewise.
11484         * modules/uniwidth/width: Likewise.
11485         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11486         with $(LIBUNISTRING).
11487         * modules/unicase/ignorable-tests: Likewise.
11488         * modules/unicase/locale-language-tests: Likewise.
11489         * modules/unicase/tolower-tests: Likewise.
11490         * modules/unicase/totitle-tests: Likewise.
11491         * modules/unicase/toupper-tests: Likewise.
11492         * modules/unicase/u8-casecmp-tests: Likewise.
11493         * modules/unicase/u8-casecoll-tests: Likewise.
11494         * modules/unicase/u8-casefold-tests: Likewise.
11495         * modules/unicase/u8-is-cased-tests: Likewise.
11496         * modules/unicase/u8-is-casefolded-tests: Likewise.
11497         * modules/unicase/u8-is-lowercase-tests: Likewise.
11498         * modules/unicase/u8-is-titlecase-tests: Likewise.
11499         * modules/unicase/u8-is-uppercase-tests: Likewise.
11500         * modules/unicase/u8-tolower-tests: Likewise.
11501         * modules/unicase/u8-totitle-tests: Likewise.
11502         * modules/unicase/u8-toupper-tests: Likewise.
11503         * modules/unicase/u16-casecmp-tests: Likewise.
11504         * modules/unicase/u16-casecoll-tests: Likewise.
11505         * modules/unicase/u16-casefold-tests: Likewise.
11506         * modules/unicase/u16-is-cased-tests: Likewise.
11507         * modules/unicase/u16-is-casefolded-tests: Likewise.
11508         * modules/unicase/u16-is-lowercase-tests: Likewise.
11509         * modules/unicase/u16-is-titlecase-tests: Likewise.
11510         * modules/unicase/u16-is-uppercase-tests: Likewise.
11511         * modules/unicase/u16-tolower-tests: Likewise.
11512         * modules/unicase/u16-totitle-tests: Likewise.
11513         * modules/unicase/u16-toupper-tests: Likewise.
11514         * modules/unicase/u32-casecmp-tests: Likewise.
11515         * modules/unicase/u32-casecoll-tests: Likewise.
11516         * modules/unicase/u32-casefold-tests: Likewise.
11517         * modules/unicase/u32-is-cased-tests: Likewise.
11518         * modules/unicase/u32-is-casefolded-tests: Likewise.
11519         * modules/unicase/u32-is-lowercase-tests: Likewise.
11520         * modules/unicase/u32-is-titlecase-tests: Likewise.
11521         * modules/unicase/u32-is-uppercase-tests: Likewise.
11522         * modules/unicase/u32-tolower-tests: Likewise.
11523         * modules/unicase/u32-totitle-tests: Likewise.
11524         * modules/unicase/u32-toupper-tests: Likewise.
11525         * modules/unicase/ulc-casecmp-tests: Likewise.
11526         * modules/unicase/ulc-casecoll-tests: Likewise.
11527         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11528         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11529         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
11530         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
11531         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
11532         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11533         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11534         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11535         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11536         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11537         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11538         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11539         * modules/unictype/bidicategory-byname-tests: Likewise.
11540         * modules/unictype/bidicategory-name-tests: Likewise.
11541         * modules/unictype/bidicategory-of-tests: Likewise.
11542         * modules/unictype/bidicategory-test-tests: Likewise.
11543         * modules/unictype/block-list-tests: Likewise.
11544         * modules/unictype/block-of-tests: Likewise.
11545         * modules/unictype/block-test-tests: Likewise.
11546         * modules/unictype/category-C-tests: Likewise.
11547         * modules/unictype/category-Cc-tests: Likewise.
11548         * modules/unictype/category-Cf-tests: Likewise.
11549         * modules/unictype/category-Cn-tests: Likewise.
11550         * modules/unictype/category-Co-tests: Likewise.
11551         * modules/unictype/category-Cs-tests: Likewise.
11552         * modules/unictype/category-L-tests: Likewise.
11553         * modules/unictype/category-Ll-tests: Likewise.
11554         * modules/unictype/category-Lm-tests: Likewise.
11555         * modules/unictype/category-Lo-tests: Likewise.
11556         * modules/unictype/category-Lt-tests: Likewise.
11557         * modules/unictype/category-Lu-tests: Likewise.
11558         * modules/unictype/category-M-tests: Likewise.
11559         * modules/unictype/category-Mc-tests: Likewise.
11560         * modules/unictype/category-Me-tests: Likewise.
11561         * modules/unictype/category-Mn-tests: Likewise.
11562         * modules/unictype/category-N-tests: Likewise.
11563         * modules/unictype/category-Nd-tests: Likewise.
11564         * modules/unictype/category-Nl-tests: Likewise.
11565         * modules/unictype/category-No-tests: Likewise.
11566         * modules/unictype/category-P-tests: Likewise.
11567         * modules/unictype/category-Pc-tests: Likewise.
11568         * modules/unictype/category-Pd-tests: Likewise.
11569         * modules/unictype/category-Pe-tests: Likewise.
11570         * modules/unictype/category-Pf-tests: Likewise.
11571         * modules/unictype/category-Pi-tests: Likewise.
11572         * modules/unictype/category-Po-tests: Likewise.
11573         * modules/unictype/category-Ps-tests: Likewise.
11574         * modules/unictype/category-S-tests: Likewise.
11575         * modules/unictype/category-Sc-tests: Likewise.
11576         * modules/unictype/category-Sk-tests: Likewise.
11577         * modules/unictype/category-Sm-tests: Likewise.
11578         * modules/unictype/category-So-tests: Likewise.
11579         * modules/unictype/category-Z-tests: Likewise.
11580         * modules/unictype/category-Zl-tests: Likewise.
11581         * modules/unictype/category-Zp-tests: Likewise.
11582         * modules/unictype/category-Zs-tests: Likewise.
11583         * modules/unictype/category-and-not-tests: Likewise.
11584         * modules/unictype/category-and-tests: Likewise.
11585         * modules/unictype/category-byname-tests: Likewise.
11586         * modules/unictype/category-name-tests: Likewise.
11587         * modules/unictype/category-none-tests: Likewise.
11588         * modules/unictype/category-of-tests: Likewise.
11589         * modules/unictype/category-or-tests: Likewise.
11590         * modules/unictype/category-test-withtable-tests: Likewise.
11591         * modules/unictype/combining-class-tests: Likewise.
11592         * modules/unictype/ctype-alnum-tests: Likewise.
11593         * modules/unictype/ctype-alpha-tests: Likewise.
11594         * modules/unictype/ctype-blank-tests: Likewise.
11595         * modules/unictype/ctype-cntrl-tests: Likewise.
11596         * modules/unictype/ctype-digit-tests: Likewise.
11597         * modules/unictype/ctype-graph-tests: Likewise.
11598         * modules/unictype/ctype-lower-tests: Likewise.
11599         * modules/unictype/ctype-print-tests: Likewise.
11600         * modules/unictype/ctype-punct-tests: Likewise.
11601         * modules/unictype/ctype-space-tests: Likewise.
11602         * modules/unictype/ctype-upper-tests: Likewise.
11603         * modules/unictype/ctype-xdigit-tests: Likewise.
11604         * modules/unictype/decimal-digit-tests: Likewise.
11605         * modules/unictype/digit-tests: Likewise.
11606         * modules/unictype/mirror-tests: Likewise.
11607         * modules/unictype/numeric-tests: Likewise.
11608         * modules/unictype/property-alphabetic-tests: Likewise.
11609         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
11610         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
11611         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
11612         * modules/unictype/property-bidi-block-separator-tests: Likewise.
11613         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
11614         * modules/unictype/property-bidi-common-separator-tests: Likewise.
11615         * modules/unictype/property-bidi-control-tests: Likewise.
11616         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
11617         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
11618         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
11619         * modules/unictype/property-bidi-european-digit-tests: Likewise.
11620         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
11621         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
11622         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
11623         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
11624         * modules/unictype/property-bidi-pdf-tests: Likewise.
11625         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
11626         * modules/unictype/property-bidi-whitespace-tests: Likewise.
11627         * modules/unictype/property-byname-tests: Likewise.
11628         * modules/unictype/property-combining-tests: Likewise.
11629         * modules/unictype/property-composite-tests: Likewise.
11630         * modules/unictype/property-currency-symbol-tests: Likewise.
11631         * modules/unictype/property-dash-tests: Likewise.
11632         * modules/unictype/property-decimal-digit-tests: Likewise.
11633         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
11634         * modules/unictype/property-deprecated-tests: Likewise.
11635         * modules/unictype/property-diacritic-tests: Likewise.
11636         * modules/unictype/property-extender-tests: Likewise.
11637         * modules/unictype/property-format-control-tests: Likewise.
11638         * modules/unictype/property-grapheme-base-tests: Likewise.
11639         * modules/unictype/property-grapheme-extend-tests: Likewise.
11640         * modules/unictype/property-grapheme-link-tests: Likewise.
11641         * modules/unictype/property-hex-digit-tests: Likewise.
11642         * modules/unictype/property-hyphen-tests: Likewise.
11643         * modules/unictype/property-id-continue-tests: Likewise.
11644         * modules/unictype/property-id-start-tests: Likewise.
11645         * modules/unictype/property-ideographic-tests: Likewise.
11646         * modules/unictype/property-ids-binary-operator-tests: Likewise.
11647         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
11648         * modules/unictype/property-ignorable-control-tests: Likewise.
11649         * modules/unictype/property-iso-control-tests: Likewise.
11650         * modules/unictype/property-join-control-tests: Likewise.
11651         * modules/unictype/property-left-of-pair-tests: Likewise.
11652         * modules/unictype/property-line-separator-tests: Likewise.
11653         * modules/unictype/property-logical-order-exception-tests: Likewise.
11654         * modules/unictype/property-lowercase-tests: Likewise.
11655         * modules/unictype/property-math-tests: Likewise.
11656         * modules/unictype/property-non-break-tests: Likewise.
11657         * modules/unictype/property-not-a-character-tests: Likewise.
11658         * modules/unictype/property-numeric-tests: Likewise.
11659         * modules/unictype/property-other-alphabetic-tests: Likewise.
11660         * modules/unictype/property-other-default-ignorable-code-point-tests:
11661         Likewise.
11662         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
11663         * modules/unictype/property-other-id-continue-tests: Likewise.
11664         * modules/unictype/property-other-id-start-tests: Likewise.
11665         * modules/unictype/property-other-lowercase-tests: Likewise.
11666         * modules/unictype/property-other-math-tests: Likewise.
11667         * modules/unictype/property-other-uppercase-tests: Likewise.
11668         * modules/unictype/property-paired-punctuation-tests: Likewise.
11669         * modules/unictype/property-paragraph-separator-tests: Likewise.
11670         * modules/unictype/property-pattern-syntax-tests: Likewise.
11671         * modules/unictype/property-pattern-white-space-tests: Likewise.
11672         * modules/unictype/property-private-use-tests: Likewise.
11673         * modules/unictype/property-punctuation-tests: Likewise.
11674         * modules/unictype/property-quotation-mark-tests: Likewise.
11675         * modules/unictype/property-radical-tests: Likewise.
11676         * modules/unictype/property-sentence-terminal-tests: Likewise.
11677         * modules/unictype/property-soft-dotted-tests: Likewise.
11678         * modules/unictype/property-space-tests: Likewise.
11679         * modules/unictype/property-terminal-punctuation-tests: Likewise.
11680         * modules/unictype/property-test-tests: Likewise.
11681         * modules/unictype/property-titlecase-tests: Likewise.
11682         * modules/unictype/property-unassigned-code-value-tests: Likewise.
11683         * modules/unictype/property-unified-ideograph-tests: Likewise.
11684         * modules/unictype/property-uppercase-tests: Likewise.
11685         * modules/unictype/property-variation-selector-tests: Likewise.
11686         * modules/unictype/property-white-space-tests: Likewise.
11687         * modules/unictype/property-xid-continue-tests: Likewise.
11688         * modules/unictype/property-xid-start-tests: Likewise.
11689         * modules/unictype/property-zero-width-tests: Likewise.
11690         * modules/unictype/scripts-tests: Likewise.
11691         * modules/unictype/syntax-c-ident-tests: Likewise.
11692         * modules/unictype/syntax-c-whitespace-tests: Likewise.
11693         * modules/unictype/syntax-java-ident-tests: Likewise.
11694         * modules/unictype/syntax-java-whitespace-tests: Likewise.
11695         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
11696         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
11697         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
11698         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
11699         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
11700         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
11701         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
11702         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
11703         * modules/uniname/uniname-tests: Likewise.
11704         * modules/uninorm/canonical-decomposition-tests: Likewise.
11705         * modules/uninorm/compat-decomposition-tests: Likewise.
11706         * modules/uninorm/composition-tests: Likewise.
11707         * modules/uninorm/decomposing-form-tests: Likewise.
11708         * modules/uninorm/decomposition-tests: Likewise.
11709         * modules/uninorm/filter-tests: Likewise.
11710         * modules/uninorm/nfc-tests: Likewise.
11711         * modules/uninorm/nfd-tests: Likewise.
11712         * modules/uninorm/nfkc-tests: Likewise.
11713         * modules/uninorm/nfkd-tests: Likewise.
11714         * modules/uninorm/u8-normcmp-tests: Likewise.
11715         * modules/uninorm/u8-normcoll-tests: Likewise.
11716         * modules/uninorm/u16-normcmp-tests: Likewise.
11717         * modules/uninorm/u16-normcoll-tests: Likewise.
11718         * modules/uninorm/u32-normcmp-tests: Likewise.
11719         * modules/uninorm/u32-normcoll-tests: Likewise.
11720         * modules/unistdio/u8-asnprintf-tests: Likewise.
11721         * modules/unistdio/u8-vasnprintf-tests: Likewise.
11722         * modules/unistdio/u8-vasprintf-tests: Likewise.
11723         * modules/unistdio/u8-vsnprintf-tests: Likewise.
11724         * modules/unistdio/u8-vsprintf-tests: Likewise.
11725         * modules/unistdio/u16-asnprintf-tests: Likewise.
11726         * modules/unistdio/u16-vasnprintf-tests: Likewise.
11727         * modules/unistdio/u16-vasprintf-tests: Likewise.
11728         * modules/unistdio/u16-vsnprintf-tests: Likewise.
11729         * modules/unistdio/u16-vsprintf-tests: Likewise.
11730         * modules/unistdio/u32-asnprintf-tests: Likewise.
11731         * modules/unistdio/u32-vasnprintf-tests: Likewise.
11732         * modules/unistdio/u32-vasprintf-tests: Likewise.
11733         * modules/unistdio/u32-vsnprintf-tests: Likewise.
11734         * modules/unistdio/u32-vsprintf-tests: Likewise.
11735         * modules/unistdio/ulc-asnprintf-tests: Likewise.
11736         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
11737         * modules/unistdio/ulc-vasprintf-tests: Likewise.
11738         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
11739         * modules/unistdio/ulc-vsprintf-tests: Likewise.
11740         * modules/unistr/u8-check-tests: Likewise.
11741         * modules/unistr/u8-chr-tests: Likewise.
11742         * modules/unistr/u8-cmp-tests: Likewise.
11743         * modules/unistr/u8-cmp2-tests: Likewise.
11744         * modules/unistr/u8-cpy-alloc-tests: Likewise.
11745         * modules/unistr/u8-cpy-tests: Likewise.
11746         * modules/unistr/u8-mblen-tests: Likewise.
11747         * modules/unistr/u8-mbsnlen-tests: Likewise.
11748         * modules/unistr/u8-mbtouc-tests: Likewise.
11749         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
11750         * modules/unistr/u8-mbtoucr-tests: Likewise.
11751         * modules/unistr/u8-move-tests: Likewise.
11752         * modules/unistr/u8-next-tests: Likewise.
11753         * modules/unistr/u8-prev-tests: Likewise.
11754         * modules/unistr/u8-set-tests: Likewise.
11755         * modules/unistr/u8-stpcpy-tests: Likewise.
11756         * modules/unistr/u8-stpncpy-tests: Likewise.
11757         * modules/unistr/u8-strcat-tests: Likewise.
11758         * modules/unistr/u8-strcmp-tests: Likewise.
11759         * modules/unistr/u8-strcoll-tests: Likewise.
11760         * modules/unistr/u8-strcpy-tests: Likewise.
11761         * modules/unistr/u8-strdup-tests: Likewise.
11762         * modules/unistr/u8-strlen-tests: Likewise.
11763         * modules/unistr/u8-strmblen-tests: Likewise.
11764         * modules/unistr/u8-strmbtouc-tests: Likewise.
11765         * modules/unistr/u8-strncat-tests: Likewise.
11766         * modules/unistr/u8-strncmp-tests: Likewise.
11767         * modules/unistr/u8-strncpy-tests: Likewise.
11768         * modules/unistr/u8-strnlen-tests: Likewise.
11769         * modules/unistr/u8-to-u16-tests: Likewise.
11770         * modules/unistr/u8-to-u32-tests: Likewise.
11771         * modules/unistr/u8-uctomb-tests: Likewise.
11772         * modules/unistr/u16-check-tests: Likewise.
11773         * modules/unistr/u16-chr-tests: Likewise.
11774         * modules/unistr/u16-cmp-tests: Likewise.
11775         * modules/unistr/u16-cmp2-tests: Likewise.
11776         * modules/unistr/u16-cpy-alloc-tests: Likewise.
11777         * modules/unistr/u16-cpy-tests: Likewise.
11778         * modules/unistr/u16-mblen-tests: Likewise.
11779         * modules/unistr/u16-mbsnlen-tests: Likewise.
11780         * modules/unistr/u16-mbtouc-tests: Likewise.
11781         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
11782         * modules/unistr/u16-mbtoucr-tests: Likewise.
11783         * modules/unistr/u16-move-tests: Likewise.
11784         * modules/unistr/u16-next-tests: Likewise.
11785         * modules/unistr/u16-prev-tests: Likewise.
11786         * modules/unistr/u16-set-tests: Likewise.
11787         * modules/unistr/u16-stpcpy-tests: Likewise.
11788         * modules/unistr/u16-stpncpy-tests: Likewise.
11789         * modules/unistr/u16-strcat-tests: Likewise.
11790         * modules/unistr/u16-strcmp-tests: Likewise.
11791         * modules/unistr/u16-strcoll-tests: Likewise.
11792         * modules/unistr/u16-strcpy-tests: Likewise.
11793         * modules/unistr/u16-strdup-tests: Likewise.
11794         * modules/unistr/u16-strlen-tests: Likewise.
11795         * modules/unistr/u16-strmblen-tests: Likewise.
11796         * modules/unistr/u16-strmbtouc-tests: Likewise.
11797         * modules/unistr/u16-strncat-tests: Likewise.
11798         * modules/unistr/u16-strncmp-tests: Likewise.
11799         * modules/unistr/u16-strncpy-tests: Likewise.
11800         * modules/unistr/u16-strnlen-tests: Likewise.
11801         * modules/unistr/u16-to-u32-tests: Likewise.
11802         * modules/unistr/u16-to-u8-tests: Likewise.
11803         * modules/unistr/u16-uctomb-tests: Likewise.
11804         * modules/unistr/u32-check-tests: Likewise.
11805         * modules/unistr/u32-chr-tests: Likewise.
11806         * modules/unistr/u32-cmp-tests: Likewise.
11807         * modules/unistr/u32-cmp2-tests: Likewise.
11808         * modules/unistr/u32-cpy-alloc-tests: Likewise.
11809         * modules/unistr/u32-cpy-tests: Likewise.
11810         * modules/unistr/u32-mblen-tests: Likewise.
11811         * modules/unistr/u32-mbsnlen-tests: Likewise.
11812         * modules/unistr/u32-mbtouc-tests: Likewise.
11813         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
11814         * modules/unistr/u32-mbtoucr-tests: Likewise.
11815         * modules/unistr/u32-move-tests: Likewise.
11816         * modules/unistr/u32-next-tests: Likewise.
11817         * modules/unistr/u32-prev-tests: Likewise.
11818         * modules/unistr/u32-set-tests: Likewise.
11819         * modules/unistr/u32-stpcpy-tests: Likewise.
11820         * modules/unistr/u32-stpncpy-tests: Likewise.
11821         * modules/unistr/u32-strcat-tests: Likewise.
11822         * modules/unistr/u32-strcmp-tests: Likewise.
11823         * modules/unistr/u32-strcoll-tests: Likewise.
11824         * modules/unistr/u32-strcpy-tests: Likewise.
11825         * modules/unistr/u32-strdup-tests: Likewise.
11826         * modules/unistr/u32-strlen-tests: Likewise.
11827         * modules/unistr/u32-strmblen-tests: Likewise.
11828         * modules/unistr/u32-strmbtouc-tests: Likewise.
11829         * modules/unistr/u32-strncat-tests: Likewise.
11830         * modules/unistr/u32-strncmp-tests: Likewise.
11831         * modules/unistr/u32-strncpy-tests: Likewise.
11832         * modules/unistr/u32-strnlen-tests: Likewise.
11833         * modules/unistr/u32-to-u16-tests: Likewise.
11834         * modules/unistr/u32-to-u8-tests: Likewise.
11835         * modules/unistr/u32-uctomb-tests: Likewise.
11836         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
11837         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
11838         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
11839         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
11840         * modules/uniwidth/u8-strwidth-tests: Likewise.
11841         * modules/uniwidth/u8-width-tests: Likewise.
11842         * modules/uniwidth/u16-strwidth-tests: Likewise.
11843         * modules/uniwidth/u16-width-tests: Likewise.
11844         * modules/uniwidth/u32-strwidth-tests: Likewise.
11845         * modules/uniwidth/u32-width-tests: Likewise.
11846         * modules/uniwidth/width-tests: Likewise.
11847
11848 2010-05-18  Richard Jones  <rjones@redhat.com>
11849
11850         doc: users.txt: list hivex
11851         * users.txt: Add hivex.
11852
11853 2010-05-18  Richard Jones  <rjones@redhat.com>
11854
11855         doc: users.txt: list febootstrap
11856         * users.txt: Add febootstrap.
11857
11858 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
11859
11860         bootstrap: fix an error when gnulib is not used as a git submodule
11861         * build-aux/bootstrap (gnulib_path): If its length is zero then
11862         assign "gnulib" to it.
11863         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
11864
11865 2010-05-16  Bruno Haible  <bruno@clisp.org>
11866
11867         Avoid autoconf warnings about AM_ICONV.
11868         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
11869         2.64.
11870
11871 2010-05-16  Bruno Haible  <bruno@clisp.org>
11872
11873         absolute-header: Make the macro usable in more situations.
11874         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
11875         from gl_ABSOLUTE_HEADER.
11876         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
11877
11878 2010-05-16  James Youngman  <jay@gnu.org>
11879
11880         doc: update users.txt
11881         * users.txt: Add CSSC.
11882
11883 2010-05-16  Jim Meyering  <meyering@redhat.com>
11884
11885         init.sh: fix an error in the previous change; add more comments
11886         * tests/init.sh: Compare exit code in loop against 9, not 2.
11887         Patch by Bruno Haible.
11888         Make the two tests more similar by adding an empty "then" clause.
11889         Add comments.
11890
11891         init.sh: avoid unnecessary shell re-exec
11892         * tests/init.sh: Improve the re-exec-required check to first test the
11893         current shell.  If it passes the test, do not search for a shell that
11894         does pass, and do not re-exec.  This test is particularly contorted to
11895         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
11896         of $(...) evokes a syntax error and causes immediate shell exit with
11897         status 2.  Bruno Haible reported that the re-exec made it impossible
11898         to single-step through any init.sh-using script.
11899
11900 2010-05-16  Bruno Haible  <bruno@clisp.org>
11901
11902         Fix collision between gnulib's and libintl's printf replacements.
11903         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
11904         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
11905         (printf): When using GNU C, map the __printf__ function to rpl_printf
11906         via __asm__. When not using GNU C, define rpl_printf instead of
11907         __printf__.
11908         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
11909         commit.
11910         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
11911         commit.
11912         * m4/asm-underscore.m4: New file.
11913         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
11914         * modules/stdio (Files): Add m4/asm-underscore.m4.
11915         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
11916         Reported by Ben Pfaff.
11917
11918 2010-05-16  Bruno Haible  <bruno@clisp.org>
11919
11920         verify: Avoid skipping the test on openSUSE 11.0.
11921         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
11922
11923 2010-05-13  Bruno Haible  <bruno@clisp.org>
11924
11925         Avoid useless warnings from G++.
11926         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
11927         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
11928         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11929
11930 2010-05-11  Jim Meyering  <meyering@redhat.com>
11931
11932         maint.mk: tweak preceding change
11933         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
11934         regexps tighter by anchoring at EOL, and make the new group "shy"
11935         for slightly decreased overhead.
11936
11937 2010-05-11  Eric Blake  <eblake@redhat.com>
11938
11939         maint.mk: gnulib doesn't guarantee NSIG
11940         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
11941
11942 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11943
11944         test-pwrite.c: Remove unused variable declaration.
11945         * tests/test-pwrite.c (main): Remove read_buf declaration.
11946
11947         Remove useless test-pwrite.sh file.
11948         * tests/test-pwrite.sh: Delete file.
11949         * modules/pwrite-tests: Remove references.
11950         Reported by Bruno Haible.
11951
11952 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
11953
11954         init.sh: fix a typo
11955         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
11956
11957 2010-05-10  Jim Meyering  <meyering@redhat.com>
11958
11959         maint.mk: avoid using a temporary file in the always-defined-macros check
11960         * top/maint.mk (.re-defmac): Remove rule.
11961         (gl_trap_): Remove definition.
11962         (sc_prohibit_always-defined_macros): Rewrite not to create and
11963         depend on a temporary file.  Instead, depend on GNU grep's ability
11964         to read a list of regular expressions from stdin when given "-f -".
11965
11966 2010-05-09  Bruno Haible  <bruno@clisp.org>
11967
11968         Update to GNU gettext 0.18, part 1.
11969         * m4/gettext.m4: Update to GNU gettext 0.18.
11970         * m4/intl.m4: Likewise.
11971         * m4/po.m4: Likewise.
11972         * modules/gettext (Files): Add m4/fcntl-o.m4.
11973         (configure.ac): Require gettext infrastructure from version 0.18.
11974
11975 2010-05-09  Jim Meyering  <meyering@redhat.com>
11976
11977         init.sh: enable MALLOC_PERTURB_
11978         * tests/init.sh: Enable glibc's malloc-perturbing option.
11979
11980         maint.mk: improve sc_cross_check_PATH_usage_in_tests
11981         With my recent change in init.sh from the two-line form:
11982             -#   : ${srcdir=.}
11983             -#   . "$srcdir/init.sh"; path_prepend_ .
11984             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
11985         I noticed that using the one-line form would cause this test
11986         to fail with a false-positive, or to stop working altogether,
11987         depending on whether help-version changed or all the tests did.
11988         * top/maint.mk (_hv_regex): Remove this definition.
11989         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
11990         (_hv_regex_strong): Use a stronger regex to check for conformance.
11991         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
11992         Give a separate diagnostic for lack of conforming use.
11993
11994         maint.mk: prohibit definition of symbols defined by gnulib
11995         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
11996         definition of symbols defined by gnulib.
11997
11998 2010-05-09  Bruno Haible  <bruno@clisp.org>
11999
12000         acl: Avoid test failure on Cygwin-hosted mingw.
12001         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
12002
12003 2010-05-09  Bruno Haible  <bruno@clisp.org>
12004
12005         error: Use system's fcntl function.
12006         * lib/error.c (fcntl): Undefine.
12007
12008 2010-05-09  Jim Meyering  <meyering@redhat.com>
12009
12010         verify: adjust formatting to be more consistent
12011         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
12012         argument-list '('s, and after one comma.
12013
12014 2010-05-09  Bruno Haible  <bruno@clisp.org>
12015
12016         error: More reliable output on mingw.
12017         * lib/error.c: Include <windows.h>.
12018         (is_open): New function.
12019         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
12020         defined.
12021
12022 2010-05-09  Bruno Haible  <bruno@clisp.org>
12023
12024         vasnprintf: Fix syntax errors in libintl build on mingw.
12025         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
12026         pad_ourselves and prec_ourselves after use.
12027
12028 2010-05-08  Bruno Haible  <bruno@clisp.org>
12029
12030         * lib/config.charset: Update comments for Cygwin 1.7.
12031         * lib/localcharset.c: Likewise.
12032
12033 2010-05-07  Jim Meyering  <meyering@redhat.com>
12034
12035         init.sh: improve comments
12036         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
12037         . "${srcdir=.}/init.sh"; path_prepend_ .
12038         Add a note about path_prepend_ and the alternative of using
12039         TESTS_ENVIRONMENT.
12040
12041 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
12042
12043         exclude: Unescape hashed patterns in wildcard mode.
12044         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
12045         to the hash list.
12046         * tests/test-exclude8.sh: New test case.
12047         * modules/exclude-tests: Add new test.
12048
12049 2010-05-05  Eric Blake  <eblake@redhat.com>
12050
12051         verify: automate tests
12052         * modules/verify-tests: New module.
12053         * tests/test-verify.sh: New file.
12054         * tests/test-verify.c: Guard each negative test with a unique id.
12055         Also avoid warning about unused left hand of comma expressions.
12056
12057 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12058
12059         Further improvements to verify.h, suggested by Eric Blake.
12060         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
12061         the GL_* versions, to avoid collision with OpenGL.
12062         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
12063         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
12064         than testing merely whether it's defined.
12065
12066         Modify verify.h to pacify gcc -Wredundant_decls.
12067         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
12068         These use the prefix "GL_" since they're likely to be useful elsewhere.
12069         We may need to break them out into a different .h file.
12070         (__COUNTER__): Define to 0 if the compiler doesn't support it.
12071         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
12072         of verify_function__.
12073
12074 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12075
12076         Tests for module pwrite.
12077         * modules/pwrite-tests: New file.
12078         * tests/test-pwrite.sh: New file.
12079         * tests/test-pwrite.c: New file.
12080
12081         New module pwrite.
12082         * lib/unistd.in.h (pwrite): New declaration.
12083         * lib/pwrite.c: New file, from glibc with modifications.
12084         * m4/pwrite.m4: New file.
12085         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
12086         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
12087         REPLACE_PWRITE.
12088         * modules/pwrite: New file.
12089         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
12090         REPLACE_PWRITE.
12091         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
12092         * doc/posix-functions/pwrite.texi: Mention the new module.
12093
12094 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12095
12096         pread: Update documentation.
12097         * doc/posix-functions/pread.texi: Mention the 'pread' module.
12098
12099 2010-05-04  Eric Blake  <eblake@redhat.com>
12100
12101         docs: update cygwin progress
12102         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
12103         this bug.
12104         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12105         Added in cygwin 1.7.2.
12106         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
12107         Likewise.
12108         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
12109         Likewise.
12110         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12111         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12112         * doc/glibc-functions/accept4.texi (accept4): Likewise.
12113         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
12114         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
12115         Mention nproc module.
12116         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
12117         bug in cygwin 1.7.5 addition.
12118         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
12119         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
12120         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
12121         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
12122         1.7.5.
12123         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
12124         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
12125         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
12126         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
12127         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
12128         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
12129         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
12130         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
12131         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
12132         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
12133         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
12134         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
12135         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
12136         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
12137         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
12138         Likewise.
12139         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
12140         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
12141         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
12142         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
12143         Likewise.
12144         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
12145         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
12146         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
12147         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
12148         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
12149         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
12150         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
12151         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
12152         Likewise.
12153         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12154         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12155         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12156         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12157         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12158         Likewise.
12159         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12160         Likewise.
12161         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12162         Likewise.
12163         * doc/glibc-functions/xdrrec_endofrecord.texi
12164         (xdrrec_endofrecord): Likewise.
12165         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12166         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12167         Likewise.
12168         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12169         Likewise.
12170
12171 2010-05-04  Jim Meyering  <meyering@redhat.com>
12172
12173         gendocs.sh: make its "-s FILE" option more useful
12174         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12175         $PACKAGE to reflect the probably-different basename of "FILE".
12176
12177 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12178
12179         bootstrap: don't ignore download_po_files failure
12180         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12181         failure.
12182
12183 2010-05-03  Jim Meyering  <meyering@redhat.com>
12184
12185         maint.mk: allow to pass options to gendocs.sh
12186         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12187         (gendocs_options_): New overridable variable.
12188
12189         gnu-web-doc-update: don't ignore configure or build failure
12190         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12191
12192         announce-gen: backslash-escape '@'s in --help output
12193         * build-aux/announce-gen: Fix syntax errors.
12194
12195         maint.mk, announce-gen: allow project-specific announcement mail headers
12196         * top/maint.mk (translation_project_): Define default.
12197         (announcement_Cc_, announcement_mail_headers_): Likewise.
12198         (announcement): Invoke announce-gen with new --mail-headers option.
12199         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12200
12201         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12202         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12203         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12204         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12205         line in the "err2" output file when running "make check" in verbose
12206         mode (i.e., with set -x enabled).
12207
12208 2010-05-03  Bruno Haible  <bruno@clisp.org>
12209
12210         wctob: Fix for weird platforms.
12211         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12212         argument value.
12213
12214 2010-05-03  Jim Meyering  <meyering@redhat.com>
12215
12216         maint.mk: prohibit unwarranted use of <strings.h>
12217         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12218         strings.h in a file that does not also use strcasecmp, strncasecmp,
12219         ffs or ffsll.
12220
12221         maint.mk: remove obsolete comments
12222         * top/maint.mk: Remove stale, commented-out rules.
12223
12224 2010-05-02  Bruno Haible  <bruno@clisp.org>
12225
12226         wcwidth: Declare also when it's aliased.
12227         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12228         macro.
12229
12230 2010-05-02  Bruno Haible  <bruno@clisp.org>
12231
12232         Fix regression from 2010-04-25.
12233         * gnulib-tool (func_modules_transitive_closure): Check the status of
12234         all modules, not only of the tests that are of the form foo-tests where
12235         foo is a module.
12236
12237 2010-05-02  Bruno Haible  <bruno@clisp.org>
12238
12239         wctob: Work around nasty Cygwin 1.7.2 bug.
12240         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12241         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12242
12243 2010-05-01  Bruno Haible  <bruno@clisp.org>
12244
12245         fpurge: Sharper test.
12246         * tests/test-fpurge.c (main): Add one more ftell check.
12247         * modules/fpurge-tests (Depends-on): Add ftell.
12248         Suggested by Eric Blake.
12249
12250 2010-05-01  Bruno Haible  <bruno@clisp.org>
12251
12252         ftello: Another test.
12253         * tests/test-ftello3.c: New file.
12254         * modules/ftello-tests (Files): Add it.
12255         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12256         MOSTLYCLEANFILES.
12257
12258         ftell: Another test.
12259         * tests/test-ftell3.c: New file.
12260         * modules/ftell-tests (Files): Add it.
12261         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12262         MOSTLYCLEANFILES.
12263
12264 2010-05-01  Bruno Haible  <bruno@clisp.org>
12265
12266         ftell, ftello: Work around Solaris bug.
12267         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12268         * lib/ftello.c: Include stdio-impl.h.
12269         (ftello): On Solaris, when _IOWRT is set, compute the result without
12270         looking at _IOREAD.
12271         * modules/ftello (Files): Add lib/stdio-impl.h.
12272         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12273         * doc/posix-functions/ftello.texi: Likewise.
12274         Reported by Eric Blake.
12275
12276 2010-05-01  Bruno Haible  <bruno@clisp.org>
12277
12278         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12279         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12280         the _IOWRT flag is also set.
12281
12282 2010-05-01  Bruno Haible  <bruno@clisp.org>
12283
12284         Fix doc about a HP-UX stdio bug.
12285         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12286         * doc/posix-functions/ftello.texi: Likewise.
12287
12288 2010-05-01  Bruno Haible  <bruno@clisp.org>
12289
12290         lseek test: Fix failure on Solaris.
12291         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12292         output.
12293
12294 2010-04-30  Jim Meyering  <meyering@redhat.com>
12295
12296         bootstrap: don't ignore failure to generate po*/Makevars
12297         * build-aux/bootstrap (with_gettext): Don't ignore failure
12298         to create po/Makevars or runtime-po/Makevars.
12299
12300 2010-04-29  Eric Blake  <eblake@redhat.com>
12301
12302         headers: relax license to LGPLv2+
12303         * modules/fcntl-h (License): Relax license.
12304         * modules/getopt-posix (License): Likewise.
12305         * modules/locale (License): Likewise.
12306         * modules/math (License): Likewise.
12307         * modules/pty (License): Likewise.
12308         * modules/sched (License): Likewise.
12309         * modules/search (License): Likewise.
12310         * modules/spawn (License): Likewise.
12311         * modules/stdarg (License): Likewise.
12312         * modules/sysexits (License): Likewise.
12313
12314 2010-04-29  Jim Meyering  <meyering@redhat.com>
12315
12316         inttypes: relax license to LGPLv2+
12317         * modules/inttypes (License): Relax license.
12318
12319 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12320
12321         * top/maint.mk (indent): Run twice to produce idempotent results.
12322
12323 2010-04-28  Bruno Haible  <bruno@clisp.org>
12324
12325         getdate: Generate getdate.c in the source directory.
12326         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12327         MOSTLYCLEANFILES.
12328         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12329
12330 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12331
12332         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12333         is not declared as a const *; avoid warnings in that case.
12334
12335 2010-04-28  Eric Blake  <eblake@redhat.com>
12336
12337         canonicalize-lgpl: avoid compiler warning
12338         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12339         declaration' / 'extraneous semicolon' warning with some compilers.
12340         Reported by Andreas Gruenbacher.
12341
12342 2010-04-28  Jim Meyering  <meyering@redhat.com>
12343
12344         init.sh: ensure a more reliable exit status when exiting via trap
12345         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12346         Inspired by patches from Dmitry V. Levin.
12347         Also trap on signal 3 (SIGQUIT).
12348
12349 2010-04-27  Bruno Haible  <bruno@clisp.org>
12350
12351         Update doc about utimes().
12352         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12353         'utimens' module.
12354         Reported by Andreas Gruenbacher <agruen@suse.de>.
12355
12356 2010-04-27  Eric Blake  <eblake@redhat.com>
12357
12358         full-read, full-write: relax license
12359         * modules/full-read (License): Drop to LGPLv2+.
12360         * modules/full-write (License): Likewise.
12361         * modules/safe-read (License): Likewise.
12362         * modules/safe-write (License): Likewise.
12363
12364         pthread: mention library for linking
12365         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12366
12367 2010-04-27  Jim Meyering  <meyering@redhat.com>
12368
12369         maint.mk: fix a bug introduced in last change
12370         * top/maint.mk (gl_assured_headers_): Now that all names are on
12371         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12372         is not anchored to end of word, it should be adequate.
12373
12374         maint.mk: avoid side-effect in latest syntax-check
12375         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12376         to run commands via $(shell...), and hence to incur cost only when
12377         the new rule is actually run.
12378
12379         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12380         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12381         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12382         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12383         (gl_assured_headers_, az_, AZ_): Define.
12384         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12385
12386 2010-04-26  Jim Meyering  <jim@meyering.net>
12387             Bruno Haible  <bruno@clisp.org>
12388
12389         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12390         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12391         Prompted by an exchange with Gilles Espinasse.
12392
12393 2010-04-26  Jim Meyering  <meyering@redhat.com>
12394
12395         git-version-gen: aesthetic tweak
12396         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12397         so that the command remains on a single line.
12398
12399 2010-04-26  Eric Blake  <eblake@redhat.com>
12400
12401         git-version-gen: allow use on EBCDIC hosts
12402         * build-aux/git-version-gen (dirty): Use literal rather than tying
12403         ourselves to ascii.
12404         Reported by Steve Goetze.
12405
12406 2010-04-25  Bruno Haible  <bruno@clisp.org>
12407
12408         netdb: Add support for GNULIB_POSIXCHECK.
12409         * lib/netdb.in.h: Include warn-on-use.h.
12410         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12411         functions are used when GNULIB_POSIXCHECK is defined and the
12412         getaddrinfo module is not in use.
12413         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12414         freeaddrinfo, gai_strerror, getnameinfo are declared.
12415         * modules/netdb (Depends-on): Add warn-on-use.
12416         (Makefile.am): Include warn-on-use.h in netdb.h.
12417
12418 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12419
12420         build: avoid "make check" failure without .git/ directory
12421         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12422         there is no .git/ directory.
12423
12424 2010-04-25  Bruno Haible  <bruno@clisp.org>
12425
12426         ptsname: Fix misuse of ttyname_r.
12427         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12428         of errno.
12429
12430 2010-04-25  Bruno Haible  <bruno@clisp.org>
12431
12432         ttyname_r: Make it work on Solaris 10.
12433         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12434         if the system function has the POSIX declaration. Test whether the
12435         function fails if the buffer is less than 128 bytes large.
12436         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12437         system's ttyname_r function. Provide a reasonably large buffer.
12438         * modules/ttyname_r (Depends-on): Add extensions.
12439         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12440
12441 2010-04-25  Bruno Haible  <bruno@clisp.org>
12442
12443         Use the 'extensions' module for some more functions on Solaris.
12444         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12445         module.
12446         * doc/posix-functions/ctime_r.texi: Likewise.
12447         * doc/posix-functions/getgrgid_r.texi: Likewise.
12448         * doc/posix-functions/getgrnam_r.texi: Likewise.
12449         * doc/posix-functions/getpwnam_r.texi: Likewise.
12450         * doc/posix-functions/getpwuid_r.texi: Likewise.
12451         * doc/posix-functions/readdir_r.texi: Likewise.
12452         * doc/posix-functions/sigwait.texi: Likewise.
12453         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12454         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12455
12456 2010-04-25  Bruno Haible  <bruno@clisp.org>
12457
12458         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12459         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12460         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12461         * lib/ttyname_r.c: Include <limits.h>.
12462         (ttyname_r): Define using the system's ttyname_r function, if it exists
12463         and not on Solaris.
12464         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12465         set.
12466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12467         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12468         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12469         Reported by Simon Josefsson.
12470
12471 2010-04-25  Bruno Haible  <bruno@clisp.org>
12472
12473         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12474         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12475         * doc/posix-functions/ctime_r.texi: Likewise.
12476         * doc/posix-functions/getgrgid_r.texi: Likewise.
12477         * doc/posix-functions/getgrnam_r.texi: Likewise.
12478         * doc/posix-functions/getlogin_r.texi: Likewise.
12479         * doc/posix-functions/getpwnam_r.texi: Likewise.
12480         * doc/posix-functions/getpwuid_r.texi: Likewise.
12481         * doc/posix-functions/readdir_r.texi: Likewise.
12482         * doc/posix-functions/sigwait.texi: Likewise.
12483         * doc/posix-functions/ttyname_r.texi: Likewise.
12484         Reported by Simon Josefsson.
12485
12486 2010-04-25  Bruno Haible  <bruno@clisp.org>
12487
12488         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12489         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12490         also to --create-testdir.
12491         (func_acceptable): Don't consider the status of *-tests modules here.
12492         (func_modules_transitive_closure): Consider it here, before including a
12493         test module.
12494         (func_import, func_create_testdir): Set inc_all_direct_tests,
12495         inc_all_indirect_tests.
12496         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12497         --create-testdir and --create-megatestdir.
12498
12499 2010-04-25  Bruno Haible  <bruno@clisp.org>
12500
12501         gnulib-tool: Add --without-*-tests options.
12502         * gnulib-tool (func_usage): Document the --without-*-tests options.
12503         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12504         excl_unportable_tests): New variables.
12505         Fail if they are specified with --import or --update.
12506         (func_acceptable): Respect the excl_*_tests variables.
12507         (func_import): Set the excl_*_tests variables to empty.
12508
12509 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12510             Bruno Haible  <bruno@clisp.org>
12511
12512         Work around a MacOS X 10.4 bug with openpty.
12513         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12514         * tests/test-openpty.c (main): Close the master side explicitly.
12515
12516 2010-04-25  Bruno Haible  <bruno@clisp.org>
12517
12518         strnlen: Fix a C++ test error on MacOS X and Solaris.
12519         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12520         the function is not declared.
12521         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12522         Simon Josefsson.
12523
12524 2010-04-24  Bruno Haible  <bruno@clisp.org>
12525
12526         Avoid a gcc warning.
12527         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12528         of correct type for %08lx directive.
12529         Reported by Eric Blake.
12530
12531 2010-04-24  Bruno Haible  <bruno@clisp.org>
12532
12533         vasnprintf: Correct errno value in case of out-of-memory.
12534         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12535         or sprintf. Use the errno value from SNPRINTF or sprintf.
12536         Reported by Ian Beckwith <ianb@erislabs.net>.
12537
12538 2010-04-24  Bruno Haible  <bruno@clisp.org>
12539
12540         ansi-c++-opt: Find correct compiler when cross-compiling.
12541         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12542         AC_CHECK_PROGS.
12543         Reported by Simon Josefsson.
12544
12545 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12546
12547         vc-list-files: Add support for subversion
12548         * build-aux/vc-list-files: Use "svn list" to generate the list of
12549         files controlled by subversion.
12550
12551 2010-04-23  Jim Meyering  <meyering@redhat.com>
12552
12553         vc-list-files tests: convert to use init.sh
12554         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12555         path_prepend_.
12556         Use Exit, not exit.
12557         Use skip_ rather than open coding it.
12558         Remove trap set-up and compare definitions.
12559         * tests/test-vc-list-files-git.sh: Likewise.
12560         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12561
12562 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12563
12564         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12565         backup files.
12566
12567 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12568
12569         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12570
12571 2010-04-20  Eric Blake  <eblake@redhat.com>
12572
12573         tests: be robust to ignored SIGPIPE
12574         * tests/test-select-in.sh: Consume all output.
12575         * tests/test-lseek.sh: Check correct exit status, while avoiding
12576         EPIPE.
12577
12578 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12579             Bruno Haible  <bruno@clisp.org>
12580
12581         visibility: Don't use -fvisibility if it leads to a warning.
12582         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12583         yes, don't pretend that visibility works if it leads to a warning.
12584         Reported by Mike Gran <spk121@yahoo.com>.
12585
12586 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12587
12588         * build-aux/bootstrap: Use "git -h" for testing for supported options
12589         instead of "git --help".  The short-form option only shows a summary,
12590         and doesn't layout the full man page.  Grep for the full option name
12591         in the summary, too.
12592
12593 2010-04-19  Bruno Haible  <bruno@clisp.org>
12594
12595         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
12596         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
12597         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
12598         mention of RELOCATABLE_STRIP.
12599         Reported by Sylvain Beucler <beuc@beuc.net>.
12600
12601 2010-04-19  Bruno Haible  <bruno@clisp.org>
12602
12603         * lib/diffseq.h: Fix typo in comment.
12604         Reported by Eric Blake.
12605
12606 2010-04-19  Bruno Haible  <bruno@clisp.org>
12607
12608         ioctl: Move autoconf macro to a .m4 file.
12609         * m4/ioctl.m4: New file, extracted from modules/ioctl.
12610         * modules/ioctl (Files): Add it.
12611         (configure.ac): Simply invoke gl_FUNC_IOCTL.
12612         Reported by Ian Beckwith <ianb@erislabs.net>.
12613
12614 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
12615             Bruno Haible  <bruno@clisp.org>
12616
12617         diffseq: Accommodate use-case with abstract arrays.
12618         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
12619         is not defined.
12620         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
12621         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
12622
12623 2010-04-18  Bruno Haible  <bruno@clisp.org>
12624
12625         * doc/posix-headers/stdbool.texi: More precise wording.
12626
12627 2010-04-17  Jim Meyering  <meyering@redhat.com>
12628
12629         maint.mk: use gnu-style indentation in an embedded perl script
12630         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
12631         Rename variable: s/two/last_two_bytes/
12632
12633 2010-04-16  Eric Blake  <eblake@redhat.com>
12634
12635         test-stdbool: skip test that fails with Solaris CC
12636         * tests/test-stdbool.c (f): Skip test that causes compilation
12637         error under buggy C++ compiler.
12638         * lib/stdbool.in.h: Document the limitation.
12639         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
12640
12641         setenv: allow compilation with C++
12642         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
12643         register keyword.
12644
12645         stdint: allow test to pass with C++
12646         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
12647
12648         getopt: allow compilation with C++
12649         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
12650         struct.
12651         * lib/getopt.c (_getopt_internal_r): Use correct type.
12652         Reported by Dagobert Michelson, via Joel E. Denny.
12653
12654 2010-04-16  Bruno Haible  <bruno@clisp.org>
12655
12656         Override netdb.h always.
12657         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
12658         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
12659         Reported by Ludovic Courtès <ludo@gnu.org>.
12660
12661 2010-04-15  Bruno Haible  <bruno@clisp.org>
12662
12663         openpty: Fix mistake from 2010-03-21.
12664         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
12665         Reported by Simon Josefsson.
12666
12667 2010-04-15  Eric Blake  <eblake@redhat.com>
12668
12669         test-forkpty: fix expected signature
12670         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
12671         Reported by Simon Josefsson.
12672
12673 2010-04-15  Jim Meyering  <meyering@redhat.com>
12674
12675         maint.mk: texinfo_suffix_re_: correct the default regexp
12676         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
12677
12678         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
12679         make it configurable via texinfo_suffix_re_.
12680
12681 2010-04-14  Eric Blake  <eblake@redhat.com>
12682
12683         strtok_r: relax license to LGPLv2+
12684         * modules/strtok_r (License): Relax license.
12685         Reported by Matthias Bolte.
12686
12687 2010-04-14  Simon Josefsson  <simon@josefsson.org>
12688
12689         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
12690         version 1.4.4 by default instead of requiring the libgcrypt
12691         version used during build.  This makes it possible to use the
12692         application with older but still binary compatible libgcrypt
12693         versions.
12694
12695 2010-04-13  Eric Blake  <eblake@redhat.com>
12696
12697         getopt-gnu: match recent glibc fixes and posix ruling
12698         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
12699         '+' handling, when requesting extensions.
12700         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
12701         'W;' handling.
12702         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
12703         * doc/posix-functions/getopt.texi (getopt): Document this.
12704         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12705         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12706         Likewise.
12707
12708         getopt: merge bug fixes from glibc
12709         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
12710         diagnostics.  Honor '+:' correctly.  Reject ';'.
12711
12712         getopt-posix: detect MacOS bug
12713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
12714         optind when missing a required argument.
12715         * doc/posix-functions/getopt.texi (getopt): Document the bug.
12716         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12717         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12718         Likewise.
12719
12720         getopt-posix: avoid spurious failure on Solaris
12721         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
12722         an indicator that setting optind=1 is sufficient for reset.
12723
12724         getopt-posix: avoid spurious failure on FreeBSD
12725         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
12726         in POSIX mode, since the m4 test uses it.
12727
12728         gnulib-tool: silence warning on BSD sh
12729         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
12730
12731 2010-04-13  Jim Meyering  <meyering@redhat.com>
12732
12733         doc: users.txt: GNU patch now uses gnulib
12734         * users.txt: Add patch.
12735
12736 2010-04-12  Jim Meyering  <meyering@redhat.com>
12737
12738         maint.mk: generate more concise timing data for syntax-check rules
12739         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
12740         " done" from each line that reports a syntax-check test duration.
12741
12742 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
12743
12744         git-version-gen: use "git update-index..." rather than "git status"
12745         * build-aux/git-version-gen: Use git update-index --refresh, not
12746         "git status".  With some versions of git, "git status" would fail
12747         to update the index and result in an unwarranted "-dirty" suffix.
12748
12749 2010-04-11  Jim Meyering  <meyering@redhat.com>
12750
12751         openat: correct formatting (no semantic change)
12752         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
12753         Suggested by Bruno Haible.
12754
12755 2010-04-11  Bruno Haible  <bruno@clisp.org>
12756
12757         Stricter declaration checking in testdirs.
12758         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12759         If for_tests is true, augment AM_CPPFLAGS to define
12760         GNULIB_STRICT_CHECKING.
12761         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
12762         GNULIB_STRICT_CHECKING is defined, verify that the function is
12763         declared.
12764
12765 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
12766             Bruno Haible  <bruno@clisp.org>
12767
12768         libunistring: Improve configure output.
12769         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
12770         Don't say "consider installing GNU libunistring" when checking again
12771         with libiconv.
12772
12773 2010-04-11  Bruno Haible  <bruno@clisp.org>
12774
12775         libunistring: Correct value of $LTLIBUNISTRING.
12776         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
12777         correct the value of $LTLIBUNISTRING.
12778
12779 2010-04-11  Bruno Haible  <bruno@clisp.org>
12780
12781         havelib: Add static libraries to LIBS in the right order.
12782         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
12783         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
12784
12785 2010-04-11  Bruno Haible  <bruno@clisp.org>
12786
12787         libunistring: Detect libunistring also when it depends on libiconv.
12788         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
12789         the second AC_LIB_HAVE_LINKFLAGS invocation.
12790
12791 2010-04-11  James Youngman  <jay@gnu.org>
12792
12793         close-stream: declare local scalars to be "const"
12794         * lib/close-stream.c (close_stream): Make boolean variables const
12795         to document the fact that we set but do not change them.
12796
12797 2010-04-11  Bruno Haible  <bruno@clisp.org>
12798
12799         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
12800
12801 2010-04-11  Jim Meyering  <meyering@redhat.com>
12802
12803         maint.mk: don't include dist-check.mk
12804         * top/maint.mk: Remove bogus include directive.
12805
12806         maint.mk: improve empty-line-at-EOF check
12807         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
12808         solution, rather than tail+Perl-based one.  The latter would read
12809         a few kilobytes from the end of each file, and did not handle empty
12810         files properly.
12811
12812         maint.mk: print the elapsed time for each syntax-check rule
12813         * top/maint.mk (sc_m_rules_): Save start time in a file.
12814         (sc_z_rules_): New rules: remove temp file and print elapsed time.
12815         (local-check): Interpose the .z rules
12816
12817 2010-04-11  Jim Meyering  <meyering@redhat.com>
12818
12819         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
12820         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
12821         empty file with one that ends in an empty line.
12822
12823 2010-04-10  Bruno Haible  <bruno@clisp.org>
12824
12825         mkdir: Make it work on mingw64.
12826         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
12827         * lib/mkdir.c: Update comment.
12828         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
12829
12830 2010-04-10  Bruno Haible  <bruno@clisp.org>
12831
12832         Don't override improved macro from newer autoconf.
12833         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
12834         autoconf >= 2.62.
12835         Reported by Joel E. Denny <jdenny@clemson.edu>.
12836
12837 2010-04-10  Jim Meyering  <meyering@redhat.com>
12838
12839         maint.mk: new syntax-check rule: prohibit empty lines at end of file
12840         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
12841
12842         maint.mk: correct a diagnostic
12843         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
12844         in diagnostic; now use $prohibit.
12845
12846 2010-04-10  Bruno Haible  <address@hidden>
12847
12848         fchownat: Fix a C++ test error on Solaris 8.
12849         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
12850         the function does not exist.
12851
12852 2010-04-10  Bruno Haible  <bruno@clisp.org>
12853
12854         vasnprintf: Add more tests.
12855         * tests/test-vasnprintf-posix.c: Include <errno.h>.
12856         (test_function): Test converting an invalid wide string.
12857
12858         vasnprintf: Correct handling of unconvertible wide string arguments.
12859         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
12860         VASNPRINTF.
12861         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
12862         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
12863         smaller than the expected maximum need for the directive. Set errno to
12864         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
12865         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
12866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
12867         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
12868         * modules/vasnprintf (Files): Add m4/printf.m4.
12869         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12870
12871 2010-04-10  Bruno Haible  <bruno@clisp.org>
12872
12873         vasnprintf: Fix crash in %ls directive.
12874         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
12875         string is passed as argument to %ls, with no precision and no width.
12876         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12877
12878 2010-04-10  Bruno Haible  <bruno@clisp.org>
12879
12880         vasnprintf: Fix multiple test failures on mingw.
12881         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
12882         _snprintf, or snwprintf, not _snwprintf.
12883
12884 2010-04-10  Bruno Haible  <bruno@clisp.org>
12885
12886         write: Fix a C++ test error on mingw.
12887         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
12888
12889 2010-04-10  Bruno Haible  <bruno@clisp.org>
12890
12891         vasnprintf test: Reduce code duplication.
12892         * tests/test-vasnprintf.c (test_function): New function, extracted from
12893         test_vasnprintf.
12894         (test_vasnprintf, test_asnprintf): Invoke it.
12895
12896 2010-04-10  Bruno Haible  <bruno@clisp.org>
12897
12898         strnlen: Fix warning in C++ mode on MacOS X.
12899         * lib/string.in.h (strnlen): Use the modern idiom.
12900         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
12901         defining strnlen as a macro already in <config.h>.
12902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12903         REPLACE_STRNLEN.
12904         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
12905         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12906
12907 2010-04-08  James Youngman  <jay@gnu.org>
12908
12909         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
12910         the example.
12911
12912 2010-04-09  Jim Meyering  <meyering@redhat.com>
12913
12914         maint.mk: print better diagnostic when there is no $(_hv_file)
12915         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
12916         announce that when $(_hv_file) (aka help-version) does not exist.
12917
12918         init.sh: run tr in the "C" locale to avoid multibyte interpretation
12919         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
12920         not try to interpret its random input bytes.  Jarno Rajahalme reported
12921         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
12922         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
12923         (mktempd_): Likewise, just in case.
12924
12925         ftruncate: add two years to projected module removal date: 2012
12926         * m4/ftruncate.m4: Adjust comments.
12927
12928         ftruncate: mark module as obsolete; even MinGW provides it, now
12929         * modules/ftruncate (Status): Obsolete.
12930         (Notice): Say that.
12931         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
12932         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
12933
12934 2010-04-08  Bruno Haible  <bruno@clisp.org>
12935
12936         Fix side effects from tests-related modules.
12937         * modules/dprintf-posix (Comment): New section.
12938         * modules/fprintf-posix (Comment): Likewise.
12939         * modules/obstack-printf-posix (Comment): Likewise.
12940         * modules/printf-posix (Comment): Likewise.
12941         * modules/snprintf-posix (Comment): Likewise.
12942         * modules/sprintf-posix (Comment): Likewise.
12943         * modules/vasnprintf-posix (Comment): Likewise.
12944         * modules/vasprintf-posix (Comment): Likewise.
12945         * modules/vdprintf-posix (Comment): Likewise.
12946         * modules/vfprintf-posix (Comment): Likewise.
12947         * modules/vprintf-posix (Comment): Likewise.
12948         * modules/vsnprintf-posix (Comment): Likewise.
12949         * modules/vsprintf-posix (Comment): Likewise.
12950         * modules/xprintf-posix (Comment): Likewise.
12951         * modules/xvasprintf-posix (Comment): Likewise.
12952         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
12953         * modules/floorf-tests (Depends-on): Likewise.
12954         * modules/round-tests (Depends-on): Likewise.
12955         * modules/roundf-tests (Depends-on): Likewise.
12956         * modules/trunc-tests (Depends-on): Likewise.
12957         * modules/truncf-tests (Depends-on): Likewise.
12958         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
12959         'fprintf-posix' module is not present.
12960         * tests/test-floorf2.c (check): Likewise.
12961         * tests/test-trunc2.c (check): Likewise.
12962         * tests/test-truncf2.c (check): Likewise.
12963         * tests/test-round2.c (equal): Likewise.
12964         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12965
12966 2010-04-07  Karl Berry  <karl@gnu.org>
12967
12968         * config/srclist.txt,
12969         * config/srclistvars.sh,
12970         * config/srclist-update: doc fixes.
12971
12972 2010-04-07  Jim Meyering  <meyering@redhat.com>
12973
12974         maint.mk: add a PATH crosschecking syntax-check rule
12975         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
12976         Useful if you use a test like the one in help-version (coreutils,
12977         diffutils, grep, gzip) that ensures $(VERSION) matches what is
12978         printed by prog --version.
12979
12980 2010-04-06  Bruno Haible  <bruno@clisp.org>
12981
12982         Fix link error on mingw.
12983         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
12984         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
12985
12986 2010-04-06  Bruno Haible  <bruno@clisp.org>
12987
12988         Assume rmdir exists.
12989         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
12990
12991 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
12992
12993         doc: update users.txt
12994         * users.txt: Add gcal.
12995
12996 2010-04-06  Jim Meyering  <meyering@redhat.com>
12997
12998         init.sh: simply unset TMPDIR rather than risking env -i
12999         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
13000         although it probably works fine on all Unix-based systems, some
13001         systems (Cygwin?) cannot tolerate a totally cleared environment.
13002         Suggestion from Eric Blake.
13003
13004 2010-04-06  Jim Meyering  <meyering@redhat.com>
13005
13006         init.sh: portability fix: use env's POSIX-specified -i option not -u
13007         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
13008         than unportable env -u.  Solaris 5.11's env lacks support for -u.
13009
13010 2010-04-05  Bruno Haible  <bruno@clisp.org>
13011
13012         btowc: Work around Cygwin 1.7.2 bug.
13013         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
13014         does not map NUL to 0.
13015         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
13016
13017 2010-04-05  Bruno Haible  <bruno@clisp.org>
13018
13019         Make the multithread modules work on Cygwin 1.7.2.
13020         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
13021         imported symbols can be declared weak, so that it returns "no" on
13022         Cygwin 1.7.2.
13023
13024 2010-04-05  Bruno Haible  <bruno@clisp.org>
13025
13026         Use the module 'strncat'.
13027         * modules/unistr/u8-strncat (Depends-on): Add strncat.
13028
13029         Tests for module 'strncat'.
13030         * modules/strncat-tests: New file.
13031         * tests/test-strncat.c: New file.
13032
13033         New module 'strncat'.
13034         * lib/string.in.h (strncat): New declaration.
13035         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
13036         * m4/strncat.m4: New file, based on m4/memchr.m4.
13037         * modules/strncat: New file.
13038         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
13039         is declared.
13040         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
13041         REPLACE_STRNCAT.
13042         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
13043         REPLACE_STRNCAT.
13044         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
13045         module.
13046         * tests/test-string-c++.cc: Check signature of strncat.
13047
13048 2010-04-05  Jim Meyering  <meyering@redhat.com>
13049
13050         xstrtoumax-tests: convert to use init.sh
13051         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
13052         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13053         Use Exit, not exit.
13054         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13055
13056         xstrtoimax-tests: convert to use init.sh
13057         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
13058         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13059         Use Exit, not exit.
13060         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13061
13062 2010-04-05  Bruno Haible  <bruno@clisp.org>
13063
13064         sys_socket: Avoid #define replacements in C++ mode.
13065         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
13066         warning to the function if possible, rather than #defining the symbol
13067         to a dysfunctional alias.
13068
13069 2010-04-05  Bruno Haible  <bruno@clisp.org>
13070
13071         fseeko: Fix C++ test error on mingw.
13072         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
13073         gl_FUNC_FSEEKO.
13074         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
13075         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
13076         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
13077         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
13078
13079 2010-04-05  Bruno Haible  <bruno@clisp.org>
13080
13081         duplocale: Improve test output.
13082         * tests/test-duplocale.c (main): Print reason for skipped test.
13083
13084 2010-04-05  Bruno Haible  <bruno@clisp.org>
13085
13086         Assume rmdir exists.
13087         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
13088         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
13089
13090 2010-04-05  Bruno Haible  <bruno@clisp.org>
13091
13092         Fix link error on Solaris 8 with cc.
13093         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
13094
13095 2010-04-05  Bruno Haible  <bruno@clisp.org>
13096
13097         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13098         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
13099
13100 2010-04-05  Bruno Haible  <bruno@clisp.org>
13101
13102         vasprintf: Update documentation.
13103         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
13104
13105 2010-04-05  Bruno Haible  <bruno@clisp.org>
13106
13107         ptsname: Improve test.
13108         * tests/test-ptsname.c (main): Also try the various master names of BSD
13109         systems.
13110
13111 2010-04-05  Bruno Haible  <bruno@clisp.org>
13112
13113         memchr: Avoid a possible C++ test error.
13114         * lib/string.in.h (memchr): Provide declaration if function is missing.
13115         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
13116         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
13117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
13118         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
13119
13120 2010-04-05  Bruno Haible  <bruno@clisp.org>
13121
13122         strtok_r: Improve idiom.
13123         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
13124         AC_LIBOBJ is used.
13125
13126 2010-04-05  Bruno Haible  <bruno@clisp.org>
13127
13128         strdup: Improve idiom.
13129         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
13130         AC_LIBOBJ is used.
13131         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
13132         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
13133         when AC_LIBOBJ is used.
13134
13135 2010-04-05  Bruno Haible  <bruno@clisp.org>
13136
13137         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13138         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
13139         don't set REPLACE_MBSINIT to 1.
13140         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
13141         don't set REPLACE_MBRTOWC to 1.
13142         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
13143         exist, don't set REPLACE_MBSRTOWCS to 1.
13144         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
13145         exist, don't set REPLACE_MBSNRTOWCS to 1.
13146         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
13147         don't set REPLACE_WCRTOMB to 1.
13148         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
13149         exist, don't set REPLACE_WCSRTOMBS to 1.
13150         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
13151         exist, don't set REPLACE_WCSNRTOMBS to 1.
13152
13153 2010-04-05  Bruno Haible  <bruno@clisp.org>
13154
13155         ldexpl: Improve idiom.
13156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13157         make sure to set HAVE_DECL_LDEXPL to 0.
13158
13159 2010-04-05  Jim Meyering  <meyering@redhat.com>
13160
13161         xstrtol-tests: convert to use init.sh
13162         * modules/xstrtol-tests (Files): Add tests/init.sh.
13163         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13164         Use Exit, not exit.
13165         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13166
13167         atexit-tests: convert to use init.sh
13168         * modules/atexit-tests (Files): Add tests/init.sh.
13169         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13170         Use Exit, not exit.
13171         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13172
13173         init.sh: fix typo
13174         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13175
13176         init.sh: make it easier for a test script to write to the tty, ...
13177         when using automake's parallel-tests mode.
13178         * tests/init.sh (stderr_fileno_): Define overridable variable.
13179         (warn_): New function, to use it.
13180         (fail_, skip_, framework_failure_): Use warn_.
13181
13182 2010-04-04  Bruno Haible  <bruno@clisp.org>
13183
13184         btowc: Avoid warning.
13185         * lib/btowc.c: Include <stdlib.h>.
13186         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13187
13188 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13189             Bruno Haible  <bruno@clisp.org>
13190
13191         wchar: Port to NetBSD 1.5.
13192         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13193         * lib/wctype.in.h (WEOF): Likewise.
13194
13195 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13196             Bruno Haible  <bruno@clisp.org>
13197
13198         Port extended stdio to NetBSD 1.5.
13199         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13200         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13201         older.
13202
13203 2010-04-04  Bruno Haible  <bruno@clisp.org>
13204
13205         string: Remove unused substitution.
13206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13207         HAVE_DECL_STRERROR.
13208         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13209
13210 2010-04-04  Bruno Haible  <bruno@clisp.org>
13211
13212         strtod: Avoid a possible C++ test error.
13213         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13214         set REPLACE_STRTOD.
13215
13216 2010-04-04  Bruno Haible  <bruno@clisp.org>
13217
13218         strerror: Update documentation.
13219         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13220
13221 2010-04-04  Bruno Haible  <bruno@clisp.org>
13222
13223         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13224         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13225         _GL_CXXALIAS_SYS_CAST.
13226
13227 2010-04-04  Bruno Haible  <bruno@clisp.org>
13228
13229         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13230         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13231         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13232         REPLACE_FREXPL to 1.
13233         * doc/posix-functions/frexpl.texi: Update documentation.
13234
13235 2010-04-04  Bruno Haible  <bruno@clisp.org>
13236
13237         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13238         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13239
13240 2010-04-04  Bruno Haible  <bruno@clisp.org>
13241
13242         Implement nanosleep for native Windows.
13243         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13244
13245 2010-04-04  Bruno Haible  <bruno@clisp.org>
13246
13247         math: Fix some C++ test errors on Solaris 8.
13248         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13249
13250 2010-04-04  Bruno Haible  <bruno@clisp.org>
13251
13252         math: Fix some C++ test errors on Cygwin.
13253         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13254         truncl): Provide declaration if the system does not have it.
13255         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13256         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13257         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13258         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13259         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13260         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13261         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13262         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13263         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13264         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13265         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13266         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13267         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13268         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13269         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13270         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13272         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13273         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13274         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13275         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13276         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13277
13278 2010-04-04  Bruno Haible  <bruno@clisp.org>
13279
13280         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13281         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13282         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13283         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13284         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13285         * m4/isinf.m4 (gl_ISINF): Likewise.
13286         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13287
13288 2010-04-04  Bruno Haible  <bruno@clisp.org>
13289
13290         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13291         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13292
13293 2010-04-04  Bruno Haible  <bruno@clisp.org>
13294
13295         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13296         * modules/tmpfile (configure.ac): Update.
13297
13298         tmpfile: Fix C++ test error on mingw.
13299         * lib/stdio.in.h (tmpfile): New declaration.
13300         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13301         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13302         * modules/tmpfile (Depends-on): Add stdio.
13303         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13304         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13305         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13306         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13307         REPLACE_TMPFILE.
13308         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13309
13310 2010-04-04  Bruno Haible  <bruno@clisp.org>
13311
13312         ioctl: Fix C++ test error on mingw.
13313         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13314         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13315         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13316
13317 2010-04-03  Bruno Haible  <bruno@clisp.org>
13318
13319         wcwidth: Fix C++ test error on mingw.
13320         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13322         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13323
13324 2010-04-03  Bruno Haible  <bruno@clisp.org>
13325
13326         nanosleep: Fix C++ test error on mingw.
13327         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13328         * lib/time.in.h (nanosleep): Use modern idiom.
13329         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13330         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13331         REPLACE_NANOSLEEP to 1.
13332         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13333         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13334
13335 2010-04-03  Bruno Haible  <bruno@clisp.org>
13336
13337         strptime: Fix C++ test error on mingw.
13338         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13339         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13340         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13341         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13342         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13343         not REPLACE_STRPTIME.
13344         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13345         REPLACE_STRPTIME.
13346
13347 2010-04-03  Bruno Haible  <bruno@clisp.org>
13348
13349         timegm: Fix C++ test error on mingw.
13350         * lib/time.in.h (timegm): Use modern idiom.
13351         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13352         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13353         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13354         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13355
13356 2010-04-03  Bruno Haible  <bruno@clisp.org>
13357
13358         timegm: Assume declaration if function exists.
13359         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13360         if it exists. Don't clobber ac_cv_func_timegm.
13361
13362 2010-04-03  Bruno Haible  <bruno@clisp.org>
13363
13364         time_r: Fix C++ test error on mingw.
13365         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13366         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13367         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13368         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13369         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13370
13371 2010-04-03  Bruno Haible  <bruno@clisp.org>
13372
13373         time_r: Minor updates.
13374         * modules/time_r (Description): Mention the provided functions.
13375         * lib/time_r.c: Don't include <string.h>.
13376         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13377         * doc/posix-functions/localtime_r.texi: Likewise.
13378
13379 2010-04-03  Bruno Haible  <bruno@clisp.org>
13380
13381         time: Fix regression introduced on 2010-03-08.
13382         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13383         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13384
13385 2010-04-03  Jim Meyering  <meyering@redhat.com>
13386
13387         maint.mk: don't silently disable project-specific syntax-check rules
13388         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13389         that they need to convert their project-specific syntax-check rules
13390         to use the new _sc_search_regexp.
13391
13392 2010-04-03  Bruno Haible  <bruno@clisp.org>
13393
13394         fchdir: Fix regression introduced on 2010-03-08.
13395         * lib/unistd.in.h (fchdir): Fix declaration.
13396         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13398         REPLACE_FCHDIR.
13399         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13400         REPLACE_FCHDIR.
13401
13402 2010-04-03  Bruno Haible  <bruno@clisp.org>
13403
13404         getpagesize: Fix C++ test error on mingw.
13405         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13406         system does not declare the function.
13407         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13408         declared.
13409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13410         HAVE_DECL_GETPAGESIZE.
13411         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13412
13413 2010-04-03  Bruno Haible  <bruno@clisp.org>
13414
13415         stdio: Make C++ tests work on mingw.
13416         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13417         does not declare the function.
13418
13419 2010-04-03  Bruno Haible  <bruno@clisp.org>
13420
13421         ftello: Fix C++ test error on mingw.
13422         * lib/stdio.in.h (ftello): Use modern idiom.
13423         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13424         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13425         is missing and that it needs to be replaced.
13426         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13428         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13429
13430 2010-04-03  Bruno Haible  <bruno@clisp.org>
13431
13432         fseeko: Fix C++ test error on mingw.
13433         * lib/stdio.in.h (fseeko): Use modern idiom.
13434         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13435         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13436         is missing and that it needs to be replaced.
13437         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13439         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13440
13441 2010-04-03  Bruno Haible  <bruno@clisp.org>
13442
13443         mkstemp: Fix C++ test error on mingw.
13444         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13445         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13446         function is missing and that it needs to be replaced.
13447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13448         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13449
13450 2010-04-03  Bruno Haible  <bruno@clisp.org>
13451
13452         stpncpy: Fix C++ test error on mingw.
13453         * lib/string.in.h (stpncpy): Use modern idiom.
13454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13455         function is missing and that it needs to be replaced.
13456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13457         REPLACE_STPNCPY.
13458         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13459
13460 2010-04-03  Bruno Haible  <bruno@clisp.org>
13461
13462         sys_stat: Fix C++ test error on mingw.
13463         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13464         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13465
13466 2010-04-03  Bruno Haible  <bruno@clisp.org>
13467
13468         pty: Update doc.
13469         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13470
13471 2010-04-03  Bruno Haible  <bruno@clisp.org>
13472
13473         unistd: Fix C++ test error on mingw.
13474         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13475
13476 2010-04-03  Bruno Haible  <bruno@clisp.org>
13477
13478         Update doc regarding mingw.
13479         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13480         * doc/glibc-functions/login_tty.texi: Likewise.
13481         * doc/glibc-functions/forkpty.texi: Likewise.
13482
13483 2010-04-03  Bruno Haible  <bruno@clisp.org>
13484
13485         stdlib: Avoid compilation failure of c-strtold on mingw.
13486         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13487
13488 2010-04-03  Bruno Haible  <bruno@clisp.org>
13489
13490         locale: Make C++ tests work on Cygwin and mingw.
13491         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13492         cannot provide the function.
13493         Reported by Simon Josefsson.
13494
13495 2010-04-03  Bruno Haible  <bruno@clisp.org>
13496
13497         localename: Port to MacOS X 10.6.
13498         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13499         memory layout of the locales in MacOS X 10.6 as well.
13500         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13501
13502 2010-04-02  Bruno Haible  <bruno@clisp.org>
13503
13504         gnulib-tool: Ensure that long-running tests are executed last.
13505         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13506         running tests after the one for the other tests.
13507
13508 2010-04-02  Bruno Haible  <bruno@clisp.org>
13509
13510         gnulib-tool: Ensure the tests in the main directory are executed first.
13511         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13512         start with the current directory.
13513
13514 2010-04-02  Bruno Haible  <bruno@clisp.org>
13515
13516         Tests for module 'havelib', moved here from GNU gettext.
13517         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13518         modifications.
13519         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13520         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13521         with modifications.
13522         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13523         modifications.
13524         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13525         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13526         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13527         with modifications.
13528         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13529         with modifications.
13530         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
13531         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
13532         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13533         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13534         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13535         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13536         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13537         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13538         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13539         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13540         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13541         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13542         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13543         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13544         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13545         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13546         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13547         with modifications.
13548         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13549         with modifications.
13550         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13551         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13552         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13553         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13554         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13555         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13556         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13557         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13558         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13559         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13560         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13561         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13562         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13563         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13564         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13565         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13566         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13567         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13568         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13569         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13570         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13571         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13572         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13573         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13574         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13575         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13576         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13577         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13578         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13579         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13580         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13581         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13582         * tests/havelib/rpathx/rpathx.c: New file, from
13583         gettext/autoconf-lib-link.
13584         * tests/havelib/rpathx/Makefile.am: New file, from
13585         gettext/autoconf-lib-link.
13586         * tests/havelib/rpathx/configure.ac: New file, from
13587         gettext/autoconf-lib-link with modifications.
13588         * tests/havelib/rpathy/rpathy.c: New file, from
13589         gettext/autoconf-lib-link.
13590         * tests/havelib/rpathy/Makefile.am: New file, from
13591         gettext/autoconf-lib-link.
13592         * tests/havelib/rpathy/configure.ac: New file, from
13593         gettext/autoconf-lib-link with modifications.
13594         * tests/havelib/rpathz/rpathz.c: New file, from
13595         gettext/autoconf-lib-link.
13596         * tests/havelib/rpathz/Makefile.am: New file, from
13597         gettext/autoconf-lib-link.
13598         * tests/havelib/rpathz/configure.ac: New file, from
13599         gettext/autoconf-lib-link with modifications.
13600         * tests/havelib/rpathlx/usex.c: New file, from
13601         gettext/autoconf-lib-link.
13602         * tests/havelib/rpathlx/Makefile.am: New file, from
13603         gettext/autoconf-lib-link.
13604         * tests/havelib/rpathlx/configure.ac: New file, from
13605         gettext/autoconf-lib-link with modifications.
13606         * tests/havelib/rpathly/usey.c: New file, from
13607         gettext/autoconf-lib-link.
13608         * tests/havelib/rpathly/Makefile.am: New file, from
13609         gettext/autoconf-lib-link.
13610         * tests/havelib/rpathly/configure.ac: New file, from
13611         gettext/autoconf-lib-link with modifications.
13612         * tests/havelib/rpathlz/usez.c: New file, from
13613         gettext/autoconf-lib-link.
13614         * tests/havelib/rpathlz/Makefile.am: New file, from
13615         gettext/autoconf-lib-link.
13616         * tests/havelib/rpathlz/configure.ac: New file, from
13617         gettext/autoconf-lib-link with modifications.
13618         * tests/havelib/rpathlyx/usey.c: New file, from
13619         gettext/autoconf-lib-link.
13620         * tests/havelib/rpathlyx/Makefile.am: New file, from
13621         gettext/autoconf-lib-link.
13622         * tests/havelib/rpathlyx/configure.ac: New file, from
13623         gettext/autoconf-lib-link with modifications.
13624         * tests/havelib/rpathlzyx/usez.c: New file, from
13625         gettext/autoconf-lib-link.
13626         * tests/havelib/rpathlzyx/Makefile.am: New file, from
13627         gettext/autoconf-lib-link.
13628         * tests/havelib/rpathlzyx/configure.ac: New file, from
13629         gettext/autoconf-lib-link with modifications.
13630         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
13631         with modifications.
13632
13633 2010-04-02  Bruno Haible  <bruno@clisp.org>
13634
13635         gnulib-tool: Create distributed built sources also for the tests.
13636         * gnulib-tool (func_create_testdir): Also generate distributed built
13637         sources in the tests directory.
13638
13639 2010-04-02  Bruno Haible  <bruno@clisp.org>
13640
13641         gnulib-tool: Obey user's environment variables.
13642         * gnulib-tool (func_create_testdir): When creating built sources,
13643         respect the environment variables for autoconf, automake, etc. given by
13644         the user.
13645
13646 2010-04-02  Bruno Haible  <bruno@clisp.org>
13647
13648         gnulib-tool: Provide the value of --m4-base to modules.
13649         * gnulib-tool (func_import, func_create_testdir): Emit a definition
13650         of gl_m4_base.
13651
13652 2010-04-02  Eric Blake  <eblake@redhat.com>
13653
13654         maint.mk: fix some fallout
13655         * NEWS: Document the incompatible change, and its effect on cfg.mk.
13656         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
13657
13658 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13659
13660         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
13661         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
13662         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
13663         (sc_cast_of_x_alloc_return_value): Likewise.
13664         (sc_cast_of_alloca_return_value): Likewise.
13665         (sc_space_tab): Likewise.
13666         (sc_prohibit_atoi_atof): Likewise.
13667         (sc_prohibit_magic_number_exit): Likewise.
13668         (sc_error_exit_success): Likewise.
13669         (sc_file_system): Likewise.
13670         (sc_prohibit_have_config_h): Likewise.
13671         (sc_require_config_h): Likewise.
13672         (sc_prohibit_HAVE_MBRTOWC): Likewise.
13673         (sc_obsolete_symbols): Likewise.
13674         (sc_changelog): Likewise.
13675         (sc_program_name): Likewise.
13676         (sc_the_the): Likewise.
13677         (sc_trailing_blank): Likewise.
13678         (sc_two_space_separator_in_usage): Likewise.
13679         (sc_useless_cpp_parens): Likewise.
13680         (sc_GPL_version): Likewise.
13681         (sc_GFDL_version): Likewise.
13682         (sc_texinfo_acronym): Likewise.
13683         (sc_prohibit_cvs_keyword): Likewise.
13684         (sc_prohibit_stat_st_blocks): Likewise.
13685         (sc_prohibit_S_IS_definition): Likewise.
13686         (sc_redundant_const): Likewise.
13687         (sc_makefile_TAB_only_indentation): Likewise.
13688         (sc_m4_quote_check): Likewise.
13689         (sc_makefile_path_separator_check): Likewise.
13690         (sc_copyright_check): Likewise.
13691         (sc_Wundef_boolean): Likewise.
13692         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13693
13694         maint.mk: match 0 or more whitespace-before-function-call '('
13695         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
13696         that have zero or two-and-more spaces between the function name
13697         and the open parenthesis.
13698         (sc_error_message_warn_fatal): Likewise.
13699         (sc_error_message_uppercase): Likewise.
13700         (sc_error_message_period): Likewise.
13701
13702 2010-03-31  Eric Blake  <eblake@redhat.com>
13703
13704         maint.mk: check for [ as well as test
13705         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
13706         Based on a libvirt report by Matthias Bolte.
13707
13708         gnumakefile: don't squelch _version output
13709         * top/GNUmakefile (_version): Create one-shot dependency rather
13710         than using $(shell) when version must be regenerated.
13711         (_autoreconf): Run verbosely, by default.
13712
13713         sys_time: avoid compiler warnings
13714         * lib/sys_time.in.h (includes): Ensure gcc pragma is
13715         unconditional, fixing regression from 2010-03-29.
13716         Reported by Simon Josefsson.
13717
13718 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13719
13720         maint.mk: s/_header_without_use/_sc_header_without_use/
13721         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
13722         (sc_prohibit_assert_without_use): Use the new name.
13723         (sc_prohibit_close_stream_without_use): Likewise.
13724         (sc_prohibit_getopt_without_use): Likewise.
13725         (sc_prohibit_quotearg_without_use): Likewise.
13726         (sc_prohibit_quote_without_use): Likewise.
13727         (sc_prohibit_long_options_without_use): Likewise.
13728         (sc_prohibit_inttostr_without_use): Likewise.
13729         (sc_prohibit_ignore_value_without_use): Likewise.
13730         (sc_prohibit_error_without_use): Likewise.
13731         (sc_prohibit_xalloc_without_use): Likewise.
13732         (sc_prohibit_hash_without_use): Likewise.
13733         (sc_prohibit_hash_pjw_without_use): Likewise.
13734         (sc_prohibit_safe_read_without_use): Likewise.
13735         (sc_prohibit_argmatch_without_use): Likewise.
13736         (sc_prohibit_canonicalize_without_use): Likewise.
13737         (sc_prohibit_root_dev_ino_without_use): Likewise.
13738         (sc_prohibit_openat_without_use): Likewise.
13739         (sc_prohibit_c_ctype_without_use): Likewise.
13740         (sc_prohibit_signal_without_use): Likewise.
13741         (sc_prohibit_intprops_without_use): Likewise.
13742
13743 2010-03-30  Eric Blake  <eblake@redhat.com>
13744
13745         maint: improve module indicators
13746         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
13747         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
13748         columns, and avoid extra macro expansion.
13749
13750         fdopendir: work around FreeBSD bug
13751         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13752         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
13753         * modules/dirent (Makefile.am): Substitute it.
13754         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
13755         declaration.
13756         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
13757         fix.
13758         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13759
13760 2010-03-29  Bruno Haible  <bruno@clisp.org>
13761
13762         Emit #pragma system_header after the inclusion guard, not before.
13763         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
13764         guard that spans the entire file, not before. This enables an
13765         optimization in GCC's preprocessor.
13766         * lib/ctype.in.h: Likewise.
13767         * lib/dirent.in.h: Likewise.
13768         * lib/errno.in.h: Likewise.
13769         * lib/float.in.h: Likewise.
13770         * lib/getopt.in.h: Likewise.
13771         * lib/iconv.in.h: Likewise.
13772         * lib/langinfo.in.h: Likewise.
13773         * lib/locale.in.h: Likewise.
13774         * lib/math.in.h: Likewise.
13775         * lib/netdb.in.h: Likewise.
13776         * lib/netinet_in.in.h: Likewise.
13777         * lib/pty.in.h: Likewise.
13778         * lib/sched.in.h: Likewise.
13779         * lib/se-selinux.in.h: Likewise.
13780         * lib/search.in.h: Likewise.
13781         * lib/spawn.in.h: Likewise.
13782         * lib/stdarg.in.h: Likewise.
13783         * lib/stdint.in.h: Likewise.
13784         * lib/string.in.h: Likewise.
13785         * lib/strings.in.h: Likewise.
13786         * lib/sys_file.in.h: Likewise.
13787         * lib/sys_ioctl.in.h: Likewise.
13788         * lib/sys_time.in.h: Likewise.
13789         * lib/sys_times.in.h: Likewise.
13790         * lib/sys_utsname.in.h: Likewise.
13791         * lib/sys_wait.in.h: Likewise.
13792         * lib/sysexits.in.h: Likewise.
13793         * lib/wctype.in.h: Likewise.
13794
13795 2010-03-28  James Youngman  <jay@gnu.org>
13796
13797         save-cwd: don't leak a file descriptor when the caller execs.
13798         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
13799         saved file descriptor.
13800         * modules/save-cwd (Depends-on): Depend on cloexec.
13801
13802 2010-03-29  Bruno Haible  <bruno@clisp.org>
13803
13804         Remove vestiges of fts-lgpl module.
13805         * lib/fts_.h: Assume GNULIB_FTS is 1.
13806         * lib/fts.c: Likewise.
13807         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13808
13809 2010-03-28  Bruno Haible  <bruno@clisp.org>
13810
13811         Fix definition of tests witness macro.
13812         * gnulib-tool (func_import): Fix definition of witness macro.
13813
13814 2010-03-28  Bruno Haible  <bruno@clisp.org>
13815
13816         Fix ioctl's protoype on glibc systems.
13817         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
13818         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
13819         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
13820         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
13821         signature. If not, arrange to replace the ioctl function.
13822         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13823         REPLACE_IOCTL.
13824         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
13825         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
13826         Reported by Ludovic Courtès <ludo@gnu.org>.
13827
13828 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
13829
13830         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
13831         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
13832         made it so grep -r --include=GLOB* ... did not work.
13833
13834 2010-03-26  Jim Meyering  <meyering@redhat.com>
13835             Eric Blake  <eblake@redhat.com>
13836
13837         maint.mk: prohibit use of test's -o and -a operators
13838         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
13839
13840 2010-03-28  Bruno Haible  <bruno@clisp.org>
13841
13842         Remove unused GNULIB_XYZ macro definitions.
13843         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
13844         invocation.
13845
13846 2010-03-28  Bruno Haible  <bruno@clisp.org>
13847
13848         Mark privileged tests modules.
13849         * modules/idpriv-drop-tests (Status): New section.
13850         * modules/idpriv-droptemp-tests (Status): New section.
13851
13852 2010-03-28  Bruno Haible  <bruno@clisp.org>
13853
13854         Split C++ tests into separate tests modules.
13855         * modules/dirent-c++-tests: New file, extracted from
13856         modules/dirent-tests.
13857         * modules/dirent-tests: Depend on it.
13858         * modules/fcntl-h-c++-tests: New file, extracted from
13859         modules/fcntl-h-tests.
13860         * modules/fcntl-h-tests: Depend on it.
13861         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
13862         * modules/glob-tests: Depend on it.
13863         * modules/iconv-h-c++-tests: New file, extracted from
13864         modules/iconv-h-tests.
13865         * modules/iconv-h-tests: Depend on it.
13866         * modules/langinfo-c++-tests: New file, extracted from
13867         modules/langinfo-tests.
13868         * modules/langinfo-tests: Depend on it.
13869         * modules/locale-c++-tests: New file, extracted from
13870         modules/locale-tests.
13871         * modules/locale-tests: Depend on it.
13872         * modules/math-c++-tests: New file, extracted from modules/math-tests.
13873         * modules/math-tests: Depend on it.
13874         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
13875         * modules/pty-tests: Depend on it.
13876         * modules/search-c++-tests: New file, extracted from
13877         modules/search-tests.
13878         * modules/search-tests: Depend on it.
13879         * modules/signal-c++-tests: New file, extracted from
13880         modules/signal-tests.
13881         * modules/signal-tests: Depend on it.
13882         * modules/spawn-c++-tests: New file, extracted from
13883         modules/spawn-tests.
13884         * modules/spawn-tests: Depend on it.
13885         * modules/stdio-c++-tests: New file, extracted from
13886         modules/stdio-tests.
13887         * modules/stdio-tests: Depend on it.
13888         * modules/stdlib-c++-tests: New file, extracted from
13889         modules/stdlib-tests.
13890         * modules/stdlib-tests: Depend on it.
13891         * modules/string-c++-tests: New file, extracted from
13892         modules/string-tests.
13893         * modules/string-tests: Depend on it.
13894         * modules/sys_ioctl-c++-tests: New file, extracted from
13895         modules/sys_ioctl-tests.
13896         * modules/sys_ioctl-tests: Depend on it.
13897         * modules/sys_select-c++-tests: New file, extracted from
13898         modules/sys_select-tests.
13899         * modules/sys_select-tests: Depend on it.
13900         * modules/sys_socket-c++-tests: New file, extracted from
13901         modules/sys_socket-tests.
13902         * modules/sys_socket-tests: Depend on it.
13903         * modules/sys_stat-c++-tests: New file, extracted from
13904         modules/sys_stat-tests.
13905         * modules/sys_stat-tests: Depend on it.
13906         * modules/sys_time-c++-tests: New file, extracted from
13907         modules/sys_time-tests.
13908         * modules/sys_time-tests: Depend on it.
13909         * modules/time-c++-tests: New file, extracted from modules/time-tests.
13910         * modules/time-tests: Depend on it.
13911         * modules/unistd-c++-tests: New file, extracted from
13912         modules/unistd-tests.
13913         * modules/unistd-tests: Depend on it.
13914         * modules/wchar-c++-tests: New file, extracted from
13915         modules/wchar-tests.
13916         * modules/wchar-tests: Depend on it.
13917         * modules/wctype-c++-tests: New file, extracted from
13918         modules/wctype-tests.
13919         * modules/wctype-tests: Depend on it.
13920         Reported by Simon Josefsson.
13921
13922 2010-03-28  Bruno Haible  <bruno@clisp.org>
13923
13924         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
13925         * gnulib-tool (func_exists_module): New function, extracted from
13926         func_verify_module.
13927         (func_verify_module): Use it.
13928         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
13929         'foo' only if 'foo' exists.
13930         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
13931         module.
13932
13933 2010-03-28  Bruno Haible  <bruno@clisp.org>
13934
13935         gnulib-tool: Add support for special categories of tests.
13936         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
13937         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
13938         (func_usage): Document them.
13939         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
13940         inc_unportable_tests, inc_all_tests): New variables.
13941         (func_acceptable): Consider these variables.
13942         (func_modules_transitive_closure): Make it work when the 'Status' field
13943         consists of multiple words.
13944         (func_import): Store and restore the values of inc_cxx_tests,
13945         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
13946         inc_all_tests in gnulib-comp.m4.
13947         (func_create_testdir): Set inc_all_tests to true.
13948         * doc/gnulib.texi (Extra tests modules): New section.
13949         Suggested by Jim Meyering.
13950
13951 2010-03-28  Bruno Haible  <bruno@clisp.org>
13952
13953         ansi-c++-opt: Allow turning off the C++ build by default.
13954         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
13955         gl_CXX_CHOICE_DEFAULT_NO is defined.
13956         Requested by Eric Blake.
13957
13958 2010-03-28  Bruno Haible  <bruno@clisp.org>
13959
13960         unistd: Avoid #define replacements in C++ mode.
13961         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13962         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13963         setsockopt, shutdown, select): In C++, attach a warning to the function
13964         if possible, rather than #defining the symbol to a dysfunctional alias.
13965         Reported by John W. Eaton <jwe@gnu.org>.
13966
13967 2010-03-28  Bruno Haible  <bruno@clisp.org>
13968
13969         Fix link errors on mingw.
13970         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
13971         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
13972         $(LIBSOCKET).
13973         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
13974         $(LIBSOCKET).
13975
13976 2010-03-28  Bruno Haible  <bruno@clisp.org>
13977             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13978
13979         lib-ignore: Determine different options for different compilers.
13980         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
13981         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
13982         Add comments.
13983         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
13984         * NEWS: Mention the change.
13985
13986 2010-03-27  Bruno Haible  <bruno@clisp.org>
13987
13988         Remove unused GNULIB_XYZ macro definitions.
13989         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
13990         * modules/fseek (configure.ac): Likewise.
13991         * modules/ioctl (configure.ac): Likewise.
13992         * modules/open (configure.ac): Likewise.
13993         * modules/stdlib-safer (configure.ac): Likewise.
13994
13995 2010-03-27  Bruno Haible  <bruno@clisp.org>
13996
13997         Add a remark about certain modules.
13998         * modules/malloc (Comment): New section.
13999         * modules/realloc (Comment): Likewise.
14000         * modules/sigpipe (Comment): Likewise.
14001
14002 2010-03-27  Bruno Haible  <bruno@clisp.org>
14003
14004         Resolve conflict between the two kinds of module indicators.
14005         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
14006         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
14007         * modules/canonicalize (configure.ac): Invoke
14008         gl_MODULE_INDICATOR_FOR_TESTS.
14009         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
14010         GNULIB_XYZ.
14011         * tests/test-dirent-c++.cc: Likewise.
14012         * tests/test-dirent-safer.c: Likewise.
14013         * tests/test-dup2.c: Likewise.
14014         * tests/test-fchdir.c: Likewise.
14015         * tests/test-fcntl-h-c++.cc: Likewise.
14016         * tests/test-getopt.c: Likewise.
14017         * tests/test-getopt.h: Likewise.
14018         * tests/test-langinfo-c++.cc: Likewise.
14019         * tests/test-locale-c++.cc: Likewise.
14020         * tests/test-math-c++.cc: Likewise.
14021         * tests/test-pty-c++.cc: Likewise.
14022         * tests/test-search-c++.cc: Likewise.
14023         * tests/test-signal-c++.cc: Likewise.
14024         * tests/test-spawn-c++.cc: Likewise.
14025         * tests/test-stdio-c++.cc: Likewise.
14026         * tests/test-stdlib-c++.cc: Likewise.
14027         * tests/test-string-c++.cc: Likewise.
14028         * tests/test-sys_ioctl-c++.cc: Likewise.
14029         * tests/test-sys_select-c++.cc: Likewise.
14030         * tests/test-sys_socket-c++.cc: Likewise.
14031         * tests/test-sys_stat-c++.cc: Likewise.
14032         * tests/test-sys_time-c++.cc: Likewise.
14033         * tests/test-time-c++.cc: Likewise.
14034         * tests/test-unistd-c++.cc: Likewise.
14035         * tests/test-wchar-c++.cc: Likewise.
14036         * tests/uninorm/test-u8-nfc.c: Likewise.
14037         * tests/uninorm/test-u8-nfd.c: Likewise.
14038         * tests/uninorm/test-u8-nfkc.c: Likewise.
14039         * tests/uninorm/test-u8-nfkd.c: Likewise.
14040         * tests/uninorm/test-u16-nfc.c: Likewise.
14041         * tests/uninorm/test-u16-nfd.c: Likewise.
14042         * tests/uninorm/test-u16-nfkc.c: Likewise.
14043         * tests/uninorm/test-u16-nfkd.c: Likewise.
14044         * tests/uninorm/test-u32-nfc.c: Likewise.
14045         * tests/uninorm/test-u32-nfc-big.c: Likewise.
14046         * tests/uninorm/test-u32-nfd.c: Likewise.
14047         * tests/uninorm/test-u32-nfd-big.c: Likewise.
14048         * tests/uninorm/test-u32-nfkc.c: Likewise.
14049         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
14050         * tests/uninorm/test-u32-nfkd.c: Likewise.
14051         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
14052         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14053
14054 2010-03-27  Bruno Haible  <bruno@clisp.org>
14055
14056         Distinguish two kinds of module indicators.
14057         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
14058         gl_MODULE_INDICATOR.
14059         (gl_MODULE_INDICATOR): New macro.
14060         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14061         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
14062         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14063         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14064         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14065         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14066         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14067         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14068         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14069         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14070         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14071         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14073         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14074         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14075         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14076         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14077         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14078         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14079         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14080         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14081         * modules/cloexec (configure.ac): Likewise.
14082         * modules/getopt-gnu (configure.ac): Likewise.
14083         * modules/uninorm/u8-normalize (configure.ac): Likewise.
14084         * modules/uninorm/u16-normalize (configure.ac): Likewise.
14085         * modules/uninorm/u32-normalize (configure.ac): Likewise.
14086         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
14087
14088 2010-03-27  Bruno Haible  <bruno@clisp.org>
14089
14090         New module description field 'Comment'.
14091         * gnulib-tool: New option --extract-comment.
14092         (func_usage): Document it.
14093         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
14094         (func_get_comment): New function.
14095         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
14096
14097 2010-03-27  Bruno Haible  <bruno@clisp.org>
14098
14099         Addendum to 2010-02-07 commit.
14100         * gnulib-tool (func_usage): Document --extract-applicability option.
14101
14102 2010-03-27  Bruno Haible  <bruno@clisp.org>
14103
14104         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
14105         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
14106         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
14107         rather than link errors.
14108
14109 2010-03-27  Bruno Haible  <bruno@clisp.org>
14110
14111         Avoid side effects from tests-related modules on the compilation of lib.
14112         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
14113         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
14114         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
14115         parameter. Emit into AM_CPPFLAGS a definition of the designated C
14116         macro.
14117         (func_import): Define a witness macro. Assign it a value that depends
14118         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
14119         tests-related modules.
14120         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
14121         Reported by Jim Meyering.
14122
14123 2010-03-27  Bruno Haible  <bruno@clisp.org>
14124
14125         Factorize common .m4 code.
14126         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
14127         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
14128         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
14129         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
14130         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14131         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
14132         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
14133         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14134         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14135         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14136         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
14137         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14138         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14139         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14140         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14141         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
14142         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14143         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14145         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
14146         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
14147         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14148         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14149         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14150         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14151         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14152         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14153         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14154         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14155         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14156         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14157         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14158
14159 2010-03-27  Bruno Haible  <bruno@clisp.org>
14160
14161         Fix a compilation error on Cygwin with g++ >= 4.3.
14162         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14163         if it is undefined or if we alias it to chmod.
14164         (lstat): Don't warn about the use of this function if it is undefined
14165         or if we alias it to stat.
14166         Reported by Simon Josefsson.
14167
14168 2010-03-27  Bruno Haible  <bruno@clisp.org>
14169
14170         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14171         * modules/getlogin (configure.ac): Update.
14172
14173         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14174         * modules/getlogin_r (configure.ac): Update.
14175
14176         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14177         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14178         * modules/inet_ntop (configure.ac): Update.
14179
14180         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14181         * modules/inet_pton (configure.ac): Update.
14182
14183         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14184         * modules/mbslen (configure.ac): Update.
14185
14186         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14187         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14188         * modules/forkpty (configure.ac): Update.
14189         * modules/openpty (configure.ac): Update.
14190
14191 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14192
14193         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14194         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14195
14196 2010-03-25  Eric Blake  <eblake@redhat.com>
14197
14198         maint: use pragma consistently across replacement headers
14199         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14200         * lib/dirent.in.h (system_header): Likewise.
14201         * lib/errno.in.h (system_header): Likewise.
14202         * lib/float.in.h (system_header): Likewise.
14203         * lib/getopt.in.h (system_header): Likewise.
14204         * lib/iconv.in.h (system_header): Likewise.
14205         * lib/inttypes.in.h (system_header): Likewise.
14206         * lib/langinfo.in.h (system_header): Likewise.
14207         * lib/locale.in.h (system_header): Likewise.
14208         * lib/math.in.h (system_header): Likewise.
14209         * lib/netdb.in.h (system_header): Likewise.
14210         * lib/netinet_in.in.h (system_header): Likewise.
14211         * lib/pty.in.h (system_header): Likewise.
14212         * lib/sched.in.h (system_header): Likewise.
14213         * lib/se-selinux.in.h (system_header): Likewise.
14214         * lib/search.in.h (system_header): Likewise.
14215         * lib/spawn.in.h (system_header): Likewise.
14216         * lib/stdarg.in.h (system_header): Likewise.
14217         * lib/stdint.in.h (system_header): Likewise.
14218         * lib/string.in.h (system_header): Likewise.
14219         * lib/strings.in.h (system_header): Likewise.
14220         * lib/sys_file.in.h (system_header): Likewise.
14221         * lib/sys_ioctl.in.h (system_header): Likewise.
14222         * lib/sys_socket.in.h (system_header): Likewise.
14223         * lib/sys_times.in.h (system_header): Likewise.
14224         * lib/sys_utsname.in.h (system_header): Likewise.
14225         * lib/sys_wait.in.h (system_header): Likewise.
14226         * lib/sysexits.in.h (system_header): Likewise.
14227         * lib/unistd.in.h (system_header): Likewise.
14228         * lib/wctype.in.h (system_header): Likewise.
14229
14230         arpa/inet: fix mingw compilation warning
14231         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14232         Reported by Matthew Bolte.
14233
14234 2010-03-25  Bruno Haible  <bruno@clisp.org>
14235
14236         Avoid collision between gnulib wrapper and libintl wrapper.
14237         * lib/printf.c (printf): Don't define if a printf wrapper is already
14238         defined in intl/printf.c.
14239         Reported by Michel Boaventura <michel@michelboaventura.com>.
14240
14241 2010-03-25  Bruno Haible  <bruno@clisp.org>
14242
14243         Use ANSI C.
14244         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14245
14246 2010-03-25  Bruno Haible  <bruno@clisp.org>
14247
14248         Minor formatting changes.
14249         * lib/acosl.c: Insert space before function argument list.
14250         * lib/argz.c: Likewise.
14251         * lib/asinl.c: Likewise.
14252         * lib/expl.c: Likewise.
14253         * lib/gen-uni-tables.c: Likewise.
14254         * lib/gettext.h: Likewise.
14255         * lib/glthread/lock.h: Likewise.
14256         * lib/tanl.c: Likewise.
14257         * lib/uniname/uniname.c: Likewise.
14258         * tests/test-idpriv-drop.c: Likewise.
14259         * tests/test-idpriv-droptemp.c: Likewise.
14260         * tests/test-lock.c: Likewise.
14261         * tests/test-tls.c: Likewise.
14262         * lib/argp-help.c: Insert space before function-like macro argument
14263         list.
14264         * lib/memcmp.c: Likewise.
14265         * tests/test-base64.c: Likewise.
14266         * lib/localename.c: Insert space before sizeof's argument list.
14267         * lib/safe-alloc.h: Likewise.
14268         * lib/file-set.h: Insert space before macro argument list.
14269         * tests/test-argp.c: Likewise.
14270         * lib/argp-namefrob.h: Insert space before function parameter list.
14271         * lib/getaddrinfo.c: Likewise.
14272         * lib/netdb.in.h: Likewise.
14273         * lib/parse-duration.h: Likewise.
14274         * lib/parse-duration.c: Likewise.
14275         * lib/poll.c: Likewise.
14276         * lib/select.c: Likewise.
14277         * lib/trim.h: Likewise.
14278         * tests/test-usleep.c: Likewise.
14279         * lib/ldexpl.c: Insert space before function parameter list and before
14280         function argument list.
14281         * lib/logl.c: Likewise.
14282         * lib/sqrtl.c: Likewise.
14283         * lib/trim.c: Likewise.
14284         * lib/cosl.c: Use GNU style indentation. Insert space before function
14285         argument list.
14286         * lib/sinl.c: Likewise.
14287         * lib/tsearch.c: Insert space after 'for'.
14288         Reported by Jim Meyering.
14289
14290 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14291
14292         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14293         config header before grepping, as it's not present before
14294         autoreconf/configure are run.  Reported by Simon Josefsson.
14295
14296 2010-03-23  Bruno Haible  <bruno@clisp.org>
14297
14298         pt_chown: Make it work with automake < 1.11.
14299         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14300         Reported by Simon Josefsson.
14301
14302 2010-03-23  Bruno Haible  <bruno@clisp.org>
14303
14304         pt_chown: Don't depend on GPLed modules.
14305         * lib/pt_chown.c: Don't include idpriv.h.
14306         (main): Don't drop privileges.
14307         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14308         Reported by Simon Josefsson.
14309
14310 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14311
14312         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14313         suggestions from karl@freefriends.org (Karl Berry).
14314
14315 2010-03-22  Eric Blake  <eblake@redhat.com>
14316
14317         gethostname: further tweaks
14318         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14319         are overriding gethostname.
14320         Suggested by Bruno Haible.
14321
14322 2010-03-21  Bruno Haible  <bruno@clisp.org>
14323
14324         Fix comments.
14325         * lib/forkpty.c (rpl_forkpty): Fix comment.
14326         * lib/openpty.c (rpl_openpty): Likewise.
14327         Reported by Eric Blake.
14328
14329 2010-03-22  Eric Blake  <eblake@redhat.com>
14330
14331         gethostname: fix build on mingw
14332         * lib/unistd.in.h (includes): Work around fact that mingw
14333         <winsock2.h> re-includes <unistd.h>, by avoiding any
14334         redeclarations if we are being included by <winsock2.h>.
14335         Reported by Matthias Bolte.
14336
14337 2010-03-21  Bruno Haible  <bruno@clisp.org>
14338
14339         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14340         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14341         modifications.
14342         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14343         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14344         provide the replacement.
14345         * modules/forkpty (Depends-on): Add openpty, login_tty.
14346         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14347         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14348         * doc/glibc-functions/forkpty.texi: More supported platforms.
14349         * config/srclist.txt: Add forkpty.c (commented).
14350
14351 2010-03-21  Bruno Haible  <bruno@clisp.org>
14352
14353         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14354         (Makefile.am): Verify that PTY_LIB is defined.
14355
14356         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14357
14358 2010-03-21  Bruno Haible  <bruno@clisp.org>
14359
14360         Tests for module 'login_tty'.
14361         * modules/login_tty-tests: New file.
14362         * tests/test-login_tty.c: New file.
14363
14364         New module 'login_tty'.
14365         * lib/login_tty.c: New file.
14366         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14367         * modules/login_tty: New file.
14368         * doc/glibc-functions/login_tty.texi: Mention the new module.
14369
14370 2010-03-21  Bruno Haible  <bruno@clisp.org>
14371
14372         login_tty: Documentation.
14373         * doc/glibc-functions/login_tty.texi: New file.
14374         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14375
14376 2010-03-21  Bruno Haible  <bruno@clisp.org>
14377
14378         pty: Consistent macro naming.
14379         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14380         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14381         * modules/pty (configure.ac): Update.
14382
14383 2010-03-21  Bruno Haible  <bruno@clisp.org>
14384
14385         Tests for openpty: Make stricter.
14386         * tests/test-openpty.c (main): Add test of canonical processing and
14387         erase.
14388         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14389
14390         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14391         * lib/openpty.c (openpty): New replacement function.
14392         * lib/pty.in.h: Include <termios.h>.
14393         (openpty): Update declaration. Add comments.
14394         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14395         is not declared, arrange to provide the replacement. Check for _getpty
14396         and posix_openpt.
14397         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14398         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14399         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14400         * modules/pty-tests (test_pty_c___LDADD): New variable.
14401         * doc/glibc-functions/openpty.texi: More supported platforms.
14402
14403 2010-03-21  Bruno Haible  <bruno@clisp.org>
14404
14405         setenv: Tweaks.
14406         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14407         the test program.
14408         * doc/posix-functions/setenv.texi: Update platforms list.
14409
14410 2010-03-21  Bruno Haible  <bruno@clisp.org>
14411
14412         New module 'unlockpt'.
14413         * lib/unlockpt.c: New file, from glibc with modifications.
14414         * m4/unlockpt.m4: New file.
14415         * modules/unlockpt: New file.
14416         * lib/stdlib.in.h (unlockpt): New declaration.
14417         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14418         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14419         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14420         HAVE_UNLOCKPT.
14421         * doc/posix-functions/unlockpt.texi: Mention the new module.
14422         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14423         * config/srclist.txt: Add unlockpt.c (commented).
14424
14425 2010-03-21  Jim Meyering  <meyering@redhat.com>
14426
14427         maint.mk: prohibit inclusion of "intprops.h" without use
14428         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14429
14430 2010-03-21  Bruno Haible  <bruno@clisp.org>
14431
14432         New module 'grantpt'.
14433         * lib/grantpt.c: New file, from glibc with modifications.
14434         * m4/grantpt.m4: New file.
14435         * modules/grantpt: New file.
14436         * lib/stdlib.in.h (grantpt): New declaration.
14437         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14438         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14439         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14440         HAVE_GRANTPT.
14441         * doc/posix-functions/grantpt.texi: Mention the new module.
14442         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14443         * config/srclist.txt: Add grantpt.c (commented).
14444
14445 2010-03-21  Bruno Haible  <bruno@clisp.org>
14446
14447         New module 'pt_chown'.
14448         * lib/pt_chown.c: New file, from glibc with modifications.
14449         * lib/pty-private.h: New file, from glibc with modifications.
14450         * modules/pt_chown: New file.
14451         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14452
14453 2010-03-21  Bruno Haible  <bruno@clisp.org>
14454
14455         Tests for module 'ptsname'.
14456         * modules/ptsname-tests: New file.
14457         * tests/test-ptsname.c: New file.
14458
14459         New module 'ptsname'.
14460         * lib/ptsname.c: New file, from glibc with modifications.
14461         * m4/ptsname.m4: New file.
14462         * modules/ptsname: New file.
14463         * lib/stdlib.in.h (ptsname): New declaration.
14464         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14465         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14466         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14467         HAVE_PTSNAME.
14468         * doc/posix-functions/ptsname.texi: Mention the new module.
14469         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14470         * config/srclist.txt: Add ptsname.c (commented).
14471
14472 2010-03-21  Bruno Haible  <bruno@clisp.org>
14473
14474         Tests for module 'ttyname_r'.
14475         * modules/ttyname_r-tests: New file.
14476         * tests/test-ttyname_r.c: New file.
14477
14478         New module 'ttyname_r'.
14479         * lib/ttyname_r.c: New file.
14480         * m4/ttyname_r.m4: New file.
14481         * modules/ttyname_r: New file.
14482         * lib/unistd.in.h (ttyname_r): New declaration.
14483         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14484         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14485         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14486         HAVE_TTYNAME_R.
14487         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14488         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14489
14490 2010-03-20  Bruno Haible  <bruno@clisp.org>
14491
14492         signal: Undefine macro definitions in C++ mode.
14493         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14494         sigfillset): Undefine macro definitions from the system header in C++
14495         mode.
14496         Reported by John W. Eaton <jwe@gnu.org>.
14497
14498 2010-03-20  Bruno Haible  <bruno@clisp.org>
14499
14500         Ensure no #include statements inside extern "C" { ... }.
14501         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14502         contain #include statements.
14503         * lib/time.in.h: Likewise.
14504
14505 2010-03-20  Bruno Haible  <bruno@clisp.org>
14506
14507         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14508         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14509         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14510         Reported by John W. Eaton <jwe@gnu.org>.
14511
14512 2010-03-20  Bruno Haible  <bruno@clisp.org>
14513
14514         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14515         Reported by Jim Meyering.
14516
14517 2010-03-20  Bruno Haible  <bruno@clisp.org>
14518
14519         pipe: Set errno upon failure.
14520         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14521         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14522         errno value in error message.
14523
14524 2010-03-20  Bruno Haible  <bruno@clisp.org>
14525             Jim Meyering  <meyering@redhat.com>
14526
14527         lchown: Avoid "unused variable" warning.
14528         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14529
14530 2010-03-20  Bruno Haible  <bruno@clisp.org>
14531
14532         Work around unlink() bug on MacOS X 10.5.6.
14533         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14534         attempting to unlink a parent directory.
14535         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14536         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14537         activate for the replacement function.
14538         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14539
14540 2010-03-20  Bruno Haible  <bruno@clisp.org>
14541
14542         Fix link errors on Solaris 8.
14543         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14544         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14545
14546 2010-03-19  Jim Meyering  <meyering@redhat.com>
14547
14548         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14549         The _LIBC implementation of build_range_exp correctly honors the
14550         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14551         However, the non-_LIBC implementation would ignore that syntax-bit
14552         flag and return REG_ERANGE unconditionally.
14553         This change makes it honor that flag.
14554         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14555         Make two pointer parameters "const".
14556         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14557         (parse_bracket_exp): Update caller.
14558
14559         regex.m4: correct the reversed range endpoint ([b-a]) test
14560         * m4/regex.m4: When requiring that [b-a] evoke failure,
14561         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14562         test pass once again for x86-based systems.
14563
14564 2010-03-19  Bruno Haible  <bruno@clisp.org>
14565
14566         scandir: Fix link error on Solaris 8.
14567         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14568         macros.
14569
14570 2010-03-19  Bruno Haible  <bruno@clisp.org>
14571
14572         getusershell: Fix documentation.
14573         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14574         module.
14575         * doc/glibc-functions/setusershell.texi: Likewise.
14576
14577         getusershell: Provide declaration, missing on Solaris 9.
14578         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14579         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14580         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14581         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14583         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14584         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14585         HAVE_GETUSERSHELL.
14586         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14587
14588 2010-03-19  Bruno Haible  <bruno@clisp.org>
14589
14590         wctype: Provide iswblank function.
14591         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14592         exists and is fine.
14593         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14594         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14595         * tests/test-wctype.c (main): Re-enable the iswblank tests.
14596         * doc/posix-functions/iswblank.texi: Update.
14597
14598 2010-03-19  Bruno Haible  <bruno@clisp.org>
14599
14600         Tests of module 'pty' in C++ mode.
14601         * modules/pty-tests: New file.
14602         * tests/test-pty-c++.cc: New file.
14603         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14604
14605 2010-03-19  Eric Blake  <eblake@redhat.com>
14606
14607         logb: fix documentation
14608         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
14609         1.5 declaration bug.
14610
14611         forkpty, openpty: prefer glibc's const-safe prototype
14612         * lib/forkpty.c (rpl_forkpty): New file.
14613         * lib/openpty.c (rpl_openpty): Likewise.
14614         * modules/forkpty (Files): Distribute it.
14615         * modules/openpty (Files): Likewise.
14616         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
14617         check...
14618         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
14619         replacement for for non-const BSD signature.
14620         * modules/pty (Makefile.am): Substitute witnesses.
14621         * lib/pty.in.h (forkpty, openpty): Declare replacements.
14622         * tests/test-forkpty.c: Update signature check.
14623         * tests/test-openpty.c: Likewise.
14624         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
14625         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14626
14627         forkpty, openpty: split functions into new modules
14628         * modules/pty (Makefile.am): Substitute new witnesses.
14629         (Libraries): Move library detection...
14630         * modules/forkpty: ...into new module.
14631         * modules/openpty: Another new module.
14632         * modules/pty-tests: Rename and split...
14633         * modules/forkpty-tests: ...to this...
14634         * modules/openpty-tests: ...and this.
14635         * tests/test-pty.c: Rename and split...
14636         * tests/test-forkpty.c: ...to this...
14637         * tests/test-openpty.c: ...and this.
14638         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
14639         (gl_PTY): Split library searching...
14640         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
14641         (gl_FORKPTY, gl_OPENPTY): New macros.
14642         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
14643         * NEWS: Mention the split.
14644         * MODULES.html.sh (Misc): Document the modules.
14645         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
14646         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14647
14648         pty: improve replacement header
14649         * lib/pty.in.h: New file.
14650         * modules/pty (Files): Ship it.
14651         (Makefile.am): Always build replacement.
14652         * m4/pty.m4: Rename...
14653         * m4/pty_h.m4: ...to this.
14654         (gl_PTY): Modernize setting of witness macros; update check of
14655         forkpty to take proper advantage of cache.
14656         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
14657
14658         getopt: avoid compiler warning
14659         * lib/getopt.c (attribute_hidden): Remove unused macro.
14660
14661 2010-03-18  Bruno Haible  <bruno@clisp.org>
14662
14663         Fix link errors on Solaris 8.
14664         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
14665         * modules/search-tests (test_search_c___LDADD): Likewise.
14666         * modules/signal-tests (test_signal_c___LDADD): Likewise.
14667         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
14668         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
14669         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
14670         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
14671         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
14672         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
14673
14674 2010-03-18  Bruno Haible  <bruno@clisp.org>
14675
14676         Fix bug introduced on 2010-03-14.
14677         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
14678         (gl_SPAWN_H): Require it.
14679         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
14680         Reported by Simon Josefsson.
14681
14682 2010-03-18  Bruno Haible  <bruno@clisp.org>
14683
14684         Fix typo introduced on 2009-12-31.
14685         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
14686         posix_spawn_file_actions_adddup2.
14687
14688 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
14689         and Eric Blake  <eblake@redhat.com>
14690
14691         test-vc-list-files-git: make more robust
14692         * tests/test-vc-list-files-git.sh: Unset problematic environment
14693         variables.  Chain commands together.
14694
14695 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
14696
14697         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
14698         `AC_CHECK_DECL' invocation.
14699
14700 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
14701
14702         * lib/inttostr.c (inttostr): Make sure the invocation of verify
14703         appears before executable statements. Suggested by Petr Sumbera
14704         <Petr.Sumbera@Sun.COM>.
14705
14706 2010-03-14  Bruno Haible  <bruno@clisp.org>
14707
14708         * tests/test-flock.c (test_exclusive): Comment out a test that causes
14709         portability problems. Instead use a simpler test.
14710         (main): Check that invalid arguments are rejected only on Linux.
14711
14712 2010-03-14  Bruno Haible  <bruno@clisp.org>
14713
14714         Fix bug introduced on 2009-12-31.
14715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
14716         gl_PREREQ_SYS_H_WINSOCK2 always.
14717         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
14718         SYS_SOCKET_H variable.
14719         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
14720         Update comments.
14721         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
14722         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
14723         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14724         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14725         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14726
14727 2010-03-14  Bruno Haible  <bruno@clisp.org>
14728
14729         Fix values returned by sinl, cosl.
14730         * lib/trigl.h: Add specification comments.
14731         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
14732         that combines the values from the precomputed table with the values of
14733         the Chebyshev polynomials.
14734
14735 2010-03-14  Bruno Haible  <bruno@clisp.org>
14736
14737         Fix compilation error when modules 'posix_spawn[p]' are not used.
14738         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
14739         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
14740
14741 2010-03-14  Bruno Haible  <bruno@clisp.org>
14742
14743         Fix compilation error on mingw when module 'time_r' is not used.
14744         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
14745         is 1.
14746         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
14747         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
14748         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
14749         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
14750
14751 2010-03-14  Bruno Haible  <bruno@clisp.org>
14752
14753         Fix compilation error with Sun C.
14754         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
14755         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
14756         instead of GCC specific ULONG_LONG_MAX.
14757         * lib/xstrtoll.c: Likewise.
14758         * lib/xstrtoull.c: Likewise.
14759
14760 2010-03-13  Bruno Haible  <bruno@clisp.org>
14761
14762         Allow the user to disable C++ code and tests.
14763         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
14764         (gl_PROG_ANSI_CXX): Require it.
14765
14766 2010-03-13  Bruno Haible  <bruno@clisp.org>
14767
14768         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
14769         cases.
14770
14771 2010-03-13  Bruno Haible  <bruno@clisp.org>
14772
14773         Test that gnulib does not break the standard C++ headers.
14774         * tests/test-locale-c++2.cc: New file.
14775         * modules/locale-tests (Files): Add it.
14776         (Makefile.am): Compile it for test-locale-c++.
14777         * tests/test-math-c++2.cc: New file.
14778         * modules/math-tests (Files): Add it.
14779         (Makefile.am): Compile it for test-math-c++.
14780         * tests/test-signal-c++2.cc: New file.
14781         * modules/signal-tests (Files): Add it.
14782         (Makefile.am): Compile it for test-signal-c++.
14783         * tests/test-stdio-c++2.cc: New file.
14784         * modules/stdio-tests (Files): Add it.
14785         (Makefile.am): Compile it for test-stdio-c++.
14786         * tests/test-stdlib-c++2.cc: New file.
14787         * modules/stdlib-tests (Files): Add it.
14788         (Makefile.am): Compile it for test-stdlib-c++.
14789         * tests/test-string-c++2.cc: New file.
14790         * modules/string-tests (Files): Add it.
14791         (Makefile.am): Compile it for test-string-c++.
14792         * tests/test-time-c++2.cc: New file.
14793         * modules/time-tests (Files): Add it.
14794         (Makefile.am): Compile it for test-time-c++.
14795         Reported by John W. Eaton <jwe@gnu.org>.
14796
14797 2010-03-13  Bruno Haible  <bruno@clisp.org>
14798
14799         * gnulib-tool (func_usage): Clarify which options are available for
14800         --create-testdir and --create-megatestdir.
14801
14802 2010-03-13  Bruno Haible  <bruno@clisp.org>
14803
14804         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
14805         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
14806         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
14807         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14808         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
14809         when appropriate.
14810         Reported by Jim Meyering.
14811
14812 2010-03-12  Simon Josefsson  <simon@josefsson.org>
14813
14814         * gnulib-tool (func_import): Explain origin of code.
14815
14816 2010-03-12  Bruno Haible  <bruno@clisp.org>
14817
14818         Fix problem with automake's definition of CXXLINK.
14819         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
14820         Reported by Simon Josefsson and Ludovic Courtès.
14821
14822 2010-03-12  Bruno Haible  <bruno@clisp.org>
14823
14824         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
14825         stable releases.
14826
14827 2010-03-11  Bruno Haible  <bruno@clisp.org>
14828
14829         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
14830         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
14831         whether the system provides one variant or multiple variants of the
14832         function.
14833         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
14834         C++ compilers.
14835         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
14836         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
14837         Reported by Jim Meyering.
14838
14839 2010-03-09  Simon Josefsson  <simon@josefsson.org>
14840
14841         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
14842
14843 2010-03-08  Bruno Haible  <bruno@clisp.org>
14844
14845         gnulib-tool: Add support for --libtool in --create-testdir.
14846         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
14847         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
14848
14849 2010-03-08  Eric Blake  <eblake@redhat.com>
14850
14851         gnulib-tool.texi: mention possibility of git submodule
14852         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
14853         submodules.
14854         * doc/.gitignore: Ignore another generated file.
14855
14856 2010-03-08  Karl Berry  <karl@gnu.org>
14857
14858         * doc/gnulib-tool.texi (VCS Issues): Mention third option
14859         of committing gnulib files while skipping others.
14860
14861 2010-03-07  Bruno Haible  <bruno@clisp.org>
14862
14863         Tests of module 'wctype' in C++ mode.
14864         * tests/test-wctype-c++.cc: New file.
14865         * modules/wctype-tests (Files): Add it and tests/signature.h.
14866         (Depends-on): Add ansi-c++-opt.
14867         (Makefile.am): Arrange to compile and run test-wctype-c++.
14868
14869         Tests of module 'wchar' in C++ mode.
14870         * tests/test-wchar-c++.cc: New file.
14871         * modules/wchar-tests (Files): Add it and tests/signature.h.
14872         (Depends-on): Add ansi-c++-opt.
14873         (Makefile.am): Arrange to compile and run test-wchar-c++.
14874         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
14875         gl_MODULE_INDICATOR.
14876
14877         Tests of module 'unistd' in C++ mode.
14878         * tests/test-unistd-c++.cc: New file.
14879         * modules/unistd-tests (Files): Add it and tests/signature.h.
14880         (Depends-on): Add ansi-c++-opt.
14881         (Makefile.am): Arrange to compile and run test-unistd-c++.
14882         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
14883         gl_MODULE_INDICATOR.
14884
14885         Tests of module 'time' in C++ mode.
14886         * tests/test-time-c++.cc: New file.
14887         * modules/time-tests (Files): Add it and tests/signature.h.
14888         (Depends-on): Add ansi-c++-opt.
14889         (Makefile.am): Arrange to compile and run test-time-c++.
14890         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14891
14892         Tests of module 'sys_time' in C++ mode.
14893         * tests/test-sys_time-c++.cc: New file.
14894         * modules/sys_time-tests (Files): Add it and tests/signature.h.
14895         (Depends-on): Add ansi-c++-opt.
14896         (Makefile.am): Arrange to compile and run test-sys_time-c++.
14897         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
14898         gl_MODULE_INDICATOR.
14899
14900         Tests of module 'sys_stat' in C++ mode.
14901         * tests/test-sys_stat-c++.cc: New file.
14902         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
14903         (Depends-on): Add ansi-c++-opt.
14904         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
14905         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
14906         gl_MODULE_INDICATOR.
14907
14908         Tests of module 'sys_socket' in C++ mode.
14909         * tests/test-sys_socket-c++.cc: New file.
14910         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
14911         (Depends-on): Add ansi-c++-opt.
14912         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
14913         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
14914         gl_MODULE_INDICATOR.
14915
14916         Tests of module 'sys_select' in C++ mode.
14917         * tests/test-sys_select-c++.cc: New file.
14918         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14919         (Depends-on): Add ansi-c++-opt.
14920         (Makefile.am): Arrange to compile and run test-sys_select-c++.
14921         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
14922         gl_MODULE_INDICATOR.
14923
14924         Tests of module 'sys_ioctl' in C++ mode.
14925         * tests/test-sys_ioctl-c++.cc: New file.
14926         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
14927         (Depends-on): Add ansi-c++-opt.
14928         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
14929         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
14930         gl_MODULE_INDICATOR.
14931
14932         Tests of module 'string' in C++ mode.
14933         * tests/test-string-c++.cc: New file.
14934         * modules/string-tests (Files): Add it and tests/signature.h.
14935         (Depends-on): Add ansi-c++-opt.
14936         (Makefile.am): Arrange to compile and run test-string-c++.
14937         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
14938         gl_MODULE_INDICATOR.
14939
14940         Tests of module 'stdlib' in C++ mode.
14941         * tests/test-stdlib-c++.cc: New file.
14942         * modules/stdlib-tests (Files): Add it and tests/signature.h.
14943         (Depends-on): Add ansi-c++-opt.
14944         (Makefile.am): Arrange to compile and run test-stdlib-c++.
14945         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
14946         gl_MODULE_INDICATOR.
14947
14948         Tests of module 'stdio' in C++ mode.
14949         * tests/test-stdio-c++.cc: New file.
14950         * modules/stdio-tests (Files): Add it and tests/signature.h.
14951         (Depends-on): Add ansi-c++-opt.
14952         (Makefile.am): Arrange to compile and run test-stdio-c++.
14953         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
14954         gl_MODULE_INDICATOR.
14955
14956         Tests of module 'spawn' in C++ mode.
14957         * tests/test-spawn-c++.cc: New file.
14958         * modules/spawn-tests (Files): Add it and tests/signature.h.
14959         (Depends-on): Add ansi-c++-opt.
14960         (Makefile.am): Arrange to compile and run test-spawn-c++.
14961         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
14962         gl_MODULE_INDICATOR.
14963
14964         Tests of module 'signal' in C++ mode.
14965         * tests/test-signal-c++.cc: New file.
14966         * modules/signal-tests (Files): Add it and tests/signature.h.
14967         (Depends-on): Add ansi-c++-opt.
14968         (Makefile.am): Arrange to compile and run test-signal-c++.
14969         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
14970         gl_MODULE_INDICATOR.
14971
14972         Tests of module 'search' in C++ mode.
14973         * tests/test-search-c++.cc: New file.
14974         * modules/search-tests (Files): Add it and tests/signature.h.
14975         (Depends-on): Add ansi-c++-opt.
14976         (Makefile.am): Arrange to compile and run test-search-c++.
14977         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
14978         gl_MODULE_INDICATOR.
14979
14980         Tests of module 'math' in C++ mode.
14981         * tests/test-math-c++.cc: New file.
14982         * modules/math-tests (Files): Add it and tests/signature.h.
14983         (Depends-on): Add ansi-c++-opt.
14984         (Makefile.am): Arrange to compile and run test-math-c++.
14985         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14986
14987         Tests of module 'locale' in C++ mode.
14988         * tests/test-locale-c++.cc: New file.
14989         * modules/locale-tests (Files): Add it and tests/signature.h.
14990         (Depends-on): Add ansi-c++-opt.
14991         (Makefile.am): Arrange to compile and run test-locale-c++.
14992         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
14993         gl_MODULE_INDICATOR.
14994
14995         Tests of module 'langinfo' in C++ mode.
14996         * tests/test-langinfo-c++.cc: New file.
14997         * modules/langinfo-tests (Files): Add it and tests/signature.h.
14998         (Depends-on): Add ansi-c++-opt.
14999         (Makefile.am): Arrange to compile and run test-langinfo-c++.
15000         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
15001         gl_MODULE_INDICATOR.
15002
15003         Tests of module 'iconv-h' in C++ mode.
15004         * tests/test-iconv-h-c++.cc: New file.
15005         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
15006         (Depends-on): Add ansi-c++-opt.
15007         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
15008
15009         Tests of module 'glob' in C++ mode.
15010         * tests/test-glob-c++.cc: New file.
15011         * modules/glob-tests (Files): Add it.
15012         (Depends-on): Add ansi-c++-opt.
15013         (Makefile.am): Arrange to compile and run test-glob-c++.
15014
15015         Tests of module 'fcntl-h' in C++ mode.
15016         * tests/test-fcntl-h-c++.cc: New file.
15017         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
15018         (Depends-on): Add ansi-c++-opt.
15019         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
15020         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
15021         gl_MODULE_INDICATOR.
15022
15023         Tests of module 'dirent' in C++ mode.
15024         * tests/test-dirent-c++.cc: New file.
15025         * modules/dirent-tests (Files): Add it and tests/signature.h.
15026         (Depends-on): Add ansi-c++-opt.
15027         (Makefile.am): Arrange to compile and run test-dirent-c++.
15028         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15029         gl_MODULE_INDICATOR.
15030
15031         New module 'ansi-c++-opt'.
15032         * modules/ansi-c++-opt: New file.
15033         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
15034
15035         Document C++ namespace mode.
15036         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
15037
15038         wctype: Avoid #define replacements in C++ mode.
15039         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
15040         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
15041         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
15042         In C++, define a namespaced alias symbol.
15043         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
15044         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
15045         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
15046         rule.
15047
15048         wchar: Avoid #define replacements in C++ mode.
15049         * lib/wchar.in.h: Include c++defs.h.
15050         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
15051         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
15052         symbol.
15053         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
15054         * modules/wchar (Depends-on): Add c++defs.
15055         (Makefile.am): Update wchar.h rule.
15056
15057         unistd: Avoid #define replacements in C++ mode.
15058         * lib/unistd.in.h: Include c++defs.h.
15059         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
15060         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
15061         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
15062         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
15063         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
15064         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
15065         symbol.
15066         (environ): Update.
15067         * modules/unistd (Depends-on): Add c++defs.
15068         (Makefile.am): Update unistd.h rule.
15069
15070         time: Avoid #define replacements in C++ mode.
15071         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
15072         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
15073         define a namespaced alias symbol.
15074         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
15075         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
15076         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
15077         * modules/time (Depends-on): Add c++defs, warn-on-use.
15078         (Makefile.am): Update time.h rule.
15079         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15080         * modules/nanosleep (configure.ac): Likewise.
15081         * modules/strptime (configure.ac): Likewise.
15082         * modules/timegm (configure.ac): Likewise.
15083
15084         sys_time: Avoid #define replacements in C++ mode.
15085         * lib/sys_time.in.h: Include c++defs.h.
15086         (gettimeofday): In C++, define a namespaced alias symbol.
15087         * modules/sys_time (Depends-on): Add c++defs.
15088         (Makefile.am): Update sys/time.h rule.
15089
15090         sys_stat: Avoid #define replacements in C++ mode.
15091         * lib/sys_stat.in.h: Include c++defs.h.
15092         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
15093         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
15094         namespaced alias symbol.
15095         In C++, define a namespaced alias symbol.
15096         * modules/sys_stat (Depends-on): Add c++defs.
15097         (Makefile.am): Update sys/stat.h rule.
15098
15099         sys_socket: Avoid #define replacements in C++ mode.
15100         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
15101         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
15102         definitions also when the system has a <sys/socket.h>.
15103         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15104         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
15105         In C++, define a namespaced alias symbol.
15106         * modules/sys_socket (Depends-on): Add c++defs.
15107         (Makefile.am): Update sys/socket.h rule.
15108
15109         sys_select: Avoid #define replacements in C++ mode.
15110         * lib/sys_select.in.h: Include c++defs.h. Enable the function
15111         definitions also when the system has a <sys/select.h>.
15112         (select): In C++, define a namespaced alias symbol.
15113         * modules/sys_select (Depends-on): Add c++defs.
15114         (Makefile.am): Update sys/select.h rule.
15115
15116         sys_ioctl: Avoid #define replacements in C++ mode.
15117         * lib/sys_ioctl.in.h: Include c++defs.h.
15118         (ioctl): In C++, define a namespaced alias symbol.
15119         * modules/sys_ioctl (Depends-on): Add c++defs.
15120         (Makefile.am): Update sys/ioctl.h rule.
15121
15122         string: Avoid #define replacements in C++ mode.
15123         * lib/string.in.h: Include c++defs.h.
15124         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
15125         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15126         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15127         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
15128         strsignal, strverscmp): In C++, define a namespaced alias symbol.
15129         * modules/string (Depends-on): Add c++defs.
15130         (Makefile.am): Update string.h rule.
15131
15132         stdlib: Avoid #define replacements in C++ mode.
15133         * lib/stdlib.in.h: Include c++defs.h.
15134         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
15135         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
15136         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
15137         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
15138         symbol.
15139         * modules/stdlib (Depends-on): Add c++defs.
15140         (Makefile.am): Update stdlib.h rule.
15141
15142         stdio: Avoid #define replacements in C++ mode.
15143         * lib/stdio.in.h: Include c++defs.h.
15144         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
15145         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
15146         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
15147         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
15148         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
15149         namespaced alias symbol.
15150         * modules/stdio (Depends-on): Add c++defs.
15151         (Makefile.am): Update stdio.h rule.
15152
15153         spawn: Avoid #define replacements in C++ mode.
15154         * lib/spawn.in.h: Include c++defs.h.
15155         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15156         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15157         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15158         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15159         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15160         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15161         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15162         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15163         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15164         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15165         In C++, define a namespaced alias symbol.
15166         * modules/spawn (Depends-on): Add c++defs.
15167         (Makefile.am): Update spawn.h rule.
15168
15169         signal: Avoid #define replacements in C++ mode.
15170         * lib/signal.in.h: Include c++defs.h.
15171         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15172         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15173         namespaced alias symbol.
15174         * modules/signal (Depends-on): Add c++defs.
15175         (Makefile.am): Update signal.h rule.
15176
15177         search: Avoid #define replacements in C++ mode.
15178         * lib/search.in.h: Include c++defs.h.
15179         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15180         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15181         symbol.
15182         * modules/search (Depends-on): Add c++defs.
15183         (Makefile.am): Update search.h rule.
15184
15185         math: Avoid #define replacements in C++ mode.
15186         * lib/math.in.h: Include c++defs.h.
15187         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15188         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15189         trunc, truncl): In C++, define a namespaced alias symbol.
15190         * modules/math (Depends-on): Add c++defs.
15191         (Makefile.am): Update math.h rule.
15192
15193         locale: Avoid #define replacements in C++ mode.
15194         * lib/locale.in.h: Include c++defs.h.
15195         (duplocale): In C++, define a namespaced alias symbol.
15196         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15197         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15198         * modules/locale (Depends-on): Add c++defs.
15199         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15200
15201         langinfo: Avoid #define replacements in C++ mode.
15202         * lib/langinfo.in.h: Include c++defs.h.
15203         (nl_langinfo): In C++, define a namespaced alias symbol.
15204         * modules/langinfo (Depends-on): Add c++defs.
15205         (Makefile.am): Update langinfo.h rule.
15206
15207         iconv-h: Avoid #define replacements in C++ mode.
15208         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15209         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15210         symbol.
15211         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15212         whenever iconv is present.
15213         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15214         (Makefile.am): Update iconv.h rule.
15215
15216         glob: Avoid #define replacements in C++ mode.
15217         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15218         (_gl_glob_errfunc_fn): New type.
15219         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15220         symbol.
15221         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15222         (Makefile.am): Update glob.h rule.
15223
15224         fcntl-h: Avoid #define replacements in C++ mode.
15225         * lib/fcntl.in.h: Include c++defs.h.
15226         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15227         * modules/fcntl-h (Depends-on): Add c++defs.
15228         (Makefile.am): Update fcntl.h rule.
15229
15230         dirent: Avoid #define replacements in C++ mode.
15231         * lib/dirent.in.h: Include c++defs.h.
15232         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15233         namespaced alias symbol.
15234         (dirfd): Update declaration.
15235         * modules/dirent (Depends-on): Add c++defs.
15236         (Makefile.am): Update dirent.h rule.
15237
15238         ctype: Make it usable in C++ code.
15239         * lib/ctype.in.h: Include c++defs.h.
15240         (isblank): Declare as extern "C".
15241         * modules/ctype (Depends-on): Add c++defs.
15242         (Makefile.am): Update ctype.h rule.
15243
15244         New module 'c++defs'.
15245         * modules/c++defs: New file.
15246         * build-aux/c++defs.h: New file.
15247         Reported by John W. Eaton <jwe@gnu.org>.
15248
15249 2010-03-07  Bruno Haible  <bruno@clisp.org>
15250
15251         logb: Provide missing declaration for Cygwin.
15252         * lib/math.in.h (logb): New declaration.
15253         * m4/logb.m4: New file.
15254         * modules/logb (Files): Add m4/logb.m4.
15255         (Depends-on): Add math.
15256         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15257         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15259         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15260         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15261
15262 2010-03-07  Bruno Haible  <bruno@clisp.org>
15263
15264         Fix test-cond link error.
15265         * tests/test-cond.c: Include <stdio.h>.
15266
15267 2010-03-07  Bruno Haible  <bruno@clisp.org>
15268
15269         Fix test-dirent-safer link error.
15270         * modules/dirent-safer-tests (Makefile.am): Define
15271         test_dirent_safer_LDADD.
15272
15273 2010-03-07  Bruno Haible  <bruno@clisp.org>
15274
15275         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15276         among default module list.
15277
15278 2010-03-07  Bruno Haible  <bruno@clisp.org>
15279
15280         Fix link error on platforms with GNU libiconv.
15281         * modules/unistr/u8-strcoll-tests (Makefile): Define
15282         test_u8_strcoll_LDADD.
15283         * modules/unistr/u16-strcoll-tests (Makefile): Define
15284         test_u16_strcoll_LDADD.
15285         * modules/unistr/u32-strcoll-tests (Makefile): Define
15286         test_u32_strcoll_LDADD.
15287
15288 2010-03-07  Bruno Haible  <bruno@clisp.org>
15289
15290         Use POSIX declarations for socket functions.
15291         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15292         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15293         rpl_sendto): Change declaration to match POSIX.
15294         * lib/connect.c (rpl_connect): Likewise.
15295         * lib/accept.c (rpl_accept): Likewise.
15296         * lib/bind.c (rpl_bind): Likewise.
15297         * lib/getpeername.c (rpl_getpeername): Likewise.
15298         * lib/getsockname.c (rpl_getsockname): Likewise.
15299         * lib/recv.c (rpl_recv): Likewise.
15300         * lib/send.c (rpl_send): Likewise.
15301         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15302         * lib/sendto.c (rpl_sendto): Likewise.
15303
15304 2010-03-06  Bruno Haible  <bruno@clisp.org>
15305
15306         Clarify access, euidaccess, faccessat.
15307         * doc/posix-functions/faccessat.texi: Mention security problem under
15308         "Other problems", not "Portability problems".
15309         * doc/posix-functions/access.texi: Likewise. Mention a related security
15310         problem.
15311         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15312         * lib/euidaccess.c: Add comments about platforms.
15313         * lib/unistd.in.h (access, euidaccess): Add warnings.
15314
15315 2010-03-07  Bruno Haible  <bruno@clisp.org>
15316
15317         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15318         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15319         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15320         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15321         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15322         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15323         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15324         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15325         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15326         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15327         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15328         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15329         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15330         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15331         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15332         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15333         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15334         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15335         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15336         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15337         Likewise.
15338         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15339         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15340         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15341         Likewise.
15342         * tests/test-spawn.c (main): Make it work when
15343         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15344
15345 2010-03-07  Bruno Haible  <bruno@clisp.org>
15346
15347         Fix incorrect Makefile.am generation in German locale.
15348         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15349         Execute sed command with character range in C locale.
15350
15351 2010-03-06  Bruno Haible  <bruno@clisp.org>
15352
15353         Tests for module 'iconv-h'.
15354         * modules/iconv-h-tests: New file.
15355         * tests/test-iconv-h.c: New file.
15356
15357         New module 'iconv-h'.
15358         * modules/iconv-h: New file.
15359         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15360         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15361         (configure.ac): Remove gl_ICONV_H.
15362         (Makefile.am): Remove rule for iconv.h.
15363
15364 2010-03-06  Bruno Haible  <bruno@clisp.org>
15365
15366         More consistent naming of *.m4 files.
15367         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15368         * modules/wctype (Files): Update.
15369
15370         More consistent naming of *.m4 files.
15371         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15372         * modules/wchar (Files): Update.
15373
15374 2010-03-06  Jim Meyering  <meyering@redhat.com>
15375
15376         euidaccess: relax license to LGPLv2+
15377         * modules/euidaccess (License): Relax to LGPLv2+.
15378
15379 2010-03-06  Bruno Haible  <bruno@clisp.org>
15380
15381         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15382         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15383         (Makefile.am): Augment lib_SOURCES instead.
15384
15385 2010-03-04  Jim Meyering  <meyering@redhat.com>
15386
15387         utime: remove obsolete module
15388         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15389         unnecessary for years, and has been marked as obsolete for 10 months.
15390         * modules/utime: Remove file.
15391         * lib/utime.c: Remove file.
15392         * m4/utime.m4: Remove file.
15393         * m4/utimes-null.m4: Remove file.
15394         * doc/posix-functions/utime.texi (utime): Remove reference to
15395         the module.  Move the sole "fixed by gnulib" item into the
15396         "problems not fixed by Gnulib" list.
15397         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15398
15399 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15400
15401         * modules/exit (License): Relax license to LGPLv2+.
15402         (Status): Mark as obsolete.
15403         * NEWS: Mention deprecated 'exit' module.
15404         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15405         of now obsolete 'exit'.
15406
15407 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15408
15409         fts-lgpl: remove unused module
15410         * modules/fts-lgpl: Remove.
15411         * MODULES.html.sh (func_all_modules): Adjust.
15412         * check-module (find_included_lib_files): Adjust.
15413         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15414
15415 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15416
15417         copy-acl: enhance Solaris ACL error handling
15418         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15419         * lib/set-mode-acl.c (qset_acl): Likewise.
15420
15421 2010-03-02  Bruno Haible  <bruno@clisp.org>
15422
15423         spawn: Don't override the system defined values on FreeBSD 8.
15424         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15425         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15426         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15427         if HAVE_POSIX_SPAWN is 1.
15428         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15429
15430 2010-03-01  Bruno Haible  <bruno@clisp.org>
15431
15432         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15433         regarding Automake.
15434
15435 2010-02-25  Bruno Haible  <bruno@clisp.org>
15436
15437         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15438         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15439         setting, not afterwards.
15440         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15441
15442 2010-02-24  Eric Blake  <eblake@redhat.com>
15443
15444         bootstrap, git-version-gen: use timestamp
15445         * build-aux/git-version-gen (scriptversion): Force UTC.
15446         * build-aux/bootstrap (scriptversion): New variable.
15447
15448         bootstrap: allow older git
15449         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15450         older than 1.6.4.  Requested by the libvirt project.
15451
15452 2010-02-23  Eric Blake  <eblake@redhat.com>
15453
15454         warn-on-use: work with old autoconf
15455         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15456         AS_VAR semantics of autoconf 2.60.
15457         Reported by Bruno Haible.
15458
15459         bootstrap: improve some comments
15460         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15461         clarification comments.
15462
15463         gettimeofday: provide correct function
15464         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15465         when replacement is declared, otherwise provide gettimeofday.
15466         Reported by Michael Goffioul.
15467
15468 2010-02-23  Jim Meyering  <meyering@redhat.com>
15469
15470         lib-ignore: relax license to "unlimited", not LGPLv2+
15471         * modules/lib-ignore (License): Relax to "unlimited".
15472
15473 2010-02-23  Jim Meyering  <meyering@redhat.com>
15474
15475         lib-ignore: relax license to LGPLv2+
15476         * modules/lib-ignore (License): Relax to LGPLv2+.
15477
15478 2010-02-22  Eric Blake  <eblake@redhat.com>
15479
15480         lseek: avoid bash 3.2 broken pipe bug
15481         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15482         warning from bash 3.2.
15483         Reported by Ben Pfaff, with analysis from Bruno Haible.
15484
15485         bootstrap: support non-FSF copyright holder
15486         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15487         bootstrap.conf override of COPYRIGHT_HOLDER.
15488         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15489
15490         bootstrap: interoperate with gettext 0.14.1
15491         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15492
15493         bootstrap: allow for alternate submodule location
15494         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15495         hardcoding submodule location.
15496         (gnulib_mk): Allow direct use of Makefile.am.
15497
15498         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15499         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15500         rather than reconfiguring where the submodule points.
15501
15502         gettimeofday: restore support for platforms that lack function
15503         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15504         replacement if function is missing.
15505         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15506         * modules/sys_time (Makefile.am): Substitute it.
15507         * lib/sys_time.in.h (gettimeofday): Check it.
15508         Reported by Michael Goffioul.
15509
15510 2010-02-21  Bruno Haible  <bruno@clisp.org>
15511
15512         * lib/stdio.in.h (obstack_printf): Fix typo.
15513
15514 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15515
15516         vc-list-files: use bzr ls's -R option
15517         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15518         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15519
15520 2010-02-21  Jim Meyering  <meyering@redhat.com>
15521
15522         init.sh: fix EXEEXT shims to work also for names like test-prog
15523         * tests/init.sh: Re-exec a better shell, when needed.
15524         If the current shell lacks support for posix $(...), an init.sh-using
15525         test will now try to find a shell that supports that.  If EXEEXT is
15526         nonempty, we also require support for hyphen-in-alias-name and shell
15527         substitutions like ${var#glob}.  Failure to find such a shell results
15528         in a skipped test.
15529
15530 2010-02-21  Bruno Haible  <bruno@clisp.org>
15531
15532         Really work around around "broken pipe" error message from bash 3.2.
15533         * gnulib-tool (func_reset_sigpipe): Remove function.
15534         (echo): In bash 3.2, define to a function that uses printf.
15535         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15536
15537 2010-02-20  Bruno Haible  <bruno@clisp.org>
15538
15539         Restore support for automake 1.9.6 with autoconf 2.61.
15540         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15541         Reported by James Youngman <jay@gnu.org>.
15542
15543 2010-02-20  Bruno Haible  <bruno@clisp.org>
15544
15545         Improve *printf warning condition.
15546         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15547         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15548         and the function is overridden due to SIGPIPE emulation.
15549
15550 2010-02-20  Bruno Haible  <bruno@clisp.org>
15551
15552         * lib/stdio.in.h: Tweak comments.
15553
15554 2010-02-19  Bruno Haible  <bruno@clisp.org>
15555
15556         Make it easier to find modules. New gnulib-tool option '--find'.
15557         * gnulib-tool: New option --find.
15558         (func_usage): Document it.
15559         (func_sanitize_modulelist): New function, extracted from
15560         func_all_modules.
15561         (func_all_modules): Invoke it.
15562         * doc/gnulib-tool.texi (Which modules?): New node.
15563
15564 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15565
15566         * lib/sys_select.in.h: Provide select replacement even if
15567         sys/select.h exists on a system, for Interix.
15568
15569 2010-02-18  Jim Meyering  <meyering@redhat.com>
15570
15571         init.sh: don't use $(...) just yet
15572         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15573         to accommodate e.g., Solaris' /bin/sh.
15574
15575 2010-02-17  Bruno Haible  <bruno@clisp.org>
15576
15577         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15578         Reported by Ludovic Courtès <ludo@gnu.org>.
15579
15580 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15581
15582         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15583         linking with -lintl.
15584
15585 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15586
15587         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15588         if not provided by the system's netdb.h.  Reported by
15589         ludo@gnu.org (Ludovic Courtès).
15590
15591 2010-02-15  Jim Meyering  <meyering@redhat.com>
15592
15593         init.sh: improve portability and efficiency
15594         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15595         "dummy" in a for loop.
15596         Use '!', not '^' to select the complement of a character set used
15597         in a "case" statement.
15598         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
15599         Suggestions from Eric Blake.
15600
15601         init.sh: automatically accommodate programs with the .exe suffix
15602         Automatically arrange for an invocation of "prog" to execute the
15603         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
15604         may use the simpler "prog", yet still work when built on a system
15605         that requires specifying the added suffix.
15606         Do this by constructing a function named "prog" that invokes
15607         "prog.exe" for each .exe file in selected directories.
15608         * tests/init.sh (find_exe_basenames_): New function.
15609         (create_exe_shim_functions_): New function.
15610         (path_prepend_): Use it.
15611
15612         maint.mk: mark syntax-check sc_*.m rules as .PHONY
15613         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
15614         "make -t syntax-check" doesn't create a ton of sc_*.m files.
15615
15616 2010-02-14  Jim Meyering  <meyering@redhat.com>
15617
15618         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
15619         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
15620         (sc_prohibit_hash_pjw_without_use): New rule.
15621
15622         maint.mk: allow the default upload destination dir to be overridden
15623         * top/maint.mk (upload_dest_dir_): Define with a default that
15624         preserves the status quo.
15625         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
15626         Reported by Peter Simons.
15627
15628         maint.mk: prohibit inclusion of "hash.h" without_use
15629         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
15630
15631 2010-02-10  Jim Meyering  <meyering@redhat.com>
15632
15633         maint.mk: prohibit inclusion of "ignore-value.h" without_use
15634         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
15635
15636 2010-02-09  Eric Blake  <ebb9@byu.net>
15637         and Bruno Haible  <bruno@clisp.org>
15638
15639         obstack-printf-posix: ensure declaration
15640         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
15641         extracted from gl_FUNC_OBSTACK_PRINTF.
15642         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
15643         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
15644         Likewise.
15645         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
15646         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
15647         0.
15648
15649 2010-02-08  Bruno Haible  <bruno@clisp.org>
15650
15651         gnulib-tool: Fix typo in 2010-02-07 commit.
15652         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
15653         Reported by Eric Blake.
15654
15655 2010-02-07  Bruno Haible  <bruno@clisp.org>
15656
15657         gnulib-tool: Fix up caching patches.
15658         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
15659         option --no-cache. Use associative arrays when supported by the shell.
15660         (sed_comments): New variable.
15661         (modcache): Renamed from do_cache.
15662         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
15663         abbreviate unnecessarily.
15664         (have_associative): New variable.
15665         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
15666         way also for ksh and zsh.
15667         (func_init_sed_convert_to_cache_statements): New function, extracted
15668         from func_cache_lookup_module. Add support for associative arrays.
15669         Don't set the c_MODULE_cached variable here. Ignore all lines before
15670         the first field header. Remove only the final newline, not all trailing
15671         newlines. Support empty fields correctly. Limit the use of 'eval' to
15672         assignments.
15673         (func_get_description, func_get_status, func_get_notice,
15674         func_get_applicability, func_get_filelist, func_get_dependencies,
15675         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
15676         func_get_automake_snippet, func_get_include_directive,
15677         func_get_link_directive, func_get_license, func_get_maintainer):
15678         Update documentation. List the unoptimized code first. Add support for
15679         associative arrays. Limit the use of 'eval' to assignments.
15680         (func_get_applicability): Undo stylistic pessimisations.
15681         (func_get_automake_snippet, func_get_include_directive): Reduce code
15682         duplication.
15683         (func_modules_transitive_closure, func_modules_add_dummy,
15684         func_modules_notice, func_modules_to_filelist, func_add_file,
15685         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
15686         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
15687         func_create_testdir, func_create_megatestdir): Update documentation.
15688
15689 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15690
15691         * gnulib-tool (func_cache_lookup_module): Store the module name
15692         belonging to the cache variable; error out if two different
15693         module names map to the same cache variable name.
15694
15695 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15696
15697         gnulib-tool: Make caching optional.
15698         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
15699         Update matching short versions of --no-changelog.
15700         (func_usage): Update.
15701         (sed_extract_cache_prog): Renamed from ...
15702         (sed_extract_prog): ... this; revert to old extraction script.
15703         (func_get_description, func_get_status)
15704         (func_get_notice, func_get_applicability, func_get_filelist)
15705         (func_get_dependencies, func_get_autoconf_early_snippet)
15706         (func_get_autoconf_snippet, func_get_automake_snippet)
15707         (func_get_include_directive, func_get_link_directive)
15708         (func_get_license, func_get_maintainer): If $do_cache is false,
15709         use old, non-caching extraction scripts.
15710         Suggestion by Bruno Haible.
15711
15712 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15713
15714         gnulib-tool: cache module metainformation.
15715         * gnulib-tool (sed_extract_prog): Match newline before each
15716         header, and rewrite header to a shell variable suffix.
15717         (func_cache_var, func_cache_lookup_module): New functions,
15718         to turn a module name into a cache variable prefix, and to
15719         look up and cache module metainformation.
15720         (func_get_description, func_get_status)
15721         (func_get_notice, func_get_applicability, func_get_filelist)
15722         (func_get_dependencies, func_get_autoconf_early_snippet)
15723         (func_get_autoconf_snippet, func_get_automake_snippet)
15724         (func_get_include_directive, func_get_link_directive)
15725         (func_get_license, func_get_maintainer): Use
15726         func_cache_lookup_module.
15727
15728 2010-02-07  Bruno Haible  <bruno@clisp.org>
15729
15730         fnctl: Fix missing dependency.
15731         * modules/fcntl (Depends-on): Add getdtablesize.
15732         Reported by John W. Eaton <jwe@gnu.org>.
15733
15734 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15735
15736         Argp: fix recognition of short alias options.
15737
15738         * lib/argp-parse.c (convert_options): Fix improper use of
15739         `|' between character values.
15740         * tests/test-argp.c (group1_option): New alias option
15741         --read (-r).
15742         (group1_parser): Special handling for 'r'.
15743         (test15): New test case.
15744         (test_fun): Add test15.
15745         * tests/test-argp-2.sh: Update expected --help and --usage
15746         outputs.
15747
15748 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
15749
15750         * tests/test-argp.c: Fix indentation.
15751
15752 2010-02-04  Eric Blake  <ebb9@byu.net>
15753
15754         gettimeofday: expose type of second argument
15755         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
15756         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
15757         * tests/test-gettimeofday.c: Use it to silence warning.
15758         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
15759         the issue.
15760
15761 2010-02-03  Jim Meyering  <meyering@redhat.com>
15762
15763         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
15764         * lib/regcomp.c (TYPE_SIGNED): Define.
15765         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
15766
15767         regcomp.c: avoid a new -Wshadow warning
15768         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
15769
15770 2010-02-01  Jim Meyering  <meyering@redhat.com>
15771
15772         removing useless parentheses in cpp #define directives
15773         For motivation, see commit c0221df4, "define STREQ(a,b)
15774         consistently, removing useless parentheses"
15775         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
15776         * lib/mountlist.c (MNT_IGNORE): Likewise.
15777         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
15778
15779 2010-02-01  Eric Blake  <ebb9@byu.net>
15780
15781         sys_time: use link-warning
15782         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
15783         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
15784         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
15785         * modules/sys_time (Depends-on): Add warn-on-use.
15786         (Makefile.am): Always build replacement.
15787         (configure.ac): Update substitutions.
15788         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
15789         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
15790         bother with SYS_TIME_H.
15791         * modules/gettimeofday (configure.ac): Declare indicator.
15792         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
15793         in use.
15794
15795         closein-tests: silence compiler warning
15796         * tests/test-closein.c (main): Ignore fread result.
15797         * modules/closein-tests (Depends-on): Add ignore-value.
15798
15799         tests: silence warning about system return
15800         * tests/test-areadlink-with-size.c (main): Ignore system result.
15801         * tests/test-areadlink.c (main): Likewise.
15802         * tests/test-areadlinkat-with-size.c (main): Likewise.
15803         * tests/test-areadlinkat.c (main): Likewise.
15804         * tests/test-canonicalize-lgpl.c (main): Likewise.
15805         * tests/test-canonicalize.c (main): Likewise.
15806         * tests/test-chown.c (main): Likewise.
15807         * tests/test-fchownat.c (main): Likewise.
15808         * tests/test-fdutimensat.c (main): Likewise.
15809         * tests/test-fstatat.c (main): Likewise.
15810         * tests/test-futimens.c (main): Likewise.
15811         * tests/test-lchown.c (main): Likewise.
15812         * tests/test-link.c (main): Likewise.
15813         * tests/test-linkat.c (main): Likewise.
15814         * tests/test-lstat.c (main): Likewise.
15815         * tests/test-mkdir.c (main): Likewise.
15816         * tests/test-mkdirat.c (main): Likewise.
15817         * tests/test-mkfifo.c (main): Likewise.
15818         * tests/test-mkfifoat.c (main): Likewise.
15819         * tests/test-mknod.c (main): Likewise.
15820         * tests/test-readlink.c (main): Likewise.
15821         * tests/test-remove.c (main): Likewise.
15822         * tests/test-rename.c (main): Likewise.
15823         * tests/test-renameat.c (main): Likewise.
15824         * tests/test-rmdir.c (main): Likewise.
15825         * tests/test-symlink.c (main): Likewise.
15826         * tests/test-symlinkat.c (main): Likewise.
15827         * tests/test-unlink.c (main): Likewise.
15828         * tests/test-unlinkat.c (main): Likewise.
15829         * tests/test-utimens.c (main): Likewise.
15830         * tests/test-utimensat.c (main): Likewise.
15831         * modules/areadlink-tests (Depends-on): Add ignore-value.
15832         * modules/areadlink-with-size-tests (Depends-on): Likewise.
15833         * modules/areadlinkat-tests (Depends-on): Likewise.
15834         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
15835         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15836         * modules/canonicalize-tests (Depends-on): Likewise.
15837         * modules/chown-tests (Depends-on): Likewise.
15838         * modules/fdutimensat-tests (Depends-on): Likewise.
15839         * modules/futimens-tests (Depends-on): Likewise.
15840         * modules/lchown-tests (Depends-on): Likewise.
15841         * modules/link-tests (Depends-on): Likewise.
15842         * modules/linkat-tests (Depends-on): Likewise.
15843         * modules/lstat-tests (Depends-on): Likewise.
15844         * modules/mkdir-tests (Depends-on): Likewise.
15845         * modules/mkfifo-tests (Depends-on): Likewise.
15846         * modules/mkfifoat-tests (Depends-on): Likewise.
15847         * modules/mknod-tests (Depends-on): Likewise.
15848         * modules/openat-tests (Depends-on): Likewise.
15849         * modules/readlink-tests (Depends-on): Likewise.
15850         * modules/remove-tests (Depends-on): Likewise.
15851         * modules/rename-tests (Depends-on): Likewise.
15852         * modules/renameat-tests (Depends-on): Likewise.
15853         * modules/rmdir-tests (Depends-on): Likewise.
15854         * modules/symlink-tests (Depends-on): Likewise.
15855         * modules/symlinkat-tests (Depends-on): Likewise.
15856         * modules/unlink-tests (Depends-on): Likewise.
15857         * modules/utimens-tests (Depends-on): Likewise.
15858         * modules/utimensat-tests (Depends-on): Likewise.
15859
15860 2010-01-31  Bruno Haible  <bruno@clisp.org>
15861
15862         Perform the same test for many <math.h> functions.
15863         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
15864         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
15865         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
15866         of gl_MATHFUNC.
15867         * modules/acos (configure.ac): Likewise.
15868         * modules/asin (configure.ac): Likewise.
15869         * modules/atan (configure.ac): Likewise.
15870         * modules/atan2 (configure.ac): Likewise.
15871         * modules/cbrt (configure.ac): Likewise.
15872         * modules/copysign (configure.ac): Likewise.
15873         * modules/cos (configure.ac): Likewise.
15874         * modules/cosh (configure.ac): Likewise.
15875         * modules/erf (configure.ac): Likewise.
15876         * modules/erfc (configure.ac): Likewise.
15877         * modules/exp (configure.ac): Likewise.
15878         * modules/fmod (configure.ac): Likewise.
15879         * modules/hypot (configure.ac): Likewise.
15880         * modules/j0 (configure.ac): Likewise.
15881         * modules/j1 (configure.ac): Likewise.
15882         * modules/jn (configure.ac): Likewise.
15883         * modules/lgamma (configure.ac): Likewise.
15884         * modules/log (configure.ac): Likewise.
15885         * modules/log10 (configure.ac): Likewise.
15886         * modules/log1p (configure.ac): Likewise.
15887         * modules/pow (configure.ac): Likewise.
15888         * modules/remainder (configure.ac): Likewise.
15889         * modules/sin (configure.ac): Likewise.
15890         * modules/sinh (configure.ac): Likewise.
15891         * modules/tan (configure.ac): Likewise.
15892         * modules/tanh (configure.ac): Likewise.
15893         * modules/y0 (configure.ac): Likewise.
15894         * modules/y1 (configure.ac): Likewise.
15895         * modules/yn (configure.ac): Likewise.
15896         Suggested by Paolo Bonzini.
15897
15898 2010-01-31  Bruno Haible  <bruno@clisp.org>
15899
15900         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
15901
15902 2010-01-31  Bruno Haible  <bruno@clisp.org>
15903
15904         Work around getdelim() bug on FreeBSD 8.0.
15905         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
15906         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
15907         not work.
15908         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
15909         is 1.
15910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
15911         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
15912         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
15913         a non-zero size.
15914         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
15915
15916 2010-01-31  Bruno Haible  <bruno@clisp.org>
15917
15918         Work around getline() bug on FreeBSD 8.0.
15919         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
15920         and a non-zero size.
15921         * tests/test-getline.c (main): Likewise.
15922         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
15923         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
15924
15925 2010-01-28  Eric Blake  <ebb9@byu.net>
15926
15927         regex: fix build failure
15928         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
15929         platforms.
15930
15931 2010-01-28  Jim Meyering  <meyering@redhat.com>
15932
15933         regex: do not ignore memory allocation failure
15934         * lib/regex_internal.c (create_cd_newstate): Detect
15935         re_node_set_init_copy failure.   Extracted from glibc commit
15936         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15937
15938         regex: sync more white-space changes from libc
15939         * lib/regex_internal.c: White-space only changes.
15940         * lib/regexec.c: Likewise.
15941
15942         regex: add many uses of __attribute_warn_unused_result__
15943         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
15944         * lib/regexec.c: Likewise.
15945         Extracted from a messy glibc commit.
15946
15947         regcomp.c: spelling and merge-artifact from glibc
15948         * lib/regcomp.c: Merge remainder of glibc's
15949         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15950
15951         regcomp.c: sync white-space changes from glibc
15952         * lib/regcomp.c: Merge to accommodate white space
15953         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
15954
15955         regcomp.c: do not ignore internal return values
15956         * lib/regcomp.c: Do not ignore internal return values.
15957         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
15958         but without its white-space changes and spelling fixes.
15959
15960         regex_internal.h: define __attribute_warn_unused_result__
15961         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
15962
15963         maint: add a syntax-check rule to check for vulnerable Makefile.in
15964         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
15965
15966 2010-01-27  Jim Meyering  <meyering@redhat.com>
15967
15968         ncftpput-ftp: clean up spaces
15969         * build-aux/ncftpput-ftp: Make Copyright line consistent.
15970         Remove trailing blanks.
15971
15972 2010-01-27  Simon Josefsson  <simon@josefsson.org>
15973
15974         * build-aux/git-version-gen: Fix copyright statement.
15975         * build-aux/gnupload: Likewise.
15976         * tests/test-arcfour.c: Likewise.
15977         * tests/test-arctwo.c: Likewise.
15978         * tests/test-count-one-bits.c: Likewise.
15979         * tests/test-crc.c: Likewise.
15980         * tests/test-des.c: Likewise.
15981         * tests/test-gc-arcfour.c: Likewise.
15982         * tests/test-gc-arctwo.c: Likewise.
15983         * tests/test-gc-des.c: Likewise.
15984         * tests/test-gc-hmac-md5.c: Likewise.
15985         * tests/test-gc-hmac-sha1.c: Likewise.
15986         * tests/test-gc-md2.c: Likewise.
15987         * tests/test-gc-md4.c: Likewise.
15988         * tests/test-gc-md5.c: Likewise.
15989         * tests/test-gc-pbkdf2-sha1.c: Likewise.
15990         * tests/test-gc-rijndael.c: Likewise.
15991         * tests/test-gc-sha1.c: Likewise.
15992         * tests/test-gc.c: Likewise.
15993         * tests/test-gethostname.c: Likewise.
15994         * tests/test-gettimeofday.c: Likewise.
15995         * tests/test-hash.c: Likewise.
15996         * tests/test-hmac-md5.c: Likewise.
15997         * tests/test-hmac-sha1.c: Likewise.
15998         * tests/test-md2.c: Likewise.
15999         * tests/test-md4.c: Likewise.
16000         * tests/test-md5.c: Likewise.
16001         * tests/test-memchr.c: Likewise.
16002         * tests/test-memchr2.c: Likewise.
16003         * tests/test-memcmp.c: Likewise.
16004         * tests/test-memmem.c: Likewise.
16005         * tests/test-memrchr.c: Likewise.
16006         * tests/test-rawmemchr.c: Likewise.
16007         * tests/test-read-file.c: Likewise.
16008         * tests/test-rijndael.c: Likewise.
16009         * tests/test-sockets.c: Likewise.
16010         * tests/test-strchrnul.c: Likewise.
16011         * tests/test-strstr.c: Likewise.
16012         * tests/test-strtod.c: Likewise.
16013         * build-aux/ncftpput-ftp: Likewise.
16014
16015 2010-01-26  Eric Blake  <ebb9@byu.net>
16016
16017         ignore-value: update recommended header name
16018         * modules/ignore-value (Include): Only use <> for headers that
16019         exist in glibc.
16020
16021 2010-01-26  Jim Meyering  <meyering@redhat.com>
16022
16023         test-userspec.c: avoid compiler warnings
16024         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
16025         and "initialization discards qualifiers..." warnings.
16026         Put the first "uid" in its own scope, and make char* members "const".
16027
16028 2010-01-25  Bruno Haible  <bruno@clisp.org>
16029
16030         gnulib-tool: Make warning diagnostics consistent.
16031         * gnulib-tool (func_warning): New function.
16032         Use it everywhere where gnulib-tool produces output to stderr and it is
16033         not a fatal error.
16034
16035 2010-01-25  Bruno Haible  <bruno@clisp.org>
16036
16037         Fix test dependencies.
16038         * modules/xstrtol-tests (Depends-on): Add inttypes.
16039         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
16040
16041 2010-01-25 Pádraig Brady <P@draigBrady.com>
16042
16043         syntax-check: detect incorrect boolean macro values in config.h
16044         * modules/maintainer-makefile (configure.ac): Parameterize the location
16045         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
16046         The logic is from Eric Blake and the location indicated by Jim Meyering.
16047         Note the more natural CONFIG_HEADER name is prohibited by automake
16048         for backwards compatibility reasons.
16049         * top/maint.mk (sc_Wundef_boolean): New rule.
16050
16051 2010-01-25  Jim Meyering  <meyering@redhat.com>
16052
16053         bootstrap: detect MacOS 10.6's shasum, too
16054         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
16055         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
16056
16057 2010-01-23  Jim Meyering  <meyering@redhat.com>
16058
16059         xstrtoll: new module
16060         * modules/xstrtoll: New file.
16061         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
16062         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
16063         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
16064         ./configure fails if you use this module and lack "long long".
16065         * modules/xstrtoll-tests: New module.
16066         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
16067         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
16068         new init.sh-based test framework.
16069
16070 2010-01-24  Bruno Haible  <bruno@clisp.org>
16071
16072         Tests for module 'yn'.
16073         * modules/yn-tests: New file.
16074         * tests/test-yn.c: New file.
16075
16076         Tests for module 'y1'.
16077         * modules/y1-tests: New file.
16078         * tests/test-y1.c: New file.
16079
16080         Tests for module 'y0'.
16081         * modules/y0-tests: New file.
16082         * tests/test-y0.c: New file.
16083
16084         Tests for module 'tanh'.
16085         * modules/tanh-tests: New file.
16086         * tests/test-tanh.c: New file.
16087
16088         Tests for module 'tan'.
16089         * modules/tan-tests: New file.
16090         * tests/test-tan.c: New file.
16091
16092         Tests for module 'sqrt'.
16093         * modules/sqrt-tests: New file.
16094         * tests/test-sqrt.c: New file.
16095
16096         Tests for module 'sinh'.
16097         * modules/sinh-tests: New file.
16098         * tests/test-sinh.c: New file.
16099
16100         Tests for module 'sin'.
16101         * modules/sin-tests: New file.
16102         * tests/test-sin.c: New file.
16103
16104         Tests for module 'rint'.
16105         * modules/rint-tests: New file.
16106         * tests/test-rint.c: New file.
16107
16108         Tests for module 'remainder'.
16109         * modules/remainder-tests: New file.
16110         * tests/test-remainder.c: New file.
16111
16112         Tests for module 'pow'.
16113         * modules/pow-tests: New file.
16114         * tests/test-pow.c: New file.
16115
16116         Tests for module 'nextafter'.
16117         * modules/nextafter-tests: New file.
16118         * tests/test-nextafter.c: New file.
16119
16120         Tests for module 'modf'.
16121         * modules/modf-tests: New file.
16122         * tests/test-modf.c: New file.
16123
16124         Tests for module 'logb'.
16125         * modules/logb-tests: New file.
16126         * tests/test-logb.c: New file.
16127
16128         Tests for module 'log1p'.
16129         * modules/log1p-tests: New file.
16130         * tests/test-log1p.c: New file.
16131
16132         Tests for module 'log10'.
16133         * modules/log10-tests: New file.
16134         * tests/test-log10.c: New file.
16135
16136         Tests for module 'log'.
16137         * modules/log-tests: New file.
16138         * tests/test-log.c: New file.
16139
16140         Tests for module 'lgamma'.
16141         * modules/lgamma-tests: New file.
16142         * tests/test-lgamma.c: New file.
16143
16144         Tests for module 'ldexp'.
16145         * modules/ldexp-tests: New file.
16146         * tests/test-ldexp.c: New file.
16147
16148         Tests for module 'jn'.
16149         * modules/jn-tests: New file.
16150         * tests/test-jn.c: New file.
16151
16152         Tests for module 'j1'.
16153         * modules/j1-tests: New file.
16154         * tests/test-j1.c: New file.
16155
16156         Tests for module 'j0'.
16157         * modules/j0-tests: New file.
16158         * tests/test-j0.c: New file.
16159
16160         Tests for module 'hypot'.
16161         * modules/hypot-tests: New file.
16162         * tests/test-hypot.c: New file.
16163
16164         Tests for module 'fmod'.
16165         * modules/fmod-tests: New file.
16166         * tests/test-fmod.c: New file.
16167
16168         Tests for module 'fabs'.
16169         * modules/fabs-tests: New file.
16170         * tests/test-fabs.c: New file.
16171
16172         Tests for module 'exp'.
16173         * modules/exp-tests: New file.
16174         * tests/test-exp.c: New file.
16175
16176         Tests for module 'erfc'.
16177         * modules/erfc-tests: New file.
16178         * tests/test-erfc.c: New file.
16179
16180         Tests for module 'erf'.
16181         * modules/erf-tests: New file.
16182         * tests/test-erf.c: New file.
16183
16184         Tests for module 'cosh'.
16185         * modules/cosh-tests: New file.
16186         * tests/test-cosh.c: New file.
16187
16188         Tests for module 'cos'.
16189         * modules/cos-tests: New file.
16190         * tests/test-cos.c: New file.
16191
16192         Tests for module 'copysign'.
16193         * modules/copysign-tests: New file.
16194         * tests/test-copysign.c: New file.
16195
16196         Tests for module 'cbrt'.
16197         * modules/cbrt-tests: New file.
16198         * tests/test-cbrt.c: New file.
16199
16200         Tests for module 'atan2'.
16201         * modules/atan2-tests: New file.
16202         * tests/test-atan2.c: New file.
16203
16204         Tests for module 'atan'.
16205         * modules/atan-tests: New file.
16206         * tests/test-atan.c: New file.
16207
16208         Tests for module 'asin'.
16209         * modules/asin-tests: New file.
16210         * tests/test-asin.c: New file.
16211
16212         Tests for module 'acos'.
16213         * modules/acos-tests: New file.
16214         * tests/test-acos.c: New file.
16215
16216 2010-01-24  Bruno Haible  <bruno@clisp.org>
16217
16218         Fix tests for common <math.h> functions.
16219         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16220         code snippet that references the function pointer, rather than merely
16221         calling the function. Substitute the FUNC_LIBM variable.
16222         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16223         * modules/acos (configure.ac): Likewise.
16224         * modules/asin (configure.ac): Likewise.
16225         * modules/atan (configure.ac): Likewise.
16226         * modules/atan2 (configure.ac): Likewise.
16227         * modules/cbrt (configure.ac): Likewise.
16228         * modules/copysign (configure.ac): Likewise.
16229         * modules/cos (configure.ac): Likewise.
16230         * modules/cosh (configure.ac): Likewise.
16231         * modules/erf (configure.ac): Likewise.
16232         * modules/erfc (configure.ac): Likewise.
16233         * modules/exp (configure.ac): Likewise.
16234         * modules/fabs (configure.ac): Likewise.
16235         * modules/fmod (configure.ac): Likewise.
16236         * modules/hypot (configure.ac): Likewise.
16237         * modules/j0 (configure.ac): Likewise.
16238         * modules/j1 (configure.ac): Likewise.
16239         * modules/jn (configure.ac): Likewise.
16240         * modules/ldexp (configure.ac): Likewise.
16241         * modules/lgamma (configure.ac): Likewise.
16242         * modules/log (configure.ac): Likewise.
16243         * modules/log10 (configure.ac): Likewise.
16244         * modules/log1p (configure.ac): Likewise.
16245         * modules/logb (configure.ac): Likewise.
16246         * modules/modf (configure.ac): Likewise.
16247         * modules/nextafter (configure.ac): Likewise.
16248         * modules/pow (configure.ac): Likewise.
16249         * modules/remainder (configure.ac): Likewise.
16250         * modules/rint (configure.ac): Likewise.
16251         * modules/sin (configure.ac): Likewise.
16252         * modules/sinh (configure.ac): Likewise.
16253         * modules/tan (configure.ac): Likewise.
16254         * modules/tanh (configure.ac): Likewise.
16255         * modules/y0 (configure.ac): Likewise.
16256         * modules/y1 (configure.ac): Likewise.
16257         * modules/yn (configure.ac): Likewise.
16258
16259 2010-01-24  Bruno Haible  <bruno@clisp.org>
16260
16261         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16262         * tests/test-acosl.c (x): New variable.
16263         (main): Store argument in x and fetch it from x.
16264         * tests/test-asinl.c (x): New variable.
16265         (main): Store argument in x and fetch it from x.
16266         * tests/test-atanl.c (x): New variable.
16267         (main): Store argument in x and fetch it from x.
16268         * tests/test-cosl.c (x): New variable.
16269         (main): Store argument in x and fetch it from x.
16270         * tests/test-expl.c (x): New variable.
16271         (main): Store argument in x and fetch it from x.
16272         * tests/test-logl.c (x): New variable.
16273         (main): Store argument in x and fetch it from x.
16274         * tests/test-sinl.c (x): New variable.
16275         (main): Store argument in x and fetch it from x.
16276         * tests/test-sqrtl.c (x): New variable.
16277         (main): Store argument in x and fetch it from x.
16278         * tests/test-tanl.c (x): New variable.
16279         (main): Store argument in x and fetch it from x.
16280
16281 2010-01-24  Bruno Haible  <bruno@clisp.org>
16282
16283         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16284         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16285         assignments to the initial TESTS_ENVIRONMENT.
16286         * doc/gnulib.texi (Unit test modules): Document it.
16287         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16288         TESTS_ENVIRONMENT.
16289         * modules/btowc-tests (Makefile.am): Likewise.
16290         * modules/c-stack-tests (Makefile.am): Likewise.
16291         * modules/c-strcase-tests (Makefile.am): Likewise.
16292         * modules/copy-file-tests (Makefile.am): Likewise.
16293         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16294         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16295         * modules/mbrtowc-tests (Makefile.am): Likewise.
16296         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16297         * modules/mbscasestr-tests (Makefile.am): Likewise.
16298         * modules/mbschr-tests (Makefile.am): Likewise.
16299         * modules/mbscspn-tests (Makefile.am): Likewise.
16300         * modules/mbsinit-tests (Makefile.am): Likewise.
16301         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16302         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16303         * modules/mbspbrk-tests (Makefile.am): Likewise.
16304         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16305         * modules/mbsrchr-tests (Makefile.am): Likewise.
16306         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16307         * modules/mbsspn-tests (Makefile.am): Likewise.
16308         * modules/mbsstr-tests (Makefile.am): Likewise.
16309         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16310         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16311         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16312         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16313         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16314         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16315         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16316         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16317         * modules/wcrtomb-tests (Makefile.am): Likewise.
16318         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16319         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16320         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16321         assignments from TESTS_ENVIRONMENT.
16322         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16323         augmentation.
16324         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16325         * modules/atexit-tests (Makefile.am): Likewise.
16326         * modules/binary-io-tests (Makefile.am): Likewise.
16327         * modules/closein-tests (Makefile.am): Likewise.
16328         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16329         * modules/exclude-tests (Makefile.am): Likewise.
16330         * modules/fflush-tests (Makefile.am): Likewise.
16331         * modules/fpending-tests (Makefile.am): Likewise.
16332         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16333         * modules/freadahead-tests (Makefile.am): Likewise.
16334         * modules/freadptr-tests (Makefile.am): Likewise.
16335         * modules/freadseek-tests (Makefile.am): Likewise.
16336         * modules/fseek-tests (Makefile.am): Likewise.
16337         * modules/fseeko-tests (Makefile.am): Likewise.
16338         * modules/ftell-tests (Makefile.am): Likewise.
16339         * modules/ftello-tests (Makefile.am): Likewise.
16340         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16341         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16342         * modules/lseek-tests (Makefile.am): Likewise.
16343         * modules/parse-duration-tests (Makefile.am): Likewise.
16344         * modules/perror-tests (Makefile.am): Likewise.
16345         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16346         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16347         * modules/pipe-tests (Makefile.am): Likewise.
16348         * modules/pread-tests (Makefile.am): Likewise.
16349         * modules/printf-posix-tests (Makefile.am): Likewise.
16350         * modules/select-tests (Makefile.am): Likewise.
16351         * modules/sigpipe-tests (Makefile.am): Likewise.
16352         * modules/tsearch-tests (Makefile.am): Likewise.
16353         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16354         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16355         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16356         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16357         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16358         * modules/version-etc-tests (Makefile.am): Likewise.
16359         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16360         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16361         * modules/xalloc-die-tests (Makefile.am): Likewise.
16362         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16363         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16364         * modules/xstrtol-tests (Makefile.am): Likewise.
16365         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16366         * modules/yesno-tests (Makefile.am): Likewise.
16367         Suggested by Jim Meyering.
16368
16369 2010-01-24  Bruno Haible  <bruno@clisp.org>
16370
16371         More documentation.
16372         * doc/gnulib.texi (Writing modules): New chapter.
16373         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16374         the new chapter.
16375
16376 2010-01-24  Jim Meyering  <meyering@redhat.com>
16377
16378         maint.mk: do not prepend "./" after filtering
16379         * top/maint.mk (_prepend_srcdir_prefix): New variable
16380         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16381         "./" when $(srcdir) is ".".
16382
16383         define STREQ(a,b) consistently, removing useless parentheses
16384         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16385         since the only risk is that "a" or "b" contains an unparenthesized
16386         comma, but if either did that, STREQ would have 3 or more arguments.
16387         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16388         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16389         * lib/hash-triple.c (STREQ): Likewise.
16390         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16391         * lib/getugroups.c (STREQ): Likewise.
16392
16393 2010-01-23  Jim Meyering  <meyering@redhat.com>
16394
16395         maint.mk: fix syntax-check in a non-srcdir build directory
16396         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16397         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16398
16399 2010-01-22  Jim Meyering  <meyering@redhat.com>
16400
16401         userspec: add unit tests
16402         * tests/test-userspec.c: New file.
16403         * modules/userspec-tests: Likewise.
16404
16405 2010-01-21  Jim Meyering  <meyering@redhat.com>
16406
16407         maint.mk: handle source file names containing "." robustly
16408         * top/maint.mk (_dot_escaped_srcdir): Define.
16409         (VC_LIST): Use it in LHS of sed substitution.
16410
16411 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16412
16413         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16414         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16415         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16416         from a non-srcdir build.
16417
16418 2010-01-20  Eric Blake  <ebb9@byu.net>
16419
16420         warn-on-use: use instead of link-warning
16421         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16422         * modules/unistd (Depends-on, Makefile.am): Likewise.
16423         * modules/arpa_inet (Depends-on): Replace link-warning with
16424         warn-on-use.
16425         (Makefile.am): Update rules accordingly.
16426         * modules/ctype (Depends-on, Makefile.am): Likewise.
16427         * modules/dirent (Depends-on, Makefile.am): Likewise.
16428         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16429         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16430         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16431         * modules/locale (Depends-on, Makefile.am): Likewise.
16432         * modules/math (Depends-on, Makefile.am): Likewise.
16433         * modules/search (Depends-on, Makefile.am): Likewise.
16434         * modules/signal (Depends-on, Makefile.am): Likewise.
16435         * modules/spawn (Depends-on, Makefile.am): Likewise.
16436         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16437         * modules/string (Depends-on, Makefile.am): Likewise.
16438         * modules/strings (Depends-on, Makefile.am): Likewise.
16439         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16440         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16441         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16442         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16443         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16444         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16445         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16446         * modules/wchar (Depends-on, Makefile.am): Likewise.
16447         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16448         should be poisoned.
16449         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16450         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16451         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16452         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16453         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16454         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16455         * m4/math_h.m4 (gl_MATH_H): Likewise.
16456         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16457         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16458         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16459         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16460         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16461         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16462         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16463         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16464         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16465         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16466         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16467         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16468         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16469         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16470         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16471         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16472         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16473         GL_LINK_WARNING.
16474         * lib/ctype.in.h: Likewise.
16475         * lib/dirent.in.h: Likewise.
16476         * lib/fcntl.in.h: Likewise.
16477         * lib/inttypes.in.h: Likewise.
16478         * lib/langinfo.in.h: Likewise.
16479         * lib/locale.in.h: Likewise.
16480         * lib/math.in.h: Likewise.
16481         * lib/search.in.h: Likewise.
16482         * lib/signal.in.h: Likewise.
16483         * lib/spawn.in.h: Likewise.
16484         * lib/stdio.in.h: Likewise.
16485         * lib/stdlib.in.h: Likewise.
16486         * lib/string.in.h: Likewise.
16487         * lib/strings.in.h: Likewise.
16488         * lib/sys_file.in.h: Likewise.
16489         * lib/sys_ioctl.in.h: Likewise.
16490         * lib/sys_select.in.h: Likewise.
16491         * lib/sys_socket.in.h: Likewise.
16492         * lib/sys_stat.in.h: Likewise.
16493         * lib/sys_times.in.h: Likewise.
16494         * lib/sys_utsname.in.h: Likewise.
16495         * lib/unistd.in.h: Likewise.
16496         * lib/wchar.in.h: Likewise.
16497
16498 2010-01-20  Bruno Haible  <bruno@clisp.org>
16499
16500         Avoid duplicate -lm.
16501         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16502         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16503         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16504         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16505         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16506         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16507         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16508         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16509         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16510         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16511         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16512         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16513         Reported by Paolo Bonzini.
16514
16515 2010-01-19  Bruno Haible  <bruno@clisp.org>
16516
16517         langinfo, nl_langinfo: Relicense under LGPLv2+.
16518         * modules/langinfo (License): Change to LGPLv2+.
16519         * modules/nl_langinfo (License): Likewise.
16520         Patch by David Lutterkort <lutter@redhat.com>.
16521
16522 2010-01-19  Bruno Haible  <bruno@clisp.org>
16523
16524         Avoid compilation error with cc on OSF/1 5.1.
16525         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16526         statement, not before.
16527         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16528
16529 2010-01-18  Bruno Haible  <bruno@clisp.org>
16530
16531         Avoid a link error due to the __printf__ symbol.
16532         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16533         and 2.6.x.
16534         (__format__, __printf__): Remove definitions.
16535         * lib/argp-fmtstream.h: Likewise.
16536         * lib/argp.h: Likewise.
16537         * lib/error.h: Likewise.
16538         * lib/vasnprintf.h: Likewise.
16539         * lib/xprintf.h: Likewise.
16540         * lib/xvasprintf.h: Likewise.
16541         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16542
16543 2010-01-18  Bruno Haible  <bruno@clisp.org>
16544
16545         Tests for module 'tanl'.
16546         * modules/tanl-tests: New file.
16547         * tests/test-tanl.c: New file.
16548
16549         Tests for module 'sqrtl'.
16550         * modules/sqrtl-tests: New file.
16551         * tests/test-sqrtl.c: New file.
16552
16553         Tests for module 'sinl'.
16554         * modules/sinl-tests: New file.
16555         * tests/test-sinl.c: New file.
16556
16557         Tests for module 'logl'.
16558         * modules/logl-tests: New file.
16559         * tests/test-logl.c: New file.
16560
16561         Tests for module 'expl'.
16562         * modules/expl-tests: New file.
16563         * tests/test-expl.c: New file.
16564
16565         Tests for module 'cosl'.
16566         * modules/cosl-tests: New file.
16567         * tests/test-cosl.c: New file.
16568
16569         Tests for module 'atanl'.
16570         * modules/atanl-tests: New file.
16571         * tests/test-atanl.c: New file.
16572
16573         Tests for module 'asinl'.
16574         * modules/asinl-tests: New file.
16575         * tests/test-asinl.c: New file.
16576
16577         Tests for module 'acosl'.
16578         * modules/acosl-tests: New file.
16579         * tests/test-acosl.c: New file.
16580
16581         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16582         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16583         tanl): Use the standard gnulib idiom.
16584         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16585         * lib/sinl.c: Likewise.
16586         * lib/tanl.c: Don't include trigl.c.
16587         (kernel_tanl): Make static.
16588         * lib/sincosl.c: Include trigl.h first.
16589         * lib/trigl.c: Likewise.
16590         * m4/acosl.m4: New file.
16591         * m4/asinl.m4: New file.
16592         * m4/atanl.m4: New file.
16593         * m4/cosl.m4: New file.
16594         * m4/expl.m4: New file.
16595         * m4/logl.m4: New file.
16596         * m4/sinl.m4: New file.
16597         * m4/sqrtl.m4: New file.
16598         * m4/tanl.m4: New file.
16599         * m4/mathl.m4: Remove file.
16600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
16601         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16602         Don't initialize GNULIB_MATHL.
16603         * modules/acosl: New file.
16604         * modules/asinl: New file.
16605         * modules/atanl: New file.
16606         * modules/cosl: New file.
16607         * modules/expl: New file.
16608         * modules/logl: New file.
16609         * modules/sinl: New file.
16610         * modules/sqrtl: New file.
16611         * modules/tanl: New file.
16612         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
16613         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
16614         substitute GNULIB_MATHL.
16615         * modules/mathl: Rewritten.
16616         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
16617         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
16618         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
16619         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
16620         * doc/posix-functions/expl.texi: Mention the 'expl' module.
16621         * doc/posix-functions/logl.texi: Mention the 'logl' module.
16622         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
16623         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
16624         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
16625
16626 2010-01-18  Bruno Haible  <bruno@clisp.org>
16627
16628         sqrt: Make gl_FUNC_SQRT requirable.
16629         * m4/sqrt.m4: New file.
16630         * modules/sqrt (Files): Add it.
16631         (configure.ac): Invoke gl_FUNC_SQRT.
16632
16633 2010-01-18  Bruno Haible  <bruno@clisp.org>
16634
16635         New modules for common <math.h> functions.
16636         * m4/mathfunc.m4: New file.
16637         * modules/acos: New file.
16638         * modules/asin: New file.
16639         * modules/atan: New file.
16640         * modules/atan2: New file.
16641         * modules/cbrt: New file.
16642         * modules/copysign: New file.
16643         * modules/cos: New file.
16644         * modules/cosh: New file.
16645         * modules/erf: New file.
16646         * modules/erfc: New file.
16647         * modules/exp: New file.
16648         * modules/fabs: New file.
16649         * modules/fmod: New file.
16650         * modules/hypot: New file.
16651         * modules/j0: New file.
16652         * modules/j1: New file.
16653         * modules/jn: New file.
16654         * modules/ldexp: New file.
16655         * modules/lgamma: New file.
16656         * modules/log: New file.
16657         * modules/log10: New file.
16658         * modules/log1p: New file.
16659         * modules/logb: New file.
16660         * modules/modf: New file.
16661         * modules/nextafter: New file.
16662         * modules/pow: New file.
16663         * modules/remainder: New file.
16664         * modules/rint: New file.
16665         * modules/sin: New file.
16666         * modules/sinh: New file.
16667         * modules/sqrt: New file.
16668         * modules/tan: New file.
16669         * modules/tanh: New file.
16670         * modules/y0: New file.
16671         * modules/y1: New file.
16672         * modules/yn: New file.
16673         * doc/posix-functions/acos.texi: Mention the 'acos' module.
16674         * doc/posix-functions/asin.texi: Mention the 'asin' module.
16675         * doc/posix-functions/atan.texi: Mention the 'atan' module.
16676         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
16677         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
16678         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
16679         * doc/posix-functions/cos.texi: Mention the 'cos' module.
16680         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
16681         * doc/posix-functions/erf.texi: Mention the 'erf' module.
16682         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
16683         * doc/posix-functions/exp.texi: Mention the 'exp' module.
16684         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
16685         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
16686         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
16687         * doc/posix-functions/j0.texi: Mention the 'j0' module.
16688         * doc/posix-functions/j1.texi: Mention the 'j1' module.
16689         * doc/posix-functions/jn.texi: Mention the 'jn' module.
16690         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
16691         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
16692         * doc/posix-functions/log.texi: Mention the 'log' module.
16693         * doc/posix-functions/log10.texi: Mention the 'log10' module.
16694         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
16695         * doc/posix-functions/logb.texi: Mention the 'logb' module.
16696         * doc/posix-functions/modf.texi: Mention the 'modf' module.
16697         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
16698         * doc/posix-functions/pow.texi: Mention the 'pow' module.
16699         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
16700         * doc/posix-functions/rint.texi: Mention the 'rint' module.
16701         * doc/posix-functions/sin.texi: Mention the 'sin' module.
16702         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
16703         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
16704         * doc/posix-functions/tan.texi: Mention the 'tan' module.
16705         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
16706         * doc/posix-functions/y0.texi: Mention the 'y0' module.
16707         * doc/posix-functions/y1.texi: Mention the 'y1' module.
16708         * doc/posix-functions/yn.texi: Mention the 'yn' module.
16709
16710 2010-01-18  Jim Meyering  <meyering@redhat.com>
16711
16712         ignore-value: relax license to LGPLv2+
16713         * modules/ignore-value (License): Relax to LGPLv2+.
16714
16715         getdate: don't leak when TZ contains two or more '"'s
16716         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
16717         double quote in TZ after the first one.
16718
16719         readtokens: do not leak internal token_lengths buffer
16720         * lib/readtokens.c (readtokens): Free the local, lengths,
16721         when the supplied "token_lengths" parameter is NULL.
16722
16723 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16724
16725         Fix a couple of missing LIBTHREAD link failures on AIX.
16726         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
16727         $(LIBTHREAD).
16728         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
16729
16730         Link test-poll against INET_PTON_LIB.
16731         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
16732         for inet_pton on Solaris 10.
16733
16734 2010-01-17  Bruno Haible  <bruno@clisp.org>
16735
16736         unistdio/*-sprintf: Fix typo in module description.
16737         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
16738         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
16739         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
16740         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
16741         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
16742         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
16743         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
16744         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16745
16746 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16747
16748         gnulib-tool: fix filelist for AIX, HP-UX ksh.
16749         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
16750         variables in shell case patterns, for AIX and HP-UX ksh.
16751
16752         Split large sed scripts, for HP-UX sed.
16753         * modules/stdio: Split sed scripts around 50 sed commands,
16754         to avoid HP-UX limit of 99 commands, in the near future.
16755         * modules/string: Likewise.
16756         * modules/unistd: Likewise.
16757
16758         gnulib-tool: avoid writing in the current directory.
16759         * gnulib-tool (func_emit_lib_Makefile_am)
16760         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
16761         not in the current directory, so concurrent gnulib-tool
16762         instances do not interfere.
16763
16764 2010-01-16  Jim Meyering  <meyering@redhat.com>
16765
16766         doc: update users.txt
16767         * users.txt: Add grep.
16768         (diffutils, gzip): Update URLs.
16769
16770 2010-01-12  Bruno Haible  <bruno@clisp.org>
16771
16772         posix_spawn: Avoid test failure on Cygwin.
16773         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
16774         characters.
16775         Reported by Simon Josefsson.
16776
16777 2010-01-12  Bruno Haible  <bruno@clisp.org>
16778
16779         * tests/test-cond.c (main): When skipping the test, show the reason.
16780
16781 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16782
16783         * lib/striconv.c (str_cd_iconv): Avoid if before free.
16784
16785 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16786
16787         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
16788         VC_LIST_ALWAYS_EXCLUDE_REGEX.
16789
16790 2010-01-12  Eric Blake  <ebb9@byu.net>
16791
16792         build: guarantee AS_VAR_IF
16793         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
16794         (gl_AS_VAR_IF): Move...
16795         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
16796         Reported by Simon Josefsson.
16797
16798 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16799
16800         * lib/stdio.in.h: Fix typo.
16801
16802 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16803
16804         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
16805         libgpg-error.
16806
16807 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16808
16809         * tests/test-xalloc-die.sh: Use $EXEEXT.
16810
16811 2010-01-12  Simon Josefsson  <simon@josefsson.org>
16812             Bruno Haible  <bruno@clisp.org>
16813
16814         getlogin, getlogin_r: Avoid test failure.
16815         * tests/test-getlogin.c: Include <stdio.h>.
16816         (main): Skip the test when the function fails because stdin is not a
16817         tty.
16818         * tests/test-getlogin_r.c: Include <stdio.h>.
16819         (main): Skip the test when the function fails because stdin is not a
16820         tty.
16821
16822 2010-01-11  Eric Blake  <ebb9@byu.net>
16823
16824         tests: avoid more large file warnings
16825         * tests/test-fflush.c: Avoid warning about ftell use.
16826         * tests/test-fseek.c: Avoid warning about fseek use.
16827
16828 2010-01-10  Bruno Haible  <bruno@clisp.org>
16829
16830         nproc: Work better on Linux when /proc and /sys are not mounted.
16831         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
16832         as lower bound when, on glibc/Linux systems,
16833         sysconf (_SC_NPROCESSORS_CONF) returns 1.
16834         Suggested by Pádraig Brady <P@draigbrady.com>.
16835         Reported by Dmitry V. Levin <ldv@altlinux.org>.
16836
16837         nproc: Refactor.
16838         * lib/nproc.c (num_processors_via_affinity_mask): New function,
16839         extracted from num_processors.
16840         (num_processors): Call it.
16841
16842 2010-01-11  Jim Meyering  <meyering@redhat.com>
16843
16844         utimecmp: avoid new warning from upcoming gcc-4.5.0
16845         * lib/utimecmp.c (BILLION): Define using #define rather than an
16846         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
16847
16848 2010-01-11  Eric Blake  <ebb9@byu.net>
16849
16850         math: add portability warnings for classification macros
16851         * modules/math (Depends-on): Add warn-on-use.
16852         (Makefile.am): Provide new substitutions.
16853         * m4/math_h.m4 (gl_MATH_H): Require inline.
16854         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
16855         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
16856         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
16857         implement warnings.
16858
16859         unistd: warn on use of environ without module
16860         * modules/unistd (Depends-on): Add warn-on-use.
16861         (Makefile.am): Provide new substitutions.
16862         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
16863         * lib/unistd.in.h (environ): Wrap with a warning helper function.
16864
16865         stdio: warn on suspicious uses
16866         * modules/stdio (Depends-on): Add warn-on-use.
16867         (Makefile.am): Provide new substitutions.
16868         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
16869         fseeko.
16870         * lib/stdio.in.h (gets): Always warn on use.
16871         (fseek, ftell): Adjust when warnings are issued, and honor
16872         _GL_NO_LARGE_FILES as a way to silence the warning.
16873         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
16874         any warning about large file offsets.
16875         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
16876         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
16877         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
16878         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
16879         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
16880         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
16881         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
16882         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
16883
16884         warn-on-use: new module
16885         * modules/warn-on-use: New file.
16886         * build-aux/warn-on-use.h: Likewise.
16887         * m4/warn-on-use.m4: Likewise.
16888         * MODULES.html.sh (Support for building): Mention it.
16889
16890 2010-01-10  Bruno Haible  <bruno@clisp.org>
16891
16892         Tests for module 'unistr/u32-strdup'.
16893         * modules/unistr/u32-strdup-tests: New file.
16894         * tests/unistr/test-u32-strdup.c: New file.
16895
16896         Tests for module 'unistr/u16-strdup'.
16897         * modules/unistr/u16-strdup-tests: New file.
16898         * tests/unistr/test-u16-strdup.c: New file.
16899
16900         Tests for module 'unistr/u8-strdup'.
16901         * modules/unistr/u8-strdup-tests: New file.
16902         * tests/unistr/test-u8-strdup.c: New file.
16903         * tests/unistr/test-strdup.h: New file.
16904
16905         Tests for module 'unistr/u32-strncmp'.
16906         * modules/unistr/u32-strncmp-tests: New file.
16907         * tests/unistr/test-u32-strncmp.c: New file.
16908
16909         Tests for module 'unistr/u16-strncmp'.
16910         * modules/unistr/u16-strncmp-tests: New file.
16911         * tests/unistr/test-u16-strncmp.c: New file.
16912
16913         Tests for module 'unistr/u8-strncmp'.
16914         * modules/unistr/u8-strncmp-tests: New file.
16915         * tests/unistr/test-u8-strncmp.c: New file.
16916         * tests/unistr/test-strncmp.h: New file.
16917
16918         Tests for module 'unistr/u32-strcoll'.
16919         * modules/unistr/u32-strcoll-tests: New file.
16920         * tests/unistr/test-u32-strcoll.c: New file.
16921
16922         Tests for module 'unistr/u16-strcoll'.
16923         * modules/unistr/u16-strcoll-tests: New file.
16924         * tests/unistr/test-u16-strcoll.c: New file.
16925
16926         Tests for module 'unistr/u8-strcoll'.
16927         * modules/unistr/u8-strcoll-tests: New file.
16928         * tests/unistr/test-u8-strcoll.c: New file.
16929
16930         Tests for module 'unistr/u32-strcmp'.
16931         * modules/unistr/u32-strcmp-tests: New file.
16932         * tests/unistr/test-u32-strcmp.c: New file.
16933         * tests/unistr/test-u32-strcmp.h: New file.
16934
16935         Tests for module 'unistr/u16-strcmp'.
16936         * modules/unistr/u16-strcmp-tests: New file.
16937         * tests/unistr/test-u16-strcmp.c: New file.
16938         * tests/unistr/test-u16-strcmp.h: New file.
16939
16940         Tests for module 'unistr/u8-strcmp'.
16941         * modules/unistr/u8-strcmp-tests: New file.
16942         * tests/unistr/test-u8-strcmp.c: New file.
16943         * tests/unistr/test-u8-strcmp.h: New file.
16944         * tests/unistr/test-strcmp.h: New file.
16945
16946         Tests for module 'unistr/u32-strncat'.
16947         * modules/unistr/u32-strncat-tests: New file.
16948         * tests/unistr/test-u32-strncat.c: New file.
16949
16950         Tests for module 'unistr/u16-strncat'.
16951         * modules/unistr/u16-strncat-tests: New file.
16952         * tests/unistr/test-u16-strncat.c: New file.
16953
16954         Tests for module 'unistr/u8-strncat'.
16955         * modules/unistr/u8-strncat-tests: New file.
16956         * tests/unistr/test-u8-strncat.c: New file.
16957         * tests/unistr/test-strncat.h: New file.
16958
16959         Tests for module 'unistr/u32-strcat'.
16960         * modules/unistr/u32-strcat-tests: New file.
16961         * tests/unistr/test-u32-strcat.c: New file.
16962
16963         Tests for module 'unistr/u16-strcat'.
16964         * modules/unistr/u16-strcat-tests: New file.
16965         * tests/unistr/test-u16-strcat.c: New file.
16966
16967         Tests for module 'unistr/u8-strcat'.
16968         * modules/unistr/u8-strcat-tests: New file.
16969         * tests/unistr/test-u8-strcat.c: New file.
16970         * tests/unistr/test-strcat.h: New file.
16971
16972         Tests for module 'unistr/u32-stpncpy'.
16973         * modules/unistr/u32-stpncpy-tests: New file.
16974         * tests/unistr/test-u32-stpncpy.c: New file.
16975
16976         Tests for module 'unistr/u16-stpncpy'.
16977         * modules/unistr/u16-stpncpy-tests: New file.
16978         * tests/unistr/test-u16-stpncpy.c: New file.
16979
16980         Tests for module 'unistr/u8-stpncpy'.
16981         * modules/unistr/u8-stpncpy-tests: New file.
16982         * tests/unistr/test-u8-stpncpy.c: New file.
16983         * tests/unistr/test-stpncpy.h: New file.
16984
16985         Tests for module 'unistr/u32-strncpy'.
16986         * modules/unistr/u32-strncpy-tests: New file.
16987         * tests/unistr/test-u32-strncpy.c: New file.
16988
16989         Tests for module 'unistr/u16-strncpy'.
16990         * modules/unistr/u16-strncpy-tests: New file.
16991         * tests/unistr/test-u16-strncpy.c: New file.
16992
16993         Tests for module 'unistr/u8-strncpy'.
16994         * modules/unistr/u8-strncpy-tests: New file.
16995         * tests/unistr/test-u8-strncpy.c: New file.
16996         * tests/unistr/test-strncpy.h: New file.
16997
16998         Tests for module 'unistr/u32-stpcpy'.
16999         * modules/unistr/u32-stpcpy-tests: New file.
17000         * tests/unistr/test-u32-stpcpy.c: New file.
17001
17002         Tests for module 'unistr/u16-stpcpy'.
17003         * modules/unistr/u16-stpcpy-tests: New file.
17004         * tests/unistr/test-u16-stpcpy.c: New file.
17005
17006         Tests for module 'unistr/u8-stpcpy'.
17007         * modules/unistr/u8-stpcpy-tests: New file.
17008         * tests/unistr/test-u8-stpcpy.c: New file.
17009         * tests/unistr/test-stpcpy.h: New file.
17010
17011         Tests for module 'unistr/u32-strcpy'.
17012         * modules/unistr/u32-strcpy-tests: New file.
17013         * tests/unistr/test-u32-strcpy.c: New file.
17014
17015         Tests for module 'unistr/u16-strcpy'.
17016         * modules/unistr/u16-strcpy-tests: New file.
17017         * tests/unistr/test-u16-strcpy.c: New file.
17018
17019         Tests for module 'unistr/u8-strcpy'.
17020         * modules/unistr/u8-strcpy-tests: New file.
17021         * tests/unistr/test-u8-strcpy.c: New file.
17022         * tests/unistr/test-strcpy.h: New file.
17023
17024         Tests for module 'unistr/u32-strnlen'.
17025         * modules/unistr/u32-strnlen-tests: New file.
17026         * tests/unistr/test-u32-strnlen.c: New file.
17027
17028         Tests for module 'unistr/u16-strnlen'.
17029         * modules/unistr/u16-strnlen-tests: New file.
17030         * tests/unistr/test-u16-strnlen.c: New file.
17031
17032         Tests for module 'unistr/u8-strnlen'.
17033         * modules/unistr/u8-strnlen-tests: New file.
17034         * tests/unistr/test-u8-strnlen.c: New file.
17035         * tests/unistr/test-strnlen.h: New file.
17036
17037         Tests for module 'unistr/u32-strlen'.
17038         * modules/unistr/u32-strlen-tests: New file.
17039         * tests/unistr/test-u32-strlen.c: New file.
17040
17041         Tests for module 'unistr/u16-strlen'.
17042         * modules/unistr/u16-strlen-tests: New file.
17043         * tests/unistr/test-u16-strlen.c: New file.
17044
17045         Tests for module 'unistr/u8-strlen'.
17046         * modules/unistr/u8-strlen-tests: New file.
17047         * tests/unistr/test-u8-strlen.c: New file.
17048
17049         Tests for module 'unistr/u32-prev'.
17050         * modules/unistr/u32-prev-tests: New file.
17051         * tests/unistr/test-u32-prev.c: New file.
17052
17053         Tests for module 'unistr/u16-prev'.
17054         * modules/unistr/u16-prev-tests: New file.
17055         * tests/unistr/test-u16-prev.c: New file.
17056
17057         Tests for module 'unistr/u8-prev'.
17058         * modules/unistr/u8-prev-tests: New file.
17059         * tests/unistr/test-u8-prev.c: New file.
17060
17061         Tests for module 'unistr/u32-next'.
17062         * modules/unistr/u32-next-tests: New file.
17063         * tests/unistr/test-u32-next.c: New file.
17064
17065         Tests for module 'unistr/u16-next'.
17066         * modules/unistr/u16-next-tests: New file.
17067         * tests/unistr/test-u16-next.c: New file.
17068
17069         Tests for module 'unistr/u8-next'.
17070         * modules/unistr/u8-next-tests: New file.
17071         * tests/unistr/test-u8-next.c: New file.
17072
17073         Tests for module 'unistr/u32-strmbtouc'.
17074         * modules/unistr/u32-strmbtouc-tests: New file.
17075         * tests/unistr/test-u32-strmbtouc.c: New file.
17076
17077         Tests for module 'unistr/u16-strmbtouc'.
17078         * modules/unistr/u16-strmbtouc-tests: New file.
17079         * tests/unistr/test-u16-strmbtouc.c: New file.
17080
17081         Tests for module 'unistr/u8-strmbtouc'.
17082         * modules/unistr/u8-strmbtouc-tests: New file.
17083         * tests/unistr/test-u8-strmbtouc.c: New file.
17084
17085         Tests for module 'unistr/u32-strmblen'.
17086         * modules/unistr/u32-strmblen-tests: New file.
17087         * tests/unistr/test-u32-strmblen.c: New file.
17088
17089         Tests for module 'unistr/u16-strmblen'.
17090         * modules/unistr/u16-strmblen-tests: New file.
17091         * tests/unistr/test-u16-strmblen.c: New file.
17092
17093         Tests for module 'unistr/u8-strmblen'.
17094         * modules/unistr/u8-strmblen-tests: New file.
17095         * tests/unistr/test-u8-strmblen.c: New file.
17096
17097         Tests for module 'unistr/u32-cpy-alloc'.
17098         * modules/unistr/u32-cpy-alloc-tests: New file.
17099         * tests/unistr/test-u32-cpy-alloc.c: New file.
17100
17101         Tests for module 'unistr/u16-cpy-alloc'.
17102         * modules/unistr/u16-cpy-alloc-tests: New file.
17103         * tests/unistr/test-u16-cpy-alloc.c: New file.
17104
17105         Tests for module 'unistr/u8-cpy-alloc'.
17106         * modules/unistr/u8-cpy-alloc-tests: New file.
17107         * tests/unistr/test-u8-cpy-alloc.c: New file.
17108         * tests/unistr/test-cpy-alloc.h: New file.
17109
17110         Tests for module 'unistr/u32-mbsnlen'.
17111         * modules/unistr/u32-mbsnlen-tests: New file.
17112         * tests/unistr/test-u32-mbsnlen.c: New file.
17113
17114         Tests for module 'unistr/u16-mbsnlen'.
17115         * modules/unistr/u16-mbsnlen-tests: New file.
17116         * tests/unistr/test-u16-mbsnlen.c: New file.
17117
17118         Tests for module 'unistr/u8-mbsnlen'.
17119         * modules/unistr/u8-mbsnlen-tests: New file.
17120         * tests/unistr/test-u8-mbsnlen.c: New file.
17121
17122         Tests for module 'unistr/u32-chr'.
17123         * modules/unistr/u32-chr-tests: New file.
17124         * tests/unistr/test-u32-chr.c: New file.
17125
17126         Tests for module 'unistr/u16-chr'.
17127         * modules/unistr/u16-chr-tests: New file.
17128         * tests/unistr/test-u16-chr.c: New file.
17129
17130         Tests for module 'unistr/u8-chr'.
17131         * modules/unistr/u8-chr-tests: New file.
17132         * tests/unistr/test-u8-chr.c: New file.
17133         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
17134
17135         Tests for module 'unistr/u32-cmp2'.
17136         * modules/unistr/u32-cmp2-tests: New file.
17137         * tests/unistr/test-u32-cmp2.c: New file.
17138
17139         Tests for module 'unistr/u16-cmp2'.
17140         * modules/unistr/u16-cmp2-tests: New file.
17141         * tests/unistr/test-u16-cmp2.c: New file.
17142
17143         Tests for module 'unistr/u8-cmp2'.
17144         * modules/unistr/u8-cmp2-tests: New file.
17145         * tests/unistr/test-u8-cmp2.c: New file.
17146         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
17147
17148         Tests for module 'unistr/u32-cmp'.
17149         * modules/unistr/u32-cmp-tests: New file.
17150         * tests/unistr/test-u32-cmp.c: New file.
17151
17152         Tests for module 'unistr/u16-cmp'.
17153         * modules/unistr/u16-cmp-tests: New file.
17154         * tests/unistr/test-u16-cmp.c: New file.
17155
17156         Tests for module 'unistr/u8-cmp'.
17157         * modules/unistr/u8-cmp-tests: New file.
17158         * tests/unistr/test-u8-cmp.c: New file.
17159         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17160
17161         Tests for module 'unistr/u32-set'.
17162         * modules/unistr/u32-set-tests: New file.
17163         * tests/unistr/test-u32-set.c: New file.
17164
17165         Tests for module 'unistr/u16-set'.
17166         * modules/unistr/u16-set-tests: New file.
17167         * tests/unistr/test-u16-set.c: New file.
17168
17169         Tests for module 'unistr/u8-set'.
17170         * modules/unistr/u8-set-tests: New file.
17171         * tests/unistr/test-u8-set.c: New file.
17172         * tests/unistr/test-set.h: New file.
17173
17174         Tests for module 'unistr/u32-move'.
17175         * modules/unistr/u32-move-tests: New file.
17176         * tests/unistr/test-u32-move.c: New file.
17177
17178         Tests for module 'unistr/u16-move'.
17179         * modules/unistr/u16-move-tests: New file.
17180         * tests/unistr/test-u16-move.c: New file.
17181
17182         Tests for module 'unistr/u8-move'.
17183         * modules/unistr/u8-move-tests: New file.
17184         * tests/unistr/test-u8-move.c: New file.
17185         * tests/unistr/test-move.h: New file.
17186
17187         Tests for module 'unistr/u32-cpy'.
17188         * modules/unistr/u32-cpy-tests: New file.
17189         * tests/unistr/test-u32-cpy.c: New file.
17190
17191         Tests for module 'unistr/u16-cpy'.
17192         * modules/unistr/u16-cpy-tests: New file.
17193         * tests/unistr/test-u16-cpy.c: New file.
17194
17195         Tests for module 'unistr/u8-cpy'.
17196         * modules/unistr/u8-cpy-tests: New file.
17197         * tests/unistr/test-u8-cpy.c: New file.
17198         * tests/unistr/test-cpy.h: New file.
17199
17200 2010-01-09  Bruno Haible  <bruno@clisp.org>
17201
17202         Tests for module 'unistr/u32-uctomb'.
17203         * modules/unistr/u32-uctomb-tests: New file.
17204         * tests/unistr/test-u32-uctomb.c: New file.
17205
17206         Tests for module 'unistr/u16-uctomb'.
17207         * modules/unistr/u16-uctomb-tests: New file.
17208         * tests/unistr/test-u16-uctomb.c: New file.
17209
17210         Tests for module 'unistr/u8-uctomb'.
17211         * modules/unistr/u8-uctomb-tests: New file.
17212         * tests/unistr/test-u8-uctomb.c: New file.
17213
17214         Tests for module 'unistr/u32-mbtoucr'.
17215         * modules/unistr/u32-mbtoucr-tests: New file.
17216         * tests/unistr/test-u32-mbtoucr.c: New file.
17217
17218         Tests for module 'unistr/u16-mbtoucr'.
17219         * modules/unistr/u16-mbtoucr-tests: New file.
17220         * tests/unistr/test-u16-mbtoucr.c: New file.
17221
17222         Tests for module 'unistr/u8-mbtoucr'.
17223         * modules/unistr/u8-mbtoucr-tests: New file.
17224         * tests/unistr/test-u8-mbtoucr.c: New file.
17225
17226         Tests for module 'unistr/u32-mbtouc'.
17227         * modules/unistr/u32-mbtouc-tests: New file.
17228         * tests/unistr/test-u32-mbtouc.c: New file.
17229
17230         Tests for module 'unistr/u16-mbtouc'.
17231         * modules/unistr/u16-mbtouc-tests: New file.
17232         * tests/unistr/test-u16-mbtouc.c: New file.
17233
17234         Tests for module 'unistr/u8-mbtouc'.
17235         * modules/unistr/u8-mbtouc-tests: New file.
17236         * tests/unistr/test-u8-mbtouc.c: New file.
17237
17238         Tests for module 'unistr/u32-mbtouc-unsafe'.
17239         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17240         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17241         * tests/unistr/test-u32-mbtouc.h: New file.
17242
17243         Tests for module 'unistr/u16-mbtouc-unsafe'.
17244         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17245         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17246         * tests/unistr/test-u16-mbtouc.h: New file.
17247
17248         Tests for module 'unistr/u8-mbtouc-unsafe'.
17249         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17250         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17251         * tests/unistr/test-u8-mbtouc.h: New file.
17252
17253         Tests for module 'unistr/u32-mblen'.
17254         * modules/unistr/u32-mblen-tests: New file.
17255         * tests/unistr/test-u32-mblen.c: New file.
17256
17257         Tests for module 'unistr/u16-mblen'.
17258         * modules/unistr/u16-mblen-tests: New file.
17259         * tests/unistr/test-u16-mblen.c: New file.
17260
17261         Tests for module 'unistr/u8-mblen'.
17262         * modules/unistr/u8-mblen-tests: New file.
17263         * tests/unistr/test-u8-mblen.c: New file.
17264
17265         Tests for module 'unistr/u32-to-u16'.
17266         * modules/unistr/u32-to-u16-tests: New file.
17267         * tests/unistr/test-u32-to-u16.c: New file.
17268
17269         Tests for module 'unistr/u32-to-u8'.
17270         * modules/unistr/u32-to-u8-tests: New file.
17271         * tests/unistr/test-u32-to-u8.c: New file.
17272
17273         Tests for module 'unistr/u16-to-u32'.
17274         * modules/unistr/u16-to-u32-tests: New file.
17275         * tests/unistr/test-u16-to-u32.c: New file.
17276
17277         Tests for module 'unistr/u16-to-u8'.
17278         * modules/unistr/u16-to-u8-tests: New file.
17279         * tests/unistr/test-u16-to-u8.c: New file.
17280
17281         Tests for module 'unistr/u8-to-u32'.
17282         * modules/unistr/u8-to-u32-tests: New file.
17283         * tests/unistr/test-u8-to-u32.c: New file.
17284
17285         Tests for module 'unistr/u8-to-u16'.
17286         * modules/unistr/u8-to-u16-tests: New file.
17287         * tests/unistr/test-u8-to-u16.c: New file.
17288
17289         Tests for module 'unistr/u32-check'.
17290         * modules/unistr/u32-check-tests: New file.
17291         * tests/unistr/test-u32-check.c: New file.
17292
17293         Tests for module 'unistr/u16-check'.
17294         * modules/unistr/u16-check-tests: New file.
17295         * tests/unistr/test-u16-check.c: New file.
17296
17297         Tests for module 'unistr/u8-check'.
17298         * modules/unistr/u8-check-tests: New file.
17299         * tests/unistr/test-u8-check.c: New file.
17300
17301         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17302         (category_equals): New function.
17303         (main): Add more tests.
17304         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17305
17306         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17307
17308 2010-01-10  Bruno Haible  <bruno@clisp.org>
17309
17310         unistr/u*-strcoll: Try harder to distinguish different strings.
17311         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17312         compare s1 and s2 to see if they are different.
17313
17314 2010-01-10  Bruno Haible  <bruno@clisp.org>
17315
17316         unistr/u*-stpncpy: Fix the return value.
17317         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17318         description of the return value consistent with stpncpy in glibc.
17319         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17320         written non-NUL unit.
17321
17322 2010-01-10  Bruno Haible  <bruno@clisp.org>
17323
17324         unistr/u*-next: Add missing dependencies.
17325         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17326         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17327         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17328
17329 2010-01-10  Bruno Haible  <bruno@clisp.org>
17330
17331         unistr/u8-mbsnlen: Fix return value for incomplete character.
17332         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17333         u8_mblen.
17334         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17335         Remove unistr/u8-mblen.
17336         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17337         u16_mblen.
17338         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17339         Remove unistr/u16-mblen.
17340
17341 2010-01-10  Bruno Haible  <bruno@clisp.org>
17342
17343         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17344         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17345         Reported by Brian Gough <bjg@gnu.org> and
17346         Chris Clayton <chris2553@googlemail.com> via
17347         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17348
17349 2010-01-09  Bruno Haible  <bruno@clisp.org>
17350
17351         unistr/u16-to-u32: Reject invalid input.
17352         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17353         u16_mbtouc.
17354         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17355         Remove unistr/u16-mbtouc.
17356
17357         unistr/u16-to-u8: Reject invalid input.
17358         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17359         u16_mbtouc.
17360         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17361         Remove unistr/u16-mbtouc.
17362
17363         unistr/u8-to-u32: Reject invalid input.
17364         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17365         u8_mbtouc.
17366         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17367         Remove unistr/u8-mbtouc.
17368
17369         unistr/u8-to-u16: Reject invalid input.
17370         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17371         u8_mbtouc.
17372         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17373         Remove unistr/u8-mbtouc.
17374
17375 2010-01-09  Bruno Haible  <bruno@clisp.org>
17376
17377         Tests for module 'getlogin'.
17378         * modules/getlogin-tests: New file.
17379         * tests/test-getlogin.c: New file.
17380
17381         New module 'getlogin'.
17382         * lib/unistd.in.h (getlogin): New declaration.
17383         * lib/getlogin.c: New file.
17384         * m4/getlogin.m4: New file.
17385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17386         HAVE_GETLOGIN.
17387         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17388         HAVE_GETLOGIN.
17389         * modules/getlogin: New file.
17390         * doc/posix-functions/getlogin.texi: Mention the new module.
17391         Reported by John W. Eaton <jwe@gnu.org>.
17392
17393 2010-01-09  Bruno Haible  <bruno@clisp.org>
17394
17395         getlogin_r: Support for native Windows.
17396         * lib/getlogin_r.c: Include <windows.h>
17397         (getlogin_r): Implement for native Windows.
17398         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17399         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17400         via John W. Eaton <jwe@gnu.org>.
17401
17402 2010-01-09  Bruno Haible  <bruno@clisp.org>
17403
17404         getlogin_r: Small fixes.
17405         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17406         succeeds.
17407         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17408         before testing whether getlogin_r is declared. No need to set
17409         HAVE_DECL_GETLOGIN_R to 1.
17410         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17411
17412 2010-01-09  Bruno Haible  <bruno@clisp.org>
17413
17414         * lib/unistd.in.h (getlogin_r): Add comment.
17415
17416 2010-01-09  Bruno Haible  <bruno@clisp.org>
17417
17418         Tests for module 'getlogin_r'.
17419         * modules/getlogin_r-tests: New file.
17420         * tests/test-getlogin_r.c: New file.
17421
17422 2010-01-09  Jim Meyering  <meyering@redhat.com>
17423
17424         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17425         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17426         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17427
17428 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17429
17430         * lib/dup2.c (rpl_dup2): Improve comment.
17431
17432 2010-01-08  Eric Blake  <ebb9@byu.net>
17433
17434         maint.mk: allow packages to add makefile @@ exceptions
17435         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17436         (sc_makefile_check): Rename...
17437         (sc_makefile_at_at_check): ...to this, and use hook.
17438
17439         dup2: work around mingw bug
17440         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17441         Reported by Simon Josefsson.
17442
17443 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17444
17445         glob: Fix C++ compilation.
17446         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17447         C++.
17448
17449 2010-01-07  Bruno Haible  <bruno@clisp.org>
17450
17451         Fix indentation of wctype.in.h, broken since 2007-01-06.
17452         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17453
17454 2010-01-07  Bruno Haible  <bruno@clisp.org>
17455
17456         mbslen: Avoid collision with system function.
17457         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17458         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17459         * m4/mbslen.m4: New file.
17460         * modules/mbslen (Files): Add it.
17461         (configure.ac): Invoke gl_MBSLEN.
17462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17463         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17464         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17465         via Ian Beckwith <ianb@erislabs.net>.
17466
17467 2010-01-07  Bruno Haible  <bruno@clisp.org>
17468
17469         dirent: Document the last fix.
17470         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17471
17472 2010-01-07  Bruno Haible  <bruno@clisp.org>
17473
17474         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17475         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17476         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17477         va_list are defined.
17478         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17479         Reported by Eric Blake.
17480
17481 2010-01-07  Bruno Haible  <bruno@clisp.org>
17482
17483         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17484         * modules/xlist (Depends-on): Add 'list',
17485         * modules/xoset (Depends-on): Add 'oset'.
17486         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17487
17488 2010-01-07  Bruno Haible  <bruno@clisp.org>
17489
17490         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17491         * doc/posix-functions/strncasecmp.texi: Likewise.
17492
17493 2010-01-07  Bruno Haible  <bruno@clisp.org>
17494
17495         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17496
17497 2010-01-07  John W. Eaton  <jwe@octave.org>
17498
17499         wctype: allow C++ use
17500         * lib/wctype.in.h: Add extern "C" block for C++.
17501
17502 2010-01-06  Eric Blake  <ebb9@byu.net>
17503
17504         maint.mk: detect incorrect GFDL usage
17505         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17506
17507 2010-01-06  Jim Meyering  <meyering@redhat.com>
17508         and Eric Blake  <ebb9@byu.net>
17509
17510         maint.mk: ignore multi-line copyright in NEWS
17511         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17512
17513 2010-01-06  Eric Blake  <ebb9@byu.net>
17514
17515         select: add missing dependency
17516         * modules/select-tests (Depends-on): Move sockets dependency...
17517         * modules/select (Depends-on): ...here.
17518         Reported by Ian Beckwith.
17519
17520         doc: regenerate INSTALL
17521         * doc/INSTALL: Reflect recent autoconf update.
17522         * doc/INSTALL.ISO: Likewise.
17523         * doc/INSTALL.UTF-8: Likewise.
17524
17525         pread: fix compilation on glibc
17526         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17527         Reported by Ralf Wildenhues.
17528
17529         dirent: fix test failure
17530         * lib/dirent.in.h (includes): Guarantee ino_t.
17531         Reported by Ralf Wildenhues.
17532
17533 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17534
17535         linkat, renameat: avoid bad free
17536         * lib/at-func2.c (at_func2): Fix typo.
17537         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17538
17539 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17540
17541         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17542         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17543         to avoid failure of symlink test later.
17544
17545 2010-01-06  Eric Blake  <ebb9@byu.net>
17546
17547         stdio, unistd: guarantee ssize_t
17548         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17549         2008 are exposed when needed.
17550         * lib/stdio.in.h (includes): Likewise.
17551         Reported by Ralf Wildenhues.
17552
17553 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17554
17555         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17556         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17557         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17558
17559 2010-01-06  Jim Meyering  <meyering@redhat.com>
17560
17561         readtokens: this module *does* require xalloc.h
17562         It uses only functions that were omitted by the old syntax-check rule.
17563         * lib/readtokens.c: Include "xalloc.h" once again.
17564         * modules/readtokens (Depends-on): Add xalloc.
17565         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17566
17567 2010-01-05  Eric Blake  <ebb9@byu.net>
17568
17569         maint: support 'make announcement' from a VPATH build
17570         * top/maint.mk (announcement): Look for correct NEWS file.
17571
17572 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17573
17574         utimens (fdutimens): ignore a negative FD, per contract
17575         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17576         when we have a valid file descriptor.  Otherwise, using a brand
17577         new glibc (with just-patched futimens that now fails with EBADF)
17578         would cause this function to fail with ENOSYS.
17579         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17580         See also http://bugzilla.redhat.com/552320.
17581
17582 2010-01-05  Eric Blake  <ebb9@byu.net>
17583
17584         strcase: document what it provides
17585         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17586         gnulib module.
17587         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17588         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17589
17590 2010-01-05  Jim Meyering  <meyering@redhat.com>
17591
17592         maint: remove useless inclusions of "xalloc.h"
17593         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17594         * lib/readtokens.c: Likewise.
17595         * lib/same.c: Likewise.
17596         * modules/getloadavg (Depends-on): Remove xalloc.
17597         * modules/readtokens: Likewise.
17598         * modules/same: Likewise.
17599
17600         maint.mk: include 4 more function names in alloca.h-checking regexp
17601         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
17602         regexp.  Before, we would give a false-positive (saying alloca.h
17603         is included unnecessarily) when the only uses involved omitted symbols.
17604
17605         xalloc.h: use consistent formatting
17606         * lib/xalloc.h: Move declarations to start in the first column.
17607
17608 2010-01-05  Eric Blake  <ebb9@byu.net>
17609
17610         mkdir: avoid xalloc
17611         * lib/mkdir.c (includes): Drop unused header.
17612         Reported by John W. Eaton.
17613
17614 2010-01-04  Jim Meyering  <meyering@redhat.com>
17615
17616         nl_langinfo: avoid configure-time syntax error
17617         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
17618         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
17619         the empty string.  Don't let that provoke a shell syntax error.
17620
17621         regcomp, regexec, fnmatch: avoid array bounds read error
17622         * lib/regcomp.c (build_equiv_class): From glibc:
17623         Use only the low 24 bits of a findidx return value as an index
17624         into the weights array.  Patch by Ulrich Drepper:
17625         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
17626         * lib/regexec.c (check_node_accept_bytes): Likewise.
17627         * lib/fnmatch_loop.c (FCT): Likewise.
17628
17629         regcomp: skip collseq lookup when there are no rules
17630         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
17631         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
17632
17633         regcomp: recognize ill-formed { } expressions
17634         * lib/regcomp.c (parse_dup_op): From glibc:
17635         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
17636
17637         regcomp: fix typo in comment
17638         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
17639         s/satisfy/satisfies/.
17640
17641         regcomp: sync from glibc: remove dead store
17642         * lib/regcomp.c (duplicate_node_closure): Remove useless
17643         search_duplicated_node call and dead store.
17644
17645         regcomp: sync from glibc; always use nl_langinfo
17646         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
17647         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
17648         * modules/regex (Depends-on): Add nl_langinfo.
17649
17650 2010-01-04  Eric Blake  <ebb9@byu.net>
17651
17652         fdopendir: fix configure test
17653         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
17654
17655 2010-01-01  Bruno Haible  <bruno@clisp.org>
17656
17657         wchar: Remove unused configure check.
17658         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
17659
17660 2010-01-01  Eric Blake  <ebb9@byu.net>
17661
17662         headers: make check of system header explicit
17663         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
17664         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
17665         ourselves.
17666         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17667         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17668         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
17669         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
17670         internals.
17671         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
17672         missing.
17673         Suggested by Bruno Haible.
17674
17675 2010-01-01  Jim Meyering  <meyering@redhat.com>
17676
17677         ChangeLog: tweak to eliminate unnecessary copyright line
17678         * ChangeLog: Remove a copyright line that was mistakenly updated
17679         by today's update-copyright run.  Reported by Eric Blake.
17680
17681         test-update-copyright: don't let envvar setting cause test failure
17682         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
17683
17684 2010-01-01  Bruno Haible  <bruno@clisp.org>
17685
17686         localename: Avoid gcc warning.
17687         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
17688         function if it is not used.
17689
17690 2010-01-01  Jim Meyering  <meyering@redhat.com>
17691
17692         update nearly all FSF copyright year lists to include 2010
17693         Use the same procedure as for 2009, outlined in
17694         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
17695
17696         version-etc: set COPYRIGHT_YEAR to 2010
17697         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
17698
17699 2009-12-31  Eric Blake  <ebb9@byu.net>
17700
17701         doc: correct availability of cygwin 1.5.x getopt
17702         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
17703         variables.
17704         * doc/posix-functions/opterr.texi (opterr): Likewise.
17705         * doc/posix-functions/optind.texi (optind): Likewise.
17706         * doc/posix-functions/optopt.texi (optopt): Likewise.
17707         * doc/posix-functions/tzname.texi (tzname): Likewise.
17708
17709         openat: update maintainer
17710         * modules/openat (Maintainer): Add myself.
17711
17712         utimens: avoid shadowing warning
17713         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
17714         buffers into one, to avoid shadowing, as well as avoiding a
17715         redundant stat.
17716         Reported by Jim Meyering.
17717
17718         test-dup2: avoid compiler warning
17719         * tests/test-dup2.c (is_inheritable): Only define if used.
17720
17721 2010-01-01  Bruno Haible  <bruno@clisp.org>
17722
17723         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
17724         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
17725         defined, use wctomb instead of wcrtomb.
17726
17727 2010-01-01  Bruno Haible  <bruno@clisp.org>
17728
17729         iconv: Reject native Solaris iconv.
17730         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
17731         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
17732
17733 2009-12-31  Bruno Haible  <bruno@clisp.org>
17734
17735         * tests/test-signal.c (main): Remove test of 'SIG'.
17736
17737 2009-12-31  Bruno Haible  <bruno@clisp.org>
17738
17739         spawn: Fix incomplete fix.
17740         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17741         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17742         warnings for GNULIB_POSIXCHECK again.
17743         Reported by Eric Blake.
17744
17745 2009-12-31  Bruno Haible  <bruno@clisp.org>
17746
17747         Avoid namespace pollution on glibc systems.
17748         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
17749         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
17750         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
17751         glibc systems.
17752
17753 2009-12-31  Bruno Haible  <bruno@clisp.org>
17754
17755         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
17756         (gl_REPLACE_WCHAR_H): Turn into a no-op.
17757         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
17758         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17759         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17760         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17761         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17762
17763 2009-12-31  Bruno Haible  <bruno@clisp.org>
17764
17765         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17766         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
17767         afterwards.
17768
17769 2009-12-31  Bruno Haible  <bruno@clisp.org>
17770
17771         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
17772         SYS_UTSNAME_H.
17773
17774 2009-12-31  Bruno Haible  <bruno@clisp.org>
17775
17776         spawn: Fix misapplied patch.
17777         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
17778         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
17779         warnings for GNULIB_POSIXCHECK.
17780
17781 2009-12-31  Bruno Haible  <bruno@clisp.org>
17782
17783         times: Update after sys_times changed.
17784         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
17785         * modules/times (Files): Add it.
17786         (configure.ac): Invoke gl_FUNC_TIMES.
17787
17788 2009-12-31  Bruno Haible  <bruno@clisp.org>
17789
17790         Use AC_C_INLINE where necessary.
17791         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
17792         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17793         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
17794         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17795         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17796         * m4/mbiter.m4 (gl_MBITER): Likewise.
17797         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17798         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17799         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
17800         * modules/u64 (configure.ac): Likewise.
17801
17802 2009-12-31  Bruno Haible  <bruno@clisp.org>
17803
17804         Use AC_C_INLINE instead of module 'inline' where possible.
17805         * modules/inline (Description): Clarify purpose.
17806         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
17807         * modules/count-one-bits (Depends-on): Remove inline.
17808         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
17809         * modules/openat (Depends-on): Remove inline.
17810         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
17811         instead of depending on module 'inline'.
17812         * modules/filevercmp (Depends-on, configure.ac): Likewise.
17813         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
17814         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
17815         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
17816         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
17817         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
17818         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
17819         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
17820         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
17821         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
17822         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
17823         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
17824         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
17825         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
17826         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
17827         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
17828         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
17829         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
17830         Likewise.
17831         * modules/unictype/property-ascii-hex-digit (Depends-on,
17832         configure.ac): Likewise.
17833         * modules/unictype/property-bidi-arabic-digit (Depends-on,
17834         configure.ac): Likewise.
17835         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
17836         configure.ac): Likewise.
17837         * modules/unictype/property-bidi-block-separator (Depends-on,
17838         configure.ac): Likewise.
17839         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
17840         configure.ac): Likewise.
17841         * modules/unictype/property-bidi-common-separator (Depends-on,
17842         configure.ac): Likewise.
17843         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
17844         Likewise.
17845         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
17846         configure.ac): Likewise.
17847         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
17848         configure.ac): Likewise.
17849         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
17850         configure.ac): Likewise.
17851         * modules/unictype/property-bidi-european-digit (Depends-on,
17852         configure.ac): Likewise.
17853         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
17854         configure.ac): Likewise.
17855         * modules/unictype/property-bidi-left-to-right (Depends-on,
17856         configure.ac): Likewise.
17857         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
17858         configure.ac): Likewise.
17859         * modules/unictype/property-bidi-other-neutral (Depends-on,
17860         configure.ac): Likewise.
17861         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
17862         Likewise.
17863         * modules/unictype/property-bidi-segment-separator (Depends-on,
17864         configure.ac): Likewise.
17865         * modules/unictype/property-bidi-whitespace (Depends-on,
17866         configure.ac): Likewise.
17867         * modules/unictype/property-combining (Depends-on, configure.ac):
17868         Likewise.
17869         * modules/unictype/property-composite (Depends-on, configure.ac):
17870         Likewise.
17871         * modules/unictype/property-currency-symbol (Depends-on,
17872         configure.ac): Likewise.
17873         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
17874         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
17875         Likewise.
17876         * modules/unictype/property-default-ignorable-code-point (Depends-on,
17877         configure.ac): Likewise.
17878         * modules/unictype/property-deprecated (Depends-on, configure.ac):
17879         Likewise.
17880         * modules/unictype/property-diacritic (Depends-on, configure.ac):
17881         Likewise.
17882         * modules/unictype/property-extender (Depends-on, configure.ac):
17883         Likewise.
17884         * modules/unictype/property-format-control (Depends-on, configure.ac):
17885         Likewise.
17886         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
17887         Likewise.
17888         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
17889         Likewise.
17890         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
17891         Likewise.
17892         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
17893         Likewise.
17894         * modules/unictype/property-hyphen (Depends-on, configure.ac):
17895         Likewise.
17896         * modules/unictype/property-id-continue (Depends-on, configure.ac):
17897         Likewise.
17898         * modules/unictype/property-id-start (Depends-on, configure.ac):
17899         Likewise.
17900         * modules/unictype/property-ideographic (Depends-on, configure.ac):
17901         Likewise.
17902         * modules/unictype/property-ids-binary-operator (Depends-on,
17903         configure.ac): Likewise.
17904         * modules/unictype/property-ids-trinary-operator (Depends-on,
17905         configure.ac): Likewise.
17906         * modules/unictype/property-ignorable-control (Depends-on,
17907         configure.ac): Likewise.
17908         * modules/unictype/property-iso-control (Depends-on, configure.ac):
17909         Likewise.
17910         * modules/unictype/property-join-control (Depends-on, configure.ac):
17911         Likewise.
17912         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
17913         Likewise.
17914         * modules/unictype/property-line-separator (Depends-on, configure.ac):
17915         Likewise.
17916         * modules/unictype/property-logical-order-exception (Depends-on,
17917         configure.ac): Likewise.
17918         * modules/unictype/property-lowercase (Depends-on, configure.ac):
17919         Likewise.
17920         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
17921         * modules/unictype/property-non-break (Depends-on, configure.ac):
17922         Likewise.
17923         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
17924         Likewise.
17925         * modules/unictype/property-numeric (Depends-on, configure.ac):
17926         Likewise.
17927         * modules/unictype/property-other-alphabetic (Depends-on,
17928         configure.ac): Likewise.
17929         * modules/unictype/property-other-default-ignorable-code-point
17930         (Depends-on, configure.ac): Likewise.
17931         * modules/unictype/property-other-grapheme-extend (Depends-on,
17932         configure.ac): Likewise.
17933         * modules/unictype/property-other-id-continue (Depends-on,
17934         configure.ac): Likewise.
17935         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
17936         Likewise.
17937         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
17938         Likewise.
17939         * modules/unictype/property-other-math (Depends-on, configure.ac):
17940         Likewise.
17941         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
17942         Likewise.
17943         * modules/unictype/property-paired-punctuation (Depends-on,
17944         configure.ac): Likewise.
17945         * modules/unictype/property-paragraph-separator (Depends-on,
17946         configure.ac): Likewise.
17947         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
17948         Likewise.
17949         * modules/unictype/property-pattern-white-space (Depends-on,
17950         configure.ac): Likewise.
17951         * modules/unictype/property-private-use (Depends-on, configure.ac):
17952         Likewise.
17953         * modules/unictype/property-punctuation (Depends-on, configure.ac):
17954         Likewise.
17955         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
17956         Likewise.
17957         * modules/unictype/property-radical (Depends-on, configure.ac):
17958         Likewise.
17959         * modules/unictype/property-sentence-terminal (Depends-on,
17960         configure.ac): Likewise.
17961         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
17962         Likewise.
17963         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
17964         * modules/unictype/property-terminal-punctuation (Depends-on,
17965         configure.ac): Likewise.
17966         * modules/unictype/property-titlecase (Depends-on, configure.ac):
17967         Likewise.
17968         * modules/unictype/property-unassigned-code-value (Depends-on,
17969         configure.ac): Likewise.
17970         * modules/unictype/property-unified-ideograph (Depends-on,
17971         configure.ac): Likewise.
17972         * modules/unictype/property-uppercase (Depends-on, configure.ac):
17973         Likewise.
17974         * modules/unictype/property-variation-selector (Depends-on,
17975         configure.ac): Likewise.
17976         * modules/unictype/property-white-space (Depends-on, configure.ac):
17977         Likewise.
17978         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
17979         Likewise.
17980         * modules/unictype/property-xid-start (Depends-on, configure.ac):
17981         Likewise.
17982         * modules/unictype/property-zero-width (Depends-on, configure.ac):
17983         Likewise.
17984         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
17985         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
17986         Likewise.
17987
17988 2009-12-31  Bruno Haible  <bruno@clisp.org>
17989
17990         Remove unnecessary AC_C_INLINE invocation.
17991         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
17992         since 2009-08-21.
17993
17994 2009-12-31  Jim Meyering  <meyering@redhat.com>
17995
17996         maint.mk: don't require explicit gpg_key_ID in cfg.mk
17997         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
17998         With this change, we can all remove the gpg_key_ID = ... definition
17999         from our respective cfg.mk files.
18000
18001         maint.mk: create announcement template in ~/, not in /tmp
18002         * top/maint.mk (emit_upload_commands): Adjust.
18003         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
18004         Remove temporary file, .ci-msg.
18005
18006 2009-12-31  Eric Blake  <ebb9@byu.net>
18007
18008         link-warning: always build headers with link warnings
18009         * modules/arpa_inet (Makefile.am): Always build replacement
18010         header.
18011         * modules/ctype (Makefile.am): Likewise.
18012         * modules/dirent (Makefile.am): Likewise.
18013         * modules/inttypes (Makefile.am): Likewise.
18014         * modules/langinfo (Makefile.am): Likewise.
18015         * modules/locale (Makefile.am): Likewise.
18016         * modules/spawn (Makefile.am): Likewise.
18017         * modules/sys_file (Makefile.am): Likewise.
18018         * modules/sys_ioctl (Makefile.am): Likewise.
18019         * modules/sys_select (Makefile.am): Likewise.
18020         * modules/sys_socket (Makefile.am): Likewise.
18021         * modules/sys_times (Makefile.am): Likewise.
18022         * modules/sys_utsname (Makefile.am): Likewise.
18023         * modules/sys_wait (Makefile.am): Likewise.
18024         * modules/wchar (Makefile.am): Likewise.
18025         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
18026         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
18027         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
18028         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
18029         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
18030         Likewise.
18031         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18032         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18033         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
18034         Likewise.
18035         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
18036         Likewise.
18037         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18038         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
18039         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
18040         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18041         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18042         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18043         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18044         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
18045         (gl_WCHAR_H_DEFAULTS): Likewise.
18046
18047 2009-12-31  Eric Blake  <ebb9@byu.net>
18048
18049         signal, spawn: use link warnings
18050         * lib/signal.in.h (sigset_t): Make unconditional.
18051         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
18052         (sigpending, sigprocmask, sigaction): Add link warnings.
18053         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
18054         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
18055         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
18056         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
18057         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
18058         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
18059         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
18060         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
18061         (posix_spawn_file_actions_destroy)
18062         (posix_spawn_file_actions_addopen)
18063         (posix_spawn_file_actions_addclose)
18064         (posix_spawn_file_actions_adddup2): Likewise.
18065         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
18066         * tests/test-signal.c (main): Enhance test.
18067
18068         spawn: improve wrapper support
18069         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
18070         (gl_SPAWN_H_DEFAULTS): New defaults.
18071         * modules/spawn (Makefile.am): Substitute them.
18072         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
18073         Only declare if missing or broken.
18074
18075         sys_times, sys_utsname: use include_next
18076         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
18077         header.
18078         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
18079         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18080         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18081         * modules/sys_times (Depends-on): Add include_next.
18082         (Makefile.am): Substitute additional values.
18083         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18084         * lib/sys_times.in.h (includes): Include native header, if
18085         available.
18086         * lib/sys_utsname.in.h (includes): Likewise.
18087         * tests/test-sys_times.c (main): Enhance test.
18088
18089         fdutimensat: revert prior patch
18090         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
18091         utimens.h.
18092         Reported by Bruno Haible.
18093
18094 2009-12-30  Eric Blake  <ebb9@byu.net>
18095
18096         sys_wait: drop link-warning dependency
18097         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
18098         link-warning efforts.
18099         * lib/sys_wait.in.h: Likewise.
18100
18101         fdutimensat: remove bogus dependency
18102         * modules/fdutimensat (Depends-on): Drop inline.
18103
18104         unistd: fix typo
18105         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
18106
18107 2009-12-30  Bruno Haible  <bruno@clisp.org>
18108
18109         Fix compilation error with Solaris cc.
18110         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
18111         * lib/unicase/u16-is-invariant.c: Likewise.
18112         * lib/unicase/u32-is-invariant.c: Likewise.
18113         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18114
18115 2009-12-30  Bruno Haible  <bruno@clisp.org>
18116
18117         Fix test crash.
18118         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
18119         locales.
18120         Reported by Simon Josefsson <simon@josefsson.org>.
18121
18122 2009-12-30  Bruno Haible  <bruno@clisp.org>
18123
18124         Fix compilation error on most platforms.
18125         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
18126         Reported by Simon Josefsson <simon@josefsson.org>
18127         and Nelson H. F. Beebe <beebe@math.utah.edu>.
18128
18129 2009-12-30  Eric Blake  <ebb9@byu.net>
18130
18131         futimens, utimensat: work around ntfs-3g bug
18132         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
18133         a ctime bug is present, and expand workaround to cover ntfs-3g.
18134         * lib/utimens.c (fdutimens, lutimens): Likewise.
18135         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
18136         (validate_timespec): Adjust return value.
18137         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
18138         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18139         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
18140
18141 2009-12-29  Eric Blake  <ebb9@byu.net>
18142
18143         link-warning: make usage consistent
18144         * modules/ctype (Depends-on): Add link-warning.
18145         (Makefile.am): Update rules accordingly.
18146         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18147         * modules/locale (Depends-on, Makefile.am): Likewise.
18148         * modules/sys_file (Makefile.am): Likewise.
18149         * modules/getopt-posix (Makefile.am): Delete unused link warning
18150         efforts.
18151         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
18152         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18153         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18154         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18155
18156         stdio: remove unused variables
18157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18158         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18159         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18160
18161         tests: test more substitute headers
18162         * modules/ctype-tests: New file.
18163         * modules/dirent-tests: Likewise.
18164         * modules/spawn-tests: Likewise.
18165         * modules/sys_file-tests: Likewise.
18166         * modules/sys_ioctl-tests: Likewise.
18167         * modules/sys_wait-tests: Likewise.
18168         * tests/test-ctype.c: Likewise.
18169         * tests/test-dirent.c: Likewise.
18170         * tests/test-spawn.c: Likewise.
18171         * tests/test-sys_file.c: Likewise.
18172         * tests/test-sys_ioctl.c: Likewise.
18173         * tests/test-sys_wait.c: Likewise.
18174         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18175         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18176         whether or not flock is in use.
18177
18178         tests: remove License section from module
18179         * modules/arpa_inet-tests: Remove unneeded section.
18180         * modules/byteswap-tests: Likewise.
18181         * modules/ceilf-tests: Likewise.
18182         * modules/ceill-tests: Likewise.
18183         * modules/crypto/des-tests: Likewise.
18184         * modules/crypto/gc-arcfour-tests: Likewise.
18185         * modules/crypto/gc-arctwo-tests: Likewise.
18186         * modules/crypto/gc-des-tests: Likewise.
18187         * modules/crypto/gc-hmac-md5-tests: Likewise.
18188         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18189         * modules/crypto/gc-md2-tests: Likewise.
18190         * modules/crypto/gc-md4-tests: Likewise.
18191         * modules/crypto/gc-md5-tests: Likewise.
18192         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18193         * modules/crypto/gc-rijndael-tests: Likewise.
18194         * modules/crypto/gc-sha1-tests: Likewise.
18195         * modules/crypto/gc-tests: Likewise.
18196         * modules/crypto/md2-tests: Likewise.
18197         * modules/crypto/md4-tests: Likewise.
18198         * modules/fcntl-h-tests: Likewise.
18199         * modules/floorf-tests: Likewise.
18200         * modules/floorl-tests: Likewise.
18201         * modules/frexp-nolibm-tests: Likewise.
18202         * modules/frexp-tests: Likewise.
18203         * modules/frexpl-nolibm-tests: Likewise.
18204         * modules/frexpl-tests: Likewise.
18205         * modules/getaddrinfo-tests: Likewise.
18206         * modules/inttypes-tests: Likewise.
18207         * modules/isfinite-tests: Likewise.
18208         * modules/isinf-tests: Likewise.
18209         * modules/ldexpl-tests: Likewise.
18210         * modules/locale-tests: Likewise.
18211         * modules/math-tests: Likewise.
18212         * modules/netdb-tests: Likewise.
18213         * modules/netinet_in-tests: Likewise.
18214         * modules/printf-frexp-tests: Likewise.
18215         * modules/printf-frexpl-tests: Likewise.
18216         * modules/priv-set-tests: Likewise.
18217         * modules/random_r-tests: Likewise.
18218         * modules/round-tests: Likewise.
18219         * modules/roundf-tests: Likewise.
18220         * modules/roundl-tests: Likewise.
18221         * modules/search-tests: Likewise.
18222         * modules/select-tests: Likewise.
18223         * modules/signal-tests: Likewise.
18224         * modules/stdbool-tests: Likewise.
18225         * modules/stddef-tests: Likewise.
18226         * modules/stdint-tests: Likewise.
18227         * modules/stdio-tests: Likewise.
18228         * modules/stdlib-tests: Likewise.
18229         * modules/string-tests: Likewise.
18230         * modules/strings-tests: Likewise.
18231         * modules/sys_select-tests: Likewise.
18232         * modules/sys_socket-tests: Likewise.
18233         * modules/sys_stat-tests: Likewise.
18234         * modules/sys_time-tests: Likewise.
18235         * modules/sys_utsname-tests: Likewise.
18236         * modules/sysexits-tests: Likewise.
18237         * modules/time-tests: Likewise.
18238         * modules/trunc-tests: Likewise.
18239         * modules/truncf-tests: Likewise.
18240         * modules/truncl-tests: Likewise.
18241         * modules/tsearch-tests: Likewise.
18242         * modules/unistd-tests: Likewise.
18243         * modules/wchar-tests: Likewise.
18244         * modules/wctype-tests: Likewise.
18245
18246         tests: fix license on several tests
18247         * tests/test-des.c: Update to GPLv3+.
18248         * tests/test-flock.c: Likewise.
18249         * tests/test-fsync.c: Likewise.
18250         * tests/test-futimens.h: Likewise.
18251         * tests/test-gc-arcfour.c: Likewise.
18252         * tests/test-gc-arctwo.c: Likewise.
18253         * tests/test-gc-des.c: Likewise.
18254         * tests/test-gc-hmac-md5.c: Likewise.
18255         * tests/test-gc-hmac-sha1.c: Likewise.
18256         * tests/test-gc-md2.c: Likewise.
18257         * tests/test-gc-md4.c: Likewise.
18258         * tests/test-gc-md5.c: Likewise.
18259         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18260         * tests/test-gc-rijndael.c: Likewise.
18261         * tests/test-gc-sha1.c: Likewise.
18262         * tests/test-gc.c: Likewise.
18263         * tests/test-getcwd.c: Likewise.
18264         * tests/test-link.c: Likewise.
18265         * tests/test-link.h: Likewise.
18266         * tests/test-lutimens.h: Likewise.
18267         * tests/test-md2.c: Likewise.
18268         * tests/test-md4.c: Likewise.
18269         * tests/test-mkdir.h: Likewise.
18270         * tests/test-rename.c: Likewise.
18271         * tests/test-rename.h: Likewise.
18272         * tests/test-safe-alloc.c: Likewise.
18273         * tests/test-utimens-common.h: Likewise.
18274         * tests/test-utimens.h: Likewise.
18275
18276         maint: sync license texts
18277         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18278         * doc/gpl-3.0.texi: Revert copyright year update.
18279         * doc/lgpl-3.0.texi: Likewise.
18280
18281 2009-12-29  Jim Meyering  <meyering@redhat.com>
18282
18283         update nearly all FSF copyright year lists to include 2009
18284         The files named by the following are exempted:
18285             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18286               test -f "$dst" && { echo "$dst"; continue; }
18287               test -d "$dst" || continue
18288               echo "$dst"/$(basename "$src")
18289             done > exempt
18290             git ls-files tests/unictype >> exempt
18291         In the remaining files, convert to all-interval notation if
18292         - there is already at least one year interval like 2000-2003
18293         - the file is maintained by me
18294         - the file is in lib/uni*/, where that style already prevails
18295         Otherwise, use update-copyright's default.
18296
18297 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18298         and Eric Blake  <ebb9@byu.net>
18299
18300         tests: don't require debug system() to pass
18301         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18302         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18303         * tests/test-unlink.h (test_unlink_func): Likewise.
18304         * tests/test-fstatat.c (main): ...into callers.
18305         * tests/test-lstat.c (main): Likewise.
18306         * tests/test-rmdir.c (main): Likewise.
18307         * tests/test-unlink.c (main): Likewise.
18308         * tests/test-unlinkat.c (main): Likewise.
18309         * tests/test-areadlink-with-size.c (main): Don't require a
18310         debug-only system call to pass, aiding cross-testing to mingw.
18311         * tests/test-areadlink.c (main): Likewise.
18312         * tests/test-areadlinkat-with-size.c (main): Likewise.
18313         * tests/test-areadlinkat.c (main): Likewise.
18314         * tests/test-canonicalize-lgpl.c (main): Likewise.
18315         * tests/test-canonicalize.c (main): Likewise.
18316         * tests/test-chown.c (main): Likewise.
18317         * tests/test-fchownat.c (main): Likewise.
18318         * tests/test-lchown.c (main): Likewise.
18319         * tests/test-fdutimensat.c (main): Likewise.
18320         * tests/test-futimens.c (main): Likewise.
18321         * tests/test-link.c (main): Likewise.
18322         * tests/test-linkat.c (main): Likewise.
18323         * tests/test-mkdir.c (main): Likewise.
18324         * tests/test-mkdirat.c (main): Likewise.
18325         * tests/test-mkfifo.c (main): Likewise.
18326         * tests/test-mkfifoat.c (main): Likewise.
18327         * tests/test-mknod.c (main): Likewise.
18328         * tests/test-readlink.c (main): Likewise.
18329         * tests/test-remove.c (main): Likewise.
18330         * tests/test-rename.c (main): Likewise.
18331         * tests/test-renameat.c (main): Likewise.
18332         * tests/test-symlink.c (main): Likewise.
18333         * tests/test-symlinkat.c (main): Likewise.
18334         * tests/test-utimens.c (main): Likewise.
18335         * tests/test-utimensat.c (main): Likewise.
18336
18337 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18338
18339         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18340         on $(UNUSED_PARAMETER_H) to avoid build failure.
18341
18342 2009-12-28  Jim Meyering  <meyering@redhat.com>
18343
18344         update-copyright: you may specify a max. line length other than 72
18345         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18346
18347         maint: use consistent FSF copyright line syntax
18348         * lib/posixtm.c: Add missing comma in FSF copyright line.
18349         * lib/posixtm.h: Likewise.
18350         * lib/getugroups.c: Add missing ", Inc.".
18351
18352         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18353         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18354         FSF copyright line.  Remove trailing blanks.
18355
18356 2009-12-28  Eric Blake  <ebb9@byu.net>
18357
18358         test-dup2: reduce dependencies
18359         * modules/cloexec (Configure.ac): Set witness.
18360         * modules/dup2-tests (Depends-on): Drop cloexec.
18361         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18362         not present.
18363         Suggested by Bruno Haible.
18364
18365 2009-12-26  Bruno Haible  <bruno@clisp.org>
18366
18367         Remove an unneeded dependency.
18368         * modules/fseterr (Depends-on): Remove dup2.
18369
18370 2009-12-26  Eric Blake  <ebb9@byu.net>
18371
18372         tests: use macros.h in more places
18373         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18374         (ASSERT_STREAM): Provide default of stderr.
18375         * tests/test-dirent-safer.c: Include macros.h, using alternate
18376         stream for assertions.
18377         * tests/test-dup-safer.c: Likewise.
18378         * tests/test-freopen-safer.c: Likewise.
18379         * tests/test-getopt.c: Likewise.
18380         * tests/test-openat-safer.c: Likewise.
18381         * tests/test-pipe.c: Likewise.
18382         * tests/test-popen-safer.c: Likewise.
18383         * modules/dirent-safer-tests (Files): Include macros.h.
18384         * modules/unistd-safer-tests (Files): Likewise.
18385         * modules/freopen-safer-tests (Files): Likewise.
18386         * modules/getopt-posix-tests (Files): Likewise.
18387         * modules/openat-safer-tests (Files): Likewise.
18388         * modules/pipe-tests (Files): Likewise.
18389
18390 2009-12-26  Bruno Haible  <bruno@clisp.org>
18391
18392         javacomp: Portability fix.
18393         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18394         that it also works on Solaris.
18395
18396 2009-12-26  Bruno Haible  <bruno@clisp.org>
18397
18398         localename: Fix storage allocation of gl_locale_name_thread's result.
18399         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18400         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18401         all platforms that have 'uselocale'.
18402         (gl_locale_name_thread_unsafe): New function, extracted from
18403         gl_locale_name_thread.
18404         (gl_locale_name_thread): Call struniq on all platforms that have
18405         'uselocale'.
18406         * tests/test-localename.c (test_locale_name_thread): Check that the
18407         resulting strings are permanently allocated.
18408         * modules/localename-tests (Depends-on): Add strdup.
18409
18410 2009-12-26  Bruno Haible  <bruno@clisp.org>
18411
18412         * tests/test-localename.c (categories): Fill in the strings.
18413
18414 2009-12-26  Jim Meyering  <meyering@redhat.com>
18415
18416         isdir: complete the removal of m4/isdir.m4
18417         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18418
18419         isdir: clean up, since at least grep still uses it
18420         * lib/isdir.c: Include "isdir.h".
18421         (S_ISDIR): Remove now-unneeded definition.
18422         * modules/isdir (Files): Add lib/isdir.h.
18423         * lib/isdir.h: New file, with declaration.
18424         * m4/isdir.m4: Remove file -- unneeded.
18425
18426 2009-12-25  Bruno Haible  <bruno@clisp.org>
18427
18428         selinux-h: Make generated .h files standalone.
18429         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18430         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18431         * lib/se-selinux.in.h: Likewise.
18432         * modules/selinux-h (Depends-on): Add unused-parameter.
18433         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18434         selinux/selinux.h and selinux/context.h.
18435         Suggested by Eric Blake.
18436
18437 2009-12-25  Bruno Haible  <bruno@clisp.org>
18438
18439         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18440         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18441         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18442         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18443         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18444
18445 2009-12-24  Bruno Haible  <bruno@clisp.org>
18446
18447         openat: Fix warning.
18448         * lib/openat-proc.c: Include <unistd.h>.
18449
18450 2009-12-24  Bruno Haible  <bruno@clisp.org>
18451
18452         New module 'unused-parameter'.
18453         * build-aux/unused-parameter.h: New file, extracted from earlier
18454         gnulib-common.m4.
18455         * modules/unused-parameter: New file.
18456         * lib/unistr.h: Include unused-parameter.h.
18457         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18458         _GL_UNUSED.
18459         * modules/unistr/base (Depends-on): Add unused-parameter.
18460
18461 2009-12-24  Bruno Haible  <bruno@clisp.org>
18462
18463         Add missing dependencies to 'extensions' module.
18464         * m4/extensions.m4: Add comment.
18465         * modules/accept4 (Depends-on): Add extensions.
18466         * modules/dup3 (Depends-on): Likewise.
18467         * modules/fcntl (Depends-on): Likewise.
18468         * modules/futimens (Depends-on): Likewise.
18469         * modules/mknod (Depends-on): Likewise.
18470         * modules/pipe2 (Depends-on): Likewise.
18471         * modules/stat-time (Depends-on): Likewise.
18472         * modules/strcasestr-simple (Depends-on): Likewise.
18473         * modules/strsignal (Depends-on): Likewise.
18474         * modules/utimensat (Depends-on): Likewise.
18475         * modules/localcharset (Depends-on): Likewise. Needed because of
18476         gl_FCNTL_O_FLAGS.
18477         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18478         AC_TYPE_MBSTATE_T.
18479         * modules/wcsnrtombs (Depends-on): Likewise.
18480         * modules/wcsrtombs (Depends-on): Likewise.
18481
18482 2009-12-24  Bruno Haible  <bruno@clisp.org>
18483
18484         binary-io: Avoid gcc warning due to SET_BINARY.
18485         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18486         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18487
18488 2009-12-24  Bruno Haible  <bruno@clisp.org>
18489
18490         Avoid future namespace pollution on glibc systems.
18491         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18492         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18493         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18494         glibc systems.
18495
18496 2009-12-24  Bruno Haible  <bruno@clisp.org>
18497
18498         Refactor common macros used in tests.
18499         * tests/macros.h: New file.
18500         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18501         and/or <stdlib.h>, if appropriate.
18502         (ASSERT, SIZEOF): Remove macros.
18503         * tests/test-areadlink-with-size.c: Likewise.
18504         * tests/test-areadlinkat.c: Likewise.
18505         * tests/test-areadlinkat-with-size.c: Likewise.
18506         * tests/test-argmatch.c: Likewise.
18507         * tests/test-argv-iter.c: Likewise.
18508         * tests/test-array-mergesort.c: Likewise.
18509         * tests/test-array_list.c: Likewise.
18510         * tests/test-array_oset.c: Likewise.
18511         * tests/test-avltree_list.c: Likewise.
18512         * tests/test-avltree_oset.c: Likewise.
18513         * tests/test-avltreehash_list.c: Likewise.
18514         * tests/test-base64.c: Likewise.
18515         * tests/test-binary-io.c: Likewise.
18516         * tests/test-bitrotate.c: Likewise.
18517         * tests/test-btowc.c: Likewise.
18518         * tests/test-byteswap.c: Likewise.
18519         * tests/test-c-ctype.c: Likewise.
18520         * tests/test-c-stack.c: Likewise.
18521         * tests/test-c-strcasecmp.c: Likewise.
18522         * tests/test-c-strcasestr.c: Likewise.
18523         * tests/test-c-strncasecmp.c: Likewise.
18524         * tests/test-c-strstr.c: Likewise.
18525         * tests/test-canonicalize-lgpl.c: Likewise.
18526         * tests/test-canonicalize.c: Likewise.
18527         * tests/test-carray_list.c: Likewise.
18528         * tests/test-ceilf1.c: Likewise.
18529         * tests/test-ceilf2.c: Likewise.
18530         * tests/test-ceill.c: Likewise.
18531         * tests/test-chown.c: Likewise.
18532         * tests/test-cloexec.c: Likewise.
18533         * tests/test-copy-acl.c: Likewise.
18534         * tests/test-copy-file.c: Likewise.
18535         * tests/test-count-one-bits.c: Likewise.
18536         * tests/test-dprintf-posix.c: Likewise.
18537         * tests/test-dup2.c: Likewise.
18538         * tests/test-dup3.c: Likewise.
18539         * tests/test-duplocale.c: Likewise.
18540         * tests/test-fbufmode.c: Likewise.
18541         * tests/test-fchdir.c: Likewise.
18542         * tests/test-fchownat.c: Likewise.
18543         * tests/test-fcntl-safer.c: Likewise.
18544         * tests/test-fcntl.c: Likewise.
18545         * tests/test-fdopendir.c: Likewise.
18546         * tests/test-fdutimensat.c: Likewise.
18547         * tests/test-fflush2.c: Likewise.
18548         * tests/test-file-has-acl.c: Likewise.
18549         * tests/test-filevercmp.c: Likewise.
18550         * tests/test-flock.c: Likewise.
18551         * tests/test-floorf1.c: Likewise.
18552         * tests/test-floorf2.c: Likewise.
18553         * tests/test-floorl.c: Likewise.
18554         * tests/test-fnmatch.c: Likewise.
18555         * tests/test-fopen.h: Likewise.
18556         * tests/test-fpending.c: Likewise.
18557         * tests/test-fprintf-posix.c: Likewise.
18558         * tests/test-fpurge.c: Likewise.
18559         * tests/test-freadable.c: Likewise.
18560         * tests/test-freadahead.c: Likewise.
18561         * tests/test-freading.c: Likewise.
18562         * tests/test-freadptr.c: Likewise.
18563         * tests/test-freadptr2.c: Likewise.
18564         * tests/test-freadseek.c: Likewise.
18565         * tests/test-freopen.c: Likewise.
18566         * tests/test-frexp.c: Likewise.
18567         * tests/test-frexpl.c: Likewise.
18568         * tests/test-fseek.c: Likewise.
18569         * tests/test-fseeko.c: Likewise.
18570         * tests/test-fstatat.c: Likewise.
18571         * tests/test-fstrcmp.c: Likewise.
18572         * tests/test-fsync.c: Likewise.
18573         * tests/test-ftell.c: Likewise.
18574         * tests/test-ftello.c: Likewise.
18575         * tests/test-func.c: Likewise.
18576         * tests/test-futimens.c: Likewise.
18577         * tests/test-fwritable.c: Likewise.
18578         * tests/test-fwriting.c: Likewise.
18579         * tests/test-getcwd.c: Likewise.
18580         * tests/test-getdate.c: Likewise.
18581         * tests/test-getdelim.c: Likewise.
18582         * tests/test-getdtablesize.c: Likewise.
18583         * tests/test-getgroups.c: Likewise.
18584         * tests/test-getline.c: Likewise.
18585         * tests/test-getndelim2.c: Likewise.
18586         * tests/test-glob.c: Likewise.
18587         * tests/test-hash.c: Likewise.
18588         * tests/test-i-ring.c: Likewise.
18589         * tests/test-iconv-utf.c: Likewise.
18590         * tests/test-iconv.c: Likewise.
18591         * tests/test-idpriv-drop.c: Likewise.
18592         * tests/test-idpriv-droptemp.c: Likewise.
18593         * tests/test-inet_ntop.c: Likewise.
18594         * tests/test-inet_pton.c: Likewise.
18595         * tests/test-isblank.c: Likewise.
18596         * tests/test-isfinite.c: Likewise.
18597         * tests/test-isinf.c: Likewise.
18598         * tests/test-isnan.c: Likewise.
18599         * tests/test-isnand.h: Likewise.
18600         * tests/test-isnanf.h: Likewise.
18601         * tests/test-isnanl.h: Likewise.
18602         * tests/test-lchown.c: Likewise.
18603         * tests/test-ldexpl.c: Likewise.
18604         * tests/test-link.c: Likewise.
18605         * tests/test-linkat.c: Likewise.
18606         * tests/test-linked_list.c: Likewise.
18607         * tests/test-linkedhash_list.c: Likewise.
18608         * tests/test-localename.c: Likewise.
18609         * tests/test-lseek.c: Likewise.
18610         * tests/test-lstat.c: Likewise.
18611         * tests/test-mbmemcasecmp.c: Likewise.
18612         * tests/test-mbmemcasecoll.c: Likewise.
18613         * tests/test-mbrtowc.c: Likewise.
18614         * tests/test-mbscasecmp.c: Likewise.
18615         * tests/test-mbscasestr1.c: Likewise.
18616         * tests/test-mbscasestr2.c: Likewise.
18617         * tests/test-mbscasestr3.c: Likewise.
18618         * tests/test-mbscasestr4.c: Likewise.
18619         * tests/test-mbschr.c: Likewise.
18620         * tests/test-mbscspn.c: Likewise.
18621         * tests/test-mbsinit.c: Likewise.
18622         * tests/test-mbsncasecmp.c: Likewise.
18623         * tests/test-mbsnrtowcs.c: Likewise.
18624         * tests/test-mbspbrk.c: Likewise.
18625         * tests/test-mbspcasecmp.c: Likewise.
18626         * tests/test-mbsrchr.c: Likewise.
18627         * tests/test-mbsrtowcs.c: Likewise.
18628         * tests/test-mbsspn.c: Likewise.
18629         * tests/test-mbsstr1.c: Likewise.
18630         * tests/test-mbsstr2.c: Likewise.
18631         * tests/test-mbsstr3.c: Likewise.
18632         * tests/test-memchr.c: Likewise.
18633         * tests/test-memchr2.c: Likewise.
18634         * tests/test-memcmp.c: Likewise.
18635         * tests/test-memmem.c: Likewise.
18636         * tests/test-memrchr.c: Likewise.
18637         * tests/test-mkdir.c: Likewise.
18638         * tests/test-mkdirat.c: Likewise.
18639         * tests/test-mkfifo.c: Likewise.
18640         * tests/test-mkfifoat.c: Likewise.
18641         * tests/test-mknod.c: Likewise.
18642         * tests/test-nanosleep.c: Likewise.
18643         * tests/test-nl_langinfo.c: Likewise.
18644         * tests/test-obstack-printf.c: Likewise.
18645         * tests/test-open.c: Likewise.
18646         * tests/test-openat.c: Likewise.
18647         * tests/test-pipe-filter-gi1.c: Likewise.
18648         * tests/test-pipe-filter-gi2-main.c: Likewise.
18649         * tests/test-pipe-filter-ii1.c: Likewise.
18650         * tests/test-pipe-filter-ii2-main.c: Likewise.
18651         * tests/test-pipe2.c: Likewise.
18652         * tests/test-popen.h: Likewise.
18653         * tests/test-posixtm.c: Likewise.
18654         * tests/test-pread.c: Likewise.
18655         * tests/test-printf-frexp.c: Likewise.
18656         * tests/test-printf-frexpl.c: Likewise.
18657         * tests/test-printf-posix.c: Likewise.
18658         * tests/test-priv-set.c: Likewise.
18659         * tests/test-quotearg.c: Likewise.
18660         * tests/test-random_r.c: Likewise.
18661         * tests/test-rawmemchr.c: Likewise.
18662         * tests/test-rbtree_list.c: Likewise.
18663         * tests/test-rbtree_oset.c: Likewise.
18664         * tests/test-rbtreehash_list.c: Likewise.
18665         * tests/test-readlink.c: Likewise.
18666         * tests/test-remove.c: Likewise.
18667         * tests/test-rename.c: Likewise.
18668         * tests/test-renameat.c: Likewise.
18669         * tests/test-rmdir.c: Likewise.
18670         * tests/test-round1.c: Likewise.
18671         * tests/test-roundf1.c: Likewise.
18672         * tests/test-roundl.c: Likewise.
18673         * tests/test-safe-alloc.c: Likewise.
18674         * tests/test-sameacls.c: Likewise.
18675         * tests/test-set-mode-acl.c: Likewise.
18676         * tests/test-setenv.c: Likewise.
18677         * tests/test-sigaction.c: Likewise.
18678         * tests/test-signbit.c: Likewise.
18679         * tests/test-sleep.c: Likewise.
18680         * tests/test-snprintf-posix.c: Likewise.
18681         * tests/test-snprintf.c: Likewise.
18682         * tests/test-sprintf-posix.c: Likewise.
18683         * tests/test-stat-time.c: Likewise.
18684         * tests/test-stat.c: Likewise.
18685         * tests/test-strcasestr.c: Likewise.
18686         * tests/test-strchrnul.c: Likewise.
18687         * tests/test-strerror.c: Likewise.
18688         * tests/test-striconv.c: Likewise.
18689         * tests/test-striconveh.c: Likewise.
18690         * tests/test-striconveha.c: Likewise.
18691         * tests/test-strsignal.c: Likewise.
18692         * tests/test-strstr.c: Likewise.
18693         * tests/test-strtod.c: Likewise.
18694         * tests/test-strverscmp.c: Likewise.
18695         * tests/test-symlink.c: Likewise.
18696         * tests/test-symlinkat.c: Likewise.
18697         * tests/test-trunc1.c: Likewise.
18698         * tests/test-trunc2.c: Likewise.
18699         * tests/test-truncf1.c: Likewise.
18700         * tests/test-truncf2.c: Likewise.
18701         * tests/test-truncl.c: Likewise.
18702         * tests/test-uname.c: Likewise.
18703         * tests/test-unlink.c: Likewise.
18704         * tests/test-unlinkat.c: Likewise.
18705         * tests/test-unsetenv.c: Likewise.
18706         * tests/test-usleep.c: Likewise.
18707         * tests/test-utimens.c: Likewise.
18708         * tests/test-utimensat.c: Likewise.
18709         * tests/test-vasnprintf-posix.c: Likewise.
18710         * tests/test-vasnprintf-posix2.c: Likewise.
18711         * tests/test-vasnprintf.c: Likewise.
18712         * tests/test-vasprintf-posix.c: Likewise.
18713         * tests/test-vasprintf.c: Likewise.
18714         * tests/test-vdprintf-posix.c: Likewise.
18715         * tests/test-vfprintf-posix.c: Likewise.
18716         * tests/test-vprintf-posix.c: Likewise.
18717         * tests/test-vsnprintf-posix.c: Likewise.
18718         * tests/test-vsnprintf.c: Likewise.
18719         * tests/test-vsprintf-posix.c: Likewise.
18720         * tests/test-wcrtomb.c: Likewise.
18721         * tests/test-wcsnrtombs.c: Likewise.
18722         * tests/test-wcsrtombs.c: Likewise.
18723         * tests/test-wctype.c: Likewise.
18724         * tests/test-wcwidth.c: Likewise.
18725         * tests/test-xfprintf-posix.c: Likewise.
18726         * tests/test-xmemdup0.c: Likewise.
18727         * tests/test-xprintf-posix.c: Likewise.
18728         * tests/test-xvasprintf.c: Likewise.
18729         * tests/unicase/test-locale-language.c: Likewise.
18730         * tests/unicase/test-mapping-part1.h: Likewise.
18731         * tests/unicase/test-predicate-part1.h: Likewise.
18732         * tests/unicase/test-u8-casecmp.c: Likewise.
18733         * tests/unicase/test-u8-casecoll.c: Likewise.
18734         * tests/unicase/test-u8-casefold.c: Likewise.
18735         * tests/unicase/test-u8-is-cased.c: Likewise.
18736         * tests/unicase/test-u8-is-casefolded.c: Likewise.
18737         * tests/unicase/test-u8-is-lowercase.c: Likewise.
18738         * tests/unicase/test-u8-is-titlecase.c: Likewise.
18739         * tests/unicase/test-u8-is-uppercase.c: Likewise.
18740         * tests/unicase/test-u8-tolower.c: Likewise.
18741         * tests/unicase/test-u8-totitle.c: Likewise.
18742         * tests/unicase/test-u8-toupper.c: Likewise.
18743         * tests/unicase/test-u16-casecmp.c: Likewise.
18744         * tests/unicase/test-u16-casecoll.c: Likewise.
18745         * tests/unicase/test-u16-casefold.c: Likewise.
18746         * tests/unicase/test-u16-is-cased.c: Likewise.
18747         * tests/unicase/test-u16-is-casefolded.c: Likewise.
18748         * tests/unicase/test-u16-is-lowercase.c: Likewise.
18749         * tests/unicase/test-u16-is-titlecase.c: Likewise.
18750         * tests/unicase/test-u16-is-uppercase.c: Likewise.
18751         * tests/unicase/test-u16-tolower.c: Likewise.
18752         * tests/unicase/test-u16-totitle.c: Likewise.
18753         * tests/unicase/test-u16-toupper.c: Likewise.
18754         * tests/unicase/test-u32-casecmp.c: Likewise.
18755         * tests/unicase/test-u32-casecoll.c: Likewise.
18756         * tests/unicase/test-u32-casefold.c: Likewise.
18757         * tests/unicase/test-u32-is-cased.c: Likewise.
18758         * tests/unicase/test-u32-is-casefolded.c: Likewise.
18759         * tests/unicase/test-u32-is-lowercase.c: Likewise.
18760         * tests/unicase/test-u32-is-titlecase.c: Likewise.
18761         * tests/unicase/test-u32-is-uppercase.c: Likewise.
18762         * tests/unicase/test-u32-tolower.c: Likewise.
18763         * tests/unicase/test-u32-totitle.c: Likewise.
18764         * tests/unicase/test-u32-toupper.c: Likewise.
18765         * tests/unicase/test-ulc-casecmp.c: Likewise.
18766         * tests/unicase/test-ulc-casecoll.c: Likewise.
18767         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
18768         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
18769         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
18770         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
18771         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
18772         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
18773         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
18774         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
18775         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
18776         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
18777         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
18778         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
18779         * tests/unictype/test-bidi_byname.c: Likewise.
18780         * tests/unictype/test-bidi_name.c: Likewise.
18781         * tests/unictype/test-bidi_of.c: Likewise.
18782         * tests/unictype/test-bidi_test.c: Likewise.
18783         * tests/unictype/test-block_list.c: Likewise.
18784         * tests/unictype/test-block_of.c: Likewise.
18785         * tests/unictype/test-block_test.c: Likewise.
18786         * tests/unictype/test-categ_and.c: Likewise.
18787         * tests/unictype/test-categ_and_not.c: Likewise.
18788         * tests/unictype/test-categ_byname.c: Likewise.
18789         * tests/unictype/test-categ_name.c: Likewise.
18790         * tests/unictype/test-categ_none.c: Likewise.
18791         * tests/unictype/test-categ_of.c: Likewise.
18792         * tests/unictype/test-categ_or.c: Likewise.
18793         * tests/unictype/test-categ_test_withtable.c: Likewise.
18794         * tests/unictype/test-combining.c: Likewise.
18795         * tests/unictype/test-decdigit.c: Likewise.
18796         * tests/unictype/test-digit.c: Likewise.
18797         * tests/unictype/test-mirror.c: Likewise.
18798         * tests/unictype/test-numeric.c: Likewise.
18799         * tests/unictype/test-pr_byname.c: Likewise.
18800         * tests/unictype/test-pr_test.c: Likewise.
18801         * tests/unictype/test-predicate-part1.h: Likewise.
18802         * tests/unictype/test-scripts.c: Likewise.
18803         * tests/unictype/test-sy_c_ident.c: Likewise.
18804         * tests/unictype/test-sy_java_ident.c: Likewise.
18805         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
18806         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
18807         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
18808         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
18809         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
18810         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
18811         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
18812         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
18813         * tests/uninorm/test-canonical-decomposition.c: Likewise.
18814         * tests/uninorm/test-compat-decomposition.c: Likewise.
18815         * tests/uninorm/test-composition.c: Likewise.
18816         * tests/uninorm/test-decomposing-form.c: Likewise.
18817         * tests/uninorm/test-decomposition.c: Likewise.
18818         * tests/uninorm/test-u8-nfc.c: Likewise.
18819         * tests/uninorm/test-u8-nfd.c: Likewise.
18820         * tests/uninorm/test-u8-nfkc.c: Likewise.
18821         * tests/uninorm/test-u8-nfkd.c: Likewise.
18822         * tests/uninorm/test-u8-normcmp.c: Likewise.
18823         * tests/uninorm/test-u8-normcoll.c: Likewise.
18824         * tests/uninorm/test-u16-nfc.c: Likewise.
18825         * tests/uninorm/test-u16-nfd.c: Likewise.
18826         * tests/uninorm/test-u16-nfkc.c: Likewise.
18827         * tests/uninorm/test-u16-nfkd.c: Likewise.
18828         * tests/uninorm/test-u16-normcmp.c: Likewise.
18829         * tests/uninorm/test-u16-normcoll.c: Likewise.
18830         * tests/uninorm/test-u32-nfc.c: Likewise.
18831         * tests/uninorm/test-u32-nfd.c: Likewise.
18832         * tests/uninorm/test-u32-nfkc.c: Likewise.
18833         * tests/uninorm/test-u32-nfkd.c: Likewise.
18834         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18835         * tests/uninorm/test-u32-normcmp.c: Likewise.
18836         * tests/uninorm/test-u32-normcoll.c: Likewise.
18837         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
18838         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
18839         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
18840         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
18841         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
18842         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
18843         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
18844         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
18845         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
18846         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
18847         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
18848         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
18849         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
18850         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
18851         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
18852         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
18853         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
18854         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
18855         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
18856         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
18857         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
18858         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
18859         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
18860         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
18861         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
18862         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
18863         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
18864         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
18865         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
18866         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
18867         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
18868         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
18869         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
18870         * tests/uniwidth/test-u8-strwidth.c: Likewise.
18871         * tests/uniwidth/test-u8-width.c: Likewise.
18872         * tests/uniwidth/test-u16-strwidth.c: Likewise.
18873         * tests/uniwidth/test-u16-width.c: Likewise.
18874         * tests/uniwidth/test-u32-strwidth.c: Likewise.
18875         * tests/uniwidth/test-u32-width.c: Likewise.
18876         * tests/uniwidth/test-uc_width.c: Likewise.
18877         * tests/uniwidth/test-uc_width2.c: Likewise.
18878         * modules/acl-tests (Files): Add tests/macros.h.
18879         * modules/areadlink-tests (Files): Likewise.
18880         * modules/areadlink-with-size-tests (Files): Likewise.
18881         * modules/areadlinkat-tests (Files): Likewise.
18882         * modules/areadlinkat-with-size-tests (Files): Likewise.
18883         * modules/argmatch-tests (Files): Likewise.
18884         * modules/argv-iter-tests (Files): Likewise.
18885         * modules/array-list-tests (Files): Likewise.
18886         * modules/array-mergesort-tests (Files): Likewise.
18887         * modules/array-oset-tests (Files): Likewise.
18888         * modules/avltree-list-tests (Files): Likewise.
18889         * modules/avltree-oset-tests (Files): Likewise.
18890         * modules/avltreehash-list-tests (Files): Likewise.
18891         * modules/base64-tests (Files): Likewise.
18892         * modules/binary-io-tests (Files): Likewise.
18893         * modules/bitrotate-tests (Files): Likewise.
18894         * modules/btowc-tests (Files): Likewise.
18895         * modules/byteswap-tests (Files): Likewise.
18896         * modules/c-ctype-tests (Files): Likewise.
18897         * modules/c-stack-tests (Files): Likewise.
18898         * modules/c-strcase-tests (Files): Likewise.
18899         * modules/c-strcasestr-tests (Files): Likewise.
18900         * modules/c-strstr-tests (Files): Likewise.
18901         * modules/canonicalize-lgpl-tests (Files): Likewise.
18902         * modules/canonicalize-tests (Files): Likewise.
18903         * modules/carray-list-tests (Files): Likewise.
18904         * modules/ceilf-tests (Files): Likewise.
18905         * modules/ceill-tests (Files): Likewise.
18906         * modules/chown-tests (Files): Likewise.
18907         * modules/cloexec-tests (Files): Likewise.
18908         * modules/copy-file-tests (Files): Likewise.
18909         * modules/count-one-bits-tests (Files): Likewise.
18910         * modules/dprintf-posix-tests (Files): Likewise.
18911         * modules/dup2-tests (Files): Likewise.
18912         * modules/dup3-tests (Files): Likewise.
18913         * modules/duplocale-tests (Files): Likewise.
18914         * modules/fbufmode-tests (Files): Likewise.
18915         * modules/fchdir-tests (Files): Likewise.
18916         * modules/fcntl-safer-tests (Files): Likewise.
18917         * modules/fcntl-tests (Files): Likewise.
18918         * modules/fdopendir-tests (Files): Likewise.
18919         * modules/fdutimensat-tests (Files): Likewise.
18920         * modules/fflush-tests (Files): Likewise.
18921         * modules/filevercmp-tests (Files): Likewise.
18922         * modules/flock-tests (Files): Likewise.
18923         * modules/floorf-tests (Files): Likewise.
18924         * modules/floorl-tests (Files): Likewise.
18925         * modules/fnmatch-tests (Files): Likewise.
18926         * modules/fopen-safer-tests (Files): Likewise.
18927         * modules/fopen-tests (Files): Likewise.
18928         * modules/fpending-tests (Files): Likewise.
18929         * modules/fprintf-posix-tests (Files): Likewise.
18930         * modules/fpurge-tests (Files): Likewise.
18931         * modules/freadable-tests (Files): Likewise.
18932         * modules/freadahead-tests (Files): Likewise.
18933         * modules/freading-tests (Files): Likewise.
18934         * modules/freadptr-tests (Files): Likewise.
18935         * modules/freadseek-tests (Files): Likewise.
18936         * modules/freopen-tests (Files): Likewise.
18937         * modules/frexp-nolibm-tests (Files): Likewise.
18938         * modules/frexp-tests (Files): Likewise.
18939         * modules/frexpl-nolibm-tests (Files): Likewise.
18940         * modules/frexpl-tests (Files): Likewise.
18941         * modules/fseek-tests (Files): Likewise.
18942         * modules/fseeko-tests (Files): Likewise.
18943         * modules/fstrcmp-tests (Files): Likewise.
18944         * modules/fsync-tests (Files): Likewise.
18945         * modules/ftell-tests (Files): Likewise.
18946         * modules/ftello-tests (Files): Likewise.
18947         * modules/func-tests (Files): Likewise.
18948         * modules/futimens-tests (Files): Likewise.
18949         * modules/fwritable-tests (Files): Likewise.
18950         * modules/fwriting-tests (Files): Likewise.
18951         * modules/getcwd-tests (Files): Likewise.
18952         * modules/getdate-tests (Files): Likewise.
18953         * modules/getdelim-tests (Files): Likewise.
18954         * modules/getdtablesize-tests (Files): Likewise.
18955         * modules/getgroups-tests (Files): Likewise.
18956         * modules/getline-tests (Files): Likewise.
18957         * modules/getndelim2-tests (Files): Likewise.
18958         * modules/glob-tests (Files): Likewise.
18959         * modules/hash-tests (Files): Likewise.
18960         * modules/i-ring-tests (Files): Likewise.
18961         * modules/iconv-tests (Files): Likewise.
18962         * modules/iconv_open-utf-tests (Files): Likewise.
18963         * modules/idpriv-drop-tests (Files): Likewise.
18964         * modules/idpriv-droptemp-tests (Files): Likewise.
18965         * modules/inet_ntop-tests (Files): Likewise.
18966         * modules/inet_pton-tests (Files): Likewise.
18967         * modules/isblank-tests (Files): Likewise.
18968         * modules/isfinite-tests (Files): Likewise.
18969         * modules/isinf-tests (Files): Likewise.
18970         * modules/isnan-tests (Files): Likewise.
18971         * modules/isnand-nolibm-tests (Files): Likewise.
18972         * modules/isnand-tests (Files): Likewise.
18973         * modules/isnanf-nolibm-tests (Files): Likewise.
18974         * modules/isnanf-tests (Files): Likewise.
18975         * modules/isnanl-nolibm-tests (Files): Likewise.
18976         * modules/isnanl-tests (Files): Likewise.
18977         * modules/lchown-tests (Files): Likewise.
18978         * modules/ldexpl-tests (Files): Likewise.
18979         * modules/link-tests (Files): Likewise.
18980         * modules/linkat-tests (Files): Likewise.
18981         * modules/linked-list-tests (Files): Likewise.
18982         * modules/linkedhash-list-tests (Files): Likewise.
18983         * modules/localename-tests (Files): Likewise.
18984         * modules/lseek-tests (Files): Likewise.
18985         * modules/lstat-tests (Files): Likewise.
18986         * modules/mbmemcasecmp-tests (Files): Likewise.
18987         * modules/mbmemcasecoll-tests (Files): Likewise.
18988         * modules/mbrtowc-tests (Files): Likewise.
18989         * modules/mbscasecmp-tests (Files): Likewise.
18990         * modules/mbscasestr-tests (Files): Likewise.
18991         * modules/mbschr-tests (Files): Likewise.
18992         * modules/mbscspn-tests (Files): Likewise.
18993         * modules/mbsinit-tests (Files): Likewise.
18994         * modules/mbsncasecmp-tests (Files): Likewise.
18995         * modules/mbsnrtowcs-tests (Files): Likewise.
18996         * modules/mbspbrk-tests (Files): Likewise.
18997         * modules/mbspcasecmp-tests (Files): Likewise.
18998         * modules/mbsrchr-tests (Files): Likewise.
18999         * modules/mbsrtowcs-tests (Files): Likewise.
19000         * modules/mbsspn-tests (Files): Likewise.
19001         * modules/mbsstr-tests (Files): Likewise.
19002         * modules/memchr-tests (Files): Likewise.
19003         * modules/memchr2-tests (Files): Likewise.
19004         * modules/memcmp-tests (Files): Likewise.
19005         * modules/memmem-tests (Files): Likewise.
19006         * modules/memrchr-tests (Files): Likewise.
19007         * modules/mkdir-tests (Files): Likewise.
19008         * modules/mkfifo-tests (Files): Likewise.
19009         * modules/mkfifoat-tests (Files): Likewise.
19010         * modules/mknod-tests (Files): Likewise.
19011         * modules/nanosleep-tests (Files): Likewise.
19012         * modules/nl_langinfo-tests (Files): Likewise.
19013         * modules/obstack-printf-tests (Files): Likewise.
19014         * modules/open-tests (Files): Likewise.
19015         * modules/openat-tests (Files): Likewise.
19016         * modules/pipe-filter-gi-tests (Files): Likewise.
19017         * modules/pipe-filter-ii-tests (Files): Likewise.
19018         * modules/pipe2-tests (Files): Likewise.
19019         * modules/popen-safer-tests (Files): Likewise.
19020         * modules/popen-tests (Files): Likewise.
19021         * modules/posixtm-tests (Files): Likewise.
19022         * modules/pread-tests (Files): Likewise.
19023         * modules/printf-frexp-tests (Files): Likewise.
19024         * modules/printf-frexpl-tests (Files): Likewise.
19025         * modules/printf-posix-tests (Files): Likewise.
19026         * modules/priv-set-tests (Files): Likewise.
19027         * modules/quotearg-tests (Files): Likewise.
19028         * modules/random_r-tests (Files): Likewise.
19029         * modules/rawmemchr-tests (Files): Likewise.
19030         * modules/rbtree-list-tests (Files): Likewise.
19031         * modules/rbtree-oset-tests (Files): Likewise.
19032         * modules/rbtreehash-list-tests (Files): Likewise.
19033         * modules/readlink-tests (Files): Likewise.
19034         * modules/remove-tests (Files): Likewise.
19035         * modules/rename-tests (Files): Likewise.
19036         * modules/renameat-tests (Files): Likewise.
19037         * modules/rmdir-tests (Files): Likewise.
19038         * modules/round-tests (Files): Likewise.
19039         * modules/roundf-tests (Files): Likewise.
19040         * modules/roundl-tests (Files): Likewise.
19041         * modules/safe-alloc-tests (Files): Likewise.
19042         * modules/setenv-tests (Files): Likewise.
19043         * modules/sigaction-tests (Files): Likewise.
19044         * modules/signbit-tests (Files): Likewise.
19045         * modules/sleep-tests (Files): Likewise.
19046         * modules/snprintf-posix-tests (Files): Likewise.
19047         * modules/snprintf-tests (Files): Likewise.
19048         * modules/sprintf-posix-tests (Files): Likewise.
19049         * modules/stat-tests (Files): Likewise.
19050         * modules/stat-time-tests (Files): Likewise.
19051         * modules/strcasestr-tests (Files): Likewise.
19052         * modules/strchrnul-tests (Files): Likewise.
19053         * modules/strerror-tests (Files): Likewise.
19054         * modules/striconv-tests (Files): Likewise.
19055         * modules/striconveh-tests (Files): Likewise.
19056         * modules/striconveha-tests (Files): Likewise.
19057         * modules/strsignal-tests (Files): Likewise.
19058         * modules/strstr-tests (Files): Likewise.
19059         * modules/strtod-tests (Files): Likewise.
19060         * modules/strverscmp-tests (Files): Likewise.
19061         * modules/symlink-tests (Files): Likewise.
19062         * modules/symlinkat-tests (Files): Likewise.
19063         * modules/trunc-tests (Files): Likewise.
19064         * modules/truncf-tests (Files): Likewise.
19065         * modules/truncl-tests (Files): Likewise.
19066         * modules/uname-tests (Files): Likewise.
19067         * modules/unicase/cased-tests (Files): Likewise.
19068         * modules/unicase/ignorable-tests (Files): Likewise.
19069         * modules/unicase/locale-language-tests (Files): Likewise.
19070         * modules/unicase/tolower-tests (Files): Likewise.
19071         * modules/unicase/totitle-tests (Files): Likewise.
19072         * modules/unicase/toupper-tests (Files): Likewise.
19073         * modules/unicase/u8-casecmp-tests (Files): Likewise.
19074         * modules/unicase/u8-casecoll-tests (Files): Likewise.
19075         * modules/unicase/u8-casefold-tests (Files): Likewise.
19076         * modules/unicase/u8-is-cased-tests (Files): Likewise.
19077         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
19078         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
19079         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
19080         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
19081         * modules/unicase/u8-tolower-tests (Files): Likewise.
19082         * modules/unicase/u8-totitle-tests (Files): Likewise.
19083         * modules/unicase/u8-toupper-tests (Files): Likewise.
19084         * modules/unicase/u16-casecmp-tests (Files): Likewise.
19085         * modules/unicase/u16-casecoll-tests (Files): Likewise.
19086         * modules/unicase/u16-casefold-tests (Files): Likewise.
19087         * modules/unicase/u16-is-cased-tests (Files): Likewise.
19088         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
19089         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
19090         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
19091         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
19092         * modules/unicase/u16-tolower-tests (Files): Likewise.
19093         * modules/unicase/u16-totitle-tests (Files): Likewise.
19094         * modules/unicase/u16-toupper-tests (Files): Likewise.
19095         * modules/unicase/u32-casecmp-tests (Files): Likewise.
19096         * modules/unicase/u32-casecoll-tests (Files): Likewise.
19097         * modules/unicase/u32-casefold-tests (Files): Likewise.
19098         * modules/unicase/u32-is-cased-tests (Files): Likewise.
19099         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
19100         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
19101         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
19102         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
19103         * modules/unicase/u32-tolower-tests (Files): Likewise.
19104         * modules/unicase/u32-totitle-tests (Files): Likewise.
19105         * modules/unicase/u32-toupper-tests (Files): Likewise.
19106         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
19107         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
19108         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
19109         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
19110         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
19111         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
19112         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
19113         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
19114         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
19115         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
19116         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
19117         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
19118         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
19119         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
19120         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
19121         * modules/unictype/bidicategory-name-tests (Files): Likewise.
19122         * modules/unictype/bidicategory-of-tests (Files): Likewise.
19123         * modules/unictype/bidicategory-test-tests (Files): Likewise.
19124         * modules/unictype/block-list-tests (Files): Likewise.
19125         * modules/unictype/block-of-tests (Files): Likewise.
19126         * modules/unictype/block-test-tests (Files): Likewise.
19127         * modules/unictype/category-C-tests (Files): Likewise.
19128         * modules/unictype/category-Cc-tests (Files): Likewise.
19129         * modules/unictype/category-Cf-tests (Files): Likewise.
19130         * modules/unictype/category-Cn-tests (Files): Likewise.
19131         * modules/unictype/category-Co-tests (Files): Likewise.
19132         * modules/unictype/category-Cs-tests (Files): Likewise.
19133         * modules/unictype/category-L-tests (Files): Likewise.
19134         * modules/unictype/category-Ll-tests (Files): Likewise.
19135         * modules/unictype/category-Lm-tests (Files): Likewise.
19136         * modules/unictype/category-Lo-tests (Files): Likewise.
19137         * modules/unictype/category-Lt-tests (Files): Likewise.
19138         * modules/unictype/category-Lu-tests (Files): Likewise.
19139         * modules/unictype/category-M-tests (Files): Likewise.
19140         * modules/unictype/category-Mc-tests (Files): Likewise.
19141         * modules/unictype/category-Me-tests (Files): Likewise.
19142         * modules/unictype/category-Mn-tests (Files): Likewise.
19143         * modules/unictype/category-N-tests (Files): Likewise.
19144         * modules/unictype/category-Nd-tests (Files): Likewise.
19145         * modules/unictype/category-Nl-tests (Files): Likewise.
19146         * modules/unictype/category-No-tests (Files): Likewise.
19147         * modules/unictype/category-P-tests (Files): Likewise.
19148         * modules/unictype/category-Pc-tests (Files): Likewise.
19149         * modules/unictype/category-Pd-tests (Files): Likewise.
19150         * modules/unictype/category-Pe-tests (Files): Likewise.
19151         * modules/unictype/category-Pf-tests (Files): Likewise.
19152         * modules/unictype/category-Pi-tests (Files): Likewise.
19153         * modules/unictype/category-Po-tests (Files): Likewise.
19154         * modules/unictype/category-Ps-tests (Files): Likewise.
19155         * modules/unictype/category-S-tests (Files): Likewise.
19156         * modules/unictype/category-Sc-tests (Files): Likewise.
19157         * modules/unictype/category-Sk-tests (Files): Likewise.
19158         * modules/unictype/category-Sm-tests (Files): Likewise.
19159         * modules/unictype/category-So-tests (Files): Likewise.
19160         * modules/unictype/category-Z-tests (Files): Likewise.
19161         * modules/unictype/category-Zl-tests (Files): Likewise.
19162         * modules/unictype/category-Zp-tests (Files): Likewise.
19163         * modules/unictype/category-Zs-tests (Files): Likewise.
19164         * modules/unictype/category-and-not-tests (Files): Likewise.
19165         * modules/unictype/category-and-tests (Files): Likewise.
19166         * modules/unictype/category-byname-tests (Files): Likewise.
19167         * modules/unictype/category-name-tests (Files): Likewise.
19168         * modules/unictype/category-none-tests (Files): Likewise.
19169         * modules/unictype/category-of-tests (Files): Likewise.
19170         * modules/unictype/category-or-tests (Files): Likewise.
19171         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19172         * modules/unictype/combining-class-tests (Files): Likewise.
19173         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19174         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19175         * modules/unictype/ctype-blank-tests (Files): Likewise.
19176         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19177         * modules/unictype/ctype-digit-tests (Files): Likewise.
19178         * modules/unictype/ctype-graph-tests (Files): Likewise.
19179         * modules/unictype/ctype-lower-tests (Files): Likewise.
19180         * modules/unictype/ctype-print-tests (Files): Likewise.
19181         * modules/unictype/ctype-punct-tests (Files): Likewise.
19182         * modules/unictype/ctype-space-tests (Files): Likewise.
19183         * modules/unictype/ctype-upper-tests (Files): Likewise.
19184         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19185         * modules/unictype/decimal-digit-tests (Files): Likewise.
19186         * modules/unictype/digit-tests (Files): Likewise.
19187         * modules/unictype/mirror-tests (Files): Likewise.
19188         * modules/unictype/numeric-tests (Files): Likewise.
19189         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19190         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19191         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19192         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19193         Likewise.
19194         * modules/unictype/property-bidi-block-separator-tests (Files):
19195         Likewise.
19196         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19197         Likewise.
19198         * modules/unictype/property-bidi-common-separator-tests (Files):
19199         Likewise.
19200         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19201         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19202         Likewise.
19203         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19204         Likewise.
19205         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19206         Likewise.
19207         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19208         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19209         Likewise.
19210         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19211         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19212         Likewise.
19213         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19214         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19215         * modules/unictype/property-bidi-segment-separator-tests (Files):
19216         Likewise.
19217         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19218         * modules/unictype/property-byname-tests (Files): Likewise.
19219         * modules/unictype/property-combining-tests (Files): Likewise.
19220         * modules/unictype/property-composite-tests (Files): Likewise.
19221         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19222         * modules/unictype/property-dash-tests (Files): Likewise.
19223         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19224         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19225         Likewise.
19226         * modules/unictype/property-deprecated-tests (Files): Likewise.
19227         * modules/unictype/property-diacritic-tests (Files): Likewise.
19228         * modules/unictype/property-extender-tests (Files): Likewise.
19229         * modules/unictype/property-format-control-tests (Files): Likewise.
19230         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19231         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19232         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19233         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19234         * modules/unictype/property-hyphen-tests (Files): Likewise.
19235         * modules/unictype/property-id-continue-tests (Files): Likewise.
19236         * modules/unictype/property-id-start-tests (Files): Likewise.
19237         * modules/unictype/property-ideographic-tests (Files): Likewise.
19238         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19239         * modules/unictype/property-ids-trinary-operator-tests (Files):
19240         Likewise.
19241         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19242         * modules/unictype/property-iso-control-tests (Files): Likewise.
19243         * modules/unictype/property-join-control-tests (Files): Likewise.
19244         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19245         * modules/unictype/property-line-separator-tests (Files): Likewise.
19246         * modules/unictype/property-logical-order-exception-tests (Files):
19247         Likewise.
19248         * modules/unictype/property-lowercase-tests (Files): Likewise.
19249         * modules/unictype/property-math-tests (Files): Likewise.
19250         * modules/unictype/property-non-break-tests (Files): Likewise.
19251         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19252         * modules/unictype/property-numeric-tests (Files): Likewise.
19253         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19254         * modules/unictype/property-other-default-ignorable-code-point-tests
19255         (Files): Likewise.
19256         * modules/unictype/property-other-grapheme-extend-tests (Files):
19257         Likewise.
19258         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19259         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19260         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19261         * modules/unictype/property-other-math-tests (Files): Likewise.
19262         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19263         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19264         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19265         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19266         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19267         * modules/unictype/property-private-use-tests (Files): Likewise.
19268         * modules/unictype/property-punctuation-tests (Files): Likewise.
19269         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19270         * modules/unictype/property-radical-tests (Files): Likewise.
19271         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19272         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19273         * modules/unictype/property-space-tests (Files): Likewise.
19274         * modules/unictype/property-terminal-punctuation-tests (Files):
19275         Likewise.
19276         * modules/unictype/property-test-tests (Files): Likewise.
19277         * modules/unictype/property-titlecase-tests (Files): Likewise.
19278         * modules/unictype/property-unassigned-code-value-tests (Files):
19279         Likewise.
19280         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19281         * modules/unictype/property-uppercase-tests (Files): Likewise.
19282         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19283         * modules/unictype/property-white-space-tests (Files): Likewise.
19284         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19285         * modules/unictype/property-xid-start-tests (Files): Likewise.
19286         * modules/unictype/property-zero-width-tests (Files): Likewise.
19287         * modules/unictype/scripts-tests (Files): Likewise.
19288         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19289         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19290         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19291         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19292         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19293         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19294         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19295         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19296         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19297         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19298         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19299         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19300         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19301         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19302         * modules/uninorm/composition-tests (Files): Likewise.
19303         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19304         * modules/uninorm/decomposition-tests (Files): Likewise.
19305         * modules/uninorm/filter-tests (Files): Likewise.
19306         * modules/uninorm/nfc-tests (Files): Likewise.
19307         * modules/uninorm/nfd-tests (Files): Likewise.
19308         * modules/uninorm/nfkc-tests (Files): Likewise.
19309         * modules/uninorm/nfkd-tests (Files): Likewise.
19310         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19311         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19312         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19313         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19314         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19315         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19316         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19317         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19318         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19319         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19320         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19321         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19322         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19323         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19324         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19325         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19326         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19327         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19328         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19329         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19330         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19331         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19332         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19333         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19334         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19335         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19336         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19337         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19338         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19339         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19340         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19341         * modules/uniwidth/u8-width-tests (Files): Likewise.
19342         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19343         * modules/uniwidth/u16-width-tests (Files): Likewise.
19344         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19345         * modules/uniwidth/u32-width-tests (Files): Likewise.
19346         * modules/uniwidth/width-tests (Files): Likewise.
19347         * modules/unlink-tests (Files): Likewise.
19348         * modules/unsetenv-tests (Files): Likewise.
19349         * modules/usleep-tests (Files): Likewise.
19350         * modules/utimens-tests (Files): Likewise.
19351         * modules/utimensat-tests (Files): Likewise.
19352         * modules/vasnprintf-posix-tests (Files): Likewise.
19353         * modules/vasnprintf-tests (Files): Likewise.
19354         * modules/vasprintf-posix-tests (Files): Likewise.
19355         * modules/vasprintf-tests (Files): Likewise.
19356         * modules/vdprintf-posix-tests (Files): Likewise.
19357         * modules/vfprintf-posix-tests (Files): Likewise.
19358         * modules/vprintf-posix-tests (Files): Likewise.
19359         * modules/vsnprintf-posix-tests (Files): Likewise.
19360         * modules/vsnprintf-tests (Files): Likewise.
19361         * modules/vsprintf-posix-tests (Files): Likewise.
19362         * modules/wcrtomb-tests (Files): Likewise.
19363         * modules/wcsnrtombs-tests (Files): Likewise.
19364         * modules/wcsrtombs-tests (Files): Likewise.
19365         * modules/wctype-tests (Files): Likewise.
19366         * modules/wcwidth-tests (Files): Likewise.
19367         * modules/xmemdup0-tests (Files): Likewise.
19368         * modules/xprintf-posix-tests (Files): Likewise.
19369         * modules/xvasprintf-tests (Files): Likewise.
19370
19371 2009-12-24  Eric Blake  <ebb9@byu.net>
19372
19373         test-nanosleep: fix typo
19374         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19375         patch.
19376         Reported by Bruno Haible.
19377
19378 2009-12-24  Bruno Haible  <bruno@clisp.org>
19379
19380         Reduce namespace pollution on glibc systems.
19381         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19382         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19383         systems.
19384         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19385         <getopt.h> on glibc systems.
19386         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19387         systems.
19388         * lib/fcntl.c: Include <unistd.h> here instead.
19389
19390 2009-12-24  Bruno Haible  <bruno@clisp.org>
19391
19392         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19393
19394 2009-12-24  Eric Blake  <ebb9@byu.net>
19395
19396         tests: add signature checks
19397         * tests/signature.h (SIGNATURE_CHECK): New file.
19398         * modules/atexit-tests (Files): Use it.
19399         * modules/btowc-tests (Files): Likewise.
19400         * modules/canonicalize-lgpl-tests (Files): Likewise.
19401         * modules/ceilf-tests (Files): Likewise.
19402         * modules/ceill-tests (Files): Likewise.
19403         * modules/chown-tests (Files): Likewise.
19404         * modules/dprintf-posix-tests (Files): Likewise.
19405         * modules/dup2-tests (Files): Likewise.
19406         * modules/dup3-tests (Files): Likewise.
19407         * modules/duplocale-tests (Files): Likewise.
19408         * modules/fchdir-tests (Files): Likewise.
19409         * modules/fcntl-tests (Files): Likewise.
19410         * modules/fdopendir-tests (Files): Likewise.
19411         * modules/fflush-tests (Files): Likewise.
19412         * modules/flock-tests (Files): Likewise.
19413         * modules/floorf-tests (Files): Likewise.
19414         * modules/floorl-tests (Files): Likewise.
19415         * modules/fnmatch-tests (Files): Likewise.
19416         * modules/fopen-tests (Files): Likewise.
19417         * modules/fprintf-posix-tests (Files): Likewise.
19418         * modules/freopen-tests (Files): Likewise.
19419         * modules/frexp-nolibm-tests (Files): Likewise.
19420         * modules/frexp-tests (Files): Likewise.
19421         * modules/frexpl-nolibm-tests (Files): Likewise.
19422         * modules/frexpl-tests (Files): Likewise.
19423         * modules/fseek-tests (Files): Likewise.
19424         * modules/fseeko-tests (Files): Likewise.
19425         * modules/fsync-tests (Files): Likewise.
19426         * modules/ftell-tests (Files): Likewise.
19427         * modules/ftello-tests (Files): Likewise.
19428         * modules/futimens-tests (Files): Likewise.
19429         * modules/getaddrinfo-tests (Files): Likewise.
19430         * modules/getcwd-tests (Files): Likewise.
19431         * modules/getdelim-tests (Files): Likewise.
19432         * modules/getdtablesize-tests (Files): Likewise.
19433         * modules/getgroups-tests (Files): Likewise.
19434         * modules/gethostname-tests (Files): Likewise.
19435         * modules/getline-tests (Files): Likewise.
19436         * modules/getopt-posix-tests (Files): Likewise.
19437         * modules/gettimeofday-tests (Files): Likewise.
19438         * modules/glob-tests (Files): Likewise.
19439         * modules/iconv-tests (Files): Likewise.
19440         * modules/inet_ntop-tests (Files): Likewise.
19441         * modules/inet_pton-tests (Files): Likewise.
19442         * modules/isblank-tests (Files): Likewise.
19443         * modules/lchown-tests (Files): Likewise.
19444         * modules/ldexpl-tests (Files): Likewise.
19445         * modules/link-tests (Files): Likewise.
19446         * modules/linkat-tests (Files): Likewise.
19447         * modules/lseek-tests (Files): Likewise.
19448         * modules/lstat-tests (Files): Likewise.
19449         * modules/mbrtowc-tests (Files): Likewise.
19450         * modules/mbsinit-tests (Files): Likewise.
19451         * modules/mbsnrtowcs-tests (Files): Likewise.
19452         * modules/mbsrtowcs-tests (Files): Likewise.
19453         * modules/memchr-tests (Files): Likewise.
19454         * modules/memcmp-tests (Files): Likewise.
19455         * modules/memmem-tests (Files): Likewise.
19456         * modules/memrchr-tests (Files): Likewise.
19457         * modules/mkdir-tests (Files): Likewise.
19458         * modules/mkfifo-tests (Files): Likewise.
19459         * modules/mkfifoat-tests (Files): Likewise.
19460         * modules/mknod-tests (Files): Likewise.
19461         * modules/nanosleep-tests (Files): Likewise.
19462         * modules/nl_langinfo-tests (Files): Likewise.
19463         * modules/obstack-printf-tests (Files): Likewise.
19464         * modules/open-tests (Files): Likewise.
19465         * modules/openat-tests (Files): Likewise.
19466         * modules/perror-tests (Files): Likewise.
19467         * modules/pipe2-tests (Files): Likewise.
19468         * modules/poll-tests (Files): Likewise.
19469         * modules/popen-tests (Files): Likewise.
19470         * modules/posix_spawn-tests (Files): Likewise.
19471         * modules/posix_spawnp-tests (Files): Likewise.
19472         * modules/pread-tests (Files): Likewise.
19473         * modules/printf-posix-tests (Files): Likewise.
19474         * modules/pty-tests (Files): Likewise.
19475         * modules/random_r-tests (Files): Likewise.
19476         * modules/rawmemchr-tests (Files): Likewise.
19477         * modules/readlink-tests (Files): Likewise.
19478         * modules/remove-tests (Files): Likewise.
19479         * modules/rename-tests (Files): Likewise.
19480         * modules/renameat-tests (Files): Likewise.
19481         * modules/rmdir-tests (Files): Likewise.
19482         * modules/round-tests (Files): Likewise.
19483         * modules/roundf-tests (Files): Likewise.
19484         * modules/roundl-tests (Files): Likewise.
19485         * modules/select-tests (Files): Likewise.
19486         * modules/setenv-tests (Files): Likewise.
19487         * modules/sigaction-tests (Files): Likewise.
19488         * modules/sleep-tests (Files): Likewise.
19489         * modules/snprintf-posix-tests (Files): Likewise.
19490         * modules/snprintf-tests (Files): Likewise.
19491         * modules/sprintf-posix-tests (Files): Likewise.
19492         * modules/stat-tests (Files): Likewise.
19493         * modules/strcasestr-tests (Files): Likewise.
19494         * modules/strchrnul-tests (Files): Likewise.
19495         * modules/strerror-tests (Files): Likewise.
19496         * modules/strsignal-tests (Files): Likewise.
19497         * modules/strstr-tests (Files): Likewise.
19498         * modules/strtod-tests (Files): Likewise.
19499         * modules/strverscmp-tests (Files): Likewise.
19500         * modules/symlink-tests (Files): Likewise.
19501         * modules/symlinkat-tests (Files): Likewise.
19502         * modules/times-tests (Files): Likewise.
19503         * modules/trunc-tests (Files): Likewise.
19504         * modules/truncf-tests (Files): Likewise.
19505         * modules/truncl-tests (Files): Likewise.
19506         * modules/tsearch-tests (Files): Likewise.
19507         * modules/uname-tests (Files): Likewise.
19508         * modules/unlink-tests (Files): Likewise.
19509         * modules/unsetenv-tests (Files): Likewise.
19510         * modules/usleep-tests (Files): Likewise.
19511         * modules/utimensat-tests (Files): Likewise.
19512         * modules/vasprintf-tests (Files): Likewise.
19513         * modules/vdprintf-posix-tests (Files): Likewise.
19514         * modules/vfprintf-posix-tests (Files): Likewise.
19515         * modules/vprintf-posix-tests (Files): Likewise.
19516         * modules/vsnprintf-posix-tests (Files): Likewise.
19517         * modules/vsnprintf-tests (Files): Likewise.
19518         * modules/vsprintf-posix-tests (Files): Likewise.
19519         * modules/wcrtomb-tests (Files): Likewise.
19520         * modules/wcsnrtombs-tests (Files): Likewise.
19521         * modules/wcsrtombs-tests (Files): Likewise.
19522         * modules/wcwidth-tests (Files): Likewise.
19523         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19524         * tests/test-isinf.c (isinf): Likewise.
19525         * tests/test-isnan.c (isnan): Likewise.
19526         * tests/test-signbit.c (signbit): Likewise.
19527         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19528         declaration, either as macro or with correct signature.
19529         (select): Ensure function under test is declared with correct
19530         signature in correct header.
19531         * tests/test-atexit.c (atexit): Likewise.
19532         * tests/test-btowc.c (btowc): Likewise.
19533         * tests/test-canonicalize-lgpl.c (realpath)
19534         (canonicalize_file_name): Likewise.
19535         * tests/test-ceilf1.c (ceilf): Likewise.
19536         * tests/test-ceill.c (ceill): Likewise.
19537         * tests/test-chown.c (chown): Likewise.
19538         * tests/test-dprintf-posix.c (dprintf): Likewise.
19539         * tests/test-dup2.c (dup2): Likewise.
19540         * tests/test-dup3.c (dup3): Likewise.
19541         * tests/test-duplocale.c (duplocale): Likewise.
19542         * tests/test-fchdir.c (fchdir): Likewise.
19543         * tests/test-fchownat.c (fchownat): Likewise.
19544         * tests/test-fcntl.c (fcntl): Likewise.
19545         * tests/test-fdopendir.c (fdopendir): Likewise.
19546         * tests/test-fflush.c (fflush): Likewise.
19547         * tests/test-flock.c (flock): Likewise.
19548         * tests/test-floorf1.c (floorf): Likewise.
19549         * tests/test-floorl.c (floorl): Likewise.
19550         * tests/test-fnmatch.c (fnmatch): Likewise.
19551         * tests/test-fopen.c (fopen): Likewise.
19552         * tests/test-fprintf-posix.c (fprintf): Likewise.
19553         * tests/test-freopen.c (freopen): Likewise.
19554         * tests/test-frexp.c (frexp): Likewise.
19555         * tests/test-frexpl.c (frexpl): Likewise.
19556         * tests/test-fseek.c (fseek): Likewise.
19557         * tests/test-fseeko.c (fseeko): Likewise.
19558         * tests/test-fstatat.c (fstatat): Likewise.
19559         * tests/test-fsync.c (fsync): Likewise.
19560         * tests/test-ftell.c (ftell): Likewise.
19561         * tests/test-ftello.c (ftello): Likewise.
19562         * tests/test-futimens.c (futimens): Likewise.
19563         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19564         (gai_strerror): Likewise.
19565         * tests/test-getcwd.c (getcwd): Likewise.
19566         * tests/test-getdelim.c (getdelim): Likewise.
19567         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19568         * tests/test-getgroups.c (getgroups): Likewise.
19569         * tests/test-gethostname.c (gethostname): Likewise.
19570         * tests/test-getline.c (getline): Likewise.
19571         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19572         Likewise.
19573         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19574         * tests/test-glob.c (glob, globfree): Likewise.
19575         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19576         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19577         * tests/test-inet_pton.c (inet_pton): Likewise.
19578         * tests/test-isblank.c (isblank): Likewise.
19579         * tests/test-lchown.c (lchown): Likewise.
19580         * tests/test-ldexpl.c (ldexpl): Likewise.
19581         * tests/test-link.c (link): Likewise.
19582         * tests/test-linkat.c (linkat): Likewise.
19583         * tests/test-lseek.c (lseek): Likewise.
19584         * tests/test-lstat.c (lstat): Likewise.
19585         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19586         * tests/test-mbsinit.c (mbsinit): Likewise.
19587         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19588         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19589         * tests/test-memchr.c (memchr): Likewise.
19590         * tests/test-memcmp.c (memcmp): Likewise.
19591         * tests/test-memmem.c (memmem): Likewise.
19592         * tests/test-memrchr.c (memrchr): Likewise.
19593         * tests/test-mkdir.c (mkdir): Likewise.
19594         * tests/test-mkdirat.c (mkdirat): Likewise.
19595         * tests/test-mkfifo.c (mkfifo): Likewise.
19596         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
19597         * tests/test-mknod.c (mknod): Likewise.
19598         * tests/test-nanosleep.c (nanosleep): Likewise.
19599         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
19600         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
19601         Likewise.
19602         * tests/test-open.c (open): Likewise.
19603         * tests/test-openat.c (openat): Likewise.
19604         * tests/test-perror.c (perror): Likewise.
19605         * tests/test-pipe2.c (pipe2): Likewise.
19606         * tests/test-poll.c (poll): Likewise.
19607         * tests/test-popen.c (popen, pclose): Likewise.
19608         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
19609         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
19610         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
19611         (posix_spawn_file_actions_destroy)
19612         (posix_spawn_file_actions_addclose)
19613         (posix_spawn_file_actions_addopen)
19614         (posix_spawn_file_actions_adddup2): Likewise.
19615         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
19616         * tests/test-pread.c (pread): Likewise.
19617         * tests/test-printf-posix.c (printf): Likewise.
19618         * tests/test-pty.c (openpty, forkpty): Likewise.
19619         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
19620         (random_r): Likewise.
19621         * tests/test-rawmemchr.c (rawmemchr): Likewise.
19622         * tests/test-readlink.c (readlink): Likewise.
19623         * tests/test-remove.c (remove): Likewise.
19624         * tests/test-rename.c (rename): Likewise.
19625         * tests/test-renameat.c (renameat): Likewise.
19626         * tests/test-rmdir.c (rmdir): Likewise.
19627         * tests/test-round1.c (round): Likewise.
19628         * tests/test-roundf1.c (roundf): Likewise.
19629         * tests/test-roundl.c (roundl): Likewise.
19630         * tests/test-setenv.c (setenv): Likewise.
19631         * tests/test-sigaction.c (sigaction): Likewise.
19632         * tests/test-sleep.c (sleep): Likewise.
19633         * tests/test-snprintf.c (snprintf): Likewise.
19634         * tests/test-sprintf-posix.c (sprintf): Likewise.
19635         * tests/test-stat.c (stat): Likewise.
19636         * tests/test-stpncpy.c (stpncpy): Likewise.
19637         * tests/test-strcasestr.c (strcasestr): Likewise.
19638         * tests/test-strchrnul.c (strchrnul): Likewise.
19639         * tests/test-strerror.c (strerror): Likewise.
19640         * tests/test-strsignal.c (strsignal): Likewise.
19641         * tests/test-strstr.c (strstr): Likewise.
19642         * tests/test-strtod.c (strtod): Likewise.
19643         * tests/test-strverscmp.c (strverscmp): Likewise.
19644         * tests/test-symlink.c (symlink): Likewise.
19645         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
19646         * tests/test-times.c (times): Likewise.
19647         * tests/test-trunc1.c (trunc): Likewise.
19648         * tests/test-truncf1.c (truncf): Likewise.
19649         * tests/test-truncl.c (truncl): Likewise.
19650         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
19651         Likewise.
19652         * tests/test-uname.c (uname): Likewise.
19653         * tests/test-unlink.c (unlink): Likewise.
19654         * tests/test-unlinkat.c (unlinkat): Likewise.
19655         * tests/test-unsetenv.c (unsetenv): Likewise.
19656         * tests/test-usleep.c (usleep): Likewise.
19657         * tests/test-utimensat.c (utimensat): Likewise.
19658         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
19659         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
19660         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
19661         * tests/test-vprintf-posix.c (vprintf): Likewise.
19662         * tests/test-vsnprintf.c (vsnprintf): Likewise.
19663         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
19664         * tests/test-wcrtomb.c (wcrtomb): Likewise.
19665         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
19666         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
19667         * tests/test-wcwidth.c (wcwidth): Likewise.
19668
19669         build: pull in conditional headers during GNULIB_POSIXCHECK
19670         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
19671         definitions from any conditionally-included headers.
19672         * lib/stdlib.in.h (includes): Likewise.
19673         * lib/unistd.in.h (includes): Likewise.
19674
19675 2009-12-24  Bruno Haible  <bruno@clisp.org>
19676
19677         * tests/test-argv-iter.c: Include header file being tested immediately
19678         after config.h.
19679         * tests/test-base64.c: Likewise.
19680         * tests/test-flock.c: Likewise.
19681         * tests/test-fsync.c: Likewise.
19682         * tests/test-getdate.c: Likewise.
19683         * tests/test-getndelim2.c: Likewise.
19684         * tests/test-isfinite.c: Likewise.
19685         * tests/test-isinf.c: Likewise.
19686         * tests/test-strerror.c: Likewise.
19687         * tests/test-strsignal.c: Likewise.
19688
19689 2009-12-23  Eric Blake  <ebb9@byu.net>
19690
19691         unistd: work around cygwin bug
19692         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
19693         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
19694         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
19695
19696 2009-12-23  Bruno Haible  <bruno@clisp.org>
19697
19698         localename: More tests.
19699         * tests/test-localename.c (SIZEOF): New macro.
19700         (categories): New variable.
19701         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
19702         test_locale_name_default): Add test w.r.t. thread locale.
19703         (test_locale_name_thread): New function.
19704         (main): Invoke it.
19705
19706         localename: Make aware of thread locale.
19707         * lib/localename.h (gl_locale_name_thread): New declaration.
19708         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
19709         behaviour with respect to thread locale.
19710         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
19711         <langinfo.h>, glthread/lock.h.
19712         (SIZE_BITS): New macro.
19713         (string_hash): New function.
19714         (struct hash_node): New type.
19715         (HASH_TABLE_SIZE): New macro.
19716         (struniq_hash_table, struniq_lock): New variables.
19717         (struniq): New function.
19718         (gl_locale_name_thread): New function.
19719         (gl_locale_name): Invoke it.
19720         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
19721         * modules/localename (Depends-on): Add lock.
19722         Reported by Mike Gran <spk121@yahoo.com>.
19723
19724 2009-12-23  Eric Blake  <ebb9@byu.net>
19725
19726         va-args: new module
19727         * modules/va-args: New file.
19728         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
19729         * MODULES.html.sh (Core language properties): Mention it.
19730
19731         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
19732         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
19733         named alias for __attribute__((__unused__)).
19734         * lib/chown.c: Update client.
19735         * lib/fchmodat.c: Likewise.
19736         * lib/fts.c: Likewise.
19737         * lib/getdate.y: Likewise.
19738         * lib/getgroups.c: Likewise.
19739         * lib/getopt.c: Likewise.
19740         * lib/getugroups.c: Likewise.
19741         * lib/mkdir.c: Likewise.
19742         * lib/mkfifo.c: Likewise.
19743         * lib/mkfifoat.c: Likewise.
19744         * lib/mknod.c: Likewise.
19745         * lib/mknodat.c: Likewise.
19746         * lib/readlink.c: Likewise.
19747         * lib/se-context.in.h: Likewise.
19748         * lib/se-selinux.in.h: Likewise.
19749         * lib/sockets.c: Likewise.
19750         * lib/symlink.c: Likewise.
19751         * lib/symlinkat.c: Likewise.
19752         * lib/unicodeio.c: Likewise.
19753         * lib/unistr.h: Likewise.
19754         * tests/test-areadlink.c: Likewise.
19755         * tests/test-areadlinkat.c: Likewise.
19756         * tests/test-filenamecat.c: Likewise.
19757         * tests/test-fseeko.c: Likewise.
19758         * tests/test-ftello.c: Likewise.
19759         * tests/test-getdate.c: Likewise.
19760         * tests/test-getgroups.c: Likewise.
19761         * tests/test-gethostname.c: Likewise.
19762         * tests/test-quotearg.c: Likewise.
19763         * tests/test-version-etc.c: Likewise.
19764         * tests/test-xalloc-die.c: Likewise.
19765         * tests/test-xfprintf-posix.c: Likewise.
19766         * tests/test-xprintf-posix.c: Likewise.
19767         * tests/test-xvasprintf.c: Likewise.
19768
19769         tests: avoid compiler warnings
19770         * tests/test-fcntl.c (main): Delete unused parameters.
19771         * tests/test-freopen-safer.c (main): Likewise.
19772         * tests/test-xalloc-die.c (main): Mark unused parameters.
19773         * tests/test-fseeko.c (main): Likewise.
19774         * tests/test-ftello.c (main): Likewise.
19775         * tests/test-nanosleep.c (main): Avoid declaration warning.
19776         * tests/test-sleep.c (main): Likewise.
19777         * tests/test-unsetenv.c (main): Silence warning about string
19778         literal.
19779         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19780
19781 2009-12-23  Bruno Haible  <bruno@clisp.org>
19782
19783         * tests/test-localename.c (test_locale_name): New function, extracted
19784         from main. Also test mixed situations.
19785         (test_locale_name_posix, test_locale_name_environ,
19786         test_locale_name_default): New functions.
19787         (main): Invoke them all.
19788         * modules/localename-tests (configure.ac): Test for newlocale.
19789
19790 2009-12-23  Bruno Haible  <bruno@clisp.org>
19791
19792         unistd: Ensure getcwd gets declared before being overridden.
19793         * lib/unistd.in.h: Conditionally include <io.h>.
19794
19795 2009-12-22  Bruno Haible  <bruno@clisp.org>
19796
19797         wchar: Diagnose broken combination of glibc and gcc versions and flags.
19798         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
19799         (gl_WCHAR_H): Invoke it.
19800         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
19801         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
19802         Reported by Karl Berry <karl@freefriends.org>.
19803
19804 2009-12-22  Eric Blake  <ebb9@byu.net>
19805
19806         math, unistd: avoid redundant includes
19807         * lib/math.in.h (isnan): No need to re-include <math.h>.
19808         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
19809
19810         getsubopt: work around cygwin bug
19811         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
19812         avoid conflicting with system getsubopt.
19813         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
19814         bug.
19815
19816         getopt: synchronize from glibc
19817         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
19818         parameter order.  Adjust all callers.
19819         (_getopt_internal_r, main): Adjust quoting in error messages.
19820         Drop considerations for outdated POSIX 1003.2 error message.
19821         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
19822         callers.
19823         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
19824
19825         test-getopt: test stderr behavior
19826         * modules/getopt-posix-tests (Depends-on): Add dup2.
19827         * tests/test-getopt.c (ASSERT): Avoid stderr.
19828         (main): Move stderr to a temporary file.
19829         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
19830         Instead, add parameter to inform caller if output occurred.
19831         (test_getopt): Adjust all existing tests to expect silence, and
19832         add new tests of leading ":".
19833         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19834         glibc shortcomings with leading "-:" or "+:" in optstring.
19835         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19836         Likewise.
19837         * doc/posix-functions/getopt.texi (getopt): Likewise.
19838
19839         test-getopt: enhance test
19840         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
19841         supports optind=0.
19842         * tests/test-getopt.c (OPTIND_MIN): Move...
19843         * tests/test-getopt.h (OPTIND_MIN): ...here.
19844         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
19845         Require that optind=0 works, since modern BSD supports it in
19846         addition to optreset, and since coreutils expects it.
19847         (test_getopt_long_only): New test.
19848         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
19849         glibc shortcomings with 'W;', and enforcement of optind=0.
19850         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
19851         Likewise.
19852
19853 2009-12-21  Bruno Haible  <bruno@clisp.org>
19854
19855         localename: Improvements for MacOS X and Cygwin.
19856         * lib/localename.h (gl_locale_name_environ): New declaration.
19857         * lib/localename.c (gl_locale_name_environ): New function, extracted from
19858         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
19859         (gl_locale_name_posix): Invoke it.
19860         (gl_locale_name_default): Add comments. Use Windows native API also on
19861         Cygwin.
19862
19863 2009-12-21  Bruno Haible  <bruno@clisp.org>
19864
19865         Update list of Win32 locale ids.
19866         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
19867         (LANG_SAMI): Renamed from LANG_SAAMI.
19868         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
19869         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
19870         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
19871         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
19872         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
19873         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
19874         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
19875         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
19876         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
19877         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
19878         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
19879         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
19880         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
19881         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
19882         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
19883         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
19884         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
19885         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
19886         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
19887         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
19888         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
19889         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
19890         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
19891         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
19892         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
19893         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
19894         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
19895         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
19896         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
19897         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
19898         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
19899         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
19900         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
19901         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
19902         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
19903         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
19904         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
19905         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
19906         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
19907         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
19908         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
19909         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
19910         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
19911         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
19912         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
19913         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
19914         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
19915         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
19916         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
19917         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
19918         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
19919         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
19920         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
19921         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
19922         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
19923         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
19924         Add more languages and countries for Sami, Sorbian. Add more countries
19925         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
19926         for Pashto. Change country for Syriac, Tswana.
19927
19928 2009-12-21  Eric Blake  <ebb9@byu.net>
19929
19930         test-utimens: avoid spurious failure
19931         * tests/test-chown.h (nap): Factor...
19932         * tests/nap.h: ...into new file.
19933         * tests/test-lchown.h (nap): Avoid duplication.
19934         * tests/test-utimens-common.h (nap): Use shared implementation,
19935         necessary on file systems with 1-second resolution.
19936         * modules/chown-tests (Files): Include new file.
19937         * modules/fdutimensat-tests (Files): Likewise.
19938         * modules/futimens-tests (Files): Likewise.
19939         * modules/lchown-tests (Files): Likewise.
19940         * modules/openat-tests (Files): Likewise.
19941         * modules/utimens-tests (Files): Likewise.
19942         * modules/utimensat-tests (Files): Likewise.
19943
19944 2009-12-19  Eric Blake  <ebb9@byu.net>
19945
19946         futimens, utimensat: work around Linux bug
19947         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
19948         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19949         * lib/utimensat.c (rpl_utimensat): Work around it.
19950         * lib/futimens.c (rpl_futimens): Adjust comment.
19951
19952         utimens: work around Linux ctime bug
19953         * lib/utimens.c (detect_ctime_bug): New helper function.
19954         (update_timespec): Differentiate between workaround needed for
19955         this bug vs. what is needed for systems that lack utimensat.
19956         (fdutimens, lutimens): Work around bug.
19957
19958         utimens: check for ctime update
19959         * tests/test-utimens-common.h (check_ctime): Define.
19960         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
19961         * tests/test-futimens.h (test_futimens): Likewise.
19962         * tests/test-lutimens.h (test_lutimens): Likewise.
19963         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19964         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
19965
19966 2009-12-19  Bruno Haible  <bruno@clisp.org>
19967
19968         dprintf-posix: Check against memory leak fixed on 2009-12-15.
19969         * tests/test-dprintf-posix2.sh: New file.
19970         * tests/test-dprintf-posix2.c: New file.
19971         * modules/dprintf-posix-tests (Files): Add them.
19972         (configure.ac): Check for getrlimit and setrlimit.
19973         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19974
19975 2009-12-19  Bruno Haible  <bruno@clisp.org>
19976
19977         fprintf-posix: Check against memory leak fixed on 2009-12-15.
19978         * tests/test-fprintf-posix3.sh: New file.
19979         * tests/test-fprintf-posix3.c: New file.
19980         * modules/fprintf-posix-tests (Files): Add them.
19981         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
19982
19983 2009-12-19  Eric Blake  <ebb9@byu.net>
19984
19985         dirfd: fix prototype
19986         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
19987         * lib/dirfd.c (dirfd): Likewise.
19988
19989         canonicalize: reduce memory usage
19990         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
19991         allocation to size.
19992         Reported by Solar Designer <solar@openwall.com>.
19993
19994 2009-12-19  Bruno Haible  <bruno@clisp.org>
19995
19996         New module attribute 'Applicability'.
19997         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
19998         * gnulib-tool: New option --extract-applicability.
19999         (func_usage): Document it.
20000         (sed_extract_prog): Recognize it.
20001         (func_get_applicability): New function.
20002         (func_import): Generalize handling of 'link-warning' module.
20003         * modules/link-warning (Applicability): New section.
20004         * modules/arg-nonnull (Applicability): New section.
20005         Repoted by Simon Josefsson <simon@josefsson.org>.
20006
20007 2009-12-19  Bruno Haible  <bruno@clisp.org>
20008
20009         fflush: tweak
20010         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
20011         * lib/fseeko.c (rpl_fseeko): Likewise.
20012
20013 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
20014
20015         * lib/gl_list.h: Fix typo in comment.
20016
20017 2009-12-16  Eric Blake  <ebb9@byu.net>
20018
20019         fcntl: use to simplify other modules
20020         * modules/cloexec (Depends-on): Add fcntl.
20021         * modules/fchdir (Depends-on): Likewise.
20022         * modules/fd-safer-flag (Depends-on): Likewise.
20023         * modules/unistd-safer (Depends-on): Likewise.
20024         * modules/dup3 (configure.ac): Set module indicator.
20025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
20026         missing.
20027         * lib/fchdir.c (_gl_register_dup): Fix comment.
20028         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
20029         * lib/dup-safer.c (dup_safer): Likewise.
20030         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
20031         * lib/dup3.c (dup3): Likewise.
20032         * tests/test-fchdir.c (main): Enhance test.
20033         Fixes a dup_cloexec bug reported by Ondřej Vašík.
20034
20035         fcntl: port portions of fcntl to mingw
20036         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
20037         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
20038         replacement for mingw.
20039         * modules/fcntl (Description): Update.
20040         (Depends-on): Add dup2.
20041         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
20042         * modules/fcntl-h (Makefile.am): Substitute it.
20043         * lib/fcntl.in.h (fcntl): Update declaration.
20044         (F_DUPFD, F_GETFD): New macros, when needed.
20045         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20046         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
20047         * tests/test-fcntl.c (check_flags, main): Enhance test for items
20048         we now guarantee.
20049
20050         fcntl: work around cygwin bug in F_DUPFD
20051         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
20052         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
20053         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
20054         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
20055         * doc/posix-functions/fcntl.texi (fcntl): Document it.
20056
20057         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
20058         * modules/fcntl (Files): List new files.
20059         (configure.ac): Run a test.
20060         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
20061         * lib/fcntl.c (rpl_fcntl): Likewise.
20062         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
20063         (gl_FCNTL_H): Always replace fcntl.h.
20064         * modules/fcntl-h (Makefile.am): Substitute witnesses.
20065         * lib/fcntl.in.h (fcntl): Declare replacement.
20066         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
20067         needed, plus a witness.
20068         * doc/posix-functions/fcntl.texi (fcntl): Document this.
20069         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20070         * tests/test-fcntl.c: New file.
20071         * modules/fcntl-tests: Likewise.
20072
20073         binary-io: avoid potential compilation warning
20074         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
20075         directives.
20076
20077         fflush: avoid compilation error on NetBSD
20078         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
20079         between off_t and fpos_t, since the latter is sometimes a struct.
20080         * lib/fseeko.c (rpl_fseeko): Likewise.
20081         Reported by Alexander Nasonov <alnsn@yandex.ru>.
20082
20083 2009-12-15  Eric Blake  <ebb9@byu.net>
20084
20085         fcntl-h, stdio, sys_ioctl: fix declarations
20086         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
20087         function must not take arguments.
20088         * lib/sys_ioctl.in.h (ioctl): Likewise.
20089         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
20090         (open): Add a link warning.
20091
20092 2009-12-15  Jim Meyering  <meyering@redhat.com>
20093
20094         areadlink, areadlink-with-size: relax license to LGPLv2+
20095         * modules/areadlink (License): Relax to LGPLv2+.
20096         * modules/areadlink-with-size (License): Likewise.
20097
20098 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
20099             Bruno Haible  <bruno@clisp.org>
20100
20101         *printf: Fix memory leak.
20102         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
20103         * lib/vfprintf.c (vfprintf): Likewise.
20104         * lib/dprintf.c (dprintf): Likewise.
20105         * lib/vdprintf.c (vdprintf): Likewise.
20106
20107 2009-12-14  Eric Blake  <ebb9@byu.net>
20108
20109         accept4: adjust module dependencies
20110         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
20111
20112         utimens: one more try at avoiding compiler warning
20113         * lib/utimens.c (lutimens): Lower scope of result.
20114
20115 2009-12-13  Bruno Haible  <bruno@clisp.org>
20116
20117         Move the malloc checking from module 'list' to new module 'xlist'.
20118         * modules/xlist: New file.
20119         * lib/gl_xlist.h: New file.
20120         * lib/gl_xlist.c: New file.
20121         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
20122         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
20123         gl_list_add_last, gl_list_add_before, gl_list_add_after,
20124         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
20125         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
20126         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
20127         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
20128         gl_sortedlist_nx_add): New declarations.
20129         (struct gl_list_implementation): Rename and change methods accordingly.
20130         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
20131         (gl_list_nx_create): Renamed from gl_list_create.
20132         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20133         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20134         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20135         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20136         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20137         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20138         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20139         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20140         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
20141         gl_list_create_empty.
20142         (gl_list_nx_create): Renamed from gl_list_create.
20143         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20144         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20145         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20146         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20147         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20148         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20149         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20150         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20151         * lib/gl_array_list.c: Don't include xalloc.h.
20152         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20153         NULL upon out-of-memory.
20154         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20155         out-of-memory.
20156         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20157         Change return type to 'int'.
20158         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20159         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20160         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20161         upon out-of-memory.
20162         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20163         upon out-of-memory.
20164         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20165         upon out-of-memory.
20166         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20167         upon out-of-memory.
20168         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20169         out-of-memory.
20170         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20171         Update.
20172         (gl_array_list_implementation): Update.
20173         * lib/gl_carray_list.c: Don't include xalloc.h.
20174         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20175         Return NULL upon out-of-memory.
20176         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20177         out-of-memory.
20178         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20179         Change return type to 'int'.
20180         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20181         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20182         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20183         upon out-of-memory.
20184         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20185         upon out-of-memory.
20186         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20187         out-of-memory.
20188         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20189         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20190         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20191         Update.
20192         (gl_carray_list_implementation): Update.
20193         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20194         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20195         gl_linked_create_empty. Return NULL upon out-of-memory.
20196         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20197         out-of-memory.
20198         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20199         Change return type to 'int'. Return -1 upon out-of-memory.
20200         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20201         out-of-memory.
20202         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20203         upon out-of-memory.
20204         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20205         upon out-of-memory.
20206         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20207         NULL upon out-of-memory.
20208         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20209         upon out-of-memory.
20210         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20211         out-of-memory.
20212         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20213         Update.
20214         * lib/gl_linked_list.c: Don't include xalloc.h.
20215         (gl_linked_list_implementation): Update.
20216         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20217         (add_to_bucket): Change return type to 'int'.
20218         (gl_linkedhash_list_implementation): Update.
20219         * lib/gl_anytree_list1.h (free_subtree): New function.
20220         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20221         gl_tree_create_empty. Return NULL upon out-of-memory.
20222         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20223         Change return type to 'int'. Return -1 upon out-of-memory.
20224         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20225         out-of-memory.
20226         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20227         (gl_tree_remove_node): New function, moved here from
20228         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20229         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20230         Update.
20231         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20232         malloc, not xmalloc. Return NULL upon out-of-memory.
20233         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20234         out-of-memory.
20235         (gl_tree_remove_node_from_tree): New function, extracted from
20236         gl_tree_remove_node.
20237         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20238         upon out-of-memory.
20239         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20240         out-of-memory.
20241         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20242         upon out-of-memory.
20243         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20244         upon out-of-memory.
20245         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20246         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20247         not xmalloc. Return NULL upon out-of-memory.
20248         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20249         out-of-memory.
20250         (gl_tree_remove_node_from_tree): New function, extracted from
20251         gl_tree_remove_node.
20252         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20253         upon out-of-memory.
20254         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20255         out-of-memory.
20256         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20257         upon out-of-memory.
20258         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20259         upon out-of-memory.
20260         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20261         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20262         gl_anytree_list1.h before gl_anyavltree_list2.h.
20263         (gl_avltree_list_implementation): Update.
20264         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20265         gl_anytree_list1.h before gl_anyavltree_list2.h.
20266         (gl_rbtree_list_implementation): Update.
20267         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20268         Change return type to 'int'. Return -1 upon out-of-memory. Use
20269         __builtin_expect.
20270         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20271         (gl_avltreehash_list_implementation): Update.
20272         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20273         (gl_rbtreehash_list_implementation): Update.
20274         * modules/array-list (Depends-on): Remove xalloc.
20275         * modules/carray-list (Depends-on): Likewise.
20276         * modules/linked-list (Depends-on): Likewise.
20277         * modules/linkedhash-list (Depends-on): Likewise.
20278         * modules/avltree-list (Depends-on): Likewise.
20279         * modules/rbtree-list (Depends-on): Likewise.
20280         * modules/avltreehash-list (Depends-on): Likewise.
20281         * modules/rbtreehash-list (Depends-on): Likewise.
20282
20283         * modules/xsublist: New file.
20284         * lib/gl_xsublist.h: New file.
20285         * lib/gl_xsublist.c: New file.
20286         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20287         (gl_sublist_nx_create): New declaration.
20288         * lib/gl_sublist.c: Don't include xalloc.h.
20289         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20290         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20291         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20292         Change return type to 'int'. Return -1 upon out-of-memory.
20293         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20294         upon out-of-memory.
20295         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20296         NULL upon out-of-memory.
20297         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20298         upon out-of-memory.
20299         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20300         NULL upon out-of-memory.
20301         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20302         NULL upon out-of-memory.
20303         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20304         upon out-of-memory.
20305         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20306         (gl_sublist_list_implementation): Update.
20307         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20308         upon out-of-memory.
20309         * modules/sublist (Depends-on): Remove xalloc.
20310
20311         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20312         * tests/test-carray_list.c: Likewise.
20313         * tests/test-linked_list.c: Likewise.
20314         * tests/test-linkedhash_list.c: Likewise.
20315         * tests/test-avltree_list.c: Likewise.
20316         * tests/test-rbtree_list.c: Likewise.
20317         * tests/test-avltreehash_list.c: Likewise.
20318         * tests/test-rbtreehash_list.c: Likewise.
20319         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20320         * modules/carray-list-tests (Makefile.am): Likewise.
20321         * modules/linked-list-tests (Makefile.am): Likewise.
20322         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20323         * modules/avltree-list-tests (Makefile.am): Likewise.
20324         * modules/rbtree-list-tests (Makefile.am): Likewise.
20325         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20326         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20327
20328         * NEWS: Mention the changes.
20329
20330         * lib/clean-temp.c: Include gl_xlist.h.
20331         * modules/clean-temp (Depends-on): Add xlist.
20332
20333         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20334         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20335
20336         * tests/test-array_oset.c: Include gl_xlist.h.
20337         * modules/array-oset-tests (Depends-on): Add xlist.
20338
20339         Reported by José E. Marchesi <jemarch@gnu.org>.
20340
20341 2009-12-13  Bruno Haible  <bruno@clisp.org>
20342
20343         Move the malloc checking from module 'oset' to new module 'xoset'.
20344         * modules/xoset: New file.
20345         * lib/gl_xoset.h: New file.
20346         * lib/gl_xoset.c: New file.
20347         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20348         declarations.
20349         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20350         (struct gl_oset_implementation): Rename and change methods accordingly.
20351         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20352         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20353         'int'. Mark as __warn_unused_result__.
20354         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20355         gl_oset_create_empty.
20356         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20357         'int'.
20358         * lib/gl_array_oset.c: Don't include xalloc.h.
20359         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20360         malloc, not xmalloc.
20361         (grow): Change return type to 'int'. Don't call xalloc_die.
20362         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20363         to 'int'.
20364         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20365         'int'.
20366         (gl_array_oset_implementation): Update.
20367         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20368         gl_tree_create_empty.
20369         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20370         'int'.
20371         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20372         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20373         xmalloc.
20374         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20375         not xmalloc.
20376         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20377         xmalloc.
20378         (gl_avltree_oset_implementation): Update.
20379         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20380         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20381         xmalloc.
20382         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20383         not xmalloc.
20384         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20385         xmalloc.
20386         (gl_rbtree_oset_implementation): Update.
20387         * modules/array-oset (Depends-on): Remove xalloc.
20388         * modules/avltree-oset (Depends-on): Likewise.
20389         * modules/rbtree-oset (Depends-on): Likewise.
20390         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20391         * tests/test-avltree_oset.c: Likewise.
20392         * tests/test-rbtree_oset.c: Likewise.
20393         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20394         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20395         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20396         * NEWS: Mention the change.
20397
20398 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20399
20400         maint.mk: allow a project to override release-prep commands
20401         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20402         commands into a new rule.
20403         (release-prep): New rule.
20404         (release-prep-hook): New overridable variable.
20405
20406 2009-12-13  Bruno Haible  <bruno@clisp.org>
20407
20408         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20409
20410 2009-12-13  Jim Meyering  <meyering@redhat.com>
20411
20412         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20413         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20414
20415 2009-12-12  Bruno Haible  <bruno@clisp.org>
20416
20417         duplocale: Tweak.
20418         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20419
20420 2009-12-12  Karl Berry  <karl@gnu.org>
20421
20422         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20423
20424 2009-12-12  Bruno Haible  <bruno@clisp.org>
20425
20426         * m4/po.m4: Undo incorrect untabification.
20427
20428 2009-12-12  Bruno Haible  <bruno@clisp.org>
20429
20430         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20431         * modules/c-strtod (Depends-on): Add locale.
20432         * modules/c-strtold (Depends-on): Likewise.
20433
20434 2009-12-12  Bruno Haible  <bruno@clisp.org>
20435
20436         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20437
20438 2009-12-11  Eric Blake  <ebb9@byu.net>
20439
20440         setenv: relax requirement in light of POSIX ruling
20441         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20442         not NULL.
20443         * tests/test-setenv.c (main): Relax test.
20444         * tests/test-unsetenv.c (main): Likewise.
20445         * doc/posix-functions/setenv.texi (setenv): Document this.
20446         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20447
20448 2009-12-11  Bruno Haible  <bruno@clisp.org>
20449
20450         New module 'fd-safer-flag'.
20451         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20452         * lib/dup-safer.c (dup_safer_flag): Remove function.
20453         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20454         * lib/fd-safer.c (fd_safer_flag): Remove function.
20455         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20456         * modules/cloexec (configure.ac): Drop indicator macro.
20457         * modules/fd-safer-flag: New file.
20458         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20459         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20460         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20461
20462 2009-12-11  Bruno Haible  <bruno@clisp.org>
20463
20464         Tests for module 'nl_langinfo'.
20465         * modules/nl_langinfo-tests: New file.
20466         * tests/test-nl_langinfo.sh: New file.
20467         * tests/test-nl_langinfo.c: New file.
20468
20469         New module 'nl_langinfo'.
20470         * lib/nl_langinfo.c: New file.
20471         * m4/nl_langinfo.m4: New file.
20472         * modules/nl_langinfo: New file.
20473         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20474
20475 2009-12-11  Bruno Haible  <bruno@clisp.org>
20476
20477         Tests for module 'langinfo'.
20478         * modules/langinfo-tests: New file.
20479         * tests/test-langinfo.c: New file.
20480
20481         New module 'langinfo'.
20482         * lib/langinfo.in.h: New file.
20483         * m4/langinfo_h.m4: New file.
20484         * modules/langinfo: New file.
20485         * doc/posix-headers/langinfo.texi: Mention the new module.
20486
20487 2009-12-11  Bruno Haible  <bruno@clisp.org>
20488
20489         * lib/config.charset: Untabify.
20490
20491 2009-12-11  Bruno Haible  <bruno@clisp.org>
20492
20493         * modules/unistd-safer (configure.ac): Drop indicator macro.
20494
20495 2009-12-11  Bruno Haible  <bruno@clisp.org>
20496
20497         Move pipe2-safer code to its own file.
20498         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20499         * lib/pipe-safer.c (pipe2_safer): Remove function.
20500         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20501         (Makefile.am): Add it to lib_SOURCES.
20502
20503 2009-12-10  Bruno Haible  <bruno@clisp.org>
20504
20505         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20506
20507 2009-12-10  Bruno Haible  <bruno@clisp.org>
20508
20509         Declare which arguments expect non-NULL values, for GCC and clang.
20510         * build-aux/arg-nonnull.h: New file.
20511         * modules/arg-nonnull: New file.
20512         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20513         (inet_ntop, inet_pton): Use it.
20514         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20515         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20516         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20517         (open, openat): Use it.
20518         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20519         (fnmatch): Use it.
20520         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20521         (getopt, getopt_long, getopt_long_only): Use it.
20522         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20523         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20524         Use it.
20525         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20526         (iconv_open): Use it.
20527         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20528         (strtoimax, strtoumax): Use it.
20529         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
20530         (duplocale): Use it.
20531         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
20532         (frexp, frexpl): Use it.
20533         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20534         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20535         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20536         (tsearch, tfind, tdelete, twalk): Use it.
20537         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20538         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20539         sigpending): Use it.
20540         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20541         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20542         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20543         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20544         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20545         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20546         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20547         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20548         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20549         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20550         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20551         Use it.
20552         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20553         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20554         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20555         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20556         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20557         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20558         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20559         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20560         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20561         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20562         strtoull, unsetenv): Use it.
20563         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20564         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20565         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20566         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20567         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20568         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20569         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20570         (strcasecmp, strncasecmp): Use it.
20571         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20572         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20573         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20574         rpl_setsockopt): Use it.
20575         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20576         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20577         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20578         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20579         (gettimeofday): Use it.
20580         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20581         (times): Use it.
20582         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20583         (uname): Use it.
20584         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20585         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20586         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20587         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20588         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20589         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20590         unlinkat, write): Use it.
20591         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20592         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20593         * lib/argv-iter.h: Include arg-nonnull.h.
20594         (_ATTRIBUTE_NONNULL_): Remove macro.
20595         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
20596         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
20597         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
20598         optimization.
20599         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
20600         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
20601         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
20602         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
20603         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
20604         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
20605         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
20606         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
20607         * modules/arpa_inet (Depends-on): Add arg-nonnull.
20608         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
20609         * modules/dirent (Depends-on): Add arg-nonnull.
20610         (Makefile.am): Insert arg-nonnull.h into dirent.h.
20611         * modules/fcntl-h (Depends-on): Add arg-nonnull.
20612         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
20613         * modules/fnmatch (Depends-on): Add arg-nonnull.
20614         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
20615         * modules/getopt-posix (Depends-on): Add arg-nonnull.
20616         (Makefile.am): Insert arg-nonnull.h into getopt.h.
20617         * modules/glob (Depends-on): Add arg-nonnull.
20618         (Makefile.am): Insert arg-nonnull.h into glob.h.
20619         * modules/iconv_open (Depends-on): Add arg-nonnull.
20620         (Makefile.am): Insert arg-nonnull.h into iconv.h.
20621         * modules/inttypes (Depends-on): Add arg-nonnull.
20622         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
20623         * modules/locale (Depends-on): Add arg-nonnull.
20624         (Makefile.am): Insert arg-nonnull.h into locale.h.
20625         * modules/math (Depends-on): Add arg-nonnull.
20626         (Makefile.am): Insert arg-nonnull.h into math.h.
20627         * modules/netdb (Depends-on): Add arg-nonnull.
20628         (Makefile.am): Insert arg-nonnull.h into netdb.h.
20629         * modules/search (Depends-on): Add arg-nonnull.
20630         (Makefile.am): Insert arg-nonnull.h into search.h.
20631         * modules/signal (Depends-on): Add arg-nonnull.
20632         (Makefile.am): Insert arg-nonnull.h into signal.h.
20633         * modules/spawn (Depends-on): Add arg-nonnull.
20634         (Makefile.am): Insert arg-nonnull.h into spawn.h.
20635         * modules/stdio (Depends-on): Add arg-nonnull.
20636         (Makefile.am): Insert arg-nonnull.h into stdio.h.
20637         * modules/stdlib (Depends-on): Add arg-nonnull.
20638         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
20639         * modules/string (Depends-on): Add arg-nonnull.
20640         (Makefile.am): Insert arg-nonnull.h into string.h.
20641         * modules/strings (Depends-on): Add arg-nonnull.
20642         (Makefile.am): Insert arg-nonnull.h into strings.h.
20643         * modules/sys_socket (Depends-on): Add arg-nonnull.
20644         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
20645         * modules/sys_stat (Depends-on): Add arg-nonnull.
20646         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
20647         * modules/sys_time (Depends-on): Add arg-nonnull.
20648         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
20649         * modules/sys_times (Depends-on): Add arg-nonnull.
20650         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
20651         * modules/sys_utsname (Depends-on): Add arg-nonnull.
20652         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
20653         * modules/time (Depends-on): Add arg-nonnull.
20654         (Makefile.am): Insert arg-nonnull.h into time.h.
20655         * modules/unistd (Depends-on): Add arg-nonnull.
20656         (Makefile.am): Insert arg-nonnull.h into unistd.h.
20657         * modules/wchar (Depends-on): Add arg-nonnull.
20658         (Makefile.am): Insert arg-nonnull.h into wchar.h.
20659         * modules/argv-iter (Depends-on): Add arg-nonnull.
20660         * tests/test-canonicalize.c (null_ptr): New function.
20661         (main): Use it.
20662         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
20663         (main): Use it.
20664         * tests/test-memmem.c (null_ptr): New function.
20665         (main): Use it.
20666         Reported by Jim Meyering.
20667
20668 2009-12-10  Bruno Haible  <bruno@clisp.org>
20669
20670         Use spaces for indentation, not tabs.
20671         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
20672         * m4/*.m4: Untabify.
20673         * build-aux/*.h: Untabify.
20674         * tests/**/*.[hc]: Untabify.
20675         * README: New section "Indent with spaces, not TABs", based on
20676         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
20677         * NEWS: Mention the change.
20678
20679 2009-12-10  Bruno Haible  <bruno@clisp.org>
20680
20681         pty test: Fix link error.
20682         * modules/pty-tests (Makefile.am): Add the default LDADD value to
20683         test_pty_LDADD.
20684
20685 2009-12-07  Simon Josefsson  <simon@josefsson.org>
20686
20687         * modules/pty: New file.
20688         * modules/pty-tests: New file.
20689         * m4/pty.m4: New file.
20690         * tests/test-pty.c: New file.
20691         * doc/glibc-headers/pty.texi: Modified.
20692         * doc/glibc-functions/forkpty.texi: Modified.
20693         * doc/glibc-functions/openpty.texi: Modified.
20694
20695 2009-12-10  Bruno Haible  <bruno@clisp.org>
20696
20697         Avoid syntax error in C++ mode.
20698         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
20699
20700 2009-12-10  Bruno Haible  <bruno@clisp.org>
20701
20702         Use sed with option -e.
20703         * gnulib-tool (func_version, func_emit_copyright_notice,
20704         func_emit_initmacro_end, func_import, func_create_testdir): Pass
20705         option -e to sed.
20706         * modules/link-warning (Makefile.am): Likewise.
20707
20708 2009-12-10  Jim Meyering  <meyering@redhat.com>
20709
20710         mgetgroups: do not write bytes beyond end of malloc'd buffer
20711         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
20712         username, we call getgroups with a one-element-shorter buffer,
20713         but still told it the length was original, max_n_groups.
20714
20715 2009-12-09  Eric Blake  <ebb9@byu.net>
20716
20717         cloexec: relax license
20718         * modules/cloexec (Maintainer): Add myself.
20719         (License): Use LGPL, not GPL.
20720
20721         link-warning: optimize generation
20722         * modules/link-warning (Makefile.am): Reduce process usage.
20723
20724 2009-12-09  Bruno Haible  <bruno@clisp.org>
20725
20726         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
20727         workaround was added on 2009-11-17.
20728
20729 2009-12-09  Jim Meyering  <meyering@redhat.com>
20730             Bruno Haible  <bruno@clisp.org>
20731
20732         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
20733         * modules/link-warning (Makefile.am): Make the comment-removing sed
20734         command more robust in the face of bootstrap-prepended comment lines.
20735
20736 2009-12-09  Bruno Haible  <bruno@clisp.org>
20737
20738         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
20739         most one group.
20740
20741 2009-12-09  Simon Josefsson <simon@josefsson.org>
20742             Bruno Haible  <bruno@clisp.org>
20743
20744         * build-aux/link-warning.h: Add copyright notice.
20745         * modules/link-warning (Makefile.am): Generate link-warning.h from
20746         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
20747         * NEWS: Mention change in link-warning module.
20748         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
20749         * modules/dirent (Makefile.am): Add dependency to dirent.h.
20750         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
20751         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
20752         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
20753         * modules/math (Makefile.am): Add dependency to math.h.
20754         * modules/search (Makefile.am): Add dependency to search.h.
20755         * modules/signal (Makefile.am): Add dependency to signal.h.
20756         * modules/spawn (Makefile.am): Add dependency to spawn.h.
20757         * modules/stdio (Makefile.am): Add dependency to stdio.h.
20758         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
20759         * modules/string (Makefile.am): Add dependency to string.h.
20760         * modules/strings (Makefile.am): Add dependency to strings.h.
20761         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
20762         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
20763         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
20764         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
20765         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
20766         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
20767         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
20768         * modules/unistd (Makefile.am): Add dependency to unistd.h.
20769         * modules/wchar (Makefile.am): Add dependency to wchar.h.
20770
20771 2009-12-09  Bruno Haible  <bruno@clisp.org>
20772
20773         fchdir: Optimize away rpl_fstat when possible.
20774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
20775         REPLACE_OPEN_DIRECTORY.
20776         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
20777
20778 2009-12-09  Bruno Haible  <bruno@clisp.org>
20779
20780         * lib/fchdir.c: Update comment.
20781
20782 2009-12-09  Bruno Haible  <bruno@clisp.org>
20783
20784         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
20785
20786 2009-12-08  Eric Blake  <ebb9@byu.net>
20787
20788         fchdir: avoid memory leak on re-registration.
20789         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
20790
20791 2009-12-08  Jim Meyering  <meyering@redhat.com>
20792
20793         init.sh: avoid Solaris 10 /bin/sh portability problem
20794         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
20795         sourced script:
20796           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
20797           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
20798           bar
20799         tests/init.sh relied on that, accepting a --set-path=DIR argument,
20800         and two tests used that idiom.
20801         * tests/init.sh: Update suggested usage comments.
20802         (path_prepend_): New function, to be used in place
20803         of the --src-path=DIR option.
20804         (setup_): Move PATH-prepending code into path_prepend_.
20805         * tests/test-pread.sh: Adapt to new usage.
20806         * tests/test-xalloc-die.sh: Likewise.
20807
20808 2009-12-08  Simon Josefsson  <simon@josefsson.org>
20809
20810         * doc/gnulib.texi (Glibc pty.h): Add.
20811         * doc/glibc-functions/forkpty.texi: Add.
20812         * doc/glibc-functions/openpty.texi: Add.
20813         Suggested by Bruno Haible.
20814
20815 2009-12-08  Eric Blake  <ebb9@byu.net>
20816
20817         fchdir: fix logic bugs
20818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
20819         * tests/test-fchdir.c (main): Enhance test.
20820         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
20821         is in use.
20822
20823         dup2: fix logic bugs
20824         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
20825         REPLACE_DUP2 to decide when rpl_dup2 is needed.
20826         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
20827         exists.
20828         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
20829
20830 2009-12-07  Eric Blake  <ebb9@byu.net>
20831
20832         unlink: fix m4 detection
20833         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
20834
20835         unistd-safer: add unit test
20836         * modules/unistd-safer-tests: New file.
20837         * tests/test-dup-safer.c: Likewise.
20838         * tests/test-cloexec.c (setmode): Avoid compiler warning.
20839         * tests/test-dup2.c (setmode): Likewise.
20840         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
20841
20842         cloexec: preserve text vs. binary across dup_cloexec
20843         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
20844         mode.
20845         * modules/dup2-tests (Depends-on): Add binary-io.
20846         * modules/cloexec-tests (Depends-on): Likewise.
20847         * tests/test-dup2.c (setmode, is_mode): New helpers.
20848         (main): Add tests that translation mode is preserved.
20849         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
20850         Reported by Bruno Haible.
20851
20852         mgetgroups: reduce duplicate listings
20853         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
20854         resulting array.
20855         * tests/test-chown.h (test_chown): Simplify client.
20856         * tests/test-lchown.h (test_lchown): Likewise.
20857
20858 2009-12-06  Bruno Haible  <bruno@clisp.org>
20859
20860         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
20861         value.
20862
20863 2009-12-06  Bruno Haible  <bruno@clisp.org>
20864
20865         * lib/progname.c: Include stdio.h, stdlib.h.
20866         (set_program_name): Reject a NULL argument.
20867
20868 2009-12-05  Eric Blake  <ebb9@byu.net>
20869
20870         pipe2-safer: new module
20871         * modules/pipe2-safer: New file.
20872         * lib/unistd-safer.h (pipe2_safer): New prototype.
20873         * lib/unistd--.h (pipe2): New wrapper.
20874         * lib/pipe-safer.c (pipe2_safer): New function.
20875         * modules/pipe (Depends-on): Add pipe2-safer.
20876         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
20877
20878         stdlib-safer: preserve cloexec flag for mkostemp[s]
20879         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
20880         fd_safer_flag.
20881
20882         unistd-safer: allow preservation of cloexec status via flag
20883         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
20884         prototypes.
20885         * lib/dup-safer.c (dup_safer_flag): New function.
20886         * lib/fd-safer.c (fd_safer_flag): Likewise.
20887         * modules/cloexec (configure.ac): Set witness.
20888
20889         test-dup2: enhance test
20890         * modules/dup2-tests (Depends-on): Add cloexec.
20891         * tests/test-dup2.c (main): Enhance test.
20892
20893         cloexec: add dup_cloexec
20894         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
20895         header and comments.
20896         * lib/cloexec.c (set_cloexec_flag): Add comments.
20897         (dup_cloexec): New function, with mingw implementation borrowed
20898         from...
20899         * lib/w32spawn.h (dup_noinherit): ...here.
20900         * modules/execute (Depends-on): Add cloexec.
20901         * modules/pipe (Depends-on): Likewise.
20902         * modules/cloexec (Depends-on): Add dup2.
20903         * modules/cloexec-tests (Files): New file.
20904         * tests/test-cloexec.c: Likewise.
20905
20906         test-xalloc-die: fix test for mingw
20907         * modules/xalloc-die-tests (Files): Add tests/init.sh.
20908         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
20909         directory and .exe suffix off argv[0] output.
20910
20911         test-fseeko: fix test for mingw
20912         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
20913         than undefining fseek, so test will pass on mingw.
20914
20915 2009-12-05  Bruno Haible  <bruno@clisp.org>
20916
20917         * lib/progname.h (set_program_name): Clarify specification.
20918         * lib/progname.c (set_program_name): Likewise.
20919         Reported by Jim Meyering.
20920
20921 2009-12-05  Jim Meyering  <meyering@redhat.com>
20922
20923         maint.mk: backslash-escape parens in default regexp
20924         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
20925         backslash-escape the literal parentheses.
20926
20927         maint.mk: news-date-check: use grep -E
20928         * top/maint.mk (today): Define a Make variable, not a...
20929         (news-date-check): ...shell variable.
20930         (news-date-regexp): Use the Make variable.
20931         Use grep's -E option.  Change the failing diagnostic to mention
20932         the variable, $(news-date-regexp).
20933
20934 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
20935
20936         maintainer-makefile: allow customization of NEWS entry format
20937         * top/maint.mk (news-date-regexp): New overridable variable.
20938         (news-date-check): Use it.
20939
20940 2009-12-04  Eric Blake  <ebb9@byu.net>
20941
20942         mgetgroups: add xgetgroups, and avoid ENOSYS failures
20943         * lib/mgetgroups.h (xgetgroups): New prototype.
20944         * lib/mgetgroups.c (xgetgroups): New wrapper.
20945         (mgetgroups): Handle ENOSYS.
20946         * modules/mgetgroups (Depends-on): Add realloc.
20947         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
20948
20949         mgetgroups: avoid argument promotion issues with -1
20950         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
20951         for invalid gid_t.
20952         * tests/test-chown.h (getegid, test_chown): Likewise.
20953         * tests/test-lchown.h (getegid, test_lchown): Likewise.
20954
20955 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
20956
20957         exclude: Fix header file problems.
20958         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
20959
20960 2009-12-01  Jim Meyering  <meyering@redhat.com>
20961
20962         fts: fts_open: do not let an empty string cause immediate failure
20963         This is required in support of GNU rm, for which the command
20964         "rm A '' B" must process and remove both A and B, in spite of
20965         the empty string argument.
20966         * lib/fts.c (fts_open): Do not let the presence of an empty string
20967         cause fts_open to fail immediately.  Most fts-using tools must be
20968         able to process all arguments, in order, and can be expected to
20969         diagnose such arguments themselves.
20970
20971 2009-11-30  Eric Blake  <ebb9@byu.net>
20972
20973         utimens: fix compilation error
20974         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
20975         Declare variable at right scope.
20976
20977 2009-11-29  Jim Meyering  <meyering@redhat.com>
20978
20979         bootstrap: handle perl-5.11's changed --version output
20980         * build-aux/bootstrap (get_version): Handle perl separately,
20981         since perl-5.11's --version output is different.
20982
20983 2009-11-28  Jim Meyering  <meyering@redhat.com>
20984
20985         userspec: depend on the inttostr module, too
20986         * modules/userspec (Depends-on): Add inttostr.
20987
20988         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
20989         * lib/userspec.c (parse_with_separator): Do not accept a user ID
20990         number of MAXUID when it evaluates to (uid_t) -1.
20991         Likewise for group ID.  Reported by Matt McCutchen in
20992         <http://savannah.gnu.org/bugs/?28113>
20993
20994         userspec: reformat to use spaces, not TABs
20995         * lib/userspec.c: Expand TABs to spaces.
20996         Add Emacs' "indent-tabs-mode: nil" hint.
20997
20998 2009-11-27  Eric Blake  <ebb9@byu.net>
20999
21000         getopt-gnu: flush out another BSD bug
21001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
21002         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
21003         flush out BSD bug.
21004         * tests/test-getopt.h (test_getopt): End lists with NULL.
21005         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21006         (test_getopt_long_posix): Enhance test.
21007         * modules/getopt-posix-tests (Depends-on): Add stdbool.
21008         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
21009         getopt-gnu.
21010         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21011         Likewise.
21012
21013 2009-11-27  Simon Josefsson  <simon@josefsson.org>
21014
21015         * modules/idpriv-droptemp-tests (Notice): Fix text.
21016
21017 2009-11-27  Jim Meyering  <meyering@redhat.com>
21018
21019         test-xalloc-die: avoid spurious failure due to libtool argv difference
21020         In a libtool-enabled project, this test would fail due to a difference
21021         in the emitted program name, e.g.,
21022         -test-xalloc-die: memory exhausted
21023         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
21024         Use program to avoid that.
21025         * modules/xalloc-die-tests (Depends-on): Add progname.
21026         * tests/test-xalloc-die.c: Include progname.h".
21027         (program_name): Remove decl.
21028         (main): Call set_program_name.
21029         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
21030
21031 2009-11-26  Richard Jones  <rjones@redhat.com>
21032
21033         w32sock: leave win32 error in place.
21034         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
21035
21036 2009-11-26  Eric Blake  <ebb9@byu.net>
21037
21038         init.sh: suggest to use skip_ and fail_ functions in comments
21039         * tests/init.sh: Add a sentence.
21040
21041 2009-11-25  Bruno Haible  <bruno@clisp.org>
21042
21043         init.sh: add documentation in comments
21044         * tests/init.sh: Add some developer and user documentation.
21045
21046 2009-11-26  Jim Meyering  <meyering@redhat.com>
21047
21048         init.sh: accommodate even those who specify bogus srcdir manually
21049         * tests/init.sh: Normally, srcdir is guaranteed by automake and
21050         configure-time tests to be sanitized, so that there is no need to
21051         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
21052         (with no double quotes) suffices.  However, since tests may be
21053         invoked manually, and since you may explicitly set srcdir to the
21054         name of a directory containing spaces, do quote its uses here.
21055         * tests/test-pread.sh: Likewise.
21056         Suggested by Bruno Haible.
21057
21058         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
21059         * tests/test-pread.sh: Write no data into the pipe, because
21060         test-pread actually reads none.  This avoids a diagnostic,
21061         "bash: echo: write error: Broken pipe", that arises in the unusual
21062         event something is ignoring SIGPIPE, and might be interpreted
21063         as some sort of failure.  Reported by Bruno Haible.
21064
21065 2009-11-25  Jim Meyering  <meyering@redhat.com>
21066
21067         test-pread: cover failure with ESPIPE and EINVAL
21068         * tests/test-pread.c (main): Test for failure, too.
21069         * tests/test-pread.sh: Invoke with stdin on a pipe.
21070         Suggested by Eric Blake.
21071
21072         pread: improvement and fix
21073         * modules/pread (Depends-on): Depend on lseek, for portability to
21074         e.g., mingw.  Suggested by Eric Blake.
21075         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
21076
21077         unistd.in.h: correct declaration of pread
21078         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
21079         Reported by Richard W.M. Jones.
21080
21081         test-pread.sh: distribute the test script
21082         * modules/pread-tests (Files): Include test-pread.sh.
21083
21084         test-pread.sh: clean up
21085         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
21086         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
21087         That is unnecessary, since it's always ".".
21088         Suggestion from Eric Blake.
21089
21090         test-pread.sh: make executable
21091         * tests/test-pread.sh: Set executable bit.
21092         Reported by Eric Blake.
21093
21094         correct typo in test-pread.sh
21095         * tests/test-pread.sh: Add #! line.
21096
21097         test pread
21098         * tests/test-pread.c: New file.
21099         * tests/test-pread.sh: Likewise.
21100         * modules/pread-tests: Likewise.
21101
21102         pread: new module
21103         * modules/pread: New file.
21104         * lib/unistd.in.h (pread): Define/declare.
21105         * lib/pread.c (pread): New file.
21106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
21107         * modules/unistd (Makefile.am): Substitute witnesses.
21108         * doc/posix-functions/pread.texi (pread): Update.
21109         * MODULES.html.sh: Add pread.
21110
21111 2009-11-25  Jim Meyering  <meyering@redhat.com>
21112
21113         tests/init.sh: new file to be used via most *.sh tests
21114         * tests/init.sh: New file.
21115
21116 2009-11-25  Eric Blake  <ebb9@byu.net>
21117
21118         utimens: work around older Linux failure with symlinks
21119         * lib/utimens.c (lutimensat_works_really): New variable.
21120         (fdutimens, lutimens): Use it to manage kernels that support
21121         nanosecond times on files, but not on symlinks.
21122         Reported by Ondřej Vašík.
21123
21124         utimes: fix configure grammar
21125         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
21126
21127 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
21128
21129         regex: Fix fastmap for multibyte character ranges.
21130         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
21131         characters when a multibyte character range is included.
21132
21133 2009-11-22  Andy Wingo  <wingo@pobox.com>
21134
21135         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
21136         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
21137
21138 2009-11-24  Bruno Haible  <bruno@clisp.org>
21139
21140         doc: Most *_l functions exist in MacOS X 10.5.
21141         * doc/posix-functions/duplocale.texi: Update platforms list.
21142         * doc/posix-functions/freelocale.texi: Likewise.
21143         * doc/posix-functions/newlocale.texi: Likewise.
21144         * doc/posix-functions/uselocale.texi: Likewise.
21145         * doc/posix-functions/isalnum_l.texi: Likewise.
21146         * doc/posix-functions/isalpha_l.texi: Likewise.
21147         * doc/posix-functions/isblank_l.texi: Likewise.
21148         * doc/posix-functions/iscntrl_l.texi: Likewise.
21149         * doc/posix-functions/isdigit_l.texi: Likewise.
21150         * doc/posix-functions/isgraph_l.texi: Likewise.
21151         * doc/posix-functions/islower_l.texi: Likewise.
21152         * doc/posix-functions/isprint_l.texi: Likewise.
21153         * doc/posix-functions/ispunct_l.texi: Likewise.
21154         * doc/posix-functions/isspace_l.texi: Likewise.
21155         * doc/posix-functions/isupper_l.texi: Likewise.
21156         * doc/posix-functions/iswalnum_l.texi: Likewise.
21157         * doc/posix-functions/iswalpha_l.texi: Likewise.
21158         * doc/posix-functions/iswblank_l.texi: Likewise.
21159         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21160         * doc/posix-functions/iswctype_l.texi: Likewise.
21161         * doc/posix-functions/iswdigit_l.texi: Likewise.
21162         * doc/posix-functions/iswgraph_l.texi: Likewise.
21163         * doc/posix-functions/iswlower_l.texi: Likewise.
21164         * doc/posix-functions/iswprint_l.texi: Likewise.
21165         * doc/posix-functions/iswpunct_l.texi: Likewise.
21166         * doc/posix-functions/iswspace_l.texi: Likewise.
21167         * doc/posix-functions/iswupper_l.texi: Likewise.
21168         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21169         * doc/posix-functions/isxdigit_l.texi: Likewise.
21170         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21171         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21172         * doc/posix-functions/strcoll_l.texi: Likewise.
21173         * doc/posix-functions/strfmon_l.texi: Likewise.
21174         * doc/posix-functions/strftime_l.texi: Likewise.
21175         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21176         * doc/posix-functions/strxfrm_l.texi: Likewise.
21177         * doc/posix-functions/tolower_l.texi: Likewise.
21178         * doc/posix-functions/toupper_l.texi: Likewise.
21179         * doc/posix-functions/towctrans_l.texi: Likewise.
21180         * doc/posix-functions/towlower_l.texi: Likewise.
21181         * doc/posix-functions/towupper_l.texi: Likewise.
21182         * doc/posix-functions/wcscoll_l.texi: Likewise.
21183         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21184         * doc/posix-functions/wctrans_l.texi: Likewise.
21185         * doc/posix-functions/wctype_l.texi: Likewise.
21186         * doc/glibc-functions/strptime_l.texi: Likewise.
21187         * doc/glibc-functions/strtod_l.texi: Likewise.
21188         * doc/glibc-functions/strtof_l.texi: Likewise.
21189         * doc/glibc-functions/strtol_l.texi: Likewise.
21190         * doc/glibc-functions/strtold_l.texi: Likewise.
21191         * doc/glibc-functions/strtoll_l.texi: Likewise.
21192         * doc/glibc-functions/strtoul_l.texi: Likewise.
21193         * doc/glibc-functions/strtoull_l.texi: Likewise.
21194         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21195         * doc/glibc-functions/wcstod_l.texi: Likewise.
21196         * doc/glibc-functions/wcstof_l.texi: Likewise.
21197         * doc/glibc-functions/wcstol_l.texi: Likewise.
21198         * doc/glibc-functions/wcstold_l.texi: Likewise.
21199         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21200         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21201         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21202
21203 2009-11-24  Bruno Haible  <bruno@clisp.org>
21204
21205         duplocale: Fix logic bug.
21206         * lib/duplocale.c: Don't include <langinfo.h>.
21207         (_NL_LOCALE_NAME): Remove macro.
21208         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21209         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21210
21211 2009-11-23  Jim Meyering  <meyering@redhat.com>
21212
21213         test-update-copyright: don't hard-code /usr/bin/perl
21214         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21215         perl to print the current year.  Gilles Espinasse reported that
21216         the replaced use of perl was hard-coded as /usr/bin/perl.
21217
21218 2009-11-23  Bruno Haible  <bruno@clisp.org>
21219
21220         duplocale: Add support for glibc 2.3.x.
21221         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21222
21223 2009-11-22  Bruno Haible  <bruno@clisp.org>
21224
21225         vasnprintf: Tiny optimization.
21226         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21227         MacOS X.
21228
21229 2009-11-22  Bruno Haible  <bruno@clisp.org>
21230
21231         Tests for module 'duplocale'.
21232         * modules/duplocale-tests: New file.
21233         * tests/test-duplocale.c: New file.
21234
21235         New module 'duplocale'.
21236         * m4/duplocale.m4: New file.
21237         * lib/locale.in.h (duplocale): New declaration.
21238         * lib/duplocale.c: New file.
21239         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21240         gl_LOCALE_H_DEFAULTS): New macros.
21241         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21242         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21243         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21244         REPLACE_DUPLOCALE.
21245         * modules/duplocale: New file.
21246         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21247
21248 2009-11-22  Bruno Haible  <bruno@clisp.org>
21249
21250         * modules/locale-tests (configure.ac): Test for newlocale function.
21251         * tests/test-locale.c: When the system has extended locale functions,
21252         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21253
21254         locale: Make locale_t available when possible.
21255         * lib/locale.in.h: Include <xlocale.h> when it exists.
21256         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21257         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21258         * modules/locale (Depends-on): Add extensions.
21259         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21260         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21261
21262 2009-11-22  Bruno Haible  <bruno@clisp.org>
21263
21264         Add comments.
21265         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21266         invocation.
21267         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21268         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21269         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21270
21271 2009-11-22  Bruno Haible  <bruno@clisp.org>
21272
21273         error: account for the possibility of freopen (stdout).
21274         * lib/error.c: Include <unistd.h>.
21275         (flush_stdout): New function, extracted from error and error_at_line.
21276         Determine stdout's fd dynamically.
21277         (error, error_at_line): Invoke flush_stdout.
21278         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21279         * modules/error (Depends-on): Add unistd.
21280
21281 2009-11-22  Bruno Haible  <bruno@clisp.org>
21282
21283         diffseq: Add comment.
21284         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21285
21286 2009-11-22  Jim Meyering  <meyering@redhat.com>
21287
21288         c-stack: avoid defining an unused static function
21289         * lib/c-stack.c (find_stack_direction): Do not define this function
21290         when it will not be used.
21291
21292         diffseq: avoid spurious gcc warnings
21293         * lib/diffseq.h (IF_LINT2): Define.
21294         (compareseq): Use it to initialize two members of "part".
21295         This avoids two used-uninitialized warnings.
21296
21297 2009-11-21  Jim Meyering  <meyering@redhat.com>
21298
21299         c-stack: avoid "ignoring return value of `write'" warning
21300         * lib/c-stack.c: Include "ignore-value.h".
21301         (die): Explicitly ignore each write return value.
21302         * modules/c-stack (Depends-on): Add ignore-value.
21303
21304 2009-11-21  Bruno Haible  <bruno@clisp.org>
21305
21306         diffseq: reduce scope of variable 'best'.
21307         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21308         variable, earlier used for two different purposes.
21309
21310 2009-11-21  Jim Meyering  <meyering@redhat.com>
21311
21312         diffseq: remove useless assignment to "best"
21313         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21314         assignment.  At that point "best" is already guaranteed to be zero.
21315
21316 2009-11-20  Eric Blake  <ebb9@byu.net>
21317
21318         build: mention ftp redirector in release announcements
21319         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21320         values that used to come from cfg.mk; mention FTP redirect URL.
21321         * build-aux/announce-gen: Mention the mirror list.
21322         Suggested by Karl Berry.
21323
21324         nanosleep: improve port to mingw
21325         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21327         LIB_NANOSLEEP, but only when needed.
21328         * modules/select (Link): Document LIBSOCKET.
21329         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21330         enough.
21331
21332         nanosleep: work around cygwin bug
21333         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21334         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21335         bug.
21336         (getnow): Delete, not needed.
21337         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21338         LIB_CLOCK_GETTIME.
21339         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21340         clock-time, gettime.
21341         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21342         bug.
21343         * modules/nanosleep-tests: New test.
21344         * tests/test-nanosleep.c: New file.
21345
21346         sleep: work around cygwin bug
21347         * lib/sleep.c (rpl_sleep): Work around the bug.
21348         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21349         (gl_PREREQ_SLEEP): Delete unused macro.
21350         * modules/sleep (Depends-on): Add verify.
21351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21352         * modules/unistd (Makefile.am): Substitute witness.
21353         * lib/unistd.in.h (sleep): Update prototype.
21354         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21355         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21356         * modules/sleep-tests (Depends-on): Check for alarm.
21357
21358 2009-11-20  Jim Meyering  <meyering@redhat.com>
21359
21360         maint.mk: improve sc_prohibit_magic_number_exit
21361         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21362         so it does not match uses like System.exit(1).
21363         Add comments showing how to correct all offenders.
21364
21365 2009-11-19  Eric Blake  <ebb9@byu.net>
21366
21367         xalloc-die-tests: add missing library
21368         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21369
21370         test-xvasprintf: silence compiler warnings
21371         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21372         empty string from gcc.
21373
21374 2009-11-19  Jim Meyering  <meyering@redhat.com>
21375
21376         xfreopen: new module, from coreutils
21377         * modules/xfreopen: New module.
21378         * lib/xfreopen.c: New file.
21379         * lib/xfreopen.h: New file.
21380         * MODULES.html.sh (File stream based Input/Output"): Add it.
21381
21382 2009-11-19  Eric Blake  <ebb9@byu.net>
21383
21384         manywarnings: depend on warnings
21385         * modules/manywarnings (Depends-on): Add warnings.
21386
21387         build: avoid compiler warnings
21388         * lib/select.c (rpl_select): Delete unused variable.
21389         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21390
21391 2009-11-18  Eric Blake  <ebb9@byu.net>
21392
21393         tests: avoid false negative with --with-packager
21394         * tests/test-version-etc.sh: Discard packager information.
21395         * tests/test-argp-version-etc-1.sh: Likewise.
21396         Reported by Mike Frysinger.
21397
21398         utimens: fix regression on Solaris
21399         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21400         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21401         can only change fd timestamps via futimesat.  Instead, use an
21402         additional witness macro to avoid BSD bug.
21403         Reported by Jim Meyering.
21404
21405 2009-11-17  Eric Blake  <ebb9@byu.net>
21406
21407         usleep: use it to simplify tests
21408         * modules/stat-time-tests (Depends-on): Add usleep.
21409         (configure.ac): Drop usleep check.
21410         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21411         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21412         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21413         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21414         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21415         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21416         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21417         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21418         Likewise.
21419         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21420         * tests/test-lchown.h (nap): Likewise.
21421         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21422         * tests/test-stat-time.c (nap): Likewise.
21423         * tests/test-utimens-common.h (nap): Update comments.
21424
21425         usleep: new module
21426         * modules/usleep: New file.
21427         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21428         * lib/usleep.c (usleep): Likewise.
21429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21430         * modules/unistd (Makefile.am): Substitute witnesses.
21431         * lib/unistd.in.h (usleep): Add declaration.
21432         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21433         * MODULES.html.sh (Date and time): Likewise.
21434         * modules/usleep-tests (Depends-on): New test.
21435         * tests/test-usleep.c: New file.
21436
21437         chown: work around OpenBSD bug
21438         * lib/chown.c (rpl_chown): Work around the bug.
21439         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21440         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21441         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21442         * modules/chown (Depends-on): Add stdbool.
21443         * modules/lchown (Depends-on): Likewise.
21444         * doc/posix-functions/chown.texi (chown): Document the bug.
21445         * doc/posix-functions/lchown.texi (lchown): Likewise.
21446         * tests/test-lchown.h (test_chown): Relax test.
21447
21448         mkstemp: avoid conflict with C++ keyword template
21449         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21450         * lib/mkostemp.c (mkostemp): Likewise.
21451         * lib/mkostemps.c (mkostemps): Likewise.
21452         * lib/mkstemp.c (mkstemp): Likewise.
21453         * lib/mkstemps.c (mkstemps): Likewise.
21454
21455         xalloc-die-tests: optimize
21456         * tests/test-xalloc-die.sh: Reduce number of processes.
21457
21458 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21459
21460         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21461         patch from ludo@gnu.org (Ludovic Courtès).
21462
21463 2009-11-17  Jim Meyering  <meyering@redhat.com>
21464
21465         version-etc: use proper license string
21466         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21467         * modules/version-etc-fsf: Likewise.
21468
21469 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21470
21471         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21472         printed to stdout.  Deal with EOL differences.
21473
21474 2009-11-17  Eric Blake  <ebb9@byu.net>
21475
21476         unsetenv: work around Solaris bug
21477         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21478         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21479         Reported by Jim Meyering.
21480
21481         vasnprintf: avoid compiler warnings
21482         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21483         variables.
21484         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21485
21486 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21487
21488         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21489         settings since xalloc-die is no longer the self test,
21490         xalloc-die.sh is.
21491
21492 2009-11-17  Jim Meyering  <meyering@redhat.com>
21493
21494         test-xalloc-die.sh: make the code agree with the commit log
21495         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21496         at the end, just in case you happen to have a test-xalloc-die
21497         program in some other PATH directory.
21498
21499         test-xalloc-die.sh: fix a portability bug
21500         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21501         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21502         Otherwise, argv[0] (as often seen in diagnostics) would be too
21503         system-dependent, sometimes with, and sometimes without the leading "./".
21504
21505         version-etc-fsf: relax license to LGPLv3+
21506         * modules/version-etc-fsf (License): Relax license.
21507
21508 2009-11-16  Eric Blake  <ebb9@byu.net>
21509
21510         xalloc-die-tests: avoid printing null pointer
21511         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21512         shell script.
21513         * tests/test-xalloc-die.c (program_name): Declare.
21514         * tests/test-xalloc-die.sh (tmpfiles): New file.
21515
21516         setenv, unsetenv: work around various bugs
21517         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21518         (setenv) [HAVE_SETENV]: Work around bugs.
21519         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21520         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21521         for bugs.
21522         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21523         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21524         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21525         * modules/stdlib (Makefile.am): Update substitutions.
21526         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21527         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21528         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21529         * modules/setenv-tests: New test.
21530         * modules/unsetenv-tests: Likewise.
21531         * tests/test-setenv.c: New file.
21532         * tests/test-unsetenv.c: Likewise.
21533
21534 2009-11-16  Jim Meyering  <meyering@redhat.com>
21535
21536         version-etc: relax license to LGPLv3+
21537         * modules/version-etc (License): Relax license.
21538
21539         better AC_REQUIRE expanded-before-required-warning avoidance
21540         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21541         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21542         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21543         which is no longer needed.
21544
21545 2009-11-16  Eric Blake  <ebb9@byu.net>
21546
21547         test-freading: clean up temporary file
21548         * tests/test-freading.c (main): Remove file on success, and use
21549         ASSERT more liberally.
21550         Reported by Jim Meyering.
21551
21552 2009-11-16  Jim Meyering  <meyering@redhat.com>
21553
21554         avoid new AC_REQUIRE expanded-before-required warnings
21555         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21556         merely using it.
21557         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21558         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21559
21560 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21561
21562         * tests/test-xalloc-die.c: New file.
21563         * modules/xalloc-die-tests: New file.
21564         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21565         XFAIL_TESTS so it can be appended by modules.
21566
21567 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21568
21569         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21570         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21571
21572 2009-11-14  Eric Blake  <ebb9@byu.net>
21573
21574         fnmatch: avoid compiler warning
21575         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21576         to silence compiler warning about mismatch signedness in ?:.
21577         Reported by Robert Millan.
21578
21579         intprops: add double-inclusion guard
21580         * lib/intprops.h: Allow idempotent includes.
21581         Suggested by Bruce Korb.
21582
21583         openat: detect Solaris fchownat bug
21584         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21585         penalizing glibc chownat when only lchownat is broken.
21586         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21587         trailing slash bugs.
21588         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21589         * modules/openat-tests (Files): Include more files.
21590         (Depends-on): Add mgetgroups, sleep, stat-time.
21591         (configure.ac): Add additional checks.
21592         (Makefile.am): Build new test.
21593         * tests/test-fchownat.c: New file.
21594
21595         lchown: detect Solaris and FreeBSD bug
21596         * lib/lchown.c (rpl_lchown): Work around bug.
21597         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
21598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21599         * modules/unistd (Makefile.am): Populate it.
21600         * lib/unistd.in.h (lchown): Update declaration.
21601         * doc/posix-functions/lchown.texi (lchown): Document the bug.
21602         * modules/lchown-tests: New file.
21603         * tests/test-lchown.h (test_lchown): Likewise.
21604         * tests/test-lchown.c (main): Likewise.
21605
21606         chown: detect Solaris and FreeBSD bug
21607         * lib/chown.c (rpl_chown): Work around bug.
21608         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
21609         (gl_PREREQ_CHOWN): Delete.
21610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21611         * modules/unistd (Makefile.am): Populate it.
21612         * lib/unistd.in.h (chown): Update declaration.
21613         * lib/lchown.c (chown): Update client.
21614         * modules/lchown (Depends-on): Add lstat.
21615         * doc/posix-functions/chown.texi (chown): Document the bug.
21616         * doc/posix-functions/getgroups.texi (getgroups): Document
21617         getgroups pitfall.
21618         * modules/chown-tests: New file.
21619         * tests/test-chown.h (test_chown): Likewise.
21620         * tests/test-chown.c (main): Likewise.
21621
21622 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
21623
21624         gnulib-tool: correctly detect absence of m4 directories
21625         * gnulib-tool: Avoid extra newline on data passed to wc -l.
21626
21627 2009-11-14  Jim Meyering  <meyering@redhat.com>
21628
21629         maint.mk: Prohibit inclusion of "xalloc.h" without use.
21630         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21631
21632 2009-11-14  John W. Eaton  <jwe@gnu.org>
21633
21634         strftime.h: wrap funtion declaration in extern "C" block
21635         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
21636
21637 2009-11-13  Eric Blake  <ebb9@byu.net>
21638
21639         getgroups: avoid compiler warning
21640         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
21641
21642         getgroups: work around FreeBSD bug
21643         * lib/getgroups.c (rpl_getgroups): Work around the bug.
21644         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
21645         * doc/posix-functions/getgroups.texi (getgroups): Document it.
21646         * tests/test-getgroups.c (main): Fix buffer overrun.
21647
21648         getgroups: avoid compilation failure
21649         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
21650         * modules/getgroups (Depends-on): Add stdint.
21651
21652 2009-11-13  Jim Meyering  <meyering@redhat.com>
21653
21654         test-getgroups: avoid compilation failure
21655         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
21656
21657 2009-11-13  Eric Blake  <ebb9@byu.net>
21658
21659         mgetgroups: new module, taken from coreutils
21660         * modules/mgetgroups: New file.
21661         * lib/mgetgroups.h: Likewise.
21662         * lib/mgetgroups.c (mgetgroups): Likewise.
21663         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
21664         * MODULES.html.sh (Users and groups): Mention it.
21665
21666         getgroups: don't expose GETGROUPS_T to user
21667         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
21668         an element at a time if GETGROUPS_T is wrong size.
21669         * lib/getugroups.h (getugroups): Change signature.
21670         * lib/unistd.in.h (getgroups): Likewise.
21671         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
21672         signature needs fixing.
21673         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
21674         AC_TYPE_GETGROUPS.
21675         * modules/group-member (Depends-on): Add getgroups.
21676         * lib/group-member.c (group_info, get_group_info): Use gid_t.
21677         (group_member): Rely on getgroups replacement.
21678         * lib/getugroups.c (getugroups): Use gid_t.
21679         * tests/test-getgroups.c (main): Likewise.
21680         * NEWS: Mention the signature change.
21681         * doc/posix-functions/getgroups.texi (getgroups): Mention the
21682         problem with signature.
21683         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
21684         GETGROUPS_T is still useful for setgroups.
21685
21686         getgroups, getugroups: provide stubs for mingw
21687         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
21688         * lib/getugroups.c (getugroups): Likewise.
21689         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
21690         function.  Modernize replacement scheme.
21691         (gl_PREREQ_GETGROUPS): Delete.
21692         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
21693         * modules/getgroups (configure.ac): Declare witness.
21694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21695         * modules/unistd (Depends-on): Substitute witness.
21696         * lib/unistd.in.h (getgroups): Declare replacement.
21697
21698         getgroups: avoid calling exit
21699         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
21700         drop xalloc.
21701         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
21702         dependencies.
21703         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
21704         exiting, in the rare case of malloc failure.
21705
21706         getgroups: fix logic error
21707         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
21708         has more than 20 groups.
21709         * modules/getgroups-tests: New test.
21710         * tests/test-getgroups.c: New file.
21711
21712 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21713
21714         * tests/test-base64.c: Improve.
21715
21716 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21717
21718         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
21719         Blake <ebb9@byu.net>.
21720
21721 2009-11-13  Simon Josefsson  <simon@josefsson.org>
21722
21723         * tests/test-xvasprintf.c: Add %s%s related checks.
21724
21725 2009-11-12  Eric Blake  <ebb9@byu.net>
21726
21727         version-etc: match standards.texi style
21728         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
21729         and use <> only for URLs.
21730
21731 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
21732
21733         fts: do not fail on a submount during traversal
21734         * lib/fts.c (fts_build): Read the stat info again after opening
21735         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
21736         Original report at http://bugzilla.redhat.com/501848.
21737
21738 2009-11-12  Jim Meyering  <meyering@redhat.com>
21739
21740         bootstrap: sync from coreutils
21741         * build-aux/bootstrap (bootstrap_epilogue): New function.
21742         Use git_modules_config in one more place.  This make bootstrap's
21743         --gnulib-srcdir option more useful for testing.
21744
21745         bootstrap: generalize autoheader check
21746         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
21747         AC_CONFIG_HEADERS.
21748
21749 2009-11-11  Eric Blake  <ebb9@byu.net>
21750
21751         mkfifoat: use new modules for Solaris and BSD bugs
21752         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
21753         * lib/mkfifoat.c (mknodat): Split...
21754         * lib/mknodat.c (mknodat): ...into new file.
21755         * modules/mkfifoat (Files): Ship new file.
21756         (Depends-on): Add mkfifo, mknod.
21757         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
21758         (Depends-on): Add symlink.
21759         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
21760         redundant with test_mkfifo.h.
21761         (do_mkfifoat, do_mknodat): New helpers.
21762
21763         mknod: new module
21764         * modules/mknod: New file.
21765         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
21766         * lib/mknod.c (mknod): Likewise.
21767         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21768         defaults.
21769         * modules/sys_stat (Makefile.am): Substitute them.
21770         * lib/sys_stat.in.h (mknod): Declare replacement.
21771         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21772         Document it.
21773         * doc/posix-functions/mknod.texi (mknod): Likewise.
21774         * modules/mknod-tests: New test.
21775         * tests/test-mknod.c: Likewise.
21776
21777         mkfifo: new module
21778         * modules/mkfifo: New file.
21779         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
21780         * lib/mkfifo.c (mkfifo): Likewise.
21781         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
21782         defaults.
21783         * modules/sys_stat (Makefile.am): Substitute them.
21784         * lib/sys_stat.in.h (mkfifo): Declare replacement.
21785         * MODULES.html.sh (Support for systems lacking POSIX:2008):
21786         Document it.
21787         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
21788         * modules/mkfifo-tests: New test.
21789         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
21790         from test-mkfifoat.c.
21791         * tests/test-mkfifo.c: New file.
21792
21793         readlink: detect FreeBSD bug
21794         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
21795         slash on symlink.
21796         * doc/posix-functions/readlink.texi (readlink): Document the bug.
21797         * tests/test-readlink.h (test_readlink): Enhance test.
21798
21799         symlink: detect FreeBSD bug
21800         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
21801         slash on symlink.
21802         * doc/posix-functions/symlink.texi (symlink): Document the bug.
21803         * tests/test-symlink.h (test_symlink): Enhance test.
21804
21805 2009-11-10  Eric Blake  <ebb9@byu.net>
21806
21807         link: detect FreeBSD bug
21808         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
21809         symlink.
21810         * doc/posix-functions/link.texi (link): Document the bug.
21811         * tests/test-link.h (test_link): Enhance test.
21812         * tests/test-linkat.c (main): Update caller.
21813
21814         unlink, remove: detect FreeBSD bug
21815         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
21816         slash on symlink.
21817         * doc/posix-functions/unlink.texi (unlink): Document the bug.
21818         * doc/posix-functions/remove.texi (remove): Likewise.
21819         * tests/test-unlink.h (test_unlink): Enhance test.
21820         * tests/test-remove.c (main): Likewise.
21821
21822 2009-11-09  Eric Blake  <ebb9@byu.net>
21823
21824         rename: detect FreeBSD bug
21825         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
21826         slash on symlink.
21827         * modules/renameat-tests (Depends-on): Add filenamecat.
21828         * tests/test-rename.h (test_rename): Allow one more errno.
21829         * tests/test-renameat.c (main): Likewise.
21830         * doc/posix-functions/rename.texi (rename): Document the bug.
21831
21832         open: detect FreeBSD bug
21833         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
21834         symlink.
21835         * doc/posix-functions/open.texi (open): Document the bug.
21836         * doc/posix-functions/utimes.texi (utimes): Likewise.
21837         * tests/test-open.h (test_open): Add parameters, and test symlink
21838         handling.
21839         * tests/test-open.c (main): Adjust caller.
21840         * tests/test-fcntl-safer.c (main): Likewise.
21841         * modules/open-tests (Depends-on): Add stdbool, symlink.
21842         * modules/fcntl-safer-tests (Depends-on): Likewise.
21843         * tests/test-openat.c (main): Add test-open tests.
21844
21845         stat: detect FreeBSD bug
21846         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
21847         symlink.
21848         * doc/posix-functions/stat.texi (stat): Document the bug.
21849         * tests/test-stat.h (test_stat_func): Add argument.
21850         * tests/test-stat.c (main): Adjust caller.
21851         * tests/test-fstatat.c (main): Likewise.
21852         * modules/stat-tests (Depends-on): Add stdbool, symlink.
21853         Reported by Jim Meyering.
21854
21855 2009-11-09  James Youngman  <jay@gnu.org>
21856
21857         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
21858         * lib/strftime.c: Correct placement of #include "ignore-value.h".
21859
21860 2009-11-08  Jim Meyering  <meyering@redhat.com>
21861
21862         utimens: remove invalid futimesat call
21863         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
21864         It used the file descriptor of the target file as the DIR_FD
21865         parameter and NULL as the file name.  That caused failure with
21866         errno == EFAULT on FreeBSD-8.0-rc2
21867
21868 2009-11-07  Eric Blake  <ebb9@byu.net>
21869
21870         fflush, freadseek: use fseeko, not fseek
21871         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
21872         (clear_ungetc_buffer): Avoid potential problems on large files.
21873         * lib/freadseek.c (freadseek): Likewise.
21874         * modules/freadseek (Depends-on): Add fseeko.
21875         * modules/fseek (configure.ac): Set a witness.
21876         * tests/test-fflush.c (main): Use fseeko.
21877         * tests/test-fpurge.c (fseek): Disable link warning.
21878         * tests/test-freadable.c (fseek): Likewise.
21879         * tests/test-freading.c (fseek): Likewise.
21880         * tests/test-fseeko.c (fseek): Likewise.
21881         * tests/test-ftell.c (fseek): Likewise.
21882         * tests/test-ftello.c (fseek): Likewise.
21883         * tests/test-fwritable.c (fseek): Likewise.
21884         * tests/test-fwriting.c (fseek): Likewise.
21885
21886 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21887
21888         * modules/memchr (Depends-on): Drop getpagesize dependency.
21889
21890 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21891
21892         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
21893         Reported by Ludovic Courtès.
21894         * build-aux/pmccabe2html: Improve example usage.
21895         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
21896
21897 2009-11-06  Jim Meyering  <meyering@redhat.com>
21898
21899         do-release-commit-and-tag: New module.
21900         Automate the release-commit and tag process.
21901         * build-aux/do-release-commit-and-tag: New script, from coreutils.
21902         * modules/do-release-commit-and-tag: New file.
21903         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21904
21905 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21906
21907         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
21908         because test-select.c uses inet_pton.
21909
21910 2009-11-06  Simon Josefsson  <simon@josefsson.org>
21911
21912         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
21913         GETADDRINFO_LIB.  Bump serial number.
21914         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
21915         Suggested by Eric Blake <ebb9@byu.net>.
21916
21917 2009-11-05  Eric Blake  <ebb9@byu.net>
21918
21919         strtod: detect darwin bug
21920         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
21921         Reported by Leo Davis.
21922
21923         freopen-safer: new module
21924         * modules/freopen-safer: New module.
21925         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
21926         * lib/freopen-safer.c (freopen_safer): New file.
21927         * lib/stdio-safer.h (freopen_safer): New declaration.
21928         * lib/stdio--.h (freopen): New override.
21929         * MODULES.html.sh (File stream based Input/Output): Mention it.
21930         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
21931         freopen-safer module.
21932         * doc/posix-functions/stderr.texi (stderr): Likewise.
21933         * doc/posix-functions/stdin.texi (stdin): Likewise.
21934         * doc/posix-functions/stdout.texi (stdout): Likewise.
21935         * modules/freopen-safer-tests: New test.
21936         * tests/test-reopen-safer.c: New file.
21937
21938 2009-11-05  Jim Meyering  <meyering@redhat.com>
21939
21940         maint.mk: Prohibit inclusion of "close-stream.h" without use.
21941         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21942
21943 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21944
21945         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
21946
21947 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21948
21949         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
21950
21951 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21952
21953         Fix link error.
21954         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21955         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21956
21957 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21958
21959         * tests/test-func.c: Also test value of __func__.
21960
21961 2009-11-05  Simon Josefsson  <simon@josefsson.org>
21962
21963         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
21964         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
21965
21966 2009-11-05  Bruno Haible  <bruno@clisp.org>
21967
21968         Fix link error.
21969         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
21970         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21971         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
21972
21973 2009-11-05  Bruno Haible  <bruno@clisp.org>
21974
21975         Tests for module 'inet_pton'.
21976         * modules/inet_pton-tests: New file.
21977         * tests/test-inet_pton.c: New file.
21978
21979 2009-11-05  Bruno Haible  <bruno@clisp.org>
21980
21981         Tests for module 'inet_ntop'.
21982         * modules/inet_ntop-tests: New file.
21983         * tests/test-inet_ntop.c: New file.
21984
21985 2009-11-04  Eric Blake  <ebb9@byu.net>
21986
21987         stdlib-safer: wrap all mkstemp variants
21988         * modules/mkostemp (configure.ac): Set witness.
21989         * modules/mkostemps (configure.ac): Likewise.
21990         * modules/mkstemps (configure.ac): Likewise.
21991         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
21992         (mkstemps_safer): Wrap more functions.
21993         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
21994         wrapping.
21995         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
21996         (mkstemps_safer): Implement the wrappers.
21997
21998         mkstemps, mkostemps: new modules
21999         * modules/mkostemps: New module.
22000         * modules/mkstemps: Likewise.
22001         * lib/mkostemps.c (mkostemps): New file.
22002         * lib/mkstemps.c (mkstemps): Likewise.
22003         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
22004         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
22005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
22006         * modules/stdlib (Makefile.am): Substitute them.
22007         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
22008         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
22009         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22010         * doc/gnulib.texi (Glibc stdlib.h): Include them.
22011         * MODULES.html.sh (File system functions): Mention them.
22012
22013         tempname: resync from glibc
22014         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
22015         same values for __GT_FILE as glibc.  Abort even when assertions
22016         are disabled.
22017         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
22018         match its value otherwise.  Allow idempotent inclusion.
22019         * lib/mkdtemp.c (mkdtemp): Adjust caller.
22020         * lib/mkostemp.c (mkostemp): Likewise.
22021         * lib/mkstemp.c (mkstemp): Likewise.
22022         * lib/tmpfile.c (tmpfile): Likewise.
22023         * NEWS: Document this.
22024
22025         utimens: fix use of futimens on older Linux
22026         * lib/utimens.c (fdutimens): Use updated, rather than original,
22027         timespec to avoid bug in older Linux kernel.
22028         Reported by Simon Josefsson.
22029
22030 2009-11-04  Bruno Haible  <bruno@clisp.org>
22031
22032         Make num_processors more flexible and consistent.
22033         * lib/nproc.h (enum nproc_query): New type.
22034         (num_processors): Add a 'query' argument.
22035         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
22036         (num_processors): Add a 'query' argument. Test the value of the
22037         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
22038         mingw, count the number of CPUs available for the current process.
22039         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
22040         Check for sched_getaffinity and sched_getaffinity_np.
22041         * modules/nproc (Depends-on): Add c-ctype, extensions.
22042         * NEWS: Mention the change.
22043
22044 2009-11-03  Bruno Haible  <bruno@clisp.org>
22045
22046         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
22047
22048 2009-11-03  Jim Meyering  <meyering@redhat.com>
22049
22050         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
22051         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
22052         if it is defined.
22053
22054 2009-11-02  Eric Blake  <ebb9@byu.net>
22055
22056         mktime, timegm: share common declaration
22057         * lib/mktime-internal.h: New file.
22058         * lib/mktime.c: Use it rather than open-coding a declaration.
22059         * lib/timegm.c: Likewise.
22060         * modules/mktime (Files): Ship it.
22061         * modules/timegm (Files): Likewise.
22062         Suggested by Bruno Haible.
22063
22064         test-update-copyright: update test to match script changes
22065         * tests/test-update-copyright.sh: Avoid hard-coding perl
22066         location.  Don't update *.bak created by earlier runs.
22067
22068 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22069             Simon Josefsson  <simon@josefsson.org>
22070             Bruno Haible  <bruno@clisp.org>
22071
22072         Fix link error on Solaris 8.
22073         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
22074         also in libnsl. Define also INET_PTON_LIB.
22075         * modules/inet_pton (Link): New section.
22076
22077 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22078             Bruno Haible  <bruno@clisp.org>
22079
22080         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
22081         * modules/inet_ntop (Link): New section.
22082         Reported by Boyan Kasarov <bkasarov@gmail.com>.
22083
22084 2009-11-02  Eric Blake  <ebb9@byu.net>
22085
22086         maint: avoid compiler warnings in m4 macros
22087         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
22088         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
22089
22090 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22091
22092         * m4/pmccabe2html.m4: Remove file.
22093         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
22094         function.  Change maintainer.
22095         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
22096         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
22097         Courtès).
22098
22099 2009-10-31  Eric Blake  <ebb9@byu.net>
22100
22101         fseeko: fix m4 regression
22102         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
22103         regression from 2009-10-27.
22104         Reported by Ralf Wildenhues.
22105
22106 2009-10-31  Jim Meyering  <meyering@redhat.com>
22107
22108         inttostr: aesthetics and improved (compile-time) safety
22109         Define inttype_is_signed rather than inttype_is_unsigned,
22110         since the sole use is via "#if inttype_is_signed".
22111         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
22112         inttype_is_unsigned.
22113         * lib/offtostr.c (inttype_is_signed): Likewise.
22114         * lib/uinttostr.c (inttype_is_signed): Likewise.
22115         * lib/umaxtostr.c (inttype_is_signed): Likewise.
22116         * lib/inttostr.c (inttostr): Use verify to cross-check the
22117         inttype_is_signed value and the signedness of the actual type.
22118         * modules/inttostr (Depends-on): Add verify.
22119
22120 2009-10-30  Eric Blake  <ebb9@byu.net>
22121
22122         build: avoid compiler warnings
22123         * lib/fchmodat.c (lchmod): Mark unused variables.
22124         * lib/getopt.c (_getopt_initialize): Likewise.
22125         * lib/mktime.c (__mktime_internal): Provide prototype.
22126         * lib/inttostr.c (inttostr): Avoid compiler warning even with
22127         older gcc that do not understand #pragma GCC diagnostic.
22128         * lib/uinttostr.c (inttype_is_unsigned): Define.
22129         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
22130
22131 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22132
22133         stat: fix compilation on AIX
22134         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
22135         only see struct stat64.
22136
22137 2009-10-30  Eric Blake  <ebb9@byu.net>
22138
22139         exclude: make more robust
22140         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
22141         rather than masking a coding bug.
22142         Suggested by Bruno Haible.
22143
22144 2009-10-30  Jim Meyering  <meyering@redhat.com>
22145
22146         perl scripts: remove #!/usr/bin/perl in favor of more portable...
22147         Rather than putting #!/usr/bin/perl on the first line,
22148         start with a variant of what's recommended by "man perlrun" that
22149         invokes the first "perl" program from your shell's search path.
22150         * build-aux/gitlog-to-changelog: Replace #!... as above.
22151         Add a "Local Variables" perl mode setting.
22152         Prompted by a patch from Ludovic Courtès.
22153         Improved by Eric Blake.
22154         * build-aux/useless-if-before-free: Likewise.
22155         * build-aux/announce-gen: Likewise.
22156         * build-aux/update-copyright: Likewise.
22157
22158 2009-10-29  Eric Blake  <ebb9@byu.net>
22159
22160         filenamecat-lgpl: adjust clients
22161         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22162         filenamecat.
22163         * modules/renameat (Depends-on): Likewise.
22164
22165         filenamecat: split into filenamecat-lgpl
22166         * modules/filenamecat-lgpl: New module.
22167         * modules/filenamecat (Files): Move library-safe files into
22168         filenamecat-lgpl.
22169         (Depends-on): Add filenamecat-lgpl.
22170         (configure.ac): Declare witness.
22171         * lib/filenamecat.h (file_name_concat): Only declare when using
22172         GPL module.
22173         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22174         Move...
22175         * lib/filenamecat-lgpl.c: ...into new file.
22176         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22177         (gl_FILE_NAME_CONCAT): Use it.
22178         * MODULES.html.sh (File system functions): Mention new module.
22179
22180         argp: avoid memory leak
22181         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22182         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22183         base_name, since the latter malloc()s and can call exit().
22184         Leak introduced 2006-07-03.
22185
22186         dirname-lgpl: adjust clients that don't need full dirname
22187         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22188         * modules/filenamecat (Depends-on): Likewise.
22189         * modules/linkat (Depends-on): Likewise.
22190         * modules/mkancesdirs (Depends-on): Likewise.
22191         * modules/mkdir (Depends-on): Likewise.
22192         * modules/openat (Depends-on): Likewise.
22193         * modules/savewd (Depends-on): Likewise.
22194         * modules/rename (Depends-on): Likewise.
22195         (License): Relax license.
22196         * modules/mkdir-tests (Depends-on): Drop progname.
22197         (Makefile.am): Delete unneeded LDADD.
22198         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22199
22200         dirname: split into dirname-lgpl
22201         * modules/dirname-lgpl: New module.
22202         * modules/dirname (Files): Move library-safe files into
22203         dirname-lgpl.
22204         (Depends-on): Add dirname-lgpl.
22205         (configure.ac): Declare witness.
22206         * modules/double-slash-root (License): Relax license.
22207         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22208         module.
22209         * lib/dirname.c (dir_len, mdir_name): Move...
22210         * lib/dirname-lgpl.c: ...into new file.
22211         * lib/basename.c (last_component, base_len): Move...
22212         * lib/basename-lgpl.c: ...into new file.
22213         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22214         (gl_DIRNAME): Use it.
22215         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22216         Mention new module.
22217         * modules/dirname-tests (Depends-on): Add progname.
22218         * tests/test-dirname.c (program_name): Delete.
22219
22220         mkdir: make safe for libraries
22221         * modules/mkdir (Depends-on): Drop xalloc.
22222         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22223         exit.
22224
22225         tests: avoid some compiler warnings
22226         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22227         literals.
22228         * tests/test-memchr.c (main): Avoid type mismatch.
22229         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22230         * tests/test-base64.c (main): Likewise.
22231         * tests/test-getdelim.c (main): Likewise.
22232         * tests/test-gethostname.c (main): Likewise.
22233         * tests/test-getline.c (main): Likewise.
22234         * tests/test-netinet_in.c (main): Likewise.
22235         * tests/test-select.c (open_server_socket, main): Likewise.
22236         * tests/test-select-stdin.c (main): Likewise.
22237         * tests/test-sockets.c (main): Likewise.
22238         * tests/test-strsignal.c (main): Likewise.
22239         * tests/test-sys_select.c (main): Likewise.
22240         * tests/test-sys_socket.c (main): Likewise.
22241         * tests/test-u64.c (main): Likewise.
22242         * tests/test-xfprintf-posix.c (main): Likewise.
22243         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22244
22245         sockets: avoid compiler warning
22246         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22247
22248         maint: detect usage(1) and other suspicious exits
22249         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22250
22251 2009-10-29  Jim Meyering  <meyering@redhat.com>
22252
22253         timespec: long-to-int truncation could make timespec_cmp malfunction
22254         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22255         a multiple of 2^32 nanoseconds as no difference.
22256
22257 2009-10-28  Jim Meyering  <meyering@redhat.com>
22258
22259         fprintftime: wrap macro code argument in "do {...} while(0)"
22260         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22261         cpy macro must be a statement that can be followed by a semicolon.
22262         Now that the else clause contains a comment and is hence longer
22263         than one line, I require curly braces.  That in turn requires
22264         that we wrap this code block in the standard do...while(0).
22265
22266         fprintftime: remove stray semicolon from previous change
22267         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22268
22269         fprintftime: avoid a warning about ignored fwrite return value
22270         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22271         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22272         that is unsafe.
22273         * modules/fprintftime (Depends-on): Add ignore-value.
22274
22275         exclude: avoid an unwarranted warning
22276         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22277
22278 2009-10-27  Eric Blake  <ebb9@byu.net>
22279
22280         fseek: avoid compilation failure when fflush is replaced
22281         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22282         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22283         module is in use.
22284         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22285         module is not in use; since REPLACE_FSEEK worked otherwise.
22286         (GNULIB_FTELLO): Likewise for ftell.
22287         Reported by Ian Beckwith and others.
22288
22289 2009-10-27  Bruno Haible  <bruno@clisp.org>
22290
22291         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22292         Reported by Jim Meyering.
22293
22294 2009-10-27  Jim Meyering  <jim@meyering.net>
22295             Bruno Haible  <bruno@clisp.org>
22296
22297         Avoid warning despite dropping the return value of fwrite.
22298         * lib/unicodeio.c: Include ignore-value.h.
22299         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22300         * modules/unicodeio (Depends-on): Add ignore-value.
22301
22302 2009-10-26  Eric Blake  <ebb9@byu.net>
22303
22304         areadlinkat: fix fallback path
22305         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22306         pointer and zero.
22307
22308 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22309
22310         Use a better IO block size for modern systems
22311         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22312         * lib/md2.c: Likewise.
22313         * lib/md4.c: Likewise.
22314         * lib/md5.c: Likewise.
22315         * lib/sha1.c: Likewise.
22316         * lib/sha256.c: Likewise.
22317         * lib/sha512.c: Likewise.
22318
22319 2009-10-22  Eric Blake  <ebb9@byu.net>
22320
22321         tests: avoid several compiler warnings
22322         * tests/test-getcwd.c (main): Avoid buffer underflow.
22323         * tests/test-getdate.c (main): String literals are not safe with
22324         putenv, so use setenv.  Declare unused argument.
22325         * modules/getdate-tests (Depends-on): Add setenv.
22326         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22327         problems with string literals in char *.
22328         * tests/test-hash.c (main): Avoid shadowing declaration.
22329         (insert_new): Treat string literals as char const *.
22330         * tests/test-getopt.h (test_getopt): Likewise.
22331         (getopt_loop): Alter types to minimize casting elsewhere.
22332         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22333         (test_getopt_long_posix): Likewise.
22334         (do_getopt_long): Add wrapper to minimize casting.
22335         * tests/test-atexit.c (clear_temp_file): Use void.
22336         * tests/test-areadlink-with-size.c (main): Declare unused
22337         arguments.
22338         * tests/test-areadlink.c (main): Likewise.
22339         * tests/test-areadlinkat-with-size.c (main): Likewise.
22340         * tests/test-areadlinkat.c (main): Likewise.
22341         * tests/test-canonicalize-lgpl.c (main): Likewise.
22342         * tests/test-canonicalize.c (main): Likewise.
22343         * tests/test-dirent-safer.c (main): Likewise.
22344         * tests/test-dirname.c (main): Likewise.
22345         * tests/test-dup2.c (main): Likewise.
22346         * tests/test-fchdir.c (main): Likewise.
22347         * tests/test-fcntl-h.c (main): Likewise.
22348         * tests/test-fcntl-safer.c (main): Likewise.
22349         * tests/test-fdopendir.c (main): Likewise.
22350         * tests/test-fdutimensat.c (main): Likewise.
22351         * tests/test-fflush.c (main): Likewise.
22352         * tests/test-filenamecat.c (main): Likewise.
22353         * tests/test-filevercmp.c (main): Likewise.
22354         * tests/test-fopen-safer.c (main): Likewise.
22355         * tests/test-fopen.c (main): Likewise.
22356         * tests/test-fpending.c (main): Likewise.
22357         * tests/test-fpurge.c (main): Likewise.
22358         * tests/test-freading.c (main): Likewise.
22359         * tests/test-fstatat.c (main): Likewise.
22360         * tests/test-fsync.c (main): Likewise.
22361         * tests/test-futimens.c (main): Likewise.
22362         * tests/test-getndelim2.c (main): Likewise.
22363         * tests/test-gettimeofday.c (main): Likewise.
22364         * tests/test-getopt.c (main): Likewise.
22365         * tests/test-i-ring.c (main): Likewise.
22366         * tests/test-inttypes.c (main): Likewise.
22367         * tests/test-link.c (main): Likewise.
22368         * tests/test-lstat.c (main): Likewise.
22369         * tests/test-math.c (main): Likewise.
22370         * tests/test-md5.c (main): Likewise.
22371         * tests/test-memchr2.c (main): Likewise.
22372         * tests/test-memrchr.c (main): Likewise.
22373         * tests/test-mkdir.c (main): Likewise.
22374         * tests/test-mkdirat.c (main): Likewise.
22375         * tests/test-mkfifoat.c (main): Likewise.
22376         * tests/test-open.c (main): Likewise.
22377         * tests/test-openat-safer.c (main): Likewise.
22378         * tests/test-openat.c (main): Likewise.
22379         * tests/test-quotearg.c (main): Likewise.
22380         * tests/test-rawmemchr.c (main): Likewise.
22381         * tests/test-readlink.c (main): Likewise.
22382         * tests/test-remove.c (main): Likewise.
22383         * tests/test-rename.c (main): Likewise.
22384         * tests/test-renameat.c (main): Likewise.
22385         * tests/test-rmdir.c (main): Likewise.
22386         * tests/test-sha1.c (main): Likewise.
22387         * tests/test-signal.c (main): Likewise.
22388         * tests/test-sigaction.c (main): Likewise.
22389         * tests/test-stat.c (main): Likewise.
22390         * tests/test-stat-time.c (main): Likewise.
22391         * tests/test-stddef.c (main): Likewise.
22392         * tests/test-stdint.c (main): Likewise.
22393         * tests/test-stdio.c (main): Likewise.
22394         * tests/test-stdlib.c (main): Likewise.
22395         * tests/test-strchrnul.c (main): Likewise.
22396         * tests/test-strerror.c (main): Likewise.
22397         * tests/test-string.c (main): Likewise.
22398         * tests/test-strtod.c (main): Likewise.
22399         * tests/test-strverscmp.c (main): Likewise.
22400         * tests/test-symlink.c (main): Likewise.
22401         * tests/test-symlinkat.c (main): Likewise.
22402         * tests/test-sys_stat.c (main): Likewise.
22403         * tests/test-sys_time.c (main): Likewise.
22404         * tests/test-time.c (main): Likewise.
22405         * tests/test-unistd.c (main): Likewise.
22406         * tests/test-unlink.c (main): Likewise.
22407         * tests/test-unlinkat.c (main): Likewise.
22408         * tests/test-utimens.c (main): Likewise.
22409         * tests/test-utimensat.c (main): Likewise.
22410         * tests/test-version-etc.c (main): Likewise.
22411         * tests/test-wchar.c (main): Likewise.
22412         * tests/test-wctype.c (main): Likewise.
22413         * tests/test-xprintf-posix.c (main): Likewise.
22414         * tests/test-posixtm.c (main): Likewise.
22415         (STREQ): Delete unused macro.
22416         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22417         shadowed variables.
22418         * tests/test-memchr.c (main): Likewise.
22419
22420 2009-10-21  Eric Blake  <ebb9@byu.net>
22421
22422         areadlinkat: avoid failure on older glibc
22423         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22424         rather than mis-comparing 0 against FUNC_RESULT of char*.
22425
22426 2009-10-21  Bruno Haible  <bruno@clisp.org>
22427
22428         * modules/stpncpy (License): Relicense under LGPLv2+.
22429         Reported by David Lutterkort <lutter@redhat.com>.
22430
22431 2009-10-20  Eric Blake  <ebb9@byu.net>
22432
22433         utimensat: work around Solaris 9 bug
22434         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22435         has trailing slash bugs.
22436         * tests/test-lutimens.h (test_lutimens): Enhance test.
22437         * tests/test-utimens.h (test_utimens): Likewise.
22438         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22439         * doc/posix-functions/utimes.texi (utimes): Likewise.
22440         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22441         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22442         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22443         * doc/posix-functions/futimens.texi (futimens): Likewise.
22444
22445         fdutimensat: new module
22446         * modules/fdutimensat: New file.
22447         * lib/fdutimensat.c (fdutimensat): Likewise.
22448         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22449         * MODULES.html.sh (File system functions): Mention module.
22450         * modules/fdutimensat-tests: New test.
22451         * tests/test-fdutimensat.c: Likewise.
22452
22453         doc: regenerate INSTALL
22454         * doc/INSTALL: Reflect recent autoconf update.
22455         * doc/INSTALL.ISO: Likewise.
22456         * doc/INSTALL.UTF-8: Likewise.
22457
22458 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22459
22460         acl: warn if ACL support is not detected
22461         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22462
22463 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22464
22465         * lib/nproc.h: Add extern "C" block for C++.
22466
22467 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22468             Bruno Haible  <bruno@clisp.org>
22469
22470         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22471         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22472         * doc/posix-functions/isalpha.texi: Likewise.
22473         * doc/posix-functions/isblank.texi: Likewise.
22474         * doc/posix-functions/iscntrl.texi: Likewise.
22475         * doc/posix-functions/isdigit.texi: Likewise.
22476         * doc/posix-functions/isgraph.texi: Likewise.
22477         * doc/posix-functions/islower.texi: Likewise.
22478         * doc/posix-functions/isprint.texi: Likewise.
22479         * doc/posix-functions/ispunct.texi: Likewise.
22480         * doc/posix-functions/isspace.texi: Likewise.
22481         * doc/posix-functions/isupper.texi: Likewise.
22482         * doc/posix-functions/isxdigit.texi: Likewise.
22483
22484 2009-10-18  Bruno Haible  <bruno@clisp.org>
22485
22486         Tests for module 'isblank'.
22487         * modules/isblank-tests: New file.
22488         * tests/test-isblank.c: New file.
22489
22490         New module 'isblank'.
22491         * lib/isblank.c: New file.
22492         * m4/isblank.m4: New file.
22493         * modules/isblank: New file.
22494         * doc/posix-functions/isblank.texi: Mention the new module.
22495
22496 2009-10-18  Bruno Haible  <bruno@clisp.org>
22497
22498         New module 'ctype'.
22499         * lib/ctype.in.h: New file.
22500         * m4/ctype.m4: New file.
22501         * modules/ctype: New file.
22502         * doc/posix-headers/ctype.texi: Mention the new module.
22503
22504 2009-10-18  Jim Meyering  <meyering@redhat.com>
22505
22506         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22507         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22508         right after its initialization, rather than farther down.
22509         Keeping these in close proximity makes it easier to ensure
22510         that each such variable is initialized.  E.g.,
22511
22512             LIB_CLOCK_GETTIME=
22513             AC_SUBST([LIB_CLOCK_GETTIME])
22514
22515         This change also increments these serial numbers.
22516         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22517         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22518         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22519
22520 2009-10-18  Bruno Haible  <bruno@clisp.org>
22521
22522         Don't let environment variables perturb build.
22523         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22524         (gl_PREREQ_GETHRXTIME): ... not here.
22525
22526 2009-10-18  Bruno Haible  <bruno@clisp.org>
22527
22528         Avoid symlink attack in localcharset module.
22529         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
22530         (O_NOFOLLOW): Define fallback.
22531         (get_charset_aliases): Don't open the file if it is a symbolic link.
22532         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22533         gl_FCNTL_H.
22534         (gl_FCNTL_H): Require it.
22535         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22536         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22537         Reported by Fergal Glynn <fglynn@veracode.com>.
22538
22539 2009-10-18  Bruno Haible  <bruno@clisp.org>
22540
22541         Implement nproc for mingw.
22542         * lib/nproc.c: Include <windows.h>
22543         (num_processors): On native Windows platforms, try GetSystemInfo.
22544
22545 2009-10-18  Bruno Haible  <bruno@clisp.org>
22546
22547         Implement nproc for IRIX.
22548         * lib/nproc.c: Include <sys/sysmp.h>.
22549         (num_processors): On IRIX systems, try sysmp.
22550         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22551
22552 2009-10-18  Bruno Haible  <bruno@clisp.org>
22553
22554         Implement nproc for HP-UX.
22555         * lib/nproc.c: Include <sys/pstat.h>
22556         (num_processors): On HP-UX systems, try pstat_getdynamic.
22557         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22558         pstat_getdynamic.
22559
22560 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22561             Bruno Haible  <bruno@clisp.org>
22562
22563         Implement nproc for NetBSD, OpenBSD.
22564         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22565         (ARRAY_SIZE): New macro.
22566         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22567         * m4/nproc.m4: New file.
22568         * modules/nproc (Files): Add m4/nproc.m4.
22569         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22570         (Makefile.am): Instead, augment lib_SOURCES.
22571
22572 2009-10-18  Bruno Haible  <bruno@clisp.org>
22573
22574         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22575         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22576         sys/param.h.
22577
22578 2009-10-16  Eric Blake  <ebb9@byu.net>
22579
22580         utimensat: new module
22581         * modules/utimensat: New file.
22582         * lib/utimensat.c (utimensat): Likewise.
22583         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22584         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22585         so we can work around Linux bugs.
22586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22587         * modules/sys_stat (Makefile.am): Substitute them.
22588         * lib/sys_stat.in.h (utimensat): Declare it.
22589         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22590         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22591         * modules/utimensat-tests: New test.
22592         * tests/test-utimensat.c: Likewise.
22593
22594         utimens: let lutimens work on non-symlinks
22595         * lib/utimens.c (lutimens): Fall back to utimens rather than
22596         failing with ENOSYS, when file is not a symlink.
22597         (utimens): Reduce redirection.
22598         * tests/test-lutimens.h (test_lutimens): Update test to cover
22599         non-symlinks.
22600         * tests/test-utimens.h (test_utimens): Update test to cover
22601         symlinks.
22602         * tests/test-utimens.c (main): Update caller.
22603
22604         utimens: cache whether utimensat syscall works
22605         * lib/utimens.c (utimensat_works_really): New cache variable.
22606         (fdutimens, lutimens): Use it to avoid failing syscall.
22607
22608         test-stat-time, test-utimens: improve portability
22609         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
22610         ext4 on alpha, and for cygwin.
22611         * tests/test-utimens-common.h: New file.
22612         (nap): Factor delays into single function.
22613         * tests/test-lutimens.h (test_lutimens): Use new header.
22614         * tests/test-futimens.h (test_futimens): Likewise.
22615         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
22616         timestamps to occur from same machine, as was done previously for
22617         test_utimens.
22618         * modules/utimens-tests (Files): Ship new file.
22619         * modules/futimens-tests (Files): Likewise.
22620         Reported in part by Jim Meyering.
22621
22622         sys_stat: sort replacement declarations
22623         * lib/sys_stat.in.h: Sort declarations.
22624         * lib/futimens.c (futimens): Fix typo.
22625
22626 2009-10-15  Jim Meyering  <meyering@redhat.com>
22627
22628         don't let environment settings perturb build
22629         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
22630         could cause a configure-time and/or build-time malfunction.
22631         Typically, a configure-time function-in-library test is performed
22632         via code like this:
22633
22634           LIB_VAR=
22635           AC_SUBST([LIB_VAR])
22636           prefix_saved_LIBS=$LIBS
22637             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
22638                        [test "$ac_cv_search_FUNC" = "none required" ||
22639                         LIB_VAR=$ac_cv_search_FUNC])
22640           LIBS=$prefix_saved_LIBS
22641
22642         However, in each of the files affected by this change, the LIB_VAR=
22643         initialization was omitted.  Thus, when set in the environment, its
22644         value would propagate into generated Makefiles when FUNC is not found
22645         in LIB_NAME.
22646         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
22647         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22648         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22649
22650 2009-10-14  Eric Blake  <ebb9@byu.net>
22651
22652         fchdir: avoid infinite recursion in mingw
22653         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
22654         recursing.
22655
22656         test-stat-time: port to mingw
22657         * tests/test-stat-time.c (force_unlink): Return a value.
22658         (test_ctime) [W32]: Fix compilation error.
22659         (nap): Don't call usleep with too large an argument.  Use
22660         force_unlink.
22661         * doc/pastposix-functions/usleep.texi (usleep): Document the
22662         portability issue.
22663
22664 2009-10-13  Jim Meyering  <meyering@redhat.com>
22665
22666         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
22667         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
22668         * modules/pipe-filter-ii: Likewise.
22669         * modules/sys_socket-tests: Likewise.
22670         * modules/tsearch-tests: Likewise.
22671         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
22672         (check): Depend on it.
22673
22674 2009-10-12  Eric Blake  <ebb9@byu.net>
22675
22676         utimens-tests: port to NFS file systems
22677         * tests/test-utimens.h (test_utimens): Refactor utimecmp
22678         comparisons to avoid spurious failures from timestamp drift
22679         between NFS machines.
22680
22681 2009-10-12  Eric Blake  <ebb9@byu.net>
22682
22683         stat-time-tests: minor cleanups
22684         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
22685         * tests/test-stat-time.c (nap): Separate assignment from call.
22686         Suggested by Paolo Bonzini and Bruno Haible.
22687
22688         sys_stat: guarantee struct timespec
22689         * lib/sys_stat.in.h (includes): Always include <time.h>
22690         * modules/sys_stat (Depends-on): Add time.
22691         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
22692         mode_t permission values.
22693         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
22694         get at subsecond timestamps.
22695
22696 2009-10-10  Eric Blake  <ebb9@byu.net>
22697
22698         futimens: new module
22699         * modules/futimens: New file.
22700         * lib/futimens.c (futimens): Likewise.
22701         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
22702         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
22703         we can work around Linux bugs.
22704         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22705         * modules/sys_stat (Makefile.am): Substitute them.
22706         * lib/sys_stat.in.h (futimens): Declare it.
22707         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22708         * doc/posix-functions/futimens.texi (futimens): Likewise.
22709         * modules/futimens-tests: New test.
22710         * tests/test-futimens.c: Likewise.
22711
22712         utimens: introduce fdutimens
22713         * lib/utimens.h (fdutimens): New prototype.
22714         * lib/utimens.c (gl_futimens): Move guts...
22715         (fdutimens): ...to new interface.
22716         * tests/test-utimens.c (do_fdutimens): Use it.
22717
22718         utimens: add UTIME_NOW and UTIME_OMIT support
22719         * lib/utimens.c (validate_timespec, update_timespec): New helper
22720         functions.
22721         (gl_futimens, lutimens): Use them.
22722         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
22723         stdbool, sys_stat.
22724         (Link): Mention resulting library dependency.
22725         * modules/utimecmp (Link): Likewise.
22726         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
22727         (Makefile.am): Pick up library dependency.
22728         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
22729         definition.
22730         * tests/test-sys_stat.c: Test the definitions.
22731         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
22732         * NEWS: Document library dependency.
22733
22734         utimecmp: support symlink timestamps
22735         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
22736         hashing when possible.  Use pathconf when available.
22737         (SYSCALL_RESOLUTION): Recognize tighter resolution.
22738         * modules/utimecmp (Depends-on): Add lstat.
22739
22740         utimens: add lutimens interface
22741         * lib/utimens.c (lutimens): New function.
22742         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
22743         * lib/utimens.h (lutimens): Declare new interface.
22744         * tests/test-utimens.c (main): Enhance test.
22745         * tests/test-lutimens.h (test_lutimens): New file.
22746         * modules/utimens-tests (Files): Distribute it.
22747         (Depends-on): Add symlink.
22748         (configure.ac): Check for usleep.
22749
22750         utimens: validate futimens usage
22751         * lib/utimens.c (gl_futimens): Require valid fd up front, using
22752         fewer syscalls on failure later on.  Avoid compiler warning on
22753         mingw.
22754         * modules/utimens (Depends-on): Add dup2.
22755
22756         utimens: add test
22757         * modules/utimens-tests: New test.
22758         * tests/test-utimens.h: New file.
22759         * tests/test-futimens.h: Likewise.
22760         * tests/test-utimens.c: Likewise.
22761
22762         doc: mention timestamp portability issues
22763         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
22764         instead.
22765         * doc/posix-functions/utime.texi (utime): Likewise.
22766         * doc/posix-functions/utimes.texi (utimes): Likewise.
22767         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
22768         instead.
22769         * doc/posix-functions/futimens.texi (futimens): Mention utimens
22770         module.
22771         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22772         Mention weakness with symlink timestamps.
22773         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
22774         to utimensat/futimens instead.
22775         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
22776
22777         test-dup2: enhance test
22778         * tests/test-dup2.c (main): Also check AT_FDCWD.
22779
22780         test-stat-time: avoid more spurious failures
22781         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
22782         xfs; and avoid race if the two timestamps cross quantization edge.
22783
22784         relocatable: prefer 'file system' over 'filesystem'
22785         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
22786         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
22787         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
22788         * doc/relocatable.texi (Enabling Relocatability): Likewise.
22789         * lib/relocatable.c (compute_curr_prefix): Likewise.
22790
22791 2009-10-10  Jim Meyering  <meyering@redhat.com>
22792
22793         stat-time-tests: check for the usleep function
22794         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
22795
22796 2009-10-10  Bruno Haible  <bruno@clisp.org>
22797
22798         * modules/xnanosleep: Put the Link section after the Include section.
22799
22800 2009-10-09  Eric Blake  <ebb9@byu.net>
22801
22802         dup2: work around FreeBSD 6.1 bug
22803         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
22804         * doc/posix-functions/dup2.texi (dup2): Document it.
22805         Reported by Nelson H. F. Beebe and Jim Meyering.
22806
22807         test-stat-time: port to buggy NFS clients
22808         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
22809         (test_ctime): Also skip test if mtime and ctime are skewed.
22810
22811         maint: prefer 'file system' over 'filesystem'
22812         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
22813         * doc/posix-functions/lstat.texi (lstat): Likewise.
22814         * lib/file-has-acl.c (file_has_acl): Likewise.
22815         * lib/fwriteerror.c [TEST]: Likewise.
22816         * tests/test-areadlink.h (test_areadlink): Likewise.
22817         * tests/test-areadlinkat-with-size.c (main): Likewise.
22818         * tests/test-areadlinkat.c (main): Likewise.
22819         * tests/test-canonicalize-lgpl.c (main): Likewise.
22820         * tests/test-canonicalize.c (main): Likewise.
22821         * tests/test-fstatat.c (main): Likewise.
22822         * tests/test-linkat.c (main): Likewise.
22823         * tests/test-lstat.h (test_lstat_func): Likewise.
22824         * tests/test-mkdir.h (test_mkdir): Likewise.
22825         * tests/test-readlink.h (test_readlink): Likewise.
22826         * tests/test-remove.c (main): Likewise.
22827         * tests/test-rename.h (test_rename): Likewise.
22828         * tests/test-renameat.c (main): Likewise.
22829         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22830         * tests/test-symlink.h (test_symlink): Likewise.
22831         * tests/test-symlinkat.c (main): Likewise.
22832         * tests/test-unlink.h (test_unlink_func): Likewise.
22833         * tests/test-unlinkat.c (main): Likewise.
22834
22835         maint: make realtime library usage explicit
22836         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
22837         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
22838         * modules/settime (Link): Likewise.
22839         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
22840
22841         test-stat-time: speed up execution
22842         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
22843         warning on mingw.
22844         (nap): New helper function.
22845         (prepare_test): Use it to reduce sleep time.
22846         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
22847         execution.
22848         * modules/stat-time-tests (configure.ac): Check for usleep.
22849
22850 2009-10-09  Jim Meyering  <meyering@redhat.com>
22851
22852         selinux-h: always use getfilecon wrappers
22853         * lib/getfilecon.c: New file.
22854         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
22855         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
22856         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
22857         (fgetfilecon): Provide a stub.
22858         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
22859         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
22860         file unconditionally.
22861         When <selinux/selinux.h> is found, arrange to use wrappers.
22862         * modules/selinux-h (Files): Add getfilecon.c.
22863         (Makefile.am): Substitute include-next-related bits
22864         into the now-always-generated selinux/selinux.h file.
22865         * doc/glibc-functions/lgetfilecon.texi: New file.
22866         * doc/glibc-functions/fgetfilecon.texi: New file.
22867         * doc/glibc-functions/getfilecon.texi: New file.
22868         * doc/glibc-functions/getfilecon-desc.texi: New file.
22869         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
22870         which to pull in the new files.
22871         * MODULES.html.sh (Misc): Add selinux-h.
22872
22873 2009-10-08  Jim Meyering  <meyering@redhat.com>
22874
22875         unistd: fix comment typo
22876         * lib/unistd.in.h (euidaccess): Fix a comment typo.
22877
22878 2009-10-08  Eric Blake  <ebb9@byu.net>
22879
22880         areadlink: use SIZE_MAX consistently
22881         * modules/areadlink (Depends-on): Add stdint.
22882         * modules/areadlink-with-size (Depends-on): Likewise.
22883         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
22884         gives NULL; drop sys/types, since unistd gives size_t; and add
22885         stdint for SIZE_MAX.
22886         (SIZE_MAX): Rely on headers.
22887         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
22888         and add stdint.
22889         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
22890         (SIZE_MAX): Likewise.
22891         (INITIAL_BUF_SIZE): Turn into enum.
22892         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
22893
22894 2009-10-08  Jim Meyering  <meyering@redhat.com>
22895
22896         areadlinkat: avoid compilation failure
22897         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
22898         Fix typo in comment.
22899
22900 2009-10-07  Eric Blake  <ebb9@byu.net>
22901
22902         areadlinkat-with-size: new module
22903         * modules/areadlinkat-with-size: New module.
22904         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
22905         * lib/areadlink.h (areadlinkat): Declare it.
22906         * MODULES.html.sh (File system functions): Mention it.
22907         * modules/areadlinkat-with-size-tests: New test.
22908         * tests/test-areadlinkat-with-size.c: New file.
22909
22910         xreadlinkat: new module
22911         * modules/xreadlinkat: New module.
22912         * lib/xreadlinkat.c (xreadlinkat): New file.
22913         * lib/xreadlink.h (xreadlinkat): Declare it.
22914         * MODULES.html.sh (File system functions): Mention it.
22915
22916         areadlinkat: new module
22917         * lib/at-func.c (FUNC_FAIL): New define.
22918         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
22919         * modules/areadlinkat: New module.
22920         * lib/linkat.c (areadlinkat): Move...
22921         * lib/areadlinkat.c (areadlinkat): ...to new file.
22922         * lib/areadlink.h (areadlinkat): Declare it.
22923         * modules/linkat (Depends-on): Add areadlinkat.
22924         * MODULES.html.sh (File system functions): Mention it.
22925         * modules/areadlinkat-tests: New test.
22926         * tests/test-areadlinkat.c: New file.
22927
22928         areadlink, areadlink-with-size: add tests
22929         * modules/areadlink-tests: New test.
22930         * modules/areadlink-with-size-tests: Likewise.
22931         * tests/test-areadlink.h: New file.
22932         * tests/test-areadlink.c: Likewise.
22933         * tests/test-areadlink-with-size.c: Likewise.
22934
22935         maint: minor cleanups
22936         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
22937         _UNUSED_PARAMETER_ instead.
22938         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
22939         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
22940         * modules/linkat-tests (Files): Distribute test-link.h.
22941
22942         openat, utimens: whitespace cleanup
22943         * lib/openat.c: Prefer space throughout, rather than mix of 8
22944         spaces vs. tabs.
22945         * lib/at-func.c: Likewise.
22946         * lib/utimens.c: Likewise.
22947
22948         openat: avoid using wrong fd
22949         * lib/openat.c (openat_permissive): Reject user's fd if saving the
22950         working directory chooses same fd.
22951         * lib/at-func.c (AT_FUNC_NAME): Likewise.
22952
22953         mkdir, mkdirat: fix cygwin 1.5.x bug
22954         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
22955         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
22956         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
22957         bug.
22958         (gl_PREREQ_MKDIR): Delete unused macro.
22959         * modules/mkdir (Files): Track file rename.
22960         (configure.ac): Update macro name.
22961         * modules/openat (Depends-on): Add mkdir.
22962         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
22963
22964         mkdir, mkdirat: add tests
22965         * modules/mkdir-tests: New test.
22966         * tests/test-mkdir.h: New file.
22967         * tests/test-mkdir.c: Likewise.
22968         * tests/test-mkdirat.c: Likewise.
22969         * modules/openat-tests (Files): Add new files.
22970         (Makefile.am): Run new test.
22971
22972 2009-10-06  Eric Blake  <ebb9@byu.net>
22973
22974         doc: tweak *at function documentation
22975         * doc/posix-functions/faccessat.texi (faccessat): Mention
22976         known issue with replacement.
22977         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
22978         * doc/posix-functions/linkat.texi (linkat): Likewise.
22979         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
22980         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
22981         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22982         * doc/posix-functions/renameat.texi (renameat): Likewise.
22983         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22984
22985         openat: fix GNU/Hurd bug in unlinkat
22986         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
22987         broken.
22988         * doc/posix-functions/unlink.texi (unlink): Document this.
22989         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
22990
22991         fdopendir: fix GNU/Hurd bug
22992         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
22993         allowing non-directory fds.
22994         * lib/fdopendir.c (rpl_fdopendir): Work around it.
22995         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22996         * modules/dirent (Makefile.am): Substitute it.
22997         * lib/dirent.in.h (fdopendir): Declare replacement.
22998         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
22999         * tests/test-fdopendir.c (main): Test something other than
23000         /dev/null, since on Hurd that behaves like a directory.
23001
23002         test-symlink: port to GNU/Hurd
23003         * tests/test-symlink.h (test_symlink): Relax expected errno.
23004
23005         doc: tweak more cygwin information
23006         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
23007         now compatible with glibc.
23008         * doc/posix-functions/getopt.texi (getopt): Likewise.
23009
23010         getopt-gnu: add another test
23011         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
23012         guarantee behavior relied on by m4.
23013         * tests/test-getopt.c (main): Use it.
23014         * modules/getopt-posix-tests (Depends-on): Add setenv.
23015         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
23016
23017         getopt: fix compilation on darwin
23018         * lib/getopt.in.h (includes): Leave breadcrumbs during system
23019         include.
23020         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
23021         Reported by Ludovic Courtès.
23022
23023 2009-10-06  Bruno Haible  <bruno@clisp.org>
23024
23025         * modules/size_max (Description): Discourage its use.
23026         Reported by Simon Josefsson.
23027
23028 2009-10-06  Jim Meyering  <meyering@redhat.com>
23029
23030         linkat: avoid compilation failure
23031         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
23032
23033 2009-10-05  Eric Blake  <ebb9@byu.net>
23034
23035         linkat: support Linux 2.6.17
23036         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
23037         linkat on Linux, but allow cache variable override.
23038         * lib/linkat.c (rpl_linkat): Define override.
23039         * modules/linkat (Depends-on): Add symlinkat.
23040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
23041         * modules/unistd (Makefile.am): Substitute it.
23042         * lib/unistd.in.h (linkat): Declare replacement.
23043         Reported by Pádraig Brady.
23044
23045         quotearg: port test to systems with C.UTF-8 locale
23046         * tests/test-quotearg.c (struct result_strings): Add another
23047         member, differentiating between C.ASCII and C.UTF-8 handling.
23048         (compare_strings): Add parameter.
23049         (main): Adjust all callers.
23050
23051         getopt: avoid clash with FreeBSD _getopt_internal
23052         * lib/getopt.in.h (_getopt_internal): Override the name.
23053         * lib/getopt_int.h (includes): Pick up any overrides.
23054         Reported by Reuben Thomas.
23055
23056         hash: allow C89 compilation
23057         * lib/hash.c (check_tuning): Move declaration before statement.
23058         Reported by Reuben Thomas.
23059
23060 2009-10-05  Karl Berry  <karl@gnu.org>
23061
23062         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
23063
23064 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
23065             Bruno Haible  <bruno@clisp.org>
23066
23067         * lib/uname.c (uname): Use a table-driven algorithm to compute
23068         Windows NT versions.
23069
23070 2009-10-04  Bruno Haible  <bruno@clisp.org>
23071
23072         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
23073         program_invocation_short_name.
23074         * modules/progname (configure.ac): Test for presence of
23075         program_invocation_short_name.
23076         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23077
23078 2009-10-04  Bruno Haible  <bruno@clisp.org>
23079
23080         * lib/progname.c (set_program_name): Fix comment.
23081         Reported by Jim Meyering.
23082
23083 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23084             Bruno Haible  <bruno@clisp.org>
23085
23086         * lib/uname.c: Include <string.h>.
23087         (uname): Do only one call to GetVersionEx in the common case.
23088
23089 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23090             Bruno Haible  <bruno@clisp.org>
23091
23092         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
23093         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
23094         (uname): Add support for Windows CE and various non-x86 CPU types.
23095
23096 2009-10-03  Bruno Haible  <bruno@clisp.org>
23097
23098         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
23099         invocation to tests/configure.ac.
23100         Reported by Ian Beckwith <ianb@erislabs.net>.
23101
23102 2009-10-02  Eric Blake  <ebb9@byu.net>
23103
23104         fchdir: avoid compiler warning
23105         * lib/fchdir.c (canonicalize_file_name)
23106         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
23107
23108         test-open: support mingw errno values
23109         * tests/test-open.h (test_open): Relax test.
23110         * tests/test-fopen.h (test_fopen): Likewise.
23111         * tests/test-openat-safer.c (main): Likewise.
23112
23113         open: fix opening directory on mingw
23114         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
23115
23116         test-open: on GNU/Hurd, /dev/null is a directory
23117         * tests/test-fopen.h (main): Rename...
23118         (test_fopen): ...to this.  Use a guaranteed non-directory when
23119         confirming open behavior on trailing slash.
23120         * tests/test-openat-safer.c (main): Likewise.
23121         * tests/test-open.h (main): Likewise....
23122         (test_open): ...to this.
23123         * tests/test-fopen.c (main): Adjust caller.
23124         * tests/test-fopen-safer.c (main): Likewise.
23125         * tests/test-open.c (main): Likewise.
23126         * tests/test-fcntl-safer.c (main): Likewise.
23127         Reported by Samuel Thibault.
23128
23129         rename, fchdir: don't ignore chdir failure
23130         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
23131         * lib/rename.c (rpl_rename) [W32]: Likewise.
23132         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
23133         an empty destination directory if source cannot be renamed,
23134         although there is still possibility for failure.
23135         * doc/posix-functions/rename.texi (rename): Document the race.
23136         Reported by Jim Meyering.
23137
23138         maint: cleanup whitespace in recent commits
23139         * lib/rename.c (rpl_rename): Remove tabs.
23140         * tests/test-link.h (test_link): Likewise.
23141         * lib/fchdir.c (get_name): Likewise.
23142         Reported by Jim Meyering.
23143
23144 2009-10-02  Ben Pfaff  <blp@gnu.org>
23145
23146         relocatable-prog-wrapper: Add missing dependency on
23147         double-slash-root.
23148         * modules/relocatable-prog-wrapper: Add dependency.
23149         Reported by Ian Beckwith <ianb@erislabs.net>.
23150
23151 2009-10-02  Eric Blake  <ebb9@byu.net>
23152
23153         renameat: fix Solaris bugs
23154         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23155         needed fixing.
23156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23157         * modules/stdio (Makefile.am): Substitute it.
23158         * lib/stdio.in.h (renameat): Declare replacement.
23159         * lib/renameat.c (rpl_renameat): Implement fix.
23160
23161         renameat: new module
23162         * modules/renameat: New file.
23163         * lib/renameat.c (renameat): Likewise.
23164         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23166         * modules/stdio (Makefile.am): Substitute them.
23167         * lib/stdio.in.h (renameat): Declare it.
23168         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23169         * doc/posix-functions/renameat.texi (renameat): Likewise.
23170         * modules/renameat-tests: New test.
23171         * tests/test-renameat.c: Likewise.
23172
23173         rename: fix mingw bugs
23174         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23175         directory overwrite bugs.
23176
23177         rename: fix another cygwin 1.5 bug
23178         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23179         checks.
23180         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23181         unnecessary cygwin workarounds.  Also work around bug with moving
23182         full directory onto an empty one.
23183         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23184
23185         rename-dest-slash: merge into rename module
23186         * modules/rename-dest-slash (Status): Mark obsolete.
23187         (Depends-on): Add rename.
23188         (Files): Let rename do it all.
23189         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23190         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23191         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23192         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23193         * lib/rename.c (rpl_rename): Update comments.
23194
23195         rename: fix cygwin 1.5.x bugs
23196         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23197         * lib/rename.c (rpl_rename): Work around them.
23198         * modules/rename (Depends-on): Add same-inode.
23199
23200         rename: fix Solaris 10 bug
23201         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23202         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23203         was the only bug.
23204
23205         rename: fix Solaris 9 bug
23206         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23207         on non-directory.  Avoid calling exit.
23208         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23209         strdup.
23210         * modules/rename-tests (Depends-on): Drop lstat.
23211         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23212         (gl_PREREQ_RENAME): Delete unused macro.
23213
23214         rename-dest-slash: fix NetBSD bug
23215         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23216         links.
23217         * modules/rename-dest-slash (Depends-on): Add same-inode.
23218
23219         rename-tests: new test, exposes several platform bugs
23220         * modules/rename-tests: New file.
23221         * tests/test-rename.h: Likewise.
23222         * tests/test-rename.c: Likewise.
23223         * doc/posix-functions/rename.texi (rename): Improve documentation,
23224         including bugs that will eventually be fixed in gnulib.
23225
23226 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23227
23228         * lib/uname.c: Include <stdlib.h>
23229         (uname): Assume version info is available.
23230
23231 2009-10-02  Jim Meyering  <meyering@redhat.com>
23232
23233         gnu-web-doc-update: correct --help output
23234         * build-aux/gnu-web-doc-update: Make --help output relevant.
23235
23236         gnu-web-doc-update: add standard options
23237         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23238
23239         gnu-web-doc-update: New module.
23240         Use this script to automatically update the on-line web documentation
23241         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23242         * modules/gnu-web-doc-update: New file, from coreutils.
23243         * build-aux/gnu-web-doc-update: New script.
23244
23245 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23246
23247         link: LoadLibrary is not needed.
23248         * lib/link.c: Use GetModuleHandle.
23249
23250 2009-10-01  Eric Blake  <ebb9@byu.net>
23251
23252         getopt: bump serial number
23253         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23254         change.
23255
23256         tests: tighten link, rmdir, and remove tests
23257         * tests/test-link.h (includes): No need to use <config.h> here.
23258         Clean up if directory hard link was created, otherwise test for
23259         trailing '.'.
23260         * tests/test-linkat.c (main): Simplify.
23261         * tests/test-remove.c (main): Enhance test for trailing '.'.
23262         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23263
23264 2009-10-01  Jim Meyering  <meyering@redhat.com>
23265
23266         maint.mk: requiring "make major" was annoying, for a "minor" release.
23267         What is intended is "stable", to contrast with alpha and beta,
23268         so require "make stable", not "make major".
23269         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23270         (get_tool_versions): Likewise.
23271         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23272
23273 2009-09-30  Ben Pfaff  <blp@gnu.org>
23274
23275         Fix broken build of replacement for Windows tmpfile().
23276         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23277         flags argument added along with the 'mkostemp' module.
23278
23279 2009-09-28  Bruno Haible  <bruno@clisp.org>
23280
23281         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23282         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23283         to 'remove_elt'.
23284         (gl_list_remove): Update.
23285         * lib/gl_list.c (gl_list_remove): Update.
23286         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23287         to 'remove_elt'.
23288         (gl_oset_remove): Update.
23289         * lib/gl_list.c (gl_oset_remove): Update.
23290         Reported by Eric Blake.
23291
23292 2009-09-28  Eric Blake  <ebb9@byu.net>
23293
23294         doc: mention yet more cygwin 1.7 status
23295         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23296         cygwin.
23297         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23298         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23299
23300         argp: fix test failure
23301         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23302         that are not upper-case.  Pass correct range to tolower.
23303
23304 2009-09-27  Jim Meyering  <meyering@redhat.com>
23305
23306         test-yesno: work around sparc-dash here-document infelicity
23307         Without this change, the literal \177 byte in a here document
23308         would make dash 0.5.5.1-3 access uninitialized memory.
23309         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23310         Instead, use a marker, "@", and filter through tr to create the desired
23311         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23312
23313 2009-09-27  Bruno Haible  <bruno@clisp.org>
23314
23315         Disable untested support for new flavours of ACLs on AIX.
23316         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23317         progress.
23318         * lib/set-mode-acl.c (qset_acl): Likewise.
23319
23320 2008-12-07  Bruno Haible  <bruno@clisp.org>
23321
23322         Add support for new flavours of ACLs on AIX. (Untested.)
23323         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23324         (file_has_acl): Add support for newer AIX.
23325         * lib/set-mode-acl.c (qset_acl): Likewise.
23326         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23327         Rainer Tammer <tammer@tammer.net>.
23328
23329 2009-09-26  Eric Blake  <ebb9@byu.net>
23330
23331         argp: fix compilation of getopt
23332         * lib/getopt.in.h (includes): Use different guard than glibc.
23333         Reported by Sergey Poznyakoff.
23334
23335         doc: mention more cygwin 1.7 status
23336         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23337         bug.
23338         * doc/posix-functions/execl.texi (execl): Likewise.
23339         * doc/posix-functions/execle.texi (execle): Likewise.
23340         * doc/posix-functions/execlp.texi (execlp): Likewise.
23341         * doc/posix-functions/execv.texi (execv): Likewise.
23342         * doc/posix-functions/execve.texi (execve): Likewise.
23343         * doc/posix-functions/execvp.texi (execvp): Likewise.
23344         * doc/glibc-functions/canonicalize_file_name.texi
23345         (canonicalize_file_name): Cygwin 1.7 now provides this.
23346         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23347         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23348         on AT_SYMLINK_NOFOLLOW.
23349
23350 2009-09-24  Eric Blake  <ebb9@byu.net>
23351
23352         test-linkat: make test more robust
23353         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23354
23355         getopt: fix inclusion guards for cygwin
23356         * modules/getopt-posix (Depends-on): Add include-next.
23357         (Makefile.am): Substitute more items in replacement header.
23358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23359         <getopt.h>.
23360         * lib/getopt.in.h (includes): Use split inclusion guard, and
23361         prefer <getopt.h> over include <unistd.h> when one is present.
23362         (option): Also override name of 'struct option'.
23363
23364         same-inode: revert prior change; it is not yet ready
23365         * NEWS: Undo mention of this change.
23366         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23367         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23368         * lib/cycle-check.c (cycle_check): Likewise.
23369         * lib/same.c (same_name): Likewise.
23370         * lib/at-func2.c (at_func2): Likewise.
23371
23372 2009-09-23  Eric Blake  <ebb9@byu.net>
23373
23374         linkat: new module
23375         * modules/linkat: New file.
23376         * lib/at-func2.c (at_func2): Likewise.
23377         * lib/linkat.c (linkat): Likewise.
23378         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23379         * lib/openat-priv.h (at_func2): Add declaration.
23380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23381         * modules/unistd (Makefile.am): Substitute them.
23382         * lib/unistd.in.h (linkat): Declare it.
23383         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23384         * doc/posix-functions/linkat.texi (linkat): Likewise.
23385         * doc/posix-functions/link.texi (link): Tweak wording.
23386         * tests/test-link.c (main): Move guts...
23387         * tests/test-link.h (test_link): ...into new file.
23388         * modules/linkat-tests: New test.
23389         * tests/test-linkat.c: Likewise.
23390         * modules/link-tests (Files): Ship new file.
23391         (Depends-on): Add stdbool.
23392
23393         dirname: add library-safe mdir_name
23394         * lib/dirname.h (mdir_name): New prototype.
23395         * lib/dirname.c (dir_name): Move guts...
23396         (mdir_name): ...to new function that avoids xalloc_die.
23397
23398         fchdir: another mingw fix
23399         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23400         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23401         on mingw (where it has not yet been ported), and make it optional
23402         elsewhere.
23403         (_gl_register_fd): Use it.
23404
23405         same-inode: make SAME_INODE tri-state, to port to mingw
23406         * NEWS: Mention this change.
23407         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23408         st_ino always being 0.
23409         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23410         * lib/cycle-check.c (cycle_check): Likewise.
23411         * lib/same.c (same_name): Likewise.
23412
23413         lstat: avoid mingw compilation error
23414         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23415         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23416         lstat ourselves.
23417         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23418         was adequate.
23419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23420         the checks for lstat.
23421         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23422
23423         link: fix test failure on Solaris 9
23424         * lib/link.c (rpl_link): Don't assume link will catch bogus
23425         trailing slash on source.
23426
23427         test-symlinkat: enhance test
23428         * tests/test-readlink.c (main): Move guts...
23429         * tests/test-readlink.h (test_readlink): ...into new file.
23430         * tests/test-symlink.c (main): Move guts...
23431         * tests/test-symlink.h (test_symlink): ...into new file.
23432         * tests/test-symlinkat.c (main): Use new files for further
23433         coverage.
23434         (do_symlink, do_readlink): New helper functions.
23435         * modules/symlink-tests (Files): Ship new file.
23436         (Depends-on): Add stdbool.
23437         * modules/readlink-tests (Files): Ship new file.
23438         (Depends-on): Add stdbool.
23439         * modules/symlinkat-tests (Files): Use new files.
23440
23441 2009-09-23  Eric Blake  <ebb9@byu.net>
23442
23443         readlink: document portability issue with symlink length
23444         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23445         systems have bogus st_size on symlinks, and mention the
23446         areadlink-with-size module.
23447         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23448         * doc/posix-functions/readlink.texi (readlink): Mention the
23449         areadlink module, and ERANGE failure.
23450         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23451         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23452
23453         readlink: fix Solaris 9 bug with trailing slash
23454         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23455         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23456         * doc/posix-functions/readlink.texi (readlink): Document this.
23457         * modules/readlink-tests: New test.
23458         * tests/test-readlink.c: Likewise.
23459
23460         readlink: fix cygwin 1.5.x bug with return type
23461         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23462         * lib/unistd.in.h (readlink): Use ssize_t.
23463         * lib/readlink.c (readlink): Likewise.
23464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23465         * modules/unistd (Makefile.am): Substitute it.
23466         * lib/unistd.in.h (readlink): Declare replacement.
23467         * doc/posix-functions/readlink.texi (readlink): Document this.
23468
23469         symlink: use throughout gnulib
23470         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23471         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23472         symlink is not used.
23473         * modules/symlinkat (Depends-on): Add symlink.
23474         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23475         * modules/canonicalize-tests (Depends-on): Likewise.
23476         * modules/lstat-tests (Depends-on): Likewise.
23477         * modules/openat-tests (Depends-on): Likewise.
23478         * modules/remove-tests (Depends-on): Likewise.
23479         * modules/rmdir-tests (Depends-on): Likewise.
23480         * modules/unlink-tests (Depends-on): Likewise.
23481         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23482         * tests/test-canonicalize.c (symlink): Likewise.
23483         * tests/test-fstatat.c (symlink): Likewise.
23484         * tests/test-lstat.c (symlink): Likewise.
23485         * tests/test-remove.c (symlink): Likewise.
23486         * tests/test-rmdir.c (symlink): Likewise.
23487         * tests/test-unlink.c (symlink): Likewise.
23488         * tests/test-unlinkat.c (symlink): Likewise.
23489
23490         symlink: new module, for Solaris 9 bug
23491         * modules/symlink: New file.
23492         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23493         * lib/symlink.c: Likewise.
23494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23495         * modules/unistd (Makefile.am): Substitute them.
23496         * lib/unistd.in.h (symlink): Declare replacement.
23497         * MODULES.html.sh (File system functions): Mention it.
23498         * doc/posix-functions/symlink.texi (symlink): Likewise.
23499         * modules/symlink-tests: New test.
23500         * tests/test-symlink.c: Likewise.
23501
23502 2009-09-23  Bruno Haible  <bruno@clisp.org>
23503
23504         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23505         when needed.
23506         Test case: gnulib-tool --import --with-tests atexit inttypes.
23507         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23508
23509 2009-09-23  Bruno Haible  <bruno@clisp.org>
23510
23511         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23512         subcommand, not in a subshell.
23513
23514 2009-09-22  Eric Blake  <ebb9@byu.net>
23515
23516         unistd: sort replacement declarations
23517         * lib/unistd.in.h: Sort declarations.
23518
23519         open, openat: minor optimization
23520         * lib/open.c (open): If open succeeded, len is non-zero.
23521         * lib/openat.c (rpl_openat): Likewise.
23522
23523         link-follow: ensure correct result
23524         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23525         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23526         distinguish between possible failures.
23527
23528 2009-09-21  Eric Blake  <ebb9@byu.net>
23529
23530         fts: avoid compiler warning
23531         * lib/fts.c (dirent_inode_sort_may_be_useful)
23532         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23533
23534 2009-09-19  Bruno Haible  <bruno@clisp.org>
23535
23536         * lib/progreloc.c (canonicalize_file_name): New declaration.
23537
23538 2009-09-19  Eric Blake  <ebb9@byu.net>
23539
23540         link: fix quoting
23541         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23542
23543         openat: fix openat bugs on Solaris 9
23544         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23545         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23546         * modules/openat (Depends-on): Add open.
23547         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23548         * modules/fcntl-h (Makefile.am): Substitute it.
23549         * lib/fcntl.in.h (openat): Declare replacement.
23550         * doc/posix-functions/openat.texi (openat): Document this.
23551
23552         openat: move fstatat and unlinkat into correct files
23553         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23554         compiled.
23555         * lib/openat.c (fstatat, unlinkat): Move...
23556         * lib/fstatat.c (fstatat): ...into correct files.
23557         * lib/unlinkat.c (unlinkat): Likewise.
23558
23559         openat: fix unlinkat bugs on Solaris 9
23560         * lib/unlinkat.c (unlinkat): New file.
23561         * modules/openat (Depends-on): Add unlink.
23562         (Files): Distribute it.
23563         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23564         trailing slash behavior is broken.
23565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23566         * modules/unistd (Makefile.am): Substitute it.
23567         * lib/unistd.in.h (unlinkat): Declare replacement.
23568         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23569
23570         openat: fix fstatat bugs on Solaris 9
23571         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23572         stat.
23573         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23574
23575         test-unlinkat: enhance test, to expose Solaris 9 bug
23576         * tests/test-unlink.c (main): Factor guts...
23577         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23578         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23579         * tests/test-rmdir.c (main): Adjust caller.
23580         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23581         (unlinker): New helper function.
23582         (rmdirat): Enhance check.
23583         * modules/rmdir-tests (Depends-on): Add stdbool.
23584         * modules/unlink-tests (Depends-on): Likewise.
23585         (Files): Add test-unlink.h.
23586         * modules/openat-tests (Files): Likewise.
23587         (Depends-on): Add unlinkdir.
23588
23589         test-fstatat: new test, to expose Solaris 9 bugs
23590         * tests/test-stat.c (main): Factor guts...
23591         * tests/test-stat.h (test_stat_func): ...into new file.
23592         * tests/test-lstat.c (main): Factor guts...
23593         * tests/test-lstat.h (test_lstat_func): ...into new file.
23594         * tests/test-fstatat.c: New file.
23595         * modules/stat-tests (Files): Add test-stat.h.
23596         * modules/lstat-tests (Files): Add test-lstat.h.
23597         (Depends-on): Add stdbool.
23598         * modules/openat-tests (Depends-on): Add pathmax.
23599         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
23600         (Makefile.am): Run new test.
23601
23602         remove: new module, for mingw and Solaris 9 bugs
23603         * modules/remove: New file.
23604         * lib/remove.c: Likewise.
23605         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
23606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23607         * modules/stdio (Makefile.am): Use them.
23608         * lib/stdio.in.h (remove): Declare replacement.
23609         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23610         * doc/posix-functions/remove.texi (remove): Likewise.
23611         * modules/remove-tests: New test.
23612         * tests/test-remove.c: Likewise.
23613
23614         unlink: new module, for Solaris 9 bug
23615         * modules/unlink: New file.
23616         * lib/unlink.c: Likewise.
23617         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23619         * modules/unistd (Makefile.am): Use them.
23620         * lib/unistd.in.h (stat): Declare replacement.
23621         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23622         * doc/posix-functions/unlink.texi (unlink): Likewise.
23623         * modules/unlink-tests: New test.
23624         * tests/test-unlink.c: Likewise.
23625
23626         lstat: fix Solaris 9 bug
23627         * lib/lstat.c (lstat): Also check for trailing slash on
23628         non-symlink, non-directories.  Use stat module to simplify logic.
23629         * doc/posix-functions/lstat.texi (lstat): Document it.
23630         * modules/lstat-tests (Depends-on): Add errno, same-inode.
23631         (configure.ac): Check for symlink.
23632         * tests/test-lstat.c (main): Add more tests.
23633
23634         stat: add as dependency to other modules
23635         * modules/chown (Depends-on): Add stat.
23636         * modules/euidaccess (Depends-on): Likewise.
23637         * modules/fchdir (Depends-on): Likewise.
23638         * modules/isdir (Depends-on): Likewise.
23639         * modules/link (Depends-on): Likewise.
23640         * modules/lstat (Depends-on): Likewise.
23641         * modules/mkdir-p (Depends-on): Likewise.
23642         * modules/modechange (Depends-on): Likewise.
23643         * modules/open (Depends-on): Likewise.
23644         * modules/readlink (Depends-on): Likewise.
23645         * modules/same (Depends-on): Likewise.
23646
23647         stat: fix Solaris 9 bug
23648         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
23649         slash.
23650         * lib/stat.c (rpl_stat): Work around it.
23651         * doc/posix-functions/stat.texi (stat): Update documentation.
23652
23653         stat: new module, for mingw bug
23654         * modules/stat: New file.
23655         * lib/stat.c: Likewise.
23656         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23657         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23658         * modules/sys_stat (Makefile.am): Use them.
23659         * lib/sys_stat.in.h (stat): Declare replacement.
23660         * lib/openat.c (fstatat): Deal with lstat and stat being function
23661         macros.
23662         * modules/openat (Depends-on): Add inline.
23663         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23664         * doc/posix-functions/stat.texi (stat): Likewise.
23665         * modules/stat-tests: New test.
23666         * tests/test-stat.c: Likewise.
23667
23668 2009-09-19  Jim Meyering  <meyering@redhat.com>
23669
23670         syntax-check: detect unnecessary inclusion of canonicalize.h
23671         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
23672
23673 2009-09-19  Eric Blake  <ebb9@byu.net>
23674
23675         canonicalize-lgpl: adjust clients to use correct header
23676         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23677         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
23678         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
23679         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
23680         * lib/progreloc.c (includes): Likewise.
23681
23682 2009-09-19  Jim Meyering  <meyering@redhat.com>
23683
23684         test-posixtm.c: correct a comment
23685         * tests/test-posixtm.c: Correct first-line comment.
23686         Spotted by Eric Blake.
23687
23688 2009-09-16  Jim Meyering  <meyering@redhat.com>
23689
23690         posixtm-tests: make T const-correct; add a test case
23691         * tests/test-posixtm.c (T): Declare const.
23692         Add a test for -(2^31+1).
23693         Remove useless can-succeed-only-in-2002 test.
23694
23695         posixtm-tests: adjust the sole failing test
23696         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
23697         expected output matches what mktime now produces.  Cross-checked via
23698         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
23699
23700         posixtm: move #ifdef'd tests into a new module
23701         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
23702         * tests/test-posixtm.c: ... this new file.
23703         * modules/posixtm-tests: New module.
23704
23705 2009-09-19  Eric Blake  <ebb9@byu.net>
23706
23707         openat: simplify use of at-func.c
23708         * lib/at-func.c (includes): Include prerequisites here, to
23709         simplify requirements on client files.
23710         * lib/openat-priv.h: Add double-inclusion guard.
23711         * lib/faccessat.c (includes): Simplify.
23712         * lib/fchmodat.c (includes): Likewise.
23713         * lib/fchownat.c (includes): Likewise.
23714         * lib/mkdirat.c (includes): Likewise.
23715         * lib/mkfifoat.c (includes): Likewise.
23716         * lib/symlinkat.c (includes): Likewise.
23717
23718         openat: allow return of fd 0
23719         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
23720         * modules/save-cwd (Depends-on): Replace fcntl-safer with
23721         unistd-safer.
23722         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
23723         <fcntl.h>; this module does not leak fds.
23724         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
23725         must be allowed to return 0, leaving openat_safer to add the
23726         safety.
23727         (openat_permissive): Avoid writing to just-opened fd 2 if
23728         restoring the current directory fails.
23729         * lib/openat-die.c (openat_restore_fail): Add comment.
23730         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
23731         (save_cwd): Guarantee safe fd, but without use of open_safer.
23732         * tests/test-openat.c: New test.
23733         * modules/openat-tests (Files, Makefile.am): Distribute and build
23734         new file.
23735
23736         relocatable-prog-wrapper: fix build
23737         * modules/relocatable-prog-wrapper (Files): Update name of
23738         canonicalize m4 file, broken on 2009-09-17.
23739         Reported by emad hajjar <aleppos@hotmail.com>.
23740
23741 2009-09-19  Bruno Haible  <bruno@clisp.org>
23742
23743         * lib/safe-alloc.h: Use the standard header with GPL copyright.
23744         * lib/safe-alloc.c: Likewise.
23745         Reported by Ian Beckwith <ianb@erislabs.net>.
23746
23747 2009-09-18  Bruno Haible  <bruno@clisp.org>
23748
23749         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
23750         Reported by <erobles@sensacd.com.mx>.
23751
23752 2009-09-17  Eric Blake  <ebb9@byu.net>
23753
23754         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
23755         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
23756         slashes when checking if last component is missing.
23757         * tests/test-canonicalize.c (main): Test this.
23758
23759         canonicalize, canonicalize-lgpl: honor // if distinct from /
23760         * modules/canonicalize (Files): Add double-slash-root.m4.
23761         * modules/canonicalize-lgpl (Files): Likewise.
23762         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
23763         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
23764         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
23765         fallback definition.
23766         (canonicalize_filename_mode): Use it to protect //.
23767         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
23768         (__realpath): Likewise.
23769         * tests/test-canonicalize.c (main): Test this.
23770         * tests/test-canonicalize-lgpl.c (main): Likewise.
23771         * modules/canonicalize-tests (Depends-on): Add same-inode.
23772         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23773
23774         canonicalize-lgpl: fix glibc bug with trailing slash
23775         * m4/canonicalize-lgpl.m4: Move contents...
23776         * m4/canonicalize.m4: ...here.
23777         (gl_CANONICALIZE_LGPL): Factor realpath check...
23778         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
23779         glibc 2.3.5 bug, fixed 2005-04-27.
23780         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
23781         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
23782         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
23783         * modules/canonicalize-lgpl (Files): Manage file rename.
23784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23785         * modules/stdlib (Makefile.am): Substitute witness.
23786         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
23787         is needed.
23788         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
23789         replacement is required.
23790         * lib/canonicalize.c (canonicalize_file_name): Likewise.
23791         * doc/glibc-functions/canonicalize_file_name.texi
23792         (canonicalize_file_name): Document this.
23793         * doc/posix-functions/realpath.texi (realpath): Likewise.
23794
23795         canonicalize-lgpl: reject non-directory with trailing slash
23796         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
23797         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
23798         catches failures in glibc 2.3.5.
23799         * tests/test-canonicalize.c (main): Likewise.
23800
23801         canonicalize-lgpl: use native realpath if it works
23802         * lib/canonicalize-lgpl.c (realpath): Guard with
23803         FUNC_REALPATH_WORKS.
23804         * lib/stdlib.in.h (realpath): Make declaration optional based on
23805         HAVE_REALPATH.
23806         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
23807         native realpath works.
23808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
23809         * modules/stdlib (Makefile.am): Substitute witness.
23810
23811         canonicalize, canonicalize-lgpl: use <stdlib.h>
23812         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
23813         (Include): Mention <stdlib.h>.
23814         (configure.ac): Mention functions we provide.
23815         * modules/canonicalize (configure.ac): Likewise.
23816         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
23817         realpath if canonicalize_file_name is missing.
23818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
23819         * modules/stdlib (Makefile.am): Substitute witnesses.
23820         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
23821         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
23822         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
23823         * NEWS: Document this.
23824         * doc/glibc-functions/canonicalize_file_name.texi
23825         (canonicalize_file_name): Likewise.
23826         * doc/posix-functions/realpath.texi (realpath): Likewise.
23827         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
23828
23829         test-canonicalize: consolidate into single C program
23830         * tests/test-canonicalize.sh: Delete; move setup into...
23831         * tests/test-canonicalize.c (main): ...the program, making it
23832         easier to run in debugger.  Add some tests.
23833         * modules/canonicalize-tests (Files): Remove unused file.
23834         (Depends-on): Add progname.
23835         (configure.ac, Makefile.am): Simplify.
23836
23837         test-canonicalize-lgpl: consolidate into single C program
23838         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
23839         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
23840         easier to run in debugger.  Add some tests.
23841         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
23842         (configure.ac, Makefile.am): Simplify.
23843
23844         canonicalize: avoid resolvepath
23845         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
23846         unnecessary checks.
23847         * lib/canonicalize.c (includes): Simplify.
23848         (canonicalize_file_name): Drop resolvepath implementation.
23849         * modules/canonicalize (Depends-on): Drop filenamecat.
23850
23851         canonicalize: don't lose errno
23852         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
23853         over calls to free.
23854
23855         canonicalize: simplify errno handling
23856         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
23857         assignment.
23858
23859         canonicalize, canonicalize-lgpl: update module dependencies
23860         * modules/canonicalize (Depends-on): Add extensions, lstat,
23861         pathmax, stdlib.
23862         (Files): Drop pathmax.h.
23863         (configure.ac): Adjust macro name.
23864         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
23865         lstat, stdlib, sys_stat.
23866         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
23867         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
23868         extensions.
23869         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
23870         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
23871         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
23872         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
23873         declaration, if available.
23874         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
23875         we can rely on the readlink module.
23876         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
23877         (includes): Use <unistd.h> unconditionally.
23878
23879 2009-09-17  Eric Blake  <ebb9@byu.net>
23880
23881         maint: make Include sections of modules consistent
23882         * modules/alloca: Use only header name; no need to list #include.
23883         * modules/alloca-opt: Likewise.
23884         * modules/arpa_inet: Likewise.
23885         * modules/canon-host: Likewise.
23886         * modules/configmake: Likewise.
23887         * modules/dirent: Likewise.
23888         * modules/eealloc: Likewise.
23889         * modules/environ: Likewise.
23890         * modules/fchdir: Likewise.
23891         * modules/fcntl: Likewise.
23892         * modules/fcntl-h: Likewise.
23893         * modules/gethrxtime: Likewise.
23894         * modules/gettime: Likewise.
23895         * modules/ignore-value: Likewise.
23896         * modules/inet_ntop: Likewise.
23897         * modules/inet_pton: Likewise.
23898         * modules/inttypes: Likewise.
23899         * modules/isnand-nolibm: Likewise.
23900         * modules/isnanf-nolibm: Likewise.
23901         * modules/mbchar: Likewise.
23902         * modules/mbfile: Likewise.
23903         * modules/mbiter: Likewise.
23904         * modules/mbuiter: Likewise.
23905         * modules/netdb: Likewise.
23906         * modules/netinet_in: Likewise.
23907         * modules/nproc: Likewise.
23908         * modules/pagealign_alloc: Likewise.
23909         * modules/poll: Likewise.
23910         * modules/printf-frexp: Likewise.
23911         * modules/pthread: Likewise.
23912         * modules/putenv: Likewise.
23913         * modules/random_r: Likewise.
23914         * modules/relocatable-prog: Likewise.
23915         * modules/search: Likewise.
23916         * modules/select: Likewise.
23917         * modules/selinux-h: Likewise.
23918         * modules/settime: Likewise.
23919         * modules/signal: Likewise.
23920         * modules/size_max: Likewise.
23921         * modules/socklen: Likewise.
23922         * modules/ssize_t: Likewise.
23923         * modules/stdarg: Likewise.
23924         * modules/stdbool: Likewise.
23925         * modules/stddef: Likewise.
23926         * modules/stdint: Likewise.
23927         * modules/stdio: Likewise.
23928         * modules/stdlib: Likewise.
23929         * modules/string: Likewise.
23930         * modules/strings: Likewise.
23931         * modules/sys_file: Likewise.
23932         * modules/sys_ioctl: Likewise.
23933         * modules/sys_select: Likewise.
23934         * modules/sys_socket: Likewise.
23935         * modules/sys_stat: Likewise.
23936         * modules/sys_time: Likewise.
23937         * modules/sys_times: Likewise.
23938         * modules/sys_utsname: Likewise.
23939         * modules/sys_wait: Likewise.
23940         * modules/sysexits: Likewise.
23941         * modules/time: Likewise.
23942         * modules/times: Likewise.
23943         * modules/tmpfile: Likewise.
23944         * modules/trim: Likewise.
23945         * modules/unistd: Likewise.
23946         * modules/wchar: Likewise.
23947         * modules/wctype: Likewise.
23948
23949 2009-09-17  Bruno Haible  <bruno@clisp.org>
23950
23951         Make getdate.y compile on QNX and NetBSD 5 / i386.
23952         * m4/getdate.m4 (gl_GETDATE): Conditionally define
23953         TIME_T_FITS_IN_LONG_INT.
23954         * lib/getdate.y (long_time_t): New type.
23955         (relative_time): Change type of 'seconds' field to long_time_t.
23956         (get_date): Update types of local variables. Check against overflow
23957         during conversion from long_time_t to time_t.
23958         Reported by Matt Kraai <kraai@ftbfs.org>
23959         and Hasso Tepper <hasso@netbsd.org>.
23960
23961 2009-09-17  Bruno Haible  <bruno@clisp.org>
23962
23963         * modules/COPYING: Update copyright years.
23964         * modules/README: Likeiwse.
23965         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
23966         Reported by Ian Beckwith <ianb@erislabs.net>.
23967
23968 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23969
23970         * users.txt: Update references for gnuit package.
23971
23972 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
23973
23974         * m4/getdelim.m4: Fix typo in copyright line.
23975
23976 2009-09-17  Bruno Haible  <bruno@clisp.org>
23977
23978         * lib/atoll.c: Use the standard header with GPL copyright.
23979         * lib/argz.in.h: Likewise.
23980         * lib/glob.c: Likewise.
23981         * lib/glob-libc.h: Likewise.
23982         * lib/random_r.c: Likewise.
23983         * lib/siglist.h: Likewise.
23984         * lib/strsignal.c: Likewise.
23985         Reported by Ian Beckwith <ianb@erislabs.net>.
23986
23987 2009-09-17  Eric Blake  <ebb9@byu.net>
23988
23989         rmdir: ensure correct dependency order
23990         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
23991
23992 2009-09-17  Bruno Haible  <bruno@clisp.org>
23993
23994         Disable assertion that fails on NetBSD 5 / i386.
23995         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
23996         Reported by Sam Steingold <sds@gnu.org>
23997         and Hasso Tepper <hasso@netbsd.org>.
23998
23999 2009-09-16  Eric Blake  <ebb9@byu.net>
24000
24001         unlinkdir: port to mingw
24002         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
24003         on which no one can unlink a directory.
24004
24005         stdlib: sort witness names
24006         * modules/stdlib (Makefile.am): Sort replacements.
24007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24008         * lib/stdlib.in.h: Likewise.
24009
24010         parse-duration-tests: avoid link failure
24011         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
24012         LIBINTL.
24013         Reported by Tom G. Christensen.
24014
24015         openat-tests: ensure unlinkat behaves like rmdir
24016         * tests/test-rmdir.c (main): Factor guts...
24017         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
24018         * modules/rmdir-tests (Files): Ship new file.
24019         * modules/openat-tests: New test.
24020         * tests/test-unlinkat.c: Likewise.
24021
24022         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
24023         * modules/rmdir-errno (Status, Notice): Now obsolete.
24024
24025         rmdir: work around cygwin 1.5.x and mingw bugs
24026         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
24027         * lib/rmdir.c (rmdir): Work around it.
24028         * modules/rmdir (Status, Notice): No longer obsolete.
24029         (Files): Add dos.m4.
24030         (Depends-on): Add unistd.
24031         (configure.ac): Set witnesses.
24032         (License): Relax to LGPLv2+.
24033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
24034         * modules/unistd (Makefile.am): Substitute witnesses.
24035         * lib/unistd.in.h (rmdir): Declare replacement.
24036         * doc/posix-functions/rmdir.texi (rmdir): Document this.
24037         * modules/rmdir-tests: New tests.
24038         * tests/test-rmdir.c: Likewise.
24039
24040 2009-09-15  Eric Blake  <ebb9@byu.net>
24041
24042         fchdir: improve use of replacement functions
24043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
24044         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
24045         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
24046         REPLACE_CLOSEDIR.
24047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
24048         * modules/sys_stat (Makefile.am): Substitute correct witness.
24049         * modules/dirent (Makefile.am): Likewise.
24050         * modules/unistd (Makefile.am): Likewise.
24051         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
24052         * lib/unistd.in.h (dup): Likewise.
24053         * lib/sys_stat.in.h (fstat): Likewise.
24054
24055         maint: ignore gnulib-tool temp files
24056         * .gitignore: Ignore files created during gnulib-tool --test.
24057
24058 2009-09-13  Jim Meyering  <meyering@redhat.com>
24059
24060         posixtm: don't reject a time that specify "60" as the number of seconds
24061         * lib/posixtm.c (posixtime): The code to reject invalid dates
24062         would also reject a time specified with the .60 suffix.
24063         But POSIX allows that, in order to accommodate leap seconds.
24064         So don't reject it.
24065         (main): Adjust tests accordingly.
24066         * modules/posixtm (Depends-on): Add stpcpy.
24067
24068 2009-09-11  Jim Meyering  <meyering@redhat.com>
24069
24070         announce-gen: include [$release_type] in emitted Subject:
24071         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
24072         e.g., [stable] in the emitted Subject: line.
24073
24074 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24075
24076         Remove obsolete macros from several modules.
24077         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
24078         obsolete Autoconf macros with their modern counterparts.
24079         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
24080         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
24081         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24082         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24083         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
24084         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24086         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24087         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24088         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
24089         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24090         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24091         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
24092         * m4/sockets.m4 (gl_SOCKETS): Likewise.
24093         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
24094         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
24095         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24096         * m4/time_r.m4 (gl_TIME_R): Likewise.
24097         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24098         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
24099         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24100
24101         Fix copyright header in build-aux scripts.
24102         * build-aux/git-version-gen: Fix copyright header to match GPLv3
24103         recommendation.
24104         * build-aux/ncftpput-ftp: Likewise.
24105         * build-aux/update-copyright: Likewise.
24106
24107 2009-09-09  Eric Blake  <ebb9@byu.net>
24108
24109         test-link: allow Linux choice of errno
24110         * tests/test-link.c (main): Relax test for alternate error.
24111
24112         strndup: fix improper m4 caching
24113         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
24114         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
24115         (gl_PREREQ_STRNDUP): Delete.
24116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
24117         * modules/string (Makefile.am): Substitute it.
24118         * lib/string.in.h (strndup): Modernize prototype.
24119
24120         getcwd: port to mingw
24121         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
24122         different from the POSIX assumptions made throughout the getcwd
24123         module; fortunately, the mingw getcwd does not need replacement.
24124         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
24125         * modules/getcwd-tests: New test.
24126         * tests/test-getcwd.c: Likewise.
24127
24128         link: fix platform bugs
24129         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
24130         * lib/link.c (link): Work around them.  Fix related mingw bug.
24131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
24132         * modules/unistd (Makefile.am): Substitute it.
24133         * lib/unistd.in.h (link): Declare replacement.
24134         * doc/posix-functions/link.texi (link): Document this.
24135         * modules/link (Depends-on): Add strdup-posix, sys_stat.
24136
24137         test-link: consolidate into single C program, test more cases
24138         * tests/test-link.sh: Delete.
24139         * tests/test-link.c: Test more error conditions.  Exposes bugs on
24140         at least Cygwin and Solaris.
24141         * modules/link-tests (Files): Remove unused file.
24142         (Depends-on): Add errno, sys_stat.
24143         (Makefile.am): Simplify.
24144
24145 2009-09-08  Bruno Haible  <bruno@clisp.org>
24146
24147         Work around towlower, towupper bug on mingw.
24148         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
24149         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
24150         * doc/posix-functions/towlower.texi: Mention the mingw bug.
24151         * doc/posix-functions/towupper.texi: Likewise.
24152         Reported by Eric Blake.
24153
24154 2009-09-08  Jim Meyering  <meyering@redhat.com>
24155
24156         build: don't try to run autoheader if we don't use it
24157         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24158         is not used in configure.ac.
24159
24160 2009-09-08  Eric Blake  <ebb9@byu.net>
24161
24162         euidaccess: fix compilation error
24163         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24164
24165         rawmemchr: relax license
24166         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24167         okay.
24168         Reported by Jim Meyering.
24169
24170         mkfifoat: new module
24171         * modules/mkfifoat: New file.
24172         * lib/mkfifoat.c: Likewise.
24173         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24174         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24175         * modules/sys_stat (Makefile.am): Use them.
24176         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24177         * MODULES.html.sh (File system functions): Mention module.
24178         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24179         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24180         * modules/mkfifoat-tests: New test.
24181         * tests/test-mkfifoat.c: Likewise.
24182
24183         strchrnul: relax license
24184         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24185         okay.
24186         Reported by Jim Meyering.
24187
24188 2009-09-08  Eric Blake  <ebb9@byu.net>
24189
24190         fstatat: fix compilation on Solaris
24191         * lib/fstatat.c (includes): Add fcntl.h.
24192         Reported by Pádraig Brady.
24193
24194 2009-09-07  Eric Blake  <ebb9@byu.net>
24195
24196         rename: modernize replacement
24197         * modules/rename (Depends-on): Add stdio.
24198         (configure.ac): Declare witness.
24199         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24200         stdio take care of replacement.
24201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24202         * modules/stdio (Makefile.am): Substitute them.
24203         * lib/stdio.in.h (rename): Declare replacement.
24204         * lib/rename.c (includes): Allow cross-compilation to non-windows
24205         machines.
24206         * doc/posix-functions/rename.texi (rename): Improve
24207         documentation.
24208
24209         stdio: sort witness names
24210         * modules/stdio (Makefile.am): Sort replacements.
24211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24212         * lib/stdio.in.h: Likewise.
24213
24214         getcwd: minor cleanups
24215         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24216         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24217
24218         openat: provide more convenience names
24219         * modules/faccessat (configure.ac): Add C witness.
24220         * lib/unistd.in.h (readlinkat): Fix typo.
24221         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24222         convenience wrappers.
24223         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24224         wrappers in syntax checks.
24225
24226 2009-09-06  Eric Blake  <ebb9@byu.net>
24227
24228         doc: fix comments in recent patches
24229         * lib/faccessat.c: Mention correct function.
24230         * lib/fchmodat.c: Likewise.
24231         * lib/fchownat.c: Likewise.
24232         * lib/symlinkat.c: Likewise.
24233         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24234         constants.
24235
24236         faccessat, symlinkat: continue cleanup of previous patch
24237         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24238         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24239         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24241         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24242         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24243         set.
24244
24245 2009-09-06  Bruno Haible  <bruno@clisp.org>
24246
24247         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24248         (fstatat): Declare if GNULIB_FSTATAT is set.
24249         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24250         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24251         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24252         * modules/fcntl-h (Files): Remove m4/openat.m4.
24253         * modules/sys_stat (Files): Remove m4/openat.m4.
24254         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24255         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24256         * modules/unistd (Files): Remove m4/openat.m4.
24257         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24258         GNULIB_OPENAT.
24259         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24260         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24261         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24262         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24263         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24264         gl_OPENAT_DEFAULTS.
24265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24266         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24267         Don't require gl_OPENAT_DEFAULTS.
24268         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24269         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24270         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24271         (gl_OPENAT_DEFAULTS): Remove macro.
24272
24273 2009-09-06  Bruno Haible  <bruno@clisp.org>
24274
24275         * modules/openat (configure.ac): Remove unneeded witness.
24276
24277 2009-09-06  Bruno Haible  <bruno@clisp.org>
24278
24279         Set errno to ENOSYS when a function is entirely unsupported.
24280         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24281         EOPNOTSUPP.
24282         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24283         * modules/chown (Depends-on): Remove errno.
24284
24285 2009-09-06  Bruno Haible  <bruno@clisp.org>
24286
24287         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24288
24289 2009-09-06  Bruno Haible  <bruno@clisp.org>
24290
24291         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24292
24293 2009-09-06  Ben Pfaff  <blp@gnu.org>
24294             Bruno Haible  <bruno@clisp.org>
24295
24296         Work around a glibc bug in strtok_r.
24297         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24298         Undefine if UNDEFINE_STRTOK_R is set.
24299         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24301         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24302         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24303         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24304         UNDEFINE_STRTOK_R.
24305         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24306
24307 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24308
24309         exclude: minor fix
24310         * lib/exclude.c: Include wctype.h
24311
24312 2009-09-06  Akim Demaille  <demaille@gostai.com>
24313
24314         bootstrap: improve error message
24315         * build-aux/bootstrap (find_tool): Upon failure, report the list
24316         of candidates.
24317         Honor the initial value of the envvar.
24318
24319 2009-09-05  Eric Blake  <ebb9@byu.net>
24320
24321         symlinkat: new module
24322         * modules/symlinkat: New file.
24323         * lib/symlinkat.c: Likewise.
24324         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24326         * modules/unistd (Makefile.am): Use them.
24327         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24328         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24329         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24330         * MODULES.html.sh (File system functions): Mention module.
24331         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24332         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24333         * modules/symlinkat-tests: New test.
24334         * tests/test-symlinkat.c: Likewise.
24335
24336         test-openat-safer: add more checks
24337         * tests/test-openat-safer.c (main): Check more code paths.
24338
24339 2009-09-05  Jim Meyering  <meyering@redhat.com>
24340
24341         syntax-check: detect unnecessary inclusion of openat.h
24342         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24343
24344 2009-09-05  Bruno Haible  <bruno@clisp.org>
24345
24346         Support towlower, towupper.
24347         * doc/posix-functions/towlower.texi: Mention module wctype.
24348         * doc/posix-functions/towupper.texi: Likewise.
24349         * lib/wctype.in.h (towlower, towupper): New functions.
24350         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24351         (ASSERT): New macro.
24352         (e): New variable.
24353         (main): Test also towlower, towupper. Test WEOF argument.
24354         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24355
24356 2009-09-05  Bruno Haible  <bruno@clisp.org>
24357
24358         Fix conversion behaviour when the input is invalid.
24359         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24360         mark occurring in first pass of indirect conversion.
24361         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24362         input.
24363         Found by clang's static analyzer.
24364
24365 2009-09-05  Bruno Haible  <bruno@clisp.org>
24366
24367         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24368         where direct conversion is possible.
24369
24370 2009-09-04  Eric Blake  <ebb9@byu.net>
24371
24372         openat: fail with ENOENT on empty name
24373         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24374         buffer.
24375
24376         link-follow: fix logic bug in prior patch
24377         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24378         reversed sense of yes and no in prior patch.  Avoid confusing
24379         compilation failure with desired semantics.
24380
24381         link-follow: accomodate mingw and cross-compilation
24382         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24383         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24384         cross-compilation results to -1, to make linkat easier to
24385         implement when cross-compiling.  Trivially support mingw.
24386         * modules/link-follow (configure.ac): Call new name.
24387         * NEWS: Mention this.
24388
24389 2009-09-03  Eric Blake  <ebb9@byu.net>
24390
24391         faccessat: compile replacement
24392         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24393         needed.
24394
24395         fts: fix compilation error
24396         * lib/fts.c (includes): Re-add "openat.h", for
24397         openat_needs_fchdir.
24398
24399         faccessat: new module
24400         * modules/faccessat: New file.
24401         * lib/faccessat.c: Likewise.
24402         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24404         * modules/unistd (Makefile.am): Use it.
24405         * lib/unistd.in.h (faccessat): Declare it.
24406         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24407         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24408         * MODULES.html.sh (File system functions): Mention it.
24409         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24410         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24411
24412         euidaccess: prefer POSIX over non-standard implementation
24413         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24414         * lib/euidaccess.c (euidaccess): Use it if available.
24415
24416         openat: make template easier to use
24417         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24418         AT_FUNC_F2 to be undefined.
24419         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24420         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24421         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24422         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24423         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24424         Likewise.
24425         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24426         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24427         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24428         Likewise.
24429
24430         openat: declare in POSIX headers
24431         * NEWS: Mention this.
24432         * modules/openat (configure.ac): Declare witnesses.
24433         (Depends-on): Add fcntl-h, sys_stat, unistd.
24434         (Include): Mention correct headers.
24435         * modules/fcntl-h (Depends-on): Add link-warning.
24436         (Files): Add openat.m4.
24437         (Makefile.am): Substitute witnesses.
24438         * modules/sys_stat (Files, Makefile.am): Likewise.
24439         * modules/unistd (Files, Makefile.am): Likewise.
24440         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24441         (gl_OPENAT_DEFAULTS): New macro.
24442         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24444         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24445         (SYS_STAT_H): Remove unused variable.
24446         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24447         * lib/fcntl--.h (includes): Remove unneeded header.
24448         * lib/openat-safer.c (includes): Likewise.
24449         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24450         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24451         appropriate headers.
24452         (__OPENAT_PREFIX): Delete.
24453         * lib/fcntl.in.h (openat): Provide declaration.
24454         (AT_FDCWD): Fix Solaris bug.
24455         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24456         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24457         * lib/fchmodat.c (includes):  Adjust to find declaration.
24458         * lib/fchownat.c (includes): Likewise.
24459         * lib/mkdirat.c (includes): Likewise.
24460         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24461         still visible.
24462
24463 2009-09-02  Eric Blake  <ebb9@byu.net>
24464
24465         errno: use consistently
24466         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24467         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24468         * lib/canonicalize.c (ELOOP): Likewise.
24469         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24470         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24471         * lib/lchown.c (EOPNOTSUPP): Likewise.
24472         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24473         * lib/savewd.c (ESTALE): Likewise.
24474         * lib/settime.c (ENOSYS): Likewise.
24475         * lib/utimens.c (ENOSYS): Likewise.
24476         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24477         * lib/chdir-safer.c (ELOOP): Likewise.
24478         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24479         * modules/c-stack (Depends-on): Add errno.
24480         * modules/canonicalize (Depends-on): Likewise.
24481         * modules/chdir-safer (Depends-on): Likewise.
24482         * modules/fdopendir (Depends-on): Likewise.
24483         * modules/inet_ntop (Depends-on): Likewise.
24484         * modules/inet_pton (Depends-on): Likewise.
24485         * modules/lchown (Depends-on): Likewise.
24486         * modules/openat (Depends-on): Likewise.
24487         * modules/savewd (Depends-on): Likewise.
24488         * modules/settime (Depends-on): Likewise.
24489         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24490
24491         fts: avoid leaking fds
24492         * modules/fts (Depends-on): Add cloexec.
24493         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24494         flag.
24495
24496         fts: make directory fds more robust
24497         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24498         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24499
24500         backupfile, chdir-long, fts, savedir: make safer
24501         * lib/backupfile.c (includes): Use "dirent--.h", since
24502         numbered_backup can write to stderr during readdir.
24503         * lib/savedir.c (includes): Likewise.
24504         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24505         emulation can write to stderr on failure.
24506         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24507         * lib/getcwd.c: Document why opendir_safer is unused.
24508         * lib/glob.c: Likewise.
24509         * lib/scandir.c: Likewise.
24510         * lib/openat-proc.c: Likewise, for open_safer.
24511         * modules/backupfile (Depends-on): Add dirent-safer.
24512         * modules/savedir (Depends-on): Likewise.
24513         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24514         * modules/chdir-long (Depends-on): Add openat-safer.
24515
24516         openat-safer: new module
24517         * modules/openat-safer: New file.
24518         * lib/openat-safer.c: Likewise.
24519         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24520         * lib/fcntl-safer.h (openat_safer): Declare.
24521         * lib/fcntl--.h (openat): Override.
24522         * MODULES.html.sh (File descriptor based I/O): Mention it.
24523         * lib/openat.h: Add double-inclusion guards.
24524         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24525         "fcntl--.h", so we can implement openat.
24526         * modules/openat-safer-tests: New test.
24527         * tests/test-openat-safer.c: New file.
24528
24529         dirent-safer: new module
24530         * modules/dirent-safer: New file.
24531         * lib/dirent--.h: Likewise.
24532         * lib/dirent-safer.h: Likewise.
24533         * lib/opendir-safer.c: Likewise.
24534         * m4/dirent-safer.m4: Likewise.
24535         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24536         * modules/dirent-safer-tests: New test.
24537         * tests/test-dirent-safer.c: New file.
24538         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24539
24540         fdopendir: optimize on mingw
24541         * lib/unistd.in.h (_gl_directory_name): New prototype.
24542         * lib/fchdir.c (_gl_directory_name): Implement it.
24543         (fchdir): Use it to simplify implementation.
24544         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24545         fchdir, when available, to avoid calling [f]chdir().
24546
24547         fdopendir: split into its own module
24548         * lib/openat.c (fdopendir): Move...
24549         * lib/fdopendir.c: ...into new file.
24550         * modules/fdopendir: New module.
24551         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24552         * modules/openat (Depends-on): Add fdopendir.
24553         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24554         fdopendir here.
24555         * modules/savedir (Depends-on): Only need fdopendir, not full
24556         openat.
24557         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24558         * lib/openat.h (fdopendir): Drop prototype.
24559         * lib/dirent.in.h (fdopendir): Provide prototype.
24560         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24561         * modules/dirent (Makefile.am): Substitute them.
24562         * MODULES.html.sh (File system functions): Mention it.
24563         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24564         * modules/fdopendir-tests: New file.
24565         * tests/test-fdopendir.c: Likewise.
24566
24567         fchdir: use more consistent macro convention
24568         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24569         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24570         REPLACE_FCHDIR, rather than relying on config.h macros.
24571         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24572         inside a single make-time REPLACE_FCHDIR block, rather than using
24573         the config.h FCHDIR_REPLACEMENT.
24574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24575         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24576         Manage fstat replacement.
24577         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24578         REPLACE_FCHDIR.
24579         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24580         (Makefile.am): Substitute REPLACE_FCHDIR.
24581         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24582         FCHDIR_REPLACEMENT.
24583         * lib/dup-safer.c (dup_safer): Likewise.
24584         * lib/dup2.c (rpl_dup2): Likewise.
24585         * lib/dup3.c (rpl_dup3): Likewise.
24586         * lib/open.c (rpl_open): Likewise.
24587
24588         fchdir: simplify error handling, and support dup3
24589         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24590         stdbool, malloc-posix, realloc-posix.
24591         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24592         (ensure_dirs_slot): Return false on allocation failure.
24593         (rpl_dup2): Delete.
24594         (_gl_register_dup): New function.
24595         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
24596         (_gl_register_fd): Close fd on allocation failure.
24597         * lib/fcntl.in.h (_gl_register_fd): Update signature.
24598         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
24599         prototype.
24600         (rpl_dup2_fchdir): Delete prototype.
24601         * lib/open.c (open): Update caller.
24602         * lib/dup2.c (dup2): Track fchdir metadata.
24603         * lib/dup3.c (dup3): Likewise.
24604         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
24605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
24606
24607 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24608
24609         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
24610         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
24611         don't pass arguments to AC_OUTPUT.
24612
24613 2009-09-02  Bruno Haible  <bruno@clisp.org>
24614
24615         * modules/mkdtemp (License): Relicense under LGPLv2+.
24616         Reported by Paolo Bonzini.
24617
24618 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24619
24620         Replace uses of obsolete autoconf macros in Jim's modules.
24621         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
24622         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
24623         can evoke a warning from autoconf when run with -Wobsolete
24624         enabled.  They were declared obsolete for good reasons (see
24625         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
24626         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
24627         should not continue using the deprecated macros.
24628         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
24629         obsolete Autoconf macros with modern counterparts.
24630         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24631         * m4/dos.m4 (gl_AC_DOS): Likewise.
24632         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
24633         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24634         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
24635         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
24636         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
24637         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
24638         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
24639         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
24640         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
24641         Likewise.
24642         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24643         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24644         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
24645         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
24646         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
24647         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24648
24649 2009-09-01  Eric Blake  <ebb9@byu.net>
24650
24651         fchdir: fix off-by-one bug in previous patch
24652         * lib/fchdir.c (rpl_fstat): Use correct bounds.
24653         (_gl_unregister_fd): Delete useless if.
24654
24655 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
24656
24657         maint.mk: sort the list of syntax-check rules
24658         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
24659         easier to get a sense of progress when the rules are run sequentially
24660         and take a long time.
24661
24662 2009-09-01  Simon Josefsson  <simon@josefsson.org>
24663
24664         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
24665         * modules/netinet_in: Likewise.
24666         * modules/sys_file: Likewise.
24667         * modules/sys_ioctl: Likewise.
24668         * modules/sys_select: Likewise.
24669         * modules/sys_socket: Likewise.
24670         * modules/sys_stat: Likewise.
24671         * modules/sys_time: Likewise.
24672         * modules/sys_times: Likewise.
24673         * modules/sys_utsname: Likewise.
24674         * modules/sys_wait: Likewise.
24675
24676 2009-09-01  Jim Meyering  <meyering@redhat.com>
24677
24678         fts: help ensure that return values are not ignored
24679         * lib/fts_.h (__GNUC_PREREQ): Define.
24680         (__attribute_warn_unused_result__): Define.
24681         (fts_children, fts_close, fts_open, fts_read): Declare with
24682         __attribute_warn_unused_result__.
24683
24684         fts: fts_close now fails also when closing a dir file descriptor fails
24685         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
24686         and propagate to caller, along with errno.
24687
24688         announce-gen: correct formatting in --help output
24689         * build-aux/announce-gen (usage): Move the one-line description in
24690         --help output "up", to where it belongs, just after Usage:.
24691
24692 2009-08-31  Eric Blake  <ebb9@byu.net>
24693
24694         fchdir: port to mingw
24695         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
24696         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
24697         opened, then use a substitute.
24698         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
24699         replacement.
24700         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
24701         (_gl_register_fd): No need to check stat if open already filters
24702         all directories.
24703         (fchdir): Fix error condition to match POSIX.
24704         * modules/fchdir (Depends-on): Add sys_stat.
24705         * doc/posix-functions/open.texi (open): Document the limitation.
24706         * modules/fchdir-tests: New file.
24707         * tests/test-fchdir.c: Likewise.
24708
24709         canonicalize: allow cross-testing from cygwin to mingw
24710         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
24711         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
24712         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
24713         Likewise.
24714         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
24715         target does not support symlinks.
24716         * tests/test-canonicalize-lgpl.sh: Likewise.
24717
24718         chown: avoid compilation warning on mingw
24719         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
24720         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
24721         mingw.
24722         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24723         * modules/chown (Depends-on): Add errno.
24724
24725 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24726
24727         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
24728         command.
24729
24730 2009-08-31  Jim Meyering  <meyering@redhat.com>
24731
24732         canonicalize: remove useless initialization
24733         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
24734         initialization of local, "end".
24735
24736 2009-08-30  Bruno Haible  <bruno@clisp.org>
24737
24738         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
24739         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
24740         ENOSYS.
24741
24742 2009-08-30  Bruno Haible  <bruno@clisp.org>
24743
24744         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
24745         /usr/xpg4/bin/tr when it exists.
24746         * tests/test-pipe-filter-gi1.sh: Likewise.
24747
24748 2009-08-30  Bruno Haible  <bruno@clisp.org>
24749
24750         Work around deficient /usr/bin/id program on Solaris.
24751         * tests/test-file-has-acl.sh (ID): New variable.
24752         * tests/test-set-mode-acl.sh (ID): Likewise.
24753         * tests/test-copy-acl.sh (ID): Likewise.
24754         * tests/test-copy-file.sh (ID): Likewise.
24755
24756 2009-08-30  Bruno Haible  <bruno@clisp.org>
24757
24758         New module 'xstriconveh'.
24759         * lib/xstriconveh.h: New file.
24760         * lib/xstriconveh.c: New file.
24761         * modules/xstriconveh: New file.
24762
24763 2009-08-30  Bruno Haible  <bruno@clisp.org>
24764
24765         Make it easier to use mem_cd_iconveh.
24766         * lib/striconveh.h (iconveh_t): New type.
24767         (iconveh_open, iconveh_close): New declarations.
24768         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24769         with a single 'const iconveh_t *' argument.
24770         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
24771         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
24772         with a single 'const iconveh_t *' argument.
24773         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
24774         * tests/test-striconveh.c (main): Update.
24775         * NEWS: Mention the change.
24776
24777 2009-08-30  Bruno Haible  <bruno@clisp.org>
24778
24779         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
24780         problem.
24781
24782 2009-08-30  Bruno Haible  <bruno@clisp.org>
24783
24784         Work around iconv_open problem on Solaris.
24785         * lib/iconv_open-solaris.gperf: New file.
24786         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
24787         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
24788         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
24789         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
24790         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
24791         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
24792
24793 2009-08-29  Jim Meyering  <meyering@redhat.com>
24794
24795         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
24796         * top/maint.mk (cvs-check): Remove target; it was just an alias
24797         to the better-named vc-diff-check.
24798         (maintainer-distcheck): Remove rule.  It was used only from
24799         the (alpha/beta/major) target, and all of its commands but one
24800         were coreutils-specific.
24801         (vc-dist): Remove rule.
24802         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
24803         Run vc-diff-check, not vc-dist.
24804         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
24805
24806 2009-08-27  Bruno Haible  <bruno@clisp.org>
24807
24808         * tests/test-bitrotate.c (main): Remove test that uses a shift count
24809         of 0.
24810
24811 2009-08-27  Bruno Haible  <bruno@clisp.org>
24812
24813         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
24814         compilers.
24815         * doc/func.texi: Document the SunPRO C bug.
24816
24817 2009-08-27  Bruno Haible  <bruno@clisp.org>
24818
24819         Fix link error on Solaris.
24820         * tests/test-parse-duration.c (xstrdup): Remove function.
24821
24822 2009-08-26  Pádraig Brady  <P@draigbrady.com>
24823
24824         ignore-value: handle pointer types, too
24825         * lib/ignore-value.h (__attribute__): Remove definition.
24826         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
24827         of a more concise and more-often effective "(void) i" statement.
24828         (ignore_ptr): New function to suppress warnings from functions that
24829         return pointers, and to make it explicit that one function doesn't
24830         handle all cases.
24831
24832 2009-08-25  Bruno Haible  <bruno@clisp.org>
24833
24834         dup2: work around a Linux bug.
24835         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
24836         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
24837         * doc/posix-functions/dup2.texi: Mention the Linux bug.
24838         Reported by Simon Josefsson.
24839
24840 2009-08-25  Jim Meyering  <meyering@redhat.com>
24841
24842         libguestfs uses gnulib
24843         * users.txt: Add libguestfs.
24844
24845 2009-08-24  Eric Blake  <ebb9@byu.net>
24846
24847         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
24848         * lib/pipe2.c (includes): Add binary-io.h.
24849         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
24850
24851 2009-08-24  Bruno Haible  <bruno@clisp.org>
24852
24853         Tolerate declared but missing accept4 syscall.
24854         * lib/accept4.c (accept4): Invoke original accept4 function first, if
24855         available.
24856         * lib/sys_socket.in.h (accept4): If the function is already present,
24857         override it.
24858         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
24859         * modules/accept4 (Makefile.am): Compile accept4.c always.
24860         Reported by Paolo Bonzini and Eric Blake.
24861
24862 2009-08-23  Bruno Haible  <bruno@clisp.org>
24863
24864         New module 'accept4'.
24865         * lib/sys_socket.in.h (accept4): New declaration.
24866         * lib/accept4.c: New file.
24867         * m4/accept4.m4: New file.
24868         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24869         GNULIB_ACCEPT4, HAVE_ACCEPT4.
24870         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
24871         HAVE_ACCEPT4.
24872         * modules/accept4: New file.
24873         * doc/glibc-functions/accept4.texi: Mention the new module.
24874
24875 2009-08-24  Jim Meyering  <meyering@redhat.com>
24876
24877         progname: also set global program_invocation_name, when possible
24878         Before this change, a libtool-enabled program that calls glibc's
24879         error function would report the program name as
24880         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
24881         * modules/progname (configure.ac): Check for a declaration of
24882         program_invocation_name.
24883         * lib/progname.c:  Include <errno.h>.
24884         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
24885         Set program_invocation_name.
24886
24887 2009-08-23  Bruno Haible  <bruno@clisp.org>
24888
24889         * lib/dup3.c: Include <string.h>.
24890
24891 2009-08-23  Bruno Haible  <bruno@clisp.org>
24892
24893         * lib/dup3.c (dup3): Test only once whether the system actually exists.
24894         * lib/pipe2.c (pipe2): Likewise.
24895         Suggested by Eric Blake.
24896
24897 2009-08-23  Bruno Haible  <bruno@clisp.org>
24898
24899         Tolerate declared but missing dup3 syscall.
24900         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
24901         * lib/unistd.in.h (dup3): If the function is already present,
24902         override it.
24903         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
24904         * modules/dup3 (Makefile.am): Compile dup3.c always.
24905         Reported by Paolo Bonzini.
24906
24907 2009-08-23  Bruno Haible  <bruno@clisp.org>
24908
24909         Tolerate declared but missing pipe2 syscall.
24910         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
24911         available.
24912         * lib/unistd.in.h (pipe2): If the function is already present,
24913         override it.
24914         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
24915         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
24916         Reported by Paolo Bonzini.
24917
24918 2009-08-23  Bruno Haible  <bruno@clisp.org>
24919
24920         * lib/pipe2.c (pipe2): Move #ifs inside function.
24921
24922 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24923
24924         quotearg: document limitations of quote_these_too
24925         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
24926         those limitations are created.
24927         * lib/quotearg.h (set_char_quoting): Document that digits and
24928         letters that are special after backslash are not permitted.
24929         (quotearg_char): Cross-reference set_char_quoting documentation.
24930
24931 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
24932
24933         quotearg: implement custom_quoting_style
24934         * lib/quotearg.c: (struct quoting_options): Add left_quote and
24935         right_quote fields.
24936         (set_custom_quoting): New public function.
24937         (quotearg_buffer_restyled): Add left_quote and right_quote
24938         arguments, handle them very much like locale quoting, and update
24939         all uses.
24940         (quotearg_n_custom): New public function.
24941         (quotearg_n_custom_mem): New public function.
24942         (quotearg_custom): New public function.
24943         (quotearg_custom_mem): New public function.
24944         * lib/quotearg.h: Prototype and document new public functions.
24945         (enum quoting_style): For escape_quoting_style and
24946         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
24947         ignored even though they're otherwise like c_quoting_style.
24948         Add custom_quoting_style member and document with comparison to
24949         clocale_quoting_style.
24950         * tests/test-quotearg.c (custom_quotes): New array.
24951         (custom_results): New array.
24952         (main): Extend to test custom quoting.
24953
24954 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24955
24956         quotearg: fix right quote escaping when it's in quote_these_too
24957         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
24958         quote, be sure to prepend only one backslash.
24959         * tests/test-quotearg.c (use_quote_double_quotes): New function.
24960         (main): Test it.
24961
24962 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
24963
24964         quotearg-tests: test escaping of embedded locale quotes
24965         * tests/test-quotearg.c (struct result_strings): Add member for
24966         new input.
24967         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
24968         (inputs): Add new input.
24969         (results_g): Add expected results.
24970         (flag_results): Likewise.
24971         (locale_results): Likewise.
24972         (compare_strings): Check those.
24973
24974 2009-08-23  Bruno Haible  <bruno@clisp.org>
24975
24976         Tests for module 'dup3'.
24977         * modules/dup3-tests: New file.
24978         * tests/test-dup3.c: New file.
24979
24980         New module 'dup3'.
24981         * lib/unistd.in.h (dup3): New declaration.
24982         * lib/dup3.c: New file.
24983         * m4/dup3.m4: New file.
24984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
24985         HAVE_DUP3.
24986         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
24987         * modules/dup3: New file.
24988         * doc/glibc-functions/dup3.texi: Mention the new module.
24989
24990 2009-08-23  Bruno Haible  <bruno@clisp.org>
24991
24992         Tweak the dup2 test.
24993         * tests/test-dup2.c (main): Create the test file empty. Verify that an
24994         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
24995         the test file is still empty. Fix argument order of lseek.
24996
24997 2009-08-23  Bruno Haible  <bruno@clisp.org>
24998
24999         Avoid test link errors when the modules getopt-gnu, gettext are used.
25000         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
25001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25002
25003 2009-08-23  Bruno Haible  <bruno@clisp.org>
25004
25005         Fix getdtablesize() on mingw.
25006         * lib/getdtablesize.c (getdtablesize): Implement differently.
25007         * lib/unistd.in.h (getdtablesize): Improve comment.
25008
25009 2009-08-23  Bruno Haible  <bruno@clisp.org>
25010
25011         New module 'mkostemp'.
25012         Based on Ulrich Drepper's 2007-08-10 change in glibc.
25013         * lib/stdlib.in.h (mksotemp): New declaration.
25014         * lib/mkostemp.c: New file, from glibc with modifications.
25015         * lib/tempname.h (GT_FILE): Remove outdated comment.
25016         (gen_tempname): Add flags argument.
25017         * lib/tempname.c (__GT_BIGFILE): Remove macro.
25018         (__GT_FILE): Map to 1.
25019         (small_open, large_open): Remove macros.
25020         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
25021         * lib/mkstemp.c (mkstemp): Update.
25022         * lib/mkdtemp.c (mkdtemp): Likewise.
25023         * m4/mkostemp.m4: New file.
25024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
25025         HAVE_MKOSTEMP.
25026         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
25027         HAVE_MKOSTEMP.
25028         * modules/mkostemp: New file, based on modules/mkstemp.
25029         * doc/glibc-functions/mkostemp.texi: Mention the new module.
25030         * NEWS: Mention the change.
25031
25032 2009-08-23  Bruno Haible  <bruno@clisp.org>
25033
25034         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
25035         Reported by Eric Blake.
25036
25037 2009-08-23  Bruno Haible  <bruno@clisp.org>
25038
25039         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
25040         Reported by Eric Blake.
25041
25042 2009-08-23  Bruno Haible  <bruno@clisp.org>
25043
25044         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
25045         * modules/pipe2 (Depends-on): Likewise.
25046
25047 2009-08-23  Eric Blake  <ebb9@byu.net>
25048
25049         fcntl-h: add O_TTY_INIT support
25050         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
25051         * tests/test-fcntl-h.c (o): Test it.
25052         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25053
25054         fcntl-h: rename from fcntl, in preparation for fcntl(2)
25055         * modules/fcntl: Move <fcntl.h> header replacement...
25056         * modules/fcntl-h: ...to new name, so as not to collide with
25057         like-named function.
25058         * tests/test-fcntl.c: Rename...
25059         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
25060         * modules/fcntl-tests: Rename...
25061         * modules/fcntl-h-tests: ...to this.  Update test file name.
25062         * modules/chdir-long (Depends-on): Update clients.
25063         * modules/chdir-safer (Depends-on): Likewise.
25064         * modules/fcntl-safer (Depends-on): Likewise.
25065         * modules/fts (Depends-on): Likewise.
25066         * modules/mkancesdirs (Depends-on): Likewise.
25067         * modules/mkdir-p (Depends-on): Likewise.
25068         * modules/open (Depends-on): Likewise.
25069         * modules/savewd (Depends-on): Likewise.
25070         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
25071         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25072
25073 2009-08-22  Bruno Haible  <bruno@clisp.org>
25074
25075         * modules/binary-io (License): Relicense under LGPL.
25076         * modules/pipe2 (License): Likewise.
25077
25078 2009-08-22  Bruno Haible  <bruno@clisp.org>
25079
25080         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
25081         return value.
25082         * lib/pipe-filter-gi.c (filter_init): Likewise.
25083         Reported by Eric Blake.
25084
25085 2009-08-22  Bruno Haible  <bruno@clisp.org>
25086
25087         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
25088         * modules/pipe (Depends-on): Add pipe2.
25089
25090 2009-08-22  Bruno Haible  <bruno@clisp.org>
25091
25092         Tests for module 'pipe2'.
25093         * modules/pipe2-tests: New file.
25094         * tests/test-pipe2.c: New file.
25095
25096         New module 'pipe2'.
25097         * lib/unistd.in.h (pipe2): New declaration.
25098         * lib/pipe2.c: New file.
25099         * m4/pipe2.m4: New file.
25100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
25101         HAVE_PIPE2.
25102         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
25103         * modules/pipe2: New file.
25104         * doc/glibc-functions/pipe2.texi: Mention the new module.
25105
25106 2009-08-22  Bruno Haible  <bruno@clisp.org>
25107
25108         Reference some new glibc functions.
25109         * doc/glibc-functions/accept4.texi: New file.
25110         * doc/glibc-functions/dup3.texi: New file.
25111         * doc/glibc-functions/mkostemp.texi: New file.
25112         * doc/glibc-functions/pipe2.texi: New file.
25113         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
25114         (Glibc sys/socket.h): Refer to accept4.
25115         (Glibc unistd.h): Refer to dup3, pipe2.
25116         Reported by Eric Blake.
25117
25118 2009-08-22  Jim Meyering  <meyering@redhat.com>
25119             Bruno Haible  <bruno@clisp.org>
25120
25121         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
25122         This makes it so packages using automake-1.11's silent-rules option
25123         can print e.g., a single "GEN    configmake.h" line, rather than
25124         the 30+ statements that perform the job.  If you want to see the
25125         actual commands, you can still run "make V=1".
25126         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
25127         so that make output is abbreviated when those variables are defined
25128         appropriately.
25129         * modules/argz: Likewise.
25130         * modules/arpa_inet: Likewise.
25131         * modules/byteswap: Likewise.
25132         * modules/configmake: Likewise.
25133         * modules/dirent: Likewise.
25134         * modules/errno: Likewise.
25135         * modules/fcntl: Likewise.
25136         * modules/float: Likewise.
25137         * modules/fnmatch: Likewise.
25138         * modules/getopt-posix: Likewise.
25139         * modules/glob: Likewise.
25140         * modules/iconv_open: Likewise.
25141         * modules/inttypes: Likewise.
25142         * modules/localcharset: Likewise.
25143         * modules/locale: Likewise.
25144         * modules/math: Likewise.
25145         * modules/netdb: Likewise.
25146         * modules/netinet_in: Likewise.
25147         * modules/poll: Likewise.
25148         * modules/posix_spawnp-tests: Likewise.
25149         * modules/sched: Likewise.
25150         * modules/search: Likewise.
25151         * modules/selinux-h: Likewise.
25152         * modules/signal: Likewise.
25153         * modules/spawn: Likewise.
25154         * modules/stdarg: Likewise.
25155         * modules/stdbool: Likewise.
25156         * modules/stddef: Likewise.
25157         * modules/stdint: Likewise.
25158         * modules/stdio: Likewise.
25159         * modules/stdlib: Likewise.
25160         * modules/string: Likewise.
25161         * modules/strings: Likewise.
25162         * modules/sys_file: Likewise.
25163         * modules/sys_ioctl: Likewise.
25164         * modules/sys_select: Likewise.
25165         * modules/sys_socket: Likewise.
25166         * modules/sys_stat: Likewise.
25167         * modules/sys_time: Likewise.
25168         * modules/sys_times: Likewise.
25169         * modules/sys_utsname: Likewise.
25170         * modules/sys_wait: Likewise.
25171         * modules/sysexits: Likewise.
25172         * modules/time: Likewise.
25173         * modules/unistd: Likewise.
25174         * modules/wchar: Likewise.
25175         * modules/wctype: Likewise.
25176
25177 2009-08-22  Jim Meyering  <meyering@redhat.com>
25178
25179         announce-gen: detect write failure
25180         * build-aux/announce-gen: Add Coda at end.
25181         Remove equivalent-but-more-verbose block at top.
25182
25183 2009-08-19  Akim Demaille  <demaille@gostai.com>
25184
25185         bootstrap: --help to stdout.
25186         * bootstrap (usage): Don't send --help to stderr.
25187         Use a here doc instead of a long string.
25188
25189 2009-08-21  Eric Blake  <ebb9@byu.net>
25190
25191         test-popen-safer: split from test-popen
25192         * tests/test-popen.c (main): Move...
25193         * tests/test-popen.h: ...into new file.
25194         * tests/test-popen-safer2.c: New file.
25195         * modules/popen-tests (Files): Add test-popen.h.
25196         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25197         Suggested by Bruno Haible.
25198
25199         test-fcntl-safer: split from test-open
25200         * tests/test-open.c (main): Move...
25201         * tests/test-open.h: ...into new file.
25202         * tests/test-fcntl-safer.c: New file.
25203         * modules/open-tests (Files): Add test-open.h.
25204         * modules/fcntl-safer-tests: New file.
25205         Suggested by Bruno Haible.
25206
25207         test-fopen-safer: split from test-fopen
25208         * tests/test-fopen.c (main): Move...
25209         * tests/test-fopen.h: ...into new file.
25210         * tests/test-fopen-safer.c: New file.
25211         * modules/fopen-tests (Files): Add test-fopen.h.
25212         * modules/fopen-safer-tests: New file.
25213         Suggested by Bruno Haible.
25214
25215 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25216
25217         popen-safer: test O_CLOEXEC at run-time.
25218         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25219
25220 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25221
25222         fcntl: move more flags to the header
25223         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25224         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25225         * lib/fcntl.in.h: Do both things here.
25226
25227 2009-08-21  Jim Meyering  <meyering@redhat.com>
25228
25229         consistently remove $@-t before redirecting to it
25230         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25231         * modules/alloca-opt: Likewise.
25232         * modules/byteswap: Likewise.
25233         * modules/fnmatch: Likewise.
25234         * modules/getopt-posix: Likewise.
25235         * modules/glob: Likewise.
25236         * modules/poll: Likewise.
25237         * modules/posix_spawnp-tests: Likewise.
25238         * modules/sys_socket: Likewise.
25239         * modules/sysexits: Likewise.
25240
25241 2009-08-21  Eric Blake  <ebb9@byu.net>
25242
25243         popen: simplify access to original popen
25244         * lib/popen.c (rpl_popen): No need to worry about popen being a
25245         macro.
25246         Reported by Bruno Haible.
25247
25248 2009-08-20  Eric Blake  <ebb9@byu.net>
25249
25250         build: avoid some compiler warnings
25251         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25252         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25253         type.
25254         (new_exclude_segment, excluded_file_pattern_p)
25255         (excluded_file_name_p): Reduce scope.
25256         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25257         old-style declaration.
25258
25259 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25260
25261         * tests/test-exclude1.sh: Handle Windows EOL.
25262         * tests/test-exclude2.sh: Likewise.
25263         * tests/test-exclude3.sh: Likewise.
25264         * tests/test-exclude4.sh: Likewise.
25265         * tests/test-exclude5.sh: Likewise.
25266         * tests/test-exclude6.sh: Likewise.
25267         * tests/test-exclude7.sh: Likewise.
25268
25269 2009-08-19  Akim Demaille  <demaille@gostai.com>
25270
25271         bootstrap: find sha1sum when named gsha1sum.
25272         * bootstrap (find_tool): New.
25273         ($SHA1SUM): New.
25274         Use it.
25275
25276 2009-08-20  Jim Meyering  <meyering@redhat.com>
25277
25278         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25279         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25280         expression that converts "." in a file name to "\." in the resulting
25281         regexp.  Start with a dummy statement, so that prior shell variable
25282         definitions are expanded portably.  Reported by Simon Josefsson.
25283
25284 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25285
25286         Fix polling for writeability of a screen buffer.
25287         * lib/poll.c: Distinguish input and screen buffers for the
25288         Win32 implementation.
25289         * lib/select.c: Likewise.
25290
25291 2009-08-19  Eric Blake  <ebb9@byu.net>
25292
25293         popen-safer: prevent popen from clobbering std descriptors
25294         * modules/popen-safer: New file.
25295         * lib/popen-safer.c: Likewise.
25296         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25297         * lib/stdio--.h (popen): Provide override.
25298         * lib/stdio-safer.h (popen_safer): Provide declaration.
25299         * tests/test-popen.c (includes): Partially test this.
25300         * modules/popen-safer-tests: New file, for more tests.
25301         * tests/test-popen-safer.c: Likewise.
25302         * MODULES.html.sh (file stream based Input/Output): Mention it.
25303
25304         tests: test some of the *-safer modules
25305         * modules/fopen-safer (Depends-on): Add fopen.
25306         * modules/fcntl-safer (Depends-on): Add fcntl.
25307         * modules/stdlib-safer (Depends-on): Add stdlib.
25308         (configure.ac): Set indicator.
25309         * modules/unistd-safer (configure.ac): Likewise.
25310         * modules/tmpfile-safer (configure.ac): Likewise.
25311         (Depends-on): Add tmpfile.
25312         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25313         active.
25314         * tests/test-fopen.c (includes): Test safer versions when they are
25315         in use.
25316         * tests/test-open.c (includes): Likewise.
25317
25318         popen: fix cygwin 1.5 bug when stdin closed
25319         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25320         * modules/popen: New file.
25321         * modules/popen-tests: Likewise.
25322         * tests/test-popen.c: Likewise.
25323         * m4/popen.m4: Likewise.
25324         * lib/popen.c: Likewise.
25325         * lib/stdio.in.h (popen): New declaration.
25326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25327         * modules/stdio (Makefile.am): Likewise.
25328         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25329
25330 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25331
25332         maint.mk: give full control over update-copyright exclusions
25333         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25334         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25335         (update-copyright): Don't force inclusion of top-level
25336         ChangeLog.  Don't force exclusion of all COPYING files, but make
25337         them the default exclusion instead.
25338
25339 2009-08-16  Bruno Haible  <bruno@clisp.org>
25340
25341         Fix test failures on Solaris 10.
25342         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25343         tests when Solaris iconv() is used.
25344         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25345         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25346         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25347         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25348         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25349
25350 2009-08-16  Bruno Haible  <bruno@clisp.org>
25351
25352         Fix test failures on Solaris 10.
25353         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25354         'tr' program and pass it as first argument.
25355         * tests/test-pipe-filter-gi1.sh: Likewise.
25356         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25357         program as first argument.
25358         * tests/test-pipe-filter-gi1.c (main): Likewise.
25359
25360 2009-08-16  Eric Blake  <ebb9@byu.net>
25361
25362         fpurge: fix previous commits
25363         * modules/fpurge (Makefile.am): Make replacement conditional,
25364         partially reverting 2007-04-29 change; missed in previous
25365         attempt.
25366         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25367         is missing.
25368
25369 2009-08-16  Bruno Haible  <bruno@clisp.org>
25370
25371         Clarify fpurge's effect on the file position.
25372         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25373         * tests/test-fpurge.c (main): Make a second pass for checking the file
25374         position.
25375
25376 2009-08-16  Bruno Haible  <bruno@clisp.org>
25377
25378         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25379         declaration of fpurge is missing.
25380         * tests/test-fpurge.c (main): Check that the file has not more contents
25381         than expected. Close the file before removing it.
25382
25383 2009-08-15  Eric Blake  <ebb9@byu.net>
25384
25385         fpurge: don't wrap working cygwin implementation
25386         * lib/fpurge.c (fpurge): Fix comment typo.
25387         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25388         1.7 to avoid replacement.
25389         * tests/test-fpurge.c (main): Enhance test.
25390
25391 2009-08-15  Eric Blake  <ebb9@byu.net>
25392         and Jim Meyering  <meyering@redhat.com>
25393
25394         test-update-copyright: skip if perl is insufficient
25395         * tests/test-update-copyright.sh: Failure to run maintainer tool
25396         should not cause testsuite failure on cygwin 1.5.
25397
25398 2009-08-14  Eric Blake  <ebb9@byu.net>
25399
25400         doc: mention more functions added in cygwin 1.7.0
25401         * doc/posix-headers/limits.texi (limits.h): Update for recent
25402         cygwin additions.
25403         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25404         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25405         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25406         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25407         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25408
25409 2009-08-14  Eric Blake  <ebb9@byu.net>
25410
25411         maint.mk: simplify update-copyright rule
25412         * top/maint.mk (update-copyright-local): Delete, and document how
25413         to do it in cfg.mk instead.
25414         (update-copyright-exclude-regexp): Delete, and document how to do
25415         it in .x-update-copyright instead.
25416         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25417         exclude ChangeLog.
25418
25419 2009-08-14  Bruno Haible  <bruno@clisp.org>
25420
25421         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25422
25423 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25424
25425         maint.mk: support update-copyright-env
25426         * top/maint.mk (update-copyright-env): Define place-holder.
25427         (update-copyright): Expand $(update-copyright-env) before
25428         invoking update-copyright.
25429
25430 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25431
25432         update-copyright: implement forced reformatting
25433         * build-aux/update-copyright: Implement and document
25434         UPDATE_COPYRIGHT_FORCE.
25435         * tests/test-update-copyright.sh: Test it.
25436
25437 2009-08-14  Eric Blake  <ebb9@byu.net>
25438         and Bruno Haible  <bruno@clisp.org>
25439
25440         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25441         * tests/test-locale.c: Revert previous patch related to NULL.
25442         * tests/test-stdio.c: Likewise.
25443         * tests/test-stdlib.c: Likewise.
25444         * tests/test-string.c: Likewise.
25445         * tests/test-unistd.c: Likewise.
25446         * modules/time-tests (Depends-on): Add verify.
25447         * modules/wchar-tests (Depends-on): Likewise.
25448         * tests/test-time.c: Test for NULL compliance.
25449         * tests/test-wchar.c: Likewise.
25450         * modules/locale (Depends-on): Add stddef.
25451         * modules/stdio (Depends-on): Likewise.
25452         * modules/stdlib (Depends-on): Likewise.
25453         * modules/string (Depends-on): Likewise.
25454         * modules/time (Depends-on): Likewise.
25455         * modules/unistd (Depends-on): Likewise.
25456         * modules/wchar (Depends-on): Likewise.
25457         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25458         * lib/stdlib.in.h (includes): Likewise.
25459         * lib/string.in.h (includes): Likewise.
25460         * lib/time.in.h (includes): Likewise.
25461         * lib/unistd.in.h (includes): Likewise.
25462         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25463         replaced.
25464         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25465         * m4/stddef_h.m4: New file.
25466         * modules/stddef: Likewise.
25467         * lib/stddef.in.h: Likewise.
25468         * modules/stddef-tests: Likewise.
25469         * tests/test-stddef.c: Likewise.
25470         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25471         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25472         * doc/posix-headers/locale.texi (locale.h): Likewise.
25473         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25474         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25475         * doc/posix-headers/string.texi (string.h): Likewise.
25476         * doc/posix-headers/time.texi (time.h): Likewise.
25477         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25478         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25479
25480 2009-08-14  Eric Blake  <ebb9@byu.net>
25481
25482         doc: improve git diff of texinfo files
25483         * .gitattributes: Add rule for *.texi files, with hint on how to
25484         use it.
25485         Copied from m4, and based on a report by Bruno Haible.
25486
25487 2009-08-14  Bruno Haible  <bruno@clisp.org>
25488
25489         Disable multithread support by default on Cygwin 1.5.x for real.
25490         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25491
25492 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25493
25494         update-copyright: much ado about intervals
25495         * build-aux/update-copyright: Implement and document
25496         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25497         of copyright year intervals.
25498         Also, document UPDATE_COPYRIGHT_YEAR.
25499         * tests/test-update-copyright.sh: Test it.
25500
25501         update-copyright: convert 2-digit to 4-digit years
25502         * build-aux/update-copyright: Implement and document.
25503         * tests/test-update-copyright.sh: Update.
25504
25505 2009-08-14  Jim Meyering  <meyering@redhat.com>
25506
25507         test-exclude: avoid coreutils "make check" failure
25508         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25509         just as in test-argmatch.c.
25510
25511 2009-08-13  Eric Blake  <ebb9@byu.net>
25512
25513         test-dup2: fix bad assumption
25514         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25515         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25516
25517         test-version-etc: fix CRLF portability issue
25518         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25519         recognize \r.
25520         * tests/test-argp-version-etc-1.sh: Likewise.
25521
25522         getopt: update client modules
25523         * modules/argp (Depends-on): Use getopt-gnu.
25524         * modules/git-merge-changelog (Depends-on): Likewise.
25525         * modules/long-options (Depends-on): Likewise.
25526         * modules/xstrtol (Depends-on): Likewise.
25527
25528 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25529
25530         * tests/test-version-etc.sh: Don't fail on different
25531         project/version.  Don't fail on CRLF differences.  Rewrite to use
25532         multiple -e instead of multiple sed forks, suggested by Eric Blake
25533         <ebb9@byu.net>.
25534         * tests/test-argp-version-etc-1.sh: Likewise.
25535
25536 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25537
25538         * tests/test-version-etc.sh: Don't fail on different
25539         project/version.
25540
25541 2009-08-12  Bruno Haible  <bruno@clisp.org>
25542
25543         Tests for modules 'getopt-posix', 'getopt-gnu'.
25544         * modules/getopt-posix-tests: New file.
25545         * tests/test-getopt.c: New file.
25546         * tests/test-getopt.h: New file.
25547         * tests/test-getopt_long.h: New file.
25548
25549         New modules 'getopt-posix', 'getopt-gnu'.
25550         * modules/getopt-gnu: New file, renamed from modules/getopt.
25551         * modules/getopt-posix: New file.
25552         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25553         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25554         (gl_GETOPT): Remove macro.
25555         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25556         Disable the test against BSD systems that declare optreset. Test
25557         against mingw bug. Test against lack of support of optional arguments
25558         on many platforms.
25559         * doc/glibc-headers/getopt.texi: Update module name and list of
25560         relevant platforms.
25561         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25562         'getopt-gnu' and more portability problems.
25563         * NEWS: Mention the changes.
25564
25565 2009-08-12  Bruno Haible  <bruno@clisp.org>
25566
25567         Ensure that optarg etc. get declared by <unistd.h>.
25568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25569         AC_USE_SYSTEM_EXTENSIONS.
25570         * modules/getopt (Depends-on): Add 'extensions'.
25571
25572 2009-08-12  Bruno Haible  <bruno@clisp.org>
25573
25574         Avoid test link errors.
25575         * modules/pipe-filter-ii-tests (Makefile.am): Define
25576         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25577         * modules/pipe-filter-gi-tests (Makefile.am): Define
25578         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25580
25581 2009-08-12  Bruno Haible  <bruno@clisp.org>
25582
25583         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25584         gl_GETOPT_SUBSTITUTE before.
25585         (gl_GETOPT): Use it.
25586         * m4/argp.m4 (gl_ARGP): Update.
25587         Reported by Sergey Poznyakoff.
25588
25589         * m4/getopt.m4: Reorder macros.
25590         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25591         (gl_GETOPT_SUBSTITUTE): Remove macro.
25592
25593 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25594
25595         Minor improvement in gitlog-to-changelog
25596
25597         * build-aux/gitlog-to-changelog: New option `--format' makes
25598         output format string configurable.
25599
25600 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25601
25602         Optimize exclude: use hash tables for non-wildcard patterns.
25603
25604         * lib/exclude.c: Include hash.h and mbuiter.h
25605         (struct exclude_pattern, exclude_segment): New data types.
25606         (struct exclude): Rewrite.
25607         (fnmatch_pattern_has_wildcards): New function.
25608         (new_exclude_segment, free_exclude_segment): New functions.
25609         (excluded_file_pattern_p, excluded_file_name_p): New functions.
25610         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
25611         * lib/exclude.h (is_fnmatch_pattern): New prototype.
25612         * modules/exclude: Depend on hash and mbuiter.
25613
25614         * modules/exclude-tests: New file.
25615         * tests/test-exclude.c: New file.
25616         * tests/test-exclude1.sh: New file.
25617         * tests/test-exclude2.sh: New file.
25618         * tests/test-exclude3.sh: New file.
25619         * tests/test-exclude4.sh: New file.
25620         * tests/test-exclude5.sh: New file.
25621         * tests/test-exclude6.sh: New file.
25622         * tests/test-exclude7.sh: New file.
25623
25624 2009-08-12  Bruno Haible  <bruno@clisp.org>
25625
25626         Ensure that getopt() gets declared by <unistd.h>.
25627         * lib/unistd.in.h: Conditionally include getopt.h.
25628         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
25629         Set GNULIB_UNISTD_H_GETOPT.
25630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25631         GNULIB_UNISTD_H_GETOPT.
25632         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
25633
25634 2009-08-12  Bruno Haible  <bruno@clisp.org>
25635
25636         Clarify logic.
25637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
25638         gl_replace_getopt instead of GETOPT_H.
25639
25640 2009-08-12  Bruno Haible  <bruno@clisp.org>
25641
25642         * m4/getopt.m4: Add comments.
25643
25644 2009-08-12  Bruno Haible  <bruno@clisp.org>
25645
25646         Disable multithread support by default on Cygwin 1.5.x.
25647         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
25648         set gl_use_threads=no if not specified otherwise.
25649
25650 2009-08-11  Bruno Haible  <bruno@clisp.org>
25651
25652         Avoid compilation error on NetBSD 5.0.
25653         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
25654         * tests/test-stdio.c: Likewise.
25655         * tests/test-stdlib.c: Likewise.
25656         * tests/test-string.c: Likewise.
25657         * tests/test-unistd.c: Likewise.
25658         Reported by Greg Troxel <gdt@ir.bbn.com>
25659         at <https://savannah.gnu.org/support/?106973>.
25660
25661 2009-08-11  Bruno Haible  <bruno@clisp.org>
25662
25663         * modules/dup2-tests (Depends-on): Remove close.
25664
25665         Undo 2009-07-19 commit.
25666         * modules/acl-tests (Depends-on): Remove close.
25667         * modules/binary-io-tests (Depends-on): Likewise.
25668         * modules/closein-tests (Depends-on): Likewise.
25669         * modules/flock-tests (Depends-on): Likewise.
25670         * modules/fsync-tests (Depends-on): Likewise.
25671         * modules/lseek-tests (Depends-on): Likewise.
25672         * modules/pipe-tests (Depends-on): Likewise.
25673         * modules/posix_spawn-tests (Depends-on): Likewise.
25674         * modules/posix_spawnp-tests (Depends-on): Likewise.
25675         * modules/stat-time-tests (Depends-on): Likewise.
25676         * modules/yesno-tests (Depends-on): Likewise.
25677
25678 2009-08-10  Bruno Haible  <bruno@clisp.org>
25679
25680         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
25681
25682 2009-08-10  Bruno Haible  <bruno@clisp.org>
25683
25684         Fix a gcc warning.
25685         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
25686
25687 2009-08-10  Bruno Haible  <bruno@clisp.org>
25688
25689         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
25690         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
25691         not only the first time.
25692         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
25693         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
25694         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
25695         is 1, not only the the first time.
25696
25697 2009-08-10  Bruno Haible  <bruno@clisp.org>
25698
25699         Make it possible to use module 'gethostname' without module 'close'.
25700         * lib/unistd.in.h (close): Evoke a link error only if
25701         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25703         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25704         * modules/unistd (Makefile.am): Substitute
25705         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25706         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
25707         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
25708         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25709         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25710         * modules/sys_ioctl (Makefile.am): Substitute
25711         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25712         * modules/socket (configure.ac): On native Windows, set
25713         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
25714         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
25715         Reported by Sam Steingold <sds@gnu.org>.
25716
25717 2009-08-10  Bruno Haible  <bruno@clisp.org>
25718
25719         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
25720         * modules/ioctl (configure.ac): Likewise.
25721
25722 2009-08-10  Bruno Haible  <bruno@clisp.org>
25723
25724         Avoid collision between gnulib wrapper and libintl wrapper.
25725         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
25726         already defined in intl/printf.c.
25727         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
25728         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
25729
25730 2009-08-09  Bruno Haible  <bruno@clisp.org>
25731
25732         Make <sys/select.h> really self-contained, also on Solaris 10.
25733         * lib/sys_select.in.h: Include <string.h>.
25734         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
25735         Solaris 10 problem.
25736         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
25737         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
25738         Reported by Jim Meyering.
25739
25740 2009-08-09  Bruno Haible  <bruno@clisp.org>
25741
25742         Avoid warnings from 'aclocal' that are due to a use of macro name
25743         AM_XGETTEXT_OPTION that is not defined in automake.
25744         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
25745         automake.
25746         * modules/error (configure.ac): Likewise.
25747         * modules/propername (configure.ac): Likewise.
25748         * modules/vasprintf (configure.ac): Likewise.
25749         * modules/verror (configure.ac): Likewise.
25750         * modules/xprintf (configure.ac): Likewise.
25751         * modules/xvasprintf (configure.ac): Likewise.
25752
25753 2009-08-08  Bruno Haible  <bruno@clisp.org>
25754
25755         Avoid compilation error in C++ mode.
25756         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
25757         Reported by Sam Steingold <sds@gnu.org>.
25758
25759 2009-08-08  Bruno Haible  <bruno@clisp.org>
25760
25761         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
25762         for the various Unix platforms.
25763         * doc/posix-headers/limits.texi: Update platforms list regarding
25764         HOST_NAME_MAX.
25765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25766
25767 2009-08-07  Jim Meyering  <meyering@redhat.com>
25768
25769         selinux-at: fix typo in a comment
25770         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
25771         Spotted by Paolo Bonzini.
25772
25773         selinux-at: remove redundant m4 code, add documentation
25774         * modules/selinux-at (configure.ac): Remove redundant code.
25775         LIB_SELINUX is already set via the dependent module, selinux-h.
25776         (Include): Add quotes around selinux-at.h.
25777         * lib/selinux-at.h: Add documentation.
25778         Reported by Bruno Haible in
25779         http://marc.info/?l=gnulib-bug&m=124958988300749
25780
25781 2009-08-07  Bruno Haible  <bruno@clisp.org>
25782
25783         Avoid link error on MacOS X 10.3 and 10.4.
25784         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
25785         on non-ELF systems.
25786         * lib/argp-pv.c (argp_program_version): Likewise.
25787         Reported by Simon Josefsson.
25788
25789 2009-08-07  Simon Josefsson  <simon@josefsson.org>
25790
25791         * tests/test-version-etc.sh: Use $EXEEXT.
25792
25793 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
25794
25795         update-copyright: update documentation to point to maint.mk
25796         * build-aux/update-copyright: Here.
25797
25798 2009-08-06  Jim Meyering  <meyering@redhat.com>
25799
25800         maint.mk: support update-copyright-local
25801         * top/maint.mk (update-copyright-local): Define place-holder.
25802         (update-copyright): Depend on $(update-copyright-local).
25803
25804 2009-08-06  Jim Meyering  <meyering@redhat.com>
25805
25806         selinux-at: new module
25807         Initially written for coreutils, this module will soon be
25808         used by findutils, too.
25809         * MODULES.html.sh [Misc]: Add selinux-at.
25810         * lib/selinux-at.h: New file, from coreutils.
25811         * lib/selinux-at.c: Likewise.
25812         * modules/selinux-at: Likewise.
25813         (License): Change from LGPL to GPL, since it depends
25814         on the GPL'd openat module.
25815
25816         doc: update README
25817         * README: Remove references to cogito.
25818         Remove cvs-repo-updating instructions from 2007.
25819         Don't imply that CVS is better if you have limited disk space.
25820
25821 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25822
25823         update-copyright: support C-style comments
25824         * build-aux/update-copyright: Implement and document.
25825         * tests/test-update-copyright.sh: Test.
25826
25827 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25828
25829         update-copyright: support omitted "(C)"
25830         * build-aux/update-copyright: Implement and document.  Also,
25831         allow variable whitespace before "(C)".
25832         * tests/test-update-copyright.sh: Test.
25833
25834 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25835
25836         update-copyright: don't trip on non-FSF copyright statements
25837         * build-aux/update-copyright: Fix so that the first correctly
25838         formatted FSF copyright statement is recognized no matter what
25839         appears before it.  Update documentation.
25840         * tests/test-update-copyright.sh: Test that.
25841
25842 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25843
25844         update-copyright: clean up code a little
25845         * build-aux/update-copyright: Append "_re" to the name of any
25846         variable holding a regular expression.
25847         Replace "old" and "new" with "stmt" in variable names.
25848         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
25849         handled correctly.
25850         Format code more consistently.
25851
25852 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
25853
25854         update-copyright-tests: improve portability
25855         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
25856         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
25857
25858 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25859
25860         update-copyright: support @copyright{} and &copy;
25861         * build-aux/update-copyright: Implement and document.
25862         * tests/test-update-copyright.sh: Test.
25863
25864 2009-08-04  Jim Meyering  <meyering@redhat.com>
25865
25866         update-copyright-tests: correctly test EOL=\r\n handling
25867         * tests/test-update-copyright.sh: Put \r at the end of some lines
25868         for the dos-eol tests.  Based on a patch by Joel E. Denny.
25869
25870         maint.mk: make update-copyright exclusion list more configurable
25871         * top/maint.mk (update-copyright): Default to excluding COPYING,
25872         but allow an override, in case someone does want to update that file.
25873
25874         maint.mk: don't update copyright date in COPYING
25875         * top/maint.mk (update-copyright): Exclude COPYING.
25876
25877         maint.mk: add a copyright-updating rule
25878         * top/maint.mk (update-copyright): New rule.
25879         Derived from coreutils/Makefile.am.
25880
25881         update-copyright: rename some variables
25882         * build-aux/update-copyright: Rename a few variables for clarity.
25883         Tweak syntax.  List Joel E. Denny as coauthor.
25884
25885 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
25886
25887         update-copyright: fix bug for 2-digit last year and add tests
25888         * build-aux/update-copyright: Fix bug.
25889         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
25890         specified.
25891         * modules/update-copyright-tests: New
25892         * tests/test-update-copyright.sh: New.
25893
25894 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25895
25896         update-copyright: handle leading tabs in line prefix
25897         * build-aux/update-copyright: Count leading tabs as 8 spaces
25898         when computing margin.  This helps with the formatting of
25899         ChangeLogs, for example.
25900         Fix documentation a little.
25901
25902 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25903
25904         update-copyright: support EOL=\r\n
25905         * build-aux/update-copyright: Implement that.
25906
25907 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
25908
25909         update-copyright: automatically format copyright statements
25910         * build-aux/update-copyright: Implement that.
25911         Also, be a little more predictable and safer by always failing
25912         when the full copyright format is not perfectly recognized as an
25913         unbroken whole.  Discussed at
25914         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
25915         Rewrite documentation.
25916
25917 2009-08-03  Bruno Haible  <bruno@clisp.org>
25918
25919         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
25920
25921 2009-08-02  Bruno Haible  <bruno@clisp.org>
25922
25923         Tests for module 'uname'.
25924         * modules/uname-tests: New file.
25925         * tests/test-uname.c: New file.
25926
25927         New module 'uname'.
25928         * lib/uname.c: New file.
25929         * m4/uname.m4: New file.
25930         * modules/uname: New file.
25931         * doc/posix-functions/uname.texi: Mention the new module.
25932
25933 2009-08-02  Bruno Haible  <bruno@clisp.org>
25934
25935         Tests for module 'sys_utsname'.
25936         * modules/sys_utsname-tests: New file.
25937         * tests/test-sys_utsname.c: New file.
25938
25939         New module 'sys_utsname'.
25940         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
25941         * m4/sys_utsname_h.m4: New file.
25942         * modules/sys_utsname: New file.
25943         * doc/posix-headers/sys_utsname.texi: Mention the new module.
25944
25945 2009-08-02  Bruno Haible  <bruno@clisp.org>
25946
25947         Implicitly initialize the sockets library.
25948         * lib/gethostname.c: Include sockets.h.
25949         (rpl_gethostname): Invoke gl_sockets_startup.
25950         * lib/socket.c: Include sockets.h.
25951         (rpl_socket): Invoke gl_sockets_startup.
25952         * modules/gethostname (Depends-on): Add sockets.
25953         * modules/socket (Depends-on): Likewise.
25954         * tests/test-poll.c: Don't include sockets.h.
25955         (main): Don't invoke gl_sockets_startup.
25956         * tests/test-select.c: Don't include sockets.h.
25957         (main): Don't invoke gl_sockets_startup.
25958
25959 2009-08-02  Bruno Haible  <bruno@clisp.org>
25960
25961         Allow multiple calls to gl_sockets_startup.
25962         * lib/sockets.c (initialized_sockets_version): New variable.
25963         (gl_sockets_startup): Do nothing if already called for this or a higher
25964         version.
25965         (gl_sockets_cleanup): Reset initialized_sockets_version.
25966
25967 2009-08-03  Simon Josefsson  <simon@josefsson.org>
25968
25969         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
25970         different project/version.
25971
25972 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
25973             Bruno Haible  <bruno@clisp.org>
25974
25975         Tests for module 'pipe-filter-gi'.
25976         * modules/pipe-filter-gi-tests: New file.
25977         * tests/test-pipe-filter-gi1.sh: New file.
25978         * tests/test-pipe-filter-gi1.c: New file.
25979         * tests/test-pipe-filter-gi2.sh: New file.
25980         * tests/test-pipe-filter-gi2-main.c: New file.
25981         * tests/test-pipe-filter-gi2-child.c: New file.
25982
25983         New module 'pipe-filter-gi'.
25984         * lib/pipe-filter-gi.c: New file.
25985         * modules/pipe-filter-gi: New file.
25986
25987 2009-08-02  Bruno Haible  <bruno@clisp.org>
25988             Paolo Bonzini  <bonzini@gnu.org>
25989
25990         Tests for module 'pipe-filter-ii'.
25991         * modules/pipe-filter-ii-tests: New file.
25992         * tests/test-pipe-filter-ii1.sh: New file.
25993         * tests/test-pipe-filter-ii1.c: New file.
25994         * tests/test-pipe-filter-ii2.sh: New file.
25995         * tests/test-pipe-filter-ii2-main.c: New file.
25996         * tests/test-pipe-filter-ii2-child.c: New file.
25997
25998         New module 'pipe-filter-ii'.
25999         * lib/pipe-filter.h: New file.
26000         * lib/pipe-filter-ii.c: New file.
26001         * lib/pipe-filter-aux.h: New file.
26002         * modules/pipe-filter-ii: New file.
26003
26004 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26005
26006         * lib/gc-libgcrypt.c: Change copyright to FSF.
26007         * lib/gc-gnulib.c: Likewise.
26008
26009 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
26010
26011         * lib/gethostname.c: Include limits.h.
26012
26013 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26014             Bruno Haible  <bruno@clisp.org>
26015
26016         Ensure HOST_NAME_MAX as part of the gethostname module.
26017         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
26018         define also HOST_NAME_MAX.
26019         * tests/test-gethostname.c: Include <limits.h>.
26020         (main): Check also HOST_NAME_MAX.
26021         * doc/posix-headers/limits.texi: Document the mingw problem.
26022
26023 2009-08-02  Bruno Haible  <bruno@clisp.org>
26024
26025         * lib/gethostname.c (gethostname): Fix handling of large len argument.
26026         Add comments.
26027
26028 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26029
26030         * lib/gethostname.c: Add Windows wrapper.
26031         * m4/gethostname.m4: Look for gethostname in -lws2_32.
26032         * modules/gethostname: Depend on sys_socket & errno, for also
26033         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
26034         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
26035
26036 2009-07-31  Jim Meyering  <meyering@redhat.com>
26037
26038         getloadavg: fix symbol name in comment
26039         * lib/getloadavg.c: Correct a typo I introduced when adding
26040         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
26041         Matt Kraai spotted the problem.
26042
26043 2009-07-29  Matt Kraai  <mkraai@beckman.com>
26044
26045         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
26046         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
26047         code also if ! defined N_NAME_POINTER.
26048         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
26049         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
26050         but the n_name member is a 12-byte array.
26051
26052 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
26053
26054         update-copyright: generalize comment handling
26055         * build-aux/update-copyright: Handle copyright statements
26056         within more comment styles.
26057         Document usage.
26058         Report any file with an external copyright holder or parse failure.
26059
26060 2009-07-29  Jim Meyering  <meyering@redhat.com>
26061
26062         mktime: correct setting of REPLACE_MKTIME
26063         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
26064
26065         update-copyright: new module
26066         * modules/update-copyright: New file.
26067         * build-aux/update-copyright: New file.
26068         * MODULES.html.sh (maint+release support): Add update-copyright.
26069
26070 2009-07-27  Bruno Haible  <bruno@clisp.org>
26071
26072         Fix compilation error when <ctime> is used and mktime is replaced.
26073         * lib/time.in.h (mktime): New declaration.
26074         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
26075         REPLACE_MKTIME instead of defining mktime in config.h.
26076         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
26077         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
26078         Reported by Ross McFarland <rwmcfa1@neces.com>.
26079
26080 2009-07-27  Bruno Haible  <bruno@clisp.org>
26081
26082         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
26083         Reported by Matt Kraai <mkraai@beckman.com>.
26084
26085 2009-07-25  Jim Meyering  <meyering@redhat.com>
26086
26087         maint.mk: avoid warnings about missing files
26088         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
26089         diagnostic when .prev-version does not exist.
26090         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
26091         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
26092         nonexistent cfg.mk.
26093         Suggestions from Simon Josefsson.
26094
26095 2009-07-25  Bruno Haible  <bruno@clisp.org>
26096
26097         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
26098         defined as macros. Needed on QNX 6.4.1.
26099         Reported by Matt Kraai <mkraai@beckman.com>.
26100
26101 2009-07-23  Jim Meyering  <meyering@redhat.com>
26102
26103         maint.mk: invoke "make dist" with a working value of XZ_OPT
26104         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
26105
26106 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
26107
26108         Make fseeko.c compile on QNX.
26109         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
26110
26111 2009-07-22  Peter Simons  <simons@cryp.to>
26112
26113         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
26114         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
26115         * lib/md4.h: Likewise.
26116         * lib/md5.h: Likewise.
26117         * lib/sha1.h: Likewise.
26118         * lib/sha256.h: Likewise.
26119         * lib/sha512.h: Likewise.
26120
26121         tests-sha1: don't assign literal string to 'char *' variable
26122         * tests/test-sha1.c (main): Declare locals with "const" to match
26123         attributes of the right hand side.
26124
26125 2009-07-21  Eric Blake  <ebb9@byu.net>
26126
26127         dup2: fix more mingw problems
26128         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
26129         fd to itself.
26130         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26131         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
26132         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
26133         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
26134         care of mingw bugs.
26135
26136 2009-07-21  Jim Meyering  <meyering@redhat.com>
26137
26138         vc-list-files: avoid failure when /bin/sh is dash
26139         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
26140         On some Debian based systems, /bin/sh is a symlink to dash, and running
26141         this command would omit the "/" following each 'tests' prefix:
26142           dash -x build-aux/vc-list-files -C . tests
26143         That is because bash and dash work differently:
26144           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
26145           bash ok
26146           dash odd
26147
26148 2009-07-21  Eric Blake  <ebb9@byu.net>
26149
26150         dup2-tests: test previous patch
26151         * modules/dup2-tests: New file.
26152         * tests/test-dup2.c: Likewise.
26153         * tests/test-open.c (main): Avoid unspecified behavior.
26154         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26155         test.
26156
26157         dup2: work around mingw and cygwin 1.5 bug
26158         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26160         * modules/unistd (Makefile.am): Substitute it.
26161         * lib/unistd.in.h (dup2): Declare the replacement.
26162         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26163         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26164         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26165         * modules/execute (Depends-on): Add dup2.
26166         * modules/fseterr (Depends-on): Likewise.
26167         * modules/pipe (Depends-on): Likewise.
26168         * modules/posix_spawn-internal (Depends-on): Likewise.
26169
26170 2009-07-21  Bruno Haible  <bruno@clisp.org>
26171
26172         * modules/.gitattributes: New file.
26173
26174 2009-07-20  Bruno Haible  <bruno@clisp.org>
26175
26176         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26177         (main): Use it.
26178
26179 2009-07-20  Eric Blake  <ebb9@byu.net>
26180
26181         test-pipe: make a bit more robust.
26182         * tests/test-pipe.c (myerr): Allow error messages regardless of
26183         what we do to stderr.
26184         (test_pipe): Rearrange to avoid deadlock.
26185         (child_main): Try a larger read, to ensure we avoided deadlock.
26186         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26187         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26188         if misused.
26189
26190 2009-07-19  Jim Meyering  <meyering@redhat.com>
26191
26192         fts: avoid false-positive cycle-detection
26193         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26194         for each new command line argument.
26195
26196 2009-07-19  Bruno Haible  <bruno@clisp.org>
26197
26198         Fix build error on mingw with the modules sys_select and unistd.
26199         * modules/acl-tests (Depends-on): Add close.
26200         * modules/binary-io-tests (Depends-on): Likewise.
26201         * modules/closein-tests (Depends-on): Likewise.
26202         * modules/flock-tests (Depends-on): Likewise.
26203         * modules/fsync-tests (Depends-on): Likewise.
26204         * modules/lseek-tests (Depends-on): Likewise.
26205         * modules/pipe-tests (Depends-on): Likewise.
26206         * modules/posix_spawn-tests (Depends-on): Likewise.
26207         * modules/posix_spawnp-tests (Depends-on): Likewise.
26208         * modules/stat-time-tests (Depends-on): Likewise.
26209         * modules/yesno-tests (Depends-on): Likewise.
26210
26211 2009-07-19  Bruno Haible  <bruno@clisp.org>
26212
26213         Unify conditionals.
26214         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26215         macros, not at the compiler macros.
26216         * lib/pipe.c: Likewise.
26217         * lib/execute.c: Likewise.
26218         * lib/spawni.c: Likewise.
26219
26220 2009-07-19  Bruno Haible  <bruno@clisp.org>
26221
26222         Fix handling of closed stdin/stdout/stderr on mingw.
26223         * lib/w32spawn.h: Include unistd.h.
26224         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26225         file descriptor with O_NOINHERIT flag.
26226         (fd_safer_noinherit): New function, based on fd-safer.c.
26227         (dup_safer_noinherit): New function, based on dup-safer.c.
26228         (undup_safer_noinherit): New function.
26229         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26230         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26231         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26232         instead of fd_safer.
26233         * tests/test-pipe.c: Include <windows.h>.
26234         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26235
26236         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26237         from main.
26238         (test_pipe): Pass an extra argument for disambiguation.
26239         (main): Invoke parent_main or child_main.
26240
26241         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26242         consistently.
26243
26244 2009-07-18  Eric Blake  <ebb9@byu.net>
26245
26246         test-pipe: fix mingw build
26247         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26248
26249 2009-07-18  Bruno Haible  <bruno@clisp.org>
26250
26251         * modules/pipe-tests (Makefile.am): Fix typo.
26252
26253 2009-07-18  Eric Blake  <ebb9@byu.net>
26254
26255         error: fix mingw build
26256         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26257         Reported by Bruno Haible.
26258
26259         error: avoid undefined use of stdout
26260         * lib/error.c (error, error_at_line): Check that fd 1 is open
26261         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26262         is handling faults and the close_stdout module wants to report the
26263         detection of closed stdout as an error.
26264
26265 2009-07-17  Eric Blake  <ebb9@byu.net>
26266
26267         pipe: be robust in face of closed fds
26268         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26269         should cause child to misbehave.
26270         * modules/pipe-tests: New module.
26271         * tests/test-pipe.c: New file.
26272         * tests/test-pipe.sh: New file.
26273         Reported by Akim Demaille.
26274
26275 2009-07-14  Bruno Haible  <bruno@clisp.org>
26276
26277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26278         Reported by anonymous kc.
26279
26280 2009-07-07  Jim Meyering  <meyering@redhat.com>
26281
26282         maint.mk: don't look for translatable strings in *.m4 or *.mk
26283         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26284         when searching for translatable strings.
26285
26286 2009-07-05  Jim Meyering  <meyering@redhat.com>
26287
26288         remove superfluous parentheses in STREQ definition
26289         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26290         * lib/getugroups.c (STREQ): Likewise.
26291         * lib/fnmatch.c (STREQ): Likewise.
26292         Spotted by Bruno Haible.
26293
26294 2009-07-04  Jim Meyering  <meyering@redhat.com>
26295
26296         argv-iter: new module
26297         * MODULES.html.sh: Add argv-iter.
26298         * lib/argv-iter.c, lib/argv-iter.h: New files.
26299         * modules/argv-iter: New file.
26300         * modules/argv-iter-tests: New file.
26301         * tests/test-argv-iter.c: Test it.
26302
26303 2009-07-04  Bruno Haible  <bruno@clisp.org>
26304
26305         Fix assertion.
26306         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26307         contains more exact copies of a given entry than file2, leave the extra
26308         copies unpaired rather than aborting.
26309         Reported by Eric Blake.
26310
26311 2009-07-02  Bruno Haible  <bruno@clisp.org>
26312
26313         Speedup git-merge-changelog for git cherry-pick.
26314         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26315         (entries_mapping_get): New function, extracted from compute_mapping.
26316         (entries_mapping_reverse_get): New function.
26317         (compute_mapping): Add a 'full' argument. Return the result in a
26318         'struct entries_mapping'.
26319         (main): Update. Access the mappings through entries_mapping_get.
26320         Reported by Eric Blake.
26321
26322 2009-07-02  Bruno Haible  <bruno@clisp.org>
26323
26324         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26325         best_i.
26326
26327 2009-07-02  Bruno Haible  <bruno@clisp.org>
26328
26329         Speed up approximate search for matching ChangeLog entries.
26330         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26331         argument. Call fstrcmp_bounded instead of fstrcmp.
26332         (compute_mapping, try_split_merged_entry, main): Update callers.
26333
26334 2009-07-02  Bruno Haible  <bruno@clisp.org>
26335
26336         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26337
26338 2009-06-30  Bruno Haible  <bruno@clisp.org>
26339
26340         Reduce the number of uc_is_cased calls.
26341         * lib/unicase.h (casing_suffix_context_t): Add
26342         'first_char_except_ignorable' field.
26343         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26344         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26345         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26346         Update initializer.
26347         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26348         case-ignorable characters.
26349         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26350         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26351         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26352         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26353         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26354
26355 2009-06-30  Bruno Haible  <bruno@clisp.org>
26356
26357         Tests for module 'unicase/ignorable'.
26358         * modules/unicase/ignorable-tests: New file.
26359         * tests/unicase/test-ignorable.c: New file, generated by
26360         gen-uni-tables.
26361
26362         Tests for module 'unicase/cased'.
26363         * modules/unicase/cased-tests: New file.
26364         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26365         * tests/unicase/test-predicate-part1.h: New file, derived from
26366         tests/unictype/test-predicate-part1.h.
26367         * tests/unicase/test-predicate-part2.h: New file, same as
26368         tests/unictype/test-predicate-part2.h.
26369
26370         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26371         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26372         (output_casing_properties): New function.
26373         (main): Call it.
26374         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26375         * lib/unicase/cased.c: Include unictype/bitmap.h.
26376         (uc_is_cased): Define through a bitmap lookup.
26377         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26378         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26379         (uc_is_case_ignorable): Define through a bitmap lookup.
26380         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26381         lib/unictype/bitmap.h.
26382         (Depends-on): Add inline. Clean up.
26383         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26384         lib/unictype/bitmap.h.
26385         (Depends-on): Add inline. Clean up.
26386         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26387         recognition.
26388         * tests/unicase/test-u16-tolower.c (main): Likewise.
26389         * tests/unicase/test-u32-tolower.c (main): Likewise.
26390
26391 2009-06-30  Bruno Haible  <bruno@clisp.org>
26392
26393         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26394         * lib/unicase/u16-casemap.c: Likewise.
26395         * lib/unicase/u32-casemap.c: Likewise.
26396
26397 2009-06-29  Bruno Haible  <bruno@clisp.org>
26398
26399         Define u32_casefold as a wrapper around u32_ct_casefold.
26400         * lib/unicase/u32-casefold.c: Update.
26401         * modules/unicase/u32-casefold (Depends-on): Add
26402         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26403         unicase/empty-suffix-context. Clean up.
26404
26405         Define u16_casefold as a wrapper around u16_ct_casefold.
26406         * lib/unicase/u16-casefold.c: Update.
26407         * modules/unicase/u16-casefold (Depends-on): Add
26408         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26409         unicase/empty-suffix-context. Clean up.
26410
26411         Define u8_casefold as a wrapper around u8_ct_casefold.
26412         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26413         * lib/unicase/u8-casefold.c: Update.
26414         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26415         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26416
26417         Define u32_totitle as a wrapper around u32_ct_totitle.
26418         * lib/unicase/u32-totitle.c: Update.
26419         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26420         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26421
26422         Define u16_totitle as a wrapper around u16_ct_totitle.
26423         * lib/unicase/u16-totitle.c: Update.
26424         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26425         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26426
26427         Define u8_totitle as a wrapper around u8_ct_totitle.
26428         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26429         functions.
26430         (FUNC): Delegate to U_CT_TOTITLE.
26431         * lib/unicase/u8-totitle.c: Update.
26432         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26433         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26434
26435         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26436         invocation.
26437         * modules/unicase/u32-tolower (Depends-on): Add
26438         unicase/empty-prefix-context, unicase/empty-suffix-context.
26439
26440         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26441         invocation.
26442         * modules/unicase/u16-tolower (Depends-on): Add
26443         unicase/empty-prefix-context, unicase/empty-suffix-context.
26444
26445         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26446         * modules/unicase/u8-tolower (Depends-on): Add
26447         unicase/empty-prefix-context, unicase/empty-suffix-context.
26448
26449         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26450         invocation.
26451         * modules/unicase/u32-toupper (Depends-on): Add
26452         unicase/empty-prefix-context, unicase/empty-suffix-context.
26453
26454         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26455         invocation.
26456         * modules/unicase/u16-toupper (Depends-on): Add
26457         unicase/empty-prefix-context, unicase/empty-suffix-context.
26458
26459         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26460         * modules/unicase/u8-toupper (Depends-on): Add
26461         unicase/empty-prefix-context, unicase/empty-suffix-context.
26462
26463         New module 'unicase/u32-ct-casefold'.
26464         * lib/unicase/u32-ct-casefold.c: New file.
26465         * modules/unicase/u32-ct-casefold: New file.
26466
26467         New module 'unicase/u16-ct-casefold'.
26468         * lib/unicase/u16-ct-casefold.c: New file.
26469         * modules/unicase/u16-ct-casefold: New file.
26470
26471         New module 'unicase/u8-ct-casefold'.
26472         * lib/unicase/u8-ct-casefold.c: New file.
26473         * lib/unicase/u-ct-casefold.h: New file, derived from
26474         lib/unicase/u-casefold.h.
26475         * modules/unicase/u8-ct-casefold: New file.
26476
26477         New module 'unicase/u32-ct-totitle'.
26478         * lib/unicase/u32-ct-totitle.c: New file.
26479         * modules/unicase/u32-ct-totitle: New file.
26480
26481         New module 'unicase/u16-ct-totitle'.
26482         * lib/unicase/u16-ct-totitle.c: New file.
26483         * modules/unicase/u16-ct-totitle: New file.
26484
26485         New module 'unicase/u8-ct-totitle'.
26486         * lib/unicase/u8-ct-totitle.c: New file.
26487         * lib/unicase/u-ct-totitle.h: New file, derived from
26488         lib/unicase/u-totitle.h.
26489         * modules/unicase/u8-ct-totitle: New file.
26490
26491         New module 'unicase/u32-ct-tolower'.
26492         * lib/unicase/u32-ct-tolower.c: New file.
26493         * modules/unicase/u32-ct-tolower: New file.
26494
26495         New module 'unicase/u16-ct-tolower'.
26496         * lib/unicase/u16-ct-tolower.c: New file.
26497         * modules/unicase/u16-ct-tolower: New file.
26498
26499         New module 'unicase/u8-ct-tolower'.
26500         * lib/unicase/u8-ct-tolower.c: New file.
26501         * modules/unicase/u8-ct-tolower: New file.
26502
26503         New module 'unicase/u32-ct-toupper'.
26504         * lib/unicase/u32-ct-toupper.c: New file.
26505         * modules/unicase/u32-ct-toupper: New file.
26506
26507         New module 'unicase/u16-ct-toupper'.
26508         * lib/unicase/u16-ct-toupper.c: New file.
26509         * modules/unicase/u16-ct-toupper: New file.
26510
26511         New module 'unicase/u8-ct-toupper'.
26512         * lib/unicase/u8-ct-toupper.c: New file.
26513         * modules/unicase/u8-ct-toupper: New file.
26514
26515         Add context arguments to u*_casemap functions.
26516         * lib/unicase/unicasemap.h: Include unicase.h.
26517         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26518         suffix_context arguments.
26519         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26520         functions.
26521         (FUNC): Add prefix_context and suffix_context arguments. Use
26522         uc_is_cased and uc_is_case_ignorable.
26523         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26524         * lib/unicase/u16-casemap.c: Likewise.
26525         * lib/unicase/u32-casemap.c: Likewise.
26526         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26527         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26528         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26529         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26530         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
26531         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26532
26533         New module 'unicase/u32-suffix-context'.
26534         * lib/unicase/u32-suffix-context.c: New file.
26535         * modules/unicase/u32-suffix-context: New file.
26536
26537         New module 'unicase/u16-suffix-context'.
26538         * lib/unicase/u16-suffix-context.c: New file.
26539         * modules/unicase/u16-suffix-context: New file.
26540
26541         New module 'unicase/u8-suffix-context'.
26542         * lib/unicase/u8-suffix-context.c: New file.
26543         * lib/unicase/u-suffix-context.h: New file.
26544         * modules/unicase/u8-suffix-context: New file.
26545
26546         New module 'unicase/empty-suffix-context'.
26547         * lib/unicase/empty-suffix-context.c: New file.
26548         * modules/unicase/empty-suffix-context: New file.
26549
26550         New module 'unicase/u32-prefix-context'.
26551         * lib/unicase/u32-prefix-context.c: New file.
26552         * modules/unicase/u32-prefix-context: New file.
26553
26554         New module 'unicase/u16-prefix-context'.
26555         * lib/unicase/u16-prefix-context.c: New file.
26556         * modules/unicase/u16-prefix-context: New file.
26557
26558         New module 'unicase/u8-prefix-context'.
26559         * lib/unicase/u8-prefix-context.c: New file.
26560         * lib/unicase/u-prefix-context.h: New file.
26561         * lib/unicase/context.h: New file.
26562         * modules/unicase/u8-prefix-context: New file.
26563
26564         New module 'unicase/empty-prefix-context'.
26565         * lib/unicase/empty-prefix-context.c: New file.
26566         * modules/unicase/empty-prefix-context: New file.
26567
26568         New module 'unicase/ignorable'.
26569         * lib/unicase/ignorable.c: New file.
26570         * modules/unicase/ignorable: New file.
26571
26572         New module 'unicase/cased'.
26573         * lib/unicase/caseprop.h: New file.
26574         * lib/unicase/cased.c: New file.
26575         * modules/unicase/cased: New file.
26576
26577         New functions for case mapping of substrings.
26578         * lib/unicase.h (casing_prefix_context_t): New type.
26579         (unicase_empty_prefix_context): New variable.
26580         (u8_casing_prefix_context, u16_casing_prefix_context,
26581         u32_casing_prefix_context, u8_casing_prefixes_context,
26582         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26583         declarations.
26584         (casing_suffix_context_t): New type.
26585         (unicase_empty_suffix_context): New variable.
26586         (u8_casing_suffix_context, u16_casing_suffix_context,
26587         u32_casing_suffix_context, u8_casing_suffixes_context,
26588         u16_casing_suffixes_context, u32_casing_suffixes_context,
26589         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26590         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26591         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26592         declarations.
26593
26594 2009-06-28  Jim Meyering  <meyering@redhat.com>
26595
26596         boostrap: indent only with spaces
26597         * build-aux/bootstrap: Indent only with spaces, never TABs.
26598
26599         bootstrap: split long lines
26600         * build-aux/bootstrap: Keep line length < 80.
26601
26602         bootstrap: sync from coreutils
26603         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
26604         just as autoreconf does.  Verify a list of prerequisite
26605         package-name,version-number pairs if defined in bootstrap.conf.
26606         Refer to README-prereq, if prerequisites are not satisfied.
26607
26608 2009-06-27  Eric Blake  <ebb9@byu.net>
26609
26610         tests: add test for bogus NULL definition
26611         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
26612         * tests/test-stdlib.c: Likewise.
26613         * tests/test-string.c: Likewise.
26614         * tests/test-locale.c: Likewise.
26615         * tests/test-unistd.c: Likewise.
26616         * modules/stdio-tests (Depends-on): Add verify.
26617         * modules/stdlib-tests (Depends-on): Likewise.
26618         * modules/string-tests (Depends-on): Likewise.
26619         * modules/locale-tests (Depends-on): Likewise.
26620         * modules/unistd-tests (Depends-on): Likewise.
26621
26622 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
26623
26624         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
26625         self-explaining comment.
26626         * m4/selinux-selinux-h: Update serial.
26627         (gl_LIBSELINUX): New macro, adding a warning for missing development
26628         packages to code extracted from...
26629         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
26630         Add warning for missing development packages here, too.
26631
26632 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
26633
26634         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
26635
26636 2009-06-25  Eric Blake  <ebb9@byu.net>
26637
26638         version-etc: fix regression
26639         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
26640         gcc.
26641         (version_etc): Use it, to catch bugs with trailing NULL.
26642         * lib/version-etc.c (version_etc_arn): Delete unused argument.
26643         (version_etc_va): Fix logic bug.
26644         * modules/version-etc-tests: Add test.
26645         * tests/test-version-etc.c: New file.
26646         * tests/test-version-etc.sh: Likewise.
26647
26648 2009-06-25  Sam Steingold  <sds@gnu.org>
26649
26650         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
26651         mbtowc declaration.
26652
26653 2009-06-25  Eric Blake  <ebb9@byu.net>
26654
26655         fpurge: migrate into <stdio.h>
26656         * lib/fpurge.h: Delete...
26657         * lib/stdio.in.h (fpurge): ...and declare here, instead.
26658         * lib/fpurge.c (fpurge): Change declaring header.
26659         * modules/fpurge (Files): Drop deleted file.
26660         (Depends-on): Add stdio.
26661         (configure.ac): Set witness.
26662         * modules/stdio (Makefile.am): Support fpurge macros.
26663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26664         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
26665         * lib/fflush.c: Update client.
26666         * tests/test-fpurge.c: Likewise.
26667         * NEWS: Mention the change.
26668
26669 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26670
26671         * lib/argp-version-etc.c (program_authors): Add const
26672         qualifier.
26673         * lib/version-etc.c: Fix typos in the comments.
26674         * modules/argp-version-etc: Depends on version-etc.
26675
26676 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26677
26678         argp-version-etc: new module.
26679
26680         * lib/argp-version-etc.c: New file.
26681         * lib/argp-version-etc.h: New file.
26682         * modules/argp-version-etc: New file.
26683         * modules/argp-version-etc-tests: New file.
26684         * tests/test-argp-version-etc.c: New test.
26685         * tests/test-argp-version-etc-1.sh: New test.
26686
26687 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
26688
26689         Provide additional interfaces and documentation for version-etc
26690         module.
26691
26692         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
26693         interfaces.
26694         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
26695         prototypes.
26696
26697 2009-06-24  Bruno Haible  <bruno@clisp.org>
26698
26699         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
26700         HAVE_LIB${NAME} macro.
26701         Reported by Sam Steingold <sds@gnu.org>.
26702
26703 2009-06-23  Simon Josefsson  <simon@josefsson.org>
26704
26705         * modules/hash-tests (test_hash_LDADD): Link to libintl when
26706         needed.
26707
26708 2009-06-21  Bruno Haible  <bruno@clisp.org>
26709
26710         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
26711         work.
26712         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
26713         together with LIB${NAME}, LTLIB${NAME}.
26714         Reported by Sam Steingold <sds@gnu.org>.
26715
26716 2009-06-20  Jim Meyering  <meyering@redhat.com>
26717
26718         tests: make sc_require_test_exit_idiom more generic
26719         * top/maint.mk (Exit_witness_file): New overridable variable.
26720         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
26721         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
26722
26723 2009-06-19  Jim Meyering  <meyering@redhat.com>
26724
26725         hash: reverse order of src/dst parameters in an internal interface
26726         * lib/hash.c (transfer_entries): Reverse order of parameters to
26727         put DST before SRC.  Adjust callers.
26728
26729         tests: test-hash: avoid wholesale duplication
26730         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
26731         Instead, use a loop and add a single conditional.
26732
26733         tests: test-hash: allow seed selection via a command line argument
26734         * tests/test-hash.c (get_seed): New function.
26735         (main): Use it.
26736
26737 2009-06-19  Eric Blake  <ebb9@byu.net>
26738
26739         hash: avoid memory leak on allocation failure
26740         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
26741         failure.  Factor repeated algorithm...
26742         (transfer_entries): ...into new helper routine.
26743         (hash_delete): React to hash_rehash return value.
26744
26745         hash: reduce memory pressure in hash_rehash no-op case
26746         * lib/hash.c (next_prime): Avoid overflow.
26747         (hash_initialize): Factor bucket size computation...
26748         (compute_bucket_size): ...into new helper function.
26749         (hash_rehash): Use new function and open coding to reduce memory
26750         pressure, and avoid a memory leak in USE_OBSTACK code.
26751         Reported by Jim Meyering.
26752
26753 2009-06-18  Eric Blake  <ebb9@byu.net>
26754
26755         hash: make rotation more obvious
26756         * modules/hash (Depends-on): Add bitrotate and stdint.
26757         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
26758         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
26759         (SIZE_MAX): Rely on headers for definition.
26760         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
26761         (raw_hasher): Use rotr_sz.
26762         Suggested by Jim Meyering.
26763
26764         hash: fix memory leak in last patch
26765         * lib/hash.c (hash_rehash): Avoid memory leak.
26766
26767         hash: avoid no-op rehashing
26768         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
26769
26770         hash: provide default callback functions
26771         * lib/hash.c (raw_hasher, raw_comparator): New functions.
26772         (hash_initialize): Use them as defaults.
26773         * tests/test-hash.c (main): Test this.
26774
26775         hash: minor optimization
26776         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
26777         when possible.
26778         (hash_initialize): Document this promise.
26779         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
26780         * tests/test-hash.c (hash_compare_strings): Test this.
26781
26782 2009-06-18  Bruno Haible  <bruno@clisp.org>
26783
26784         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
26785         going to be replaced anyway.
26786
26787 2009-06-18  Bruno Haible  <bruno@clisp.org>
26788
26789         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
26790         in one place.
26791         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
26792         be replaced anyway.
26793
26794 2009-06-18  Eric Blake  <ebb9@byu.net>
26795
26796         hash: check for resize before insertion
26797         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
26798         threshold before insertion, so that a pathological hash_rehash
26799         that fills every bucket can still trigger another rehash.
26800
26801 2009-06-18  Jim Meyering  <meyering@redhat.com>
26802
26803         hash-tests: add a loop around the small tests
26804         * tests/test-hash.c (main): Repeat small tests with selected
26805         small initial table sizes.
26806
26807 2009-06-17  Eric Blake  <ebb9@byu.net>
26808
26809         hash: minor cleanups
26810         * lib/hash.h (hash_entry): Make opaque, by moving...
26811         * lib/hash.c (hash_entry): ...here.
26812         (hash_insert): Clarify restrictions on what can be inserted.
26813         (hash_get_next): Clarify when it is safe to remove an element
26814         during traversal.
26815         (check_tuning): Skip verification when tuning is known safe.
26816         (hash_initialize): Clarify restrictions on tuning.
26817
26818 2009-06-17  Jim Meyering  <jim@meyering.net>
26819         and Eric Blake  <ebb9@byu.net>
26820
26821         hash-tests: new module
26822         * modules/hash-tests: New file.
26823         * tests/test-hash.c: New file.
26824
26825 2009-06-17  Eric Blake  <ebb9@byu.net>
26826
26827         strstr-simple: document new module
26828         * MODULES.html.sh: Document new module.
26829
26830         strstr, strcasestr: replace on platforms with broken memchr
26831         * modules/strstr: Split into...
26832         * modules/strstr-simple: ...new module that does not care about
26833         performance, but does care about glibc bug.
26834         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
26835         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
26836         if platform memchr is broken, per Debian bug 521737.
26837         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
26838         memchr.
26839         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
26840         * doc/posix-functions/strstr.texi (strstr): Document the fix.
26841         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26842         * modules/mountlist (Depends-on): Add strstr-simple.
26843         * modules/gen-uni-tables (Depends-on): Likewise.
26844         * modules/argz (Depends-on): Add strstr.
26845
26846 2009-06-17  Bruno Haible  <bruno@clisp.org>
26847
26848         * modules/posix_spawn-internal (Depends-on): Add errno.
26849
26850 2009-06-17  Bruno Haible  <bruno@clisp.org>
26851
26852         Define missing ESTALE on Interix 3.5.
26853         * lib/errno.in.h (ESTALE): Assign a value if missing.
26854         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
26855         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
26856         missing.
26857         * doc/posix-headers/errno.texi: Mention the Interix bug.
26858         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
26859
26860 2009-06-15  Eric Blake  <ebb9@byu.net>
26861
26862         memchr, memchr2: add valgrind exception
26863         * lib/memchr.valgrind: New file.
26864         * lib/memchr2.valgrind: New file.
26865         * modules/memchr (Files): Distribute valgrind file.
26866         * modules/memchr2 (Files): Likewise.
26867
26868         docs: memchr is no longer obsolete
26869         * MODULES.html.sh: Move memchr from obsolete to string.h section.
26870         * lib/string.in.h (memchr): Simplify logic.
26871
26872 2009-06-14  Jim Meyering  <meyering@redhat.com>
26873
26874         link-follow: fix the "checking..." message to not mention trailing slash
26875         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
26876         never considered trailing slashes.
26877
26878 2009-06-14  Bruno Haible  <bruno@clisp.org>
26879
26880         * m4/memchr.m4: Mention also the bug on IA-64.
26881         * doc/posix-functions/memchr.texi: Likewise.
26882
26883 2009-06-12  Eric Blake  <ebb9@byu.net>
26884
26885         memchr: detect broken x86_64 and alpha implementations
26886         * modules/memchr-tests (Depends-on): Move mmap detection...
26887         * modules/memchr (Depends-on): ...here.
26888         (configure.ac): Set indicator.
26889         * lib/string.in.h (memchr): Declare replacement.
26890         * modules/string (Makefile.am): Trigger replacement.
26891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26892         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
26893         bugs.
26894         * doc/posix-functions/memchr.texi (memchr): Document the bug.
26895         * modules/getpagesize (License): Relax license.
26896
26897 2009-06-11  Bruno Haible  <bruno@clisp.org>
26898
26899         * lib/idpriv.h: Add more references.
26900
26901 2009-06-08  Bruno Haible  <bruno@clisp.org>
26902
26903         Tests for module 'idpriv-droptemp'.
26904         * modules/idpriv-droptemp-tests: New file.
26905         * tests/test-idpriv-droptemp.sh: New file.
26906         * tests/test-idpriv-droptemp.su.sh: New file.
26907         * tests/test-idpriv-droptemp.c: New file.
26908
26909         New module 'idpriv-droptemp'.
26910         * lib/idpriv-droptemp.c: New file.
26911         * modules/idpriv-droptemp: New file.
26912
26913 2009-06-08  Bruno Haible  <bruno@clisp.org>
26914
26915         Tests for module 'idpriv-drop'.
26916         * modules/idpriv-drop-tests: New file.
26917         * tests/test-idpriv-drop.sh: New file.
26918         * tests/test-idpriv-drop.su.sh: New file.
26919         * tests/test-idpriv-drop.c: New file.
26920
26921         New module 'idpriv-drop'.
26922         * lib/idpriv.h: New file.
26923         * lib-idpriv-drop.c: New file.
26924         * m4/idpriv.m4: New file.
26925         * modules/idpriv-drop: New file.
26926
26927 2009-06-08  Bruno Haible  <bruno@clisp.org>
26928
26929         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
26930         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26931         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26932         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26933         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26934         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26935         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26936
26937 2009-06-08  Eric Blake  <ebb9@byu.net>
26938
26939         test-strstr: use memory fence, when possible
26940         * tests/test-strstr.c (main): Use memory fence, in order to be
26941         more likely to trigger Debian bug 521737.
26942         * modules/strstr-tests (Files): Pull in additional files.
26943
26944         memchr: no longer obsolete, for wider field testing
26945         * modules/memchr (Status, Notice): Delete, this module is no
26946         longer obsolete.
26947         * modules/vasnprintf (Depends-on): Add memchr.
26948
26949 2009-06-07  Jim Meyering  <meyering@redhat.com>
26950
26951         hash: declare some functions with the warn_unused_result attribute
26952         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
26953
26954 2009-06-07  Bruno Haible  <bruno@clisp.org>
26955
26956         * tests/test-alignof.c: Don't test int64_t if it does not exist.
26957         Reported by Eric Blake.
26958
26959 2009-06-06  Eric Blake  <ebb9@byu.net>
26960
26961         test-alignof: fix typo with long double
26962         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
26963         compiler error.
26964
26965 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
26966
26967         Escape non-texinfo { and }s.
26968         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
26969         markup error.
26970
26971 2009-06-04  Jim Meyering  <meyering@redhat.com>
26972
26973         gitlog-to-changelog: don't infloop on an empty commit log
26974         * build-aux/gitlog-to-changelog: Warn about an empty log message.
26975         Reported by Boris Petersen <transacid@centerim.org>.
26976
26977 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
26978
26979         version-etc: extend for packagers
26980         Add three new configure options, intended for packagers:
26981           --with-packager="packager name"
26982           --with-packager-version="packager-specific version"
26983           --with-packager-bug-reports="packager bug reporting"
26984         An example with coreutils:
26985           $ ./configure \
26986             --with-packager=Gentoo \
26987             --with-packager-bug-report=http://bugs.gentoo.org/ \
26988             --with-packager-version="patchset 1.6"
26989           $ ./src/ls --version | head -n2
26990           ls (GNU coreutils) 7.1-dirty
26991           Packaged by Gentoo (patchset 1.6)
26992         Note that the bug reporting info via --help doesn't show up because
26993         coreutils uses its own custom emit_bug_reporting_address() implementation
26994         in src/system.h.  If it didn't, it'd look like:
26995           $ ./src/ls --help | tail -n4
26996           Report bugs to <bug-coreutils@gnu.org>.
26997           Report Gentoo bugs to <http://bugs.gentoo.org/>.
26998           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
26999           General help using GNU software: <http://www.gnu.org/gethelp/>.
27000         * lib/version-etc.c: Print new information, if provided.
27001         * m4/version-etc.m4: New file.
27002         * modules/version-etc (Files): Add m4/version-etc.m4.
27003         (configure.ac): Add gl_VERSION_ETC.
27004
27005 2009-05-31  Bruno Haible  <bruno@clisp.org>
27006
27007         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
27008         and 'int64_t'.
27009         * modules/alignof-tests (Dependencies): Add stdint.
27010         Reported by Eric Blake.
27011
27012 2009-05-31  Bruno Haible  <bruno@clisp.org>
27013
27014         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
27015         restriction due to compiler bugs.
27016         Reported by Eric Blake.
27017
27018 2009-05-31  Simon Josefsson  <simon@josefsson.org>
27019             Bruno Haible  <bruno@clisp.org>
27020
27021         Fix test-alignof failure.
27022         * lib/alignof.h (alignof_slot): New macro.
27023         (alignof_type): New macro, with the same semantics as the previous
27024         'alignof'.
27025         (alignof): Alias to alignof_slot.
27026         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
27027         check that the results are usable as constant expressions.
27028
27029 2009-05-31  Bruno Haible  <bruno@clisp.org>
27030
27031         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
27032         * tests/test-memchr.c (main): Check that memchr does not read past the
27033         first occurrence of the byte.
27034         * tests/test-strstr.c (main): Update comment.
27035         Suggested by Eric Blake.
27036
27037 2009-05-30  Bruno Haible  <bruno@clisp.org>
27038
27039         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
27040         detail how to use dumpbin.
27041         Reported by David Byron <dbyron@dbyron.com>.
27042
27043 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27044
27045         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
27046
27047 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27048
27049         * m4/manywarnings.m4: Add GCC 4.4 warnings.
27050
27051 2009-05-28  Bruno Haible  <bruno@clisp.org>
27052
27053         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
27054         build-aux/ files.
27055
27056 2009-05-28  Simon Josefsson  <simon@josefsson.org>
27057
27058         * gnulib-tool (func_import): Transform license on build-aux/ files too.
27059
27060 2009-05-27  Simon Josefsson  <simon@josefsson.org>
27061
27062         * gnulib-tool (sed_transform_main_lib_file)
27063         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
27064         regexps.
27065
27066 2009-05-26  Simon Josefsson  <simon@josefsson.org>
27067
27068         * tests/test-strstr.c: Add another self-test.
27069         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
27070         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
27071
27072 2009-05-23  Bruno Haible  <bruno@clisp.org>
27073
27074         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
27075         change.
27076
27077 2009-05-21  Bruno Haible  <bruno@clisp.org>
27078
27079         Simplify use of mode_t varargs.
27080         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
27081         uses 'mode_t' or 'int'.
27082         * lib/openat.c (openat): Likewise.
27083         * lib/open-safer.c (open_safer): Likewise.
27084         * m4/mode_t.m4: New file.
27085         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
27086         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
27087         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
27088         * modules/open (Files): Add m4/mode_t.m4.
27089         * modules/openat (Files): Likewise.
27090         * modules/fcntl-safer (Files): Likewise.
27091         Suggested by Eric Blake.
27092
27093 2009-05-21  Pádraig Brady  <P@draigbrady.com>
27094
27095         * doc/glibc-functions/fallocate.texi: New file.
27096         * doc/gnulib.texi: Include it.
27097
27098 2009-05-21  Eric Blake  <ebb9@byu.net>
27099             Bruno Haible  <bruno@clisp.org>
27100
27101         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
27102         invocations.
27103         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27104
27105 2009-05-21  Eric Blake  <ebb9@byu.net>
27106             Bruno Haible  <bruno@clisp.org>
27107
27108         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
27109         include_next. Fix of 2008-11-20 commit.
27110         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
27111         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
27112         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
27113         NEXT_MATH_H.
27114         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
27115         instead of NEXT_MATH_H.
27116
27117 2009-05-21  Bruno Haible  <bruno@clisp.org>
27118
27119         Avoid redefinition warnings for SIZE_MAX.
27120         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
27121         Reported by Simon Josefsson.
27122
27123 2009-05-21  Bruno Haible  <bruno@clisp.org>
27124
27125         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
27126         AC_CACHE_VAL.
27127
27128 2009-05-20  Bruno Haible  <bruno@clisp.org>
27129
27130         Make zeroptr.h work on mingw.
27131         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
27132         mprotect.
27133         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
27134         * modules/memchr2-tests (configure.ac): Likewise.
27135         * modules/memcmp-tests (configure.ac): Likewise.
27136         * modules/memmem-tests (configure.ac): Likewise.
27137         * modules/memrchr-tests (configure.ac): Likewise.
27138         Reported by Simon Josefsson.
27139
27140 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27141
27142         * tests/test-glob.c: Include string.h for strcmp prototype.
27143
27144 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27145
27146         * modules/getdelim (Depends-on): Add explicit stdint, although it
27147         was implicitly already pulled in via realloc-posix.
27148         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
27149
27150 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27151
27152         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27153         G. Christensen" <tgc@jupiterrise.com>.
27154         * m4/sys_socket_h.m4: Check for sa_family_t.
27155         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27156         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27157         * tests/test-sys_socket.c: Check that sa_family_t works.
27158
27159 2009-05-18  Eric Blake  <ebb9@byu.net>
27160
27161         maint.mk: allow gnulib_dir in VPATH build
27162         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27163
27164 2009-05-15  Jim Meyering  <meyering@redhat.com>
27165
27166         maint.mk: Give gnulib_dir a default definition.
27167         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27168         Thus, most packages no longer need to specify this variable in cfg.mk
27169
27170 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27171
27172         rename.m4: fix typos that would make non-mingw cross-configure fail
27173         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27174
27175 2009-05-13  Eric Blake  <ebb9@byu.net>
27176
27177         mmap-anon: avoid out-of-order autoconf expansion
27178         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27179         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27180         * modules/memchr-tests (Depends-on): Add extensions.
27181         * modules/memchr2-tests (Depends-on): Add extensions.
27182         * modules/memcmp-tests (Depends-on): Add extensions.
27183         * modules/memmem-tests (Depends-on): Add extensions.
27184         * modules/memrchr-tests (Depends-on): Add extensions.
27185
27186 2009-05-13  Bruno Haible  <bruno@clisp.org>
27187
27188         Make some tests ISO C 99 compliant.
27189         * tests/zerosize-ptr.h: New file.
27190         * tests/test-memchr.c: Include zerosize-ptr.h.
27191         (main): Use a zero-size object pointer instead of NULL.
27192         * tests/test-memchr2.c: Include zerosize-ptr.h.
27193         (main): Use a zero-size object pointer instead of NULL.
27194         * tests/test-memcmp.c: Include zerosize-ptr.h.
27195         (main): Use a zero-size object pointer instead of NULL.
27196         * tests/test-memmem.c: Include zerosize-ptr.h.
27197         (main): Use a zero-size object pointer instead of NULL.
27198         * tests/test-memrchr.c: Include zerosize-ptr.h.
27199         (main): Use a zero-size object pointer instead of NULL.
27200         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27201         m4/mmap-anon.m4.
27202         (Depends-on): Add getpagesize.
27203         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27204         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27205         m4/mmap-anon.m4.
27206         (Depends-on): Add getpagesize.
27207         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27208         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27209         m4/mmap-anon.m4.
27210         (Depends-on): Add getpagesize.
27211         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27212         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27213         m4/mmap-anon.m4.
27214         (Depends-on): Add getpagesize.
27215         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27216         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27217         m4/mmap-anon.m4.
27218         (Depends-on): Add getpagesize.
27219         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27220
27221 2009-05-12  Bruno Haible  <bruno@clisp.org>
27222
27223         Tests for module 'alignof'.
27224         * modules/alignof-tests: New file.
27225         * tests/test-alignof.c: New file.
27226
27227 2009-05-12  Bruno Haible  <bruno@clisp.org>
27228
27229         Fix alignof macro.
27230         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27231         vendor compilers that are always correct.
27232
27233 2009-05-12  Bruno Haible  <bruno@clisp.org>
27234
27235         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27236         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27237         not whether its fully works.
27238
27239 2009-05-12  Bruno Haible  <bruno@clisp.org>
27240
27241         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27242
27243 2009-05-12  Jim Meyering  <meyering@redhat.com>
27244
27245         * top/maint.mk: Adjust backslash alignment.
27246
27247 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27248
27249         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27250
27251 2009-05-11  Eric Blake  <ebb9@byu.net>
27252
27253         argp: avoid undefined behavior
27254         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27255         macros.
27256
27257 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27258
27259         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27260         user.name to prevent git commit from complaining.
27261
27262 2009-05-10  Bruno Haible  <bruno@clisp.org>
27263
27264         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27265         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27266         it rewrites every file name only once.
27267         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27268
27269 2009-05-08  Bruno Haible  <bruno@clisp.org>
27270
27271         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27272         instead of 'max'.
27273
27274 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27275
27276         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27277         sockaddr_storage test.
27278
27279 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27280
27281         * modules/sys_socket (Makefile.am): Substitute
27282         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27283         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27284         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27285         * tests/test-sys_socket.c: Check sockaddr_storage.
27286
27287 2009-05-08  Bruno Haible  <bruno@clisp.org>
27288
27289         New module 'alignof'.
27290         * lib/alignof.h: New file.
27291         * modules/alignof: New file.
27292
27293 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27294             Bruno Haible  <bruno@clisp.org>
27295
27296         Fix test-file-has-acl on FreeBSD.
27297         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27298         mask is implicitly added.
27299         * tests/test-file-has-acl.c: Include <signal.h>.
27300         (main): Terminate the test after 5 seconds.
27301         * modules/acl-tests (configure.ac): Check for alarm function.
27302
27303 2009-05-04  Bruno Haible  <bruno@clisp.org>
27304
27305         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27306         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27307         * modules/errno (configure.ac): Drop AC_REQUIRE.
27308         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27309         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27310
27311 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27312
27313         * modules/glob-tests: New module.
27314         * tests/test-glob.c: Add.
27315
27316 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27317
27318         * modules/fnmatch-tests: New module.
27319         * tests/test-fnmatch.c: Add.
27320
27321 2009-05-04  Eric Blake  <ebb9@byu.net>
27322
27323         maint: make the new no-submodule-changes rule VPATH-safe
27324         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27325
27326 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27327             Bruno Haible  <bruno@clisp.org>
27328
27329         acl: Fix infinite loop on FreeBSD.
27330         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27331         of return value from acl_get_entry.
27332         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27333         Likewise.
27334
27335 2009-05-03  Bruno Haible  <bruno@clisp.org>
27336
27337         * lib/acl-internal.h (acl_entries): Clarify return value.
27338         * lib/acl_entries.c (acl_entries): Likewise.
27339
27340 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27341
27342         Bug fix in acl module.
27343         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27344
27345 2009-05-03  Bruno Haible  <bruno@clisp.org>
27346
27347         Create gperf-generated file in the source dir, not in the build dir.
27348         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27349         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27350         * modules/unicase/locale-language (unicase/locale-languages.h):
27351         Likewise.
27352         * modules/unicase/special-casing (unicase/special-casing-table.h):
27353         Likewise.
27354         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27355         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27356         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27357         Reported by Ralf Wildenhues.
27358
27359 2009-05-03  Bruno Haible  <bruno@clisp.org>
27360
27361         * modules/fnmatch (Description, configure.ac): Taken from
27362         fnmatch-posix.
27363         * modules/fnmatch-posix: Turn into a symbolic reference to the
27364         'fnmatch' module, and deprecate.
27365         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27366
27367 2009-05-03  Bruno Haible  <bruno@clisp.org>
27368
27369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27370         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27371         Reported by Ralf Wildenhues.
27372
27373 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27374
27375         * m4/fnmatch.m4: Fix fnmatch re-define.
27376
27377 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27378
27379         priv-set: new module and tests; adapt write-any-file
27380         * lib/priv-set.c: New file.
27381         * lib/priv-set.h: New file.
27382         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27383         * lib/write-any-file.c: Simplify by using priv-set module.
27384         * m4/priv-set.m4: New file.
27385         * modules/priv-set: New file.
27386         * modules/unlinkdir: Add dependency on priv-set module.
27387         * modules/write-any-file: Likewise.
27388
27389         Tests for module 'priv-set'.
27390         * modules/priv-set-tests: New file.
27391         * tests/test-priv-set.c: New file.
27392
27393 2009-05-03  Jim Meyering  <meyering@redhat.com>
27394             Bruno Haible  <bruno@clisp.org>
27395
27396         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27397         use the converted UTF-8 variant of the name instead.
27398
27399 2009-05-03  Jim Meyering  <meyering@redhat.com>
27400
27401         tests: tighten some getdate tests
27402         * tests/test-getdate.c (main): Tighten tests: require equality,
27403         not just greater than.  Set TZ envvar to UTC0.
27404
27405 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27406
27407         getdate: correctly interpret "next monday" when run on a Monday
27408         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27409         that e.g., "next tues" (when run on a tuesday) results in a date
27410         that is one week in the future, and not today's date.
27411         I.e., add a week when the wday is the same as the current one.
27412         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27413         and earlier by Martin Bernreuther and Jan Minář.
27414         * tests/test-getdate.c (main): Check that "next DAY" is always in
27415         the future and that "last DAY" is always in the past.
27416
27417 2009-05-02  Jim Meyering  <meyering@redhat.com>
27418
27419         build: ensure that a release build fails when a submodule is unclean
27420         * top/maint.mk (no-submodule-changes): New rule.
27421         (alpha beta major): Depend on it.
27422
27423 2009-05-02  Bruno Haible  <bruno@clisp.org>
27424
27425         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27426         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27427         shell variable gl_fnmatch_required to detect which variant is
27428         requested.
27429         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27430         gl_FUNC_FNMATCH_POSIX.
27431         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27432         exclude fnmatch-posix.
27433
27434 2009-05-02  Bruno Haible  <bruno@clisp.org>
27435
27436         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27437         * modules/mbsrtowcs (License): Change to LGPLv2+.
27438         * modules/strnlen1 (License): Likewise.
27439         Reported by Simon Josefsson.
27440
27441 2009-05-02  Bruno Haible  <bruno@clisp.org>
27442
27443         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27444         "cross".
27445         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27446         gnulib-tool was called with option --source-base=lib.
27447
27448 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27449
27450         Use automake *-local hooks without commands, for extensibility.
27451         * modules/localcharset (Makefile.am): Rename install-exec-local
27452         rule to install-exec-localcharset, and make it a prerequisite of
27453         install-exec-local.  Likewise, rename the uninstall-local rule to
27454         uninstall-localcharset, and make it a prerequisite of the former.
27455
27456 2009-05-01  Bruno Haible  <bruno@clisp.org>
27457
27458         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27459         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27460         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27462         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27463         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27464         m4/locale-zh.m4, m4/codeset.m4.
27465
27466         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27467         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27468         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27469         m4/locale-zh.m4.
27470
27471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27472         REPLACE_WCRTOMB if mbstate_t must be replaced.
27473         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27474         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27475
27476 2009-05-01  Bruno Haible  <bruno@clisp.org>
27477
27478         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27479         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27480         dngettext, dcngettext, textdomain, bindtextdomain,
27481         bind_textdomain_codeset): Undefine before redefining.
27482
27483 2009-04-30  Bruno Haible  <bruno@clisp.org>
27484
27485         Fix bug introduced on 2009-04-25.
27486         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27487         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27488         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27489         is defined.
27490         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27491         is defined.
27492         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27493         is defined.
27494         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27495
27496 2009-04-28  Bruno Haible  <bruno@clisp.org>
27497
27498         Comment tweaks.
27499         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27500         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27501         * lib/unicase.h (u*_casexfrm): Likewise.
27502         Reported by Paolo Bonzini.
27503
27504 2009-04-28  Bruno Haible  <bruno@clisp.org>
27505
27506         Fix a compilation error.
27507         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27508         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27509         Reported by Jim Meyering.
27510
27511 2009-04-27  Bruno Haible  <bruno@clisp.org>
27512
27513         New module 'libunistring'.
27514         * modules/libunistring: New file.
27515         * m4/libunistring.m4: New file.
27516         * MODULES.html.sh (Unicode string functions): Add it.
27517
27518 2009-04-27  Eric Blake  <ebb9@byu.net>
27519
27520         maint.mk: allow package-specific header to provide <config.h>
27521         * top/maint.mk (sc_require_config_h): New variable.
27522         (sc_require_config_h, sc_require_config_h_first): Use it.
27523
27524 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27525
27526         * top/maint.mk (sc_avoid_if_before_free): Except
27527         useless-if-before-free script.
27528
27529 2009-04-27  Eric Blake  <ebb9@byu.net>
27530
27531         maintainer-makefile: depend on all required helper scripts
27532         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27533         useless-if-before-free.
27534         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27535         version, rather than assuming gnulib checkout is available.
27536         Reported by Simen Josefsson.
27537
27538 2009-04-26  Bruno Haible  <bruno@clisp.org>
27539
27540         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27541         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27542         "../" or "..".
27543
27544 2009-04-26  Bruno Haible  <bruno@clisp.org>
27545
27546         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27547         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27548         AC_LIB_HAVE_LINKFLAGS.
27549
27550 2009-04-26  Bruno Haible  <bruno@clisp.org>
27551
27552         Simplify calling convention of u*_conv_from_encoding.
27553         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27554         u32_conv_from_encoding): Expect a resultbuf argument and return the
27555         result directly as a pointer.
27556         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27557         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27558         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27559         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27560         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27561         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27562         Update.
27563         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27564         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27565         * lib/vasnprintf.c (VASNPRINTF): Update.
27566         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27567         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27568         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27569         * NEWS: Mention the change.
27570
27571 2009-04-26  Bruno Haible  <bruno@clisp.org>
27572
27573         Simplify calling convention of u*_conv_to_encoding.
27574         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27575         u32_conv_to_encoding): Expect a resultbuf argument and return the
27576         result directly as a pointer.
27577         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27578         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27579         freeing scaled_offsets if mem_iconveha failed.
27580         * lib/unicase/u-casexfrm.h (FUNC): Update.
27581         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27582         * lib/vasnprintf.c (VASNPRINTF): Update.
27583         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27584         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27585         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27586         * NEWS: Mention the change.
27587
27588 2009-04-26  Bruno Haible  <bruno@clisp.org>
27589
27590         Avoid test failures on AIX and OSF/1.
27591         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27592         malloc(0).
27593         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27594         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27595         Likewise.
27596         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
27597         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
27598         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
27599         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
27600         * doc/posix-functions/malloc.texi: Document the portability problem
27601         related to malloc(0).
27602
27603 2009-04-26  Bruno Haible  <bruno@clisp.org>
27604
27605         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
27606         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
27607         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
27608
27609 2009-04-25  Bruno Haible  <bruno@clisp.org>
27610
27611         Avoid link error when creating a namespace clean library.
27612         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
27613         as macro with arguments if already defined as an alias.
27614         * lib/signbitf.c (gl_signbitf): Don't undefine.
27615         * lib/signbitd.c (gl_signbitd): Don't undefine.
27616         * lib/signbitl.c (gl_signbitl): Don't undefine.
27617
27618 2009-04-25  Jim Meyering  <meyering@redhat.com>
27619
27620         vc-list-files: fix another quoting bug
27621         * build-aux/vc-list-files: Avoid sed backslash expansion
27622         of pathological directory names.
27623
27624 2009-04-25  Eric Blake  <ebb9@byu.net>
27625
27626         vc-list-files: fix shell quoting error
27627         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
27628         timestamp.
27629
27630 2009-04-25  Jim Meyering  <meyering@redhat.com>
27631
27632         vc-list-files: restore lost functionality with subdir argument
27633         * build-aux/vc-list-files: When given a non-"." sub-directory
27634         argument, substitute the $dir/ prefix back onto each resulting name.
27635         Otherwise, coreutils' root_tests check would fail.
27636
27637 2009-04-24  Eric Blake  <ebb9@byu.net>
27638
27639         vc-list-files: ignore git symlinks
27640         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
27641         than ls-files, to ignore git symlinks.
27642
27643         maint.mk: import improvements from m4
27644         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
27645         (move_if_change): Delete unused macro.
27646         (news-date-check, vc-diff-check): Support VPATH builds.
27647         (announcement): Likewise.  Split --bootstrap-tools list...
27648         (boostrap-tools): ...into separate list, which can be overridden
27649         in cfg.mk.
27650         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
27651         requiring dependency on useless-if-before-free module.
27652         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
27653         Support VPATH builds.
27654
27655 2009-04-24  Jim Meyering  <meyering@redhat.com>
27656
27657         maint.mk: remove coreutils-specific rules and variables
27658         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
27659         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
27660         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
27661
27662         maint.mk: remove obsolete rule
27663         * top/maint.mk (rel-check): Remove rule.
27664         (WGET, WGETFLAGS): Remove now-unused variables.
27665
27666 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27667
27668         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
27669         consistency.
27670
27671         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
27672         '$(PATH_SEPARATOR)' instead of ':'.
27673
27674 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27675
27676         * lib/getopt1.c (main): Use 'const' for static array.
27677
27678 2009-04-24  Simon Josefsson  <simon@josefsson.org>
27679
27680         * top/maint.mk: Sync with coreutils.
27681         * NEWS: Explain incompatibilities.
27682
27683 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27684             Bruno Haible  <bruno@clisp.org>
27685
27686         Fix cross-compilation results.
27687         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
27688         statement, as third argument of AC_TRY_RUN.
27689         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27690         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27691         Likewise.
27692         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27693         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27694         Likewise.
27695         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27696         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
27697         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
27698
27699 2009-04-20  Bruno Haible  <bruno@clisp.org>
27700
27701         Avoid test failure on mingw.
27702         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
27703
27704 2009-04-20  Bruno Haible  <bruno@clisp.org>
27705
27706         Avoid compilation error on mingw.
27707         * modules/localename-tests (Depends-on): Add locale.
27708
27709 2009-04-19  Bruno Haible  <bruno@clisp.org>
27710
27711         Support for building a shared library on Windows platforms.
27712         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
27713         (main): Test the presence of UNINORM_NFC here.
27714         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
27715         (main): Test the presence of UNINORM_NFD here.
27716         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
27717         (main): Test the presence of UNINORM_NFKC here.
27718         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
27719         (main): Test the presence of UNINORM_NFKD here.
27720
27721 2009-04-19  Bruno Haible  <bruno@clisp.org>
27722
27723         Avoid a compiler warning.
27724         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
27725         Change type of variable 'sequence'.
27726
27727 2009-04-19  Bruno Haible  <bruno@clisp.org>
27728
27729         * modules/configmake (Makefile.am): When the contents of configmake.h
27730         does not change, arrange to preserve its modification time.
27731
27732 2009-04-17  Simon Josefsson  <simon@josefsson.org>
27733
27734         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
27735         gettext domain.
27736
27737 2009-04-16  Jim Meyering  <meyering@redhat.com>
27738
27739         useless-if-before-free: improve conversion code
27740         * build-aux/useless-if-before-free: Adjust code-in-comment to match
27741         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
27742
27743 2009-04-14  Bruno Haible  <bruno@clisp.org>
27744
27745         * modules/fcntl (Depends-on): Add extensions.
27746         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
27747
27748 2009-04-12  Ben Pfaff  <blp@gnu.org>
27749
27750         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
27751         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
27752
27753 2009-03-20  Ben Pfaff  <blp@gnu.org>
27754
27755         Make rename replace existing destinations on Windows.
27756         * m4/rename.m4: Add test for Mingw.
27757         * lib/rename.c: Add rename replacement that uses MoveFileEx with
27758         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
27759         * doc/posix-functions/rename.texi: Document.
27760
27761 2009-04-10  Bruno Haible  <bruno@clisp.org>
27762
27763         New include file "iconveh.h".
27764         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
27765         * lib/striconveh.h: Include it.
27766         (enum iconv_ilseq_handler): Remove definition.
27767         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
27768         striconveh.h.
27769         * lib/striconveha.c: Include striconveh.h.
27770         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
27771         * modules/striconveh (Files): Add lib/iconveh.h.
27772         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
27773         lib/striconveh.h.
27774
27775 2009-04-10  Bruno Haible  <bruno@clisp.org>
27776
27777         * lib/uniconv.h: Update comment.
27778
27779 2009-04-10  Bruno Haible  <bruno@clisp.org>
27780
27781         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
27782         always.
27783         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27784         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27785         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27786         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
27787         "unistring-notinline.h", so that the function gets defined always.
27788         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27789         * lib/unistr/u8-uctomb.c: Likewise.
27790         * lib/unistr/u16-mbtouc.c: Likewise.
27791         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27792         * lib/unistr/u16-uctomb.c: Likewise.
27793         * lib/unistr/u32-mbtouc.c: Likewise.
27794         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27795         * lib/unistr/u32-uctomb.c: Likewise.
27796
27797 2009-04-10  Bruno Haible  <bruno@clisp.org>
27798
27799         Mark 'utime' obsolete.
27800         * modules/utime (Status, Notice): New sections.
27801         Suggested by Jim Meyering.
27802
27803         Fix cross-compile guess for utime test.
27804         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
27805         autoconf.
27806         * doc/posix-functions/utime.texi: Give more precisions.
27807         Reported by Jan <ipif@ymail.com>.
27808
27809 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
27810
27811         filevercmp: correct today's change
27812         * lib/filevercmp.c: Also handle coreutils' test inputs.
27813         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
27814
27815         Fix regression in 'filevercmp' module. Thanks Sven Joachim
27816         for reporting it.
27817         * lib/filevercmp.c: Special handle for "", "." and "..".
27818         * tests/test-filevercmp.c: Enlarge the set suite.
27819
27820 2009-04-07  Jim Meyering  <meyering@redhat.com>
27821
27822         useless-if-before-free: show how to remove braced useless free, too
27823         * build-aux/useless-if-before-free: still only in a comment, though.
27824
27825 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
27826
27827         maint.mk: import changes to syntax-check macros from coreutils
27828         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
27829         Use them in the relevant macros.
27830
27831 2009-04-06  Bruno Haible  <bruno@clisp.org>
27832
27833         Fix unportable use of bit-fields.
27834         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
27835         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
27836         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
27837
27838 2009-04-06  Bruno Haible  <bruno@clisp.org>
27839
27840         Avoid test failures on AIX and OSF/1.
27841         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
27842         that malloc(0) = NULL.
27843         * tests/unicase/test-u8-tolower.c (check): Likewise.
27844         * tests/unicase/test-u8-totitle.c (check): Likewise.
27845         * tests/unicase/test-u8-toupper.c (check): Likewise.
27846         * tests/unicase/test-u16-casefold.c (check): Likewise.
27847         * tests/unicase/test-u16-tolower.c (check): Likewise.
27848         * tests/unicase/test-u16-totitle.c (check): Likewise.
27849         * tests/unicase/test-u16-toupper.c (check): Likewise.
27850         * tests/unicase/test-u32-casefold.c (check): Likewise.
27851         * tests/unicase/test-u32-tolower.c (check): Likewise.
27852         * tests/unicase/test-u32-totitle.c (check): Likewise.
27853         * tests/unicase/test-u32-toupper.c (check): Likewise.
27854         * tests/uninorm/test-u8-nfc.c (check): Likewise.
27855         * tests/uninorm/test-u8-nfd.c (check): Likewise.
27856         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
27857         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
27858         * tests/uninorm/test-u16-nfc.c (check): Likewise.
27859         * tests/uninorm/test-u16-nfd.c (check): Likewise.
27860         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
27861         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
27862         * tests/uninorm/test-u32-nfc.c (check): Likewise.
27863         * tests/uninorm/test-u32-nfd.c (check): Likewise.
27864         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
27865         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
27866
27867 2009-04-05  Bruno Haible  <bruno@clisp.org>
27868
27869         Work around an autoconf limitation.
27870         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
27871         comment line if it would be longer than 3 KB.
27872
27873 2009-04-05  Bruno Haible  <bruno@clisp.org>
27874
27875         Avoid test failure with libiconv-1.13.
27876         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
27877         of the expected test results.
27878
27879 2009-04-05  Bruno Haible  <bruno@clisp.org>
27880
27881         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
27882         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
27883         that it should be installed.
27884
27885 2009-04-05  Bruno Haible  <bruno@clisp.org>
27886
27887         * gnulib-tool: New option --copy-file.
27888         (func_usage): Document it.
27889         (func_dest_tmpfilename): Moved out of func_import.
27890         (func_add_file, func_update_file): New functions, extracted from
27891         func_import.
27892         (func_import): Update.
27893
27894 2009-04-05  Karl Berry  <karl@gnu.org>
27895
27896         * README: prominently mention gnulib-tool.
27897         Rearrange sections so getting the code is near the top.
27898
27899 2009-04-05  Bruno Haible  <bruno@clisp.org>
27900
27901         * lib/unicase.h: Mention u*_cmp2.
27902         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27903         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
27904         * lib/unicase/ulc-casecmp.c: Likewise.
27905         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
27906         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
27907         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
27908         unistr/u8-cmp.
27909         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
27910         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
27911         unistr/u16-cmp.
27912         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
27913         unistr/u32-cmp.
27914
27915         * lib/uninorm.h: Mention u*_cmp2.
27916         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
27917         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
27918         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
27919         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
27920         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
27921         unistr/u8-cmp.
27922         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
27923         unistr/u16-cmp.
27924         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
27925         unistr/u32-cmp.
27926
27927         New module 'unistr/u32-cmp2'.
27928         * lib/unistr/u32-cmp2.c: New file.
27929         * modules/unistr/u32-cmp2: New file.
27930
27931         New module 'unistr/u16-cmp2'.
27932         * lib/unistr/u16-cmp2.c: New file.
27933         * modules/unistr/u16-cmp2: New file.
27934
27935         New module 'unistr/u8-cmp2'.
27936         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
27937         * lib/unistr/u8-cmp2.c: New file.
27938         * lib/unistr/u-cmp2.h: New file.
27939         * modules/unistr/u8-cmp2: New file.
27940
27941 2009-04-05  Bruno Haible  <bruno@clisp.org>
27942
27943         * lib/unictype.h (uc_property_is_valid): New macro.
27944         * tests/unictype/test-pr_byname.c (main): Use it.
27945
27946         * lib/unistr.h: Doc fixes.
27947         * lib/uniconv.h: Doc fixes.
27948         * lib/unictype.h: Doc fixes.
27949
27950 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27951
27952         Port coreutils 7.2 to Solaris 8.
27953
27954         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
27955         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
27956         for Solaris 8.  This is a bit of a hack, as it means it's the
27957         caller's responsibility to add -lnsl if needed, but most likely it
27958         won't be needed since only getaddrinfo uses this and getaddrinfo
27959         isn't needed on Solaris 8.
27960
27961         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
27962         problem to Solaris 8 encountered with coreutils 7.2, which
27963         resulted in a message "fnmatch.c:292: warning: passing argument 4
27964         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
27965         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
27966
27967 2009-04-03  Simon Josefsson  <simon@josefsson.org>
27968
27969         * m4/ld-version-script.m4: Add FIXME comment.
27970
27971 2009-04-02  Simon Josefsson  <simon@josefsson.org>
27972
27973         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
27974         SOVERSION variable.
27975
27976 2009-04-02  Bruno Haible  <bruno@clisp.org>
27977
27978         * Makefile (info, html, dvi, pdf): Combine the rules.
27979         Suggested by Jim Meyering.
27980
27981 2009-04-01  Bruno Haible  <bruno@clisp.org>
27982
27983         * Makefile (info, html, dvi, pdf): New targets.
27984         Reported by Reuben Thomas <rrt@sc3d.org>.
27985
27986 2009-04-01  Bruno Haible  <bruno@clisp.org>
27987
27988         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
27989         can be put into PATH.
27990         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
27991
27992 2009-04-01  Bruno Haible  <bruno@clisp.org>
27993
27994         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
27995
27996 2009-04-01  Bruno Haible  <bruno@clisp.org>
27997
27998         Rename module 'visibility'.
27999         * modules/lib-symbol-visibility: Renamed from modules/visibility.
28000         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
28001         * doc/gnulib.texi: Update.
28002         * MODULES.html.sh (Misc): Update.
28003         * NEWS: Mention the change.
28004
28005 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28006
28007         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
28008         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
28009         Eric Blake <ebb9@byu.net> for review.
28010         * MODULES.html.sh: Add lib-msvc-compat.
28011         * doc/gnulib.texi: Link to new section.
28012         * m4/ld-output-def.m4: New file.
28013         * doc/ld-output-def.texi: New file.
28014
28015 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28016
28017         Rename ld-version-script to lib-symbol-versions.  Suggested by
28018         Bruno Haible <bruno@clisp.org>.
28019         * modules/ld-version-script: Renamed to lib-symbol-versions.
28020         * doc/ld-version-script.texi: Fix module name.
28021         * MODULES.html.sh: Add lib-symbol-versions.
28022
28023 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28024
28025         * modules/u64-tests: New file.
28026         * tests/test-u64.c: New file.
28027
28028 2009-03-04  Simon Josefsson  <simon@josefsson.org>
28029
28030         * MODULES.html.sh: Mention u64.
28031         * modules/u64: New module.
28032         * modules/crypto/sha512: Depend on u64 module instead of providing
28033         u64.h.
28034
28035 2009-03-27  Eric Blake  <ebb9@byu.net>
28036
28037         test-strerror: make debugging EAI_SYSTEM easier
28038         * modules/getaddrinfo-tests (Depends-on): Add strerror.
28039         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
28040         failure was EAI_SYSTEM.
28041
28042 2009-03-25  Bruno Haible  <bruno@clisp.org>
28043
28044         Fix a problem with --enable-relocatable on Solaris 7.
28045         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
28046         since 2008-02-24.
28047
28048 2009-03-25  Eric Blake  <ebb9@byu.net>
28049
28050         test-sockets: avoid gcc warning
28051         * tests/test-sockets.c (main): Silence compiler warning.
28052
28053 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28054
28055         New modules nproc, pthread, contributed by Glen Lenker.
28056
28057         * MODULES.html.sh: Add pthread, nproc.
28058         * lib/nproc.c: New file.
28059         * lib/nproc.h: New file.
28060         * lib/pthread.in.h: New file.
28061         * m4/pthread.m4: New file.
28062         * modules/nproc: New file.
28063         * modules/pthread: New file.
28064
28065 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28066
28067         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
28068         New variable.
28069
28070 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
28071
28072         filevercmp: handle simple~ and numbered.~3~ backup suffixes
28073         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
28074         * tests/test-filevercmp.c: Add tests for backup suffixes.
28075
28076 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28077
28078         * modules/stdlib (Depends-on): Add stdint, needed when defining
28079         struct random_data on, for example, HP-UX 10.20.  Reported by
28080         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28081
28082 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28083
28084         * lib/readline.c (readline): Call fflush on stdout after printing
28085         prompt.
28086
28087 2009-03-20  Bruno Haible  <bruno@clisp.org>
28088
28089         Remove dependency from 'close' module to -lws2_32 on native Windows.
28090         * lib/close-hook.h: New file.
28091         * lib/close-hook.c: New file.
28092         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
28093         w32sock.h.
28094         (_gl_close_fd_maybe_socket): Remove function.
28095         (rpl_close): Invoke execute_all_close_hooks instead of
28096         _gl_close_fd_maybe_socket.
28097         * lib/sockets.c: Include close-hook.h, w32sock.h.
28098         (close_fd_maybe_socket): New function, essentially from lib/close.c.
28099         (close_sockets_hook): New variable.
28100         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
28101         (gl_sockets_cleanup): Unregister it.
28102         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
28103         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
28104         * modules/close-hook: New file.
28105         * modules/close (Files): Remove lib/w32sock.h.
28106         (Depends-on): Add close-hook.
28107         (Link): Remove section.
28108         * modules/sockets (Files): Add lib/w32sock.h.
28109         (Depends-on): Add close-hook.
28110         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
28111         invocation.
28112         * NEWS: Mention that LIB_CLOSE is gone.
28113
28114 2009-03-23  Eric Blake  <ebb9@byu.net>
28115
28116         signal-tests: test previous patch
28117         * tests/test-signal.c: New file.
28118         * modules/signal-tests: Likewise.
28119
28120         signal.h: always support 'volatile sig_atomic_t'
28121         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
28122         (gl_SIGNAL_H_DEFAULTS): Add a default.
28123         * modules/signal (Makefile.am): Substitute if needed.
28124         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
28125         users can blindly add volatile.
28126         * doc/posix-headers/signal.texi (signal.h): Document it.
28127         Reported by Matthew Woehlke.
28128
28129 2009-03-23  Jim Meyering  <meyering@redhat.com>
28130
28131         pathmax: PATH_MAX: use pathconf only when available
28132         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
28133         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
28134         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
28135         This avoids a link failure in a PSP cross-compilation environment
28136         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
28137
28138         * lib/vasnprintf.c (divide): Fix typo in comment.
28139
28140 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28141
28142         * gnulib-tool (func_filter_filelist): Fix comment.
28143
28144 2009-03-20  Bruno Haible  <bruno@clisp.org>
28145
28146         Make sockets.h self-contained.
28147         * lib/sockets.c: Include sockets.h first.
28148         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
28149
28150 2009-03-19  Eric Blake  <ebb9@byu.net>
28151
28152         doc: mention more functions added in cygwin 1.7.0
28153         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28154         addition.
28155         * doc/posix-functions/log2f.texi: Likewise.
28156
28157 2009-03-19  Jim Meyering  <meyering@redhat.com>
28158
28159         fsusage: avoid syntax error due to statement-before-declaration
28160         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28161         after all declarations.  Reported by Matthew Woehlke in
28162         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28163
28164 2009-03-18  Eric Blake  <ebb9@byu.net>
28165
28166         build-aux/compile: sync from automake
28167         * build-aux/compile: New file, from automake.
28168         * config/srclist.txt: Mention build-aux/compile.
28169
28170 2009-03-17  Bruno Haible  <bruno@clisp.org>
28171
28172         * lib/git-merge-changelog.c: Fix typo in comment.
28173         Reported by Reuben Thomas <rrt@sc3d.org>.
28174
28175 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28176
28177         * m4/regex.m4: update and improve help for
28178         --without-included-regex.
28179
28180 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28181
28182         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28183         failure on missing include files.
28184
28185 2009-03-17  Eric Blake  <ebb9@byu.net>
28186
28187         doc: mention more functions added in cygwin 1.7.0
28188         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28189         addition.
28190         * doc/posix-functions/fwscanf.texi: Likewise.
28191         * doc/posix-functions/swprintf.texi: Likewise.
28192         * doc/posix-functions/swscanf.texi: Likewise.
28193         * doc/posix-functions/vfwprintf.texi: Likewise.
28194         * doc/posix-functions/vfwscanf.texi: Likewise.
28195         * doc/posix-functions/vswprintf.texi: Likewise.
28196         * doc/posix-functions/vswscanf.texi: Likewise.
28197         * doc/posix-functions/vwprintf.texi: Likewise.
28198         * doc/posix-functions/vwscanf.texi: Likewise.
28199         * doc/posix-functions/wcscasecmp.texi: Likewise.
28200         * doc/posix-functions/wcsdup.texi: Likewise.
28201         * doc/posix-functions/wcsftime.texi: Likewise.
28202         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28203         * doc/posix-functions/wprintf.texi: Likewise.
28204         * doc/posix-functions/wscanf.texi: Likewise.
28205         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28206
28207 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28208
28209         maint.mk: really add $(AM_MAKEFLAGS)
28210         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28211         was inadvertently omitted in the last commit.
28212         Spotted by Bruno Haible.
28213
28214         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28215         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28216         $(AM_MAKEFLAGS)' rather than plain `make'.
28217
28218         gnulib-tool: execute $MAKE not make
28219         * gnulib-tool: Default $MAKE to 'make'.
28220         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28221         than make.  Initialize $MAKE in the do-autobuild script.
28222
28223         gnulib-tool: use $MAKE not make in generated files
28224         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28225         make, in generated files.  Initialize $MAKE in the do-autobuild
28226         script.
28227
28228         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28229
28230         GNUmakefile: disable parallelism only for multiple, recursive targets
28231         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28232         additions in the Makefile.
28233         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28234         by Automake.
28235         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28236         are listed on the command line and at least one of them is
28237         listed in $(ALL_RECURSIVE_TARGETS).
28238
28239 2009-03-14  Bruno Haible  <bruno@clisp.org>
28240
28241         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28242         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28243         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28244         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28245         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28246         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28247         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28248         unistr/u8-uctomb.
28249         * modules/unistr/u8-strchr (Depends-on): Likewise.
28250         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28251         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28252         unistr/u16-uctomb.
28253         * modules/unistr/u16-strchr (Depends-on): Likewise.
28254         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28255
28256 2009-03-12  Bruno Haible  <bruno@clisp.org>
28257
28258         Work around select() bug on Interix 3.5.
28259         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28260         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28261         * m4/select.m4: New file.
28262         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28263         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28264         * modules/select (Files): Add m4/select.m4.
28265         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28266         * modules/nanosleep (Depends-on): Add select.
28267         * modules/poll (Depends-on): Likewise.
28268         * doc/posix-functions/select.texi: Mention the Interix bug.
28269         Reported by Markus Duft <mduft@gentoo.org>.
28270
28271         * lib/select.c: Renamed from lib/winsock-select.c.
28272         * modules/select (Files): Add lib/select.c, remove
28273         lib/winsock-select.c.
28274         (configure.ac): Update.
28275
28276 2009-03-12  Jim Meyering  <meyering@redhat.com>
28277
28278         avoid gcc warnings about unused macro definitions
28279         * lib/readtokens.c (STREQ): Remove unused definition.
28280         * lib/xmalloc.c (SIZE_MAX): Likewise.
28281         * lib/openat-die.c (N_): Likewise.
28282         * lib/mountlist.c (SIZE_MAX): Remove definition.
28283         Instead, include <stdint.h>.
28284         * lib/readutmp.c: Likewise.
28285         * modules/readutmp (Depends-on): Add stdint.
28286         * modules/mountlist (Depends-on): Add stdint.
28287         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28288
28289 2009-03-10  Bruno Haible  <bruno@clisp.org>
28290
28291         Tests for module 'mbmemcasecoll'.
28292         * modules/mbmemcasecoll-tests: New file.
28293         * tests/test-mbmemcasecoll1.sh: New file.
28294         * tests/test-mbmemcasecoll2.sh: New file.
28295         * tests/test-mbmemcasecoll3.sh: New file.
28296         * tests/test-mbmemcasecoll.c: New file.
28297
28298         New module 'mbmemcasecoll'.
28299         * lib/mbmemcasecoll.h: New file.
28300         * lib/mbmemcasecoll.c: New file.
28301         * modules/mbmemcasecoll: New file.
28302
28303         * tests/test-mbmemcasecmp.h: New file, extracted from
28304         tests/test-mbmemcasecmp.c.
28305         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28306         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28307         (main): Update.
28308         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28309
28310 2009-03-09  Bruno Haible  <bruno@clisp.org>
28311
28312         Tests for module 'mbmemcasecmp'.
28313         * modules/mbmemcasecmp-tests: New file.
28314         * tests/test-mbmemcasecmp1.sh: New file.
28315         * tests/test-mbmemcasecmp2.sh: New file.
28316         * tests/test-mbmemcasecmp3.sh: New file.
28317         * tests/test-mbmemcasecmp.c: New file.
28318
28319         New module 'mbmemcasecmp'.
28320         * lib/mbmemcasecmp.h: New file.
28321         * lib/mbmemcasecmp.c: New file.
28322         * modules/mbmemcasecmp: New file.
28323
28324 2009-03-09  Bruno Haible  <bruno@clisp.org>
28325
28326         Tests for module 'unicase/ulc-casecoll'.
28327         * modules/unicase/ulc-casecoll-tests: New file.
28328         * tests/unicase/test-ulc-casecoll1.sh: New file.
28329         * tests/unicase/test-ulc-casecoll2.sh: New file.
28330         * tests/unicase/test-ulc-casecoll.c: New file.
28331
28332         New module 'unicase/ulc-casecoll'.
28333         * lib/unicase.h (ulc_casecoll): New declaration.
28334         * lib/unicase/ulc-casecoll.c: New file.
28335         * modules/unicase/ulc-casecoll: New file.
28336
28337         New module 'unicase/ulc-casexfrm'.
28338         * lib/unicase.h (ulc_casexfrm): New declaration.
28339         * lib/unicase/ulc-casexfrm.c: New file.
28340         * modules/unicase/ulc-casexfrm: New file.
28341
28342 2009-03-09  Bruno Haible  <bruno@clisp.org>
28343
28344         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28345         invocations.
28346
28347         * m4/mbscasecmp.m4: Remove file.
28348         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28349         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28350
28351         * m4/mbscasestr.m4: Remove file.
28352         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28353         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28354
28355         * m4/mbschr.m4: Remove file.
28356         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28357         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28358
28359         * m4/mbscspn.m4: Remove file.
28360         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28361         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28362
28363         * m4/mbslen.m4: Remove file.
28364         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28365         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28366
28367         * m4/mbsncasecmp.m4: Remove file.
28368         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28369         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28370
28371         * m4/mbsnlen.m4: Remove file.
28372         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28373         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28374
28375         * m4/mbspbrk.m4: Remove file.
28376         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28377         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28378
28379         * m4/mbspcasecmp.m4: Remove file.
28380         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28381         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28382
28383         * m4/mbsrchr.m4: Remove file.
28384         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28385         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28386
28387         * m4/mbssep.m4: Remove file.
28388         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28389         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28390
28391         * m4/mbsspn.m4: Remove file.
28392         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28393         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28394
28395         * m4/mbsstr.m4: Remove file.
28396         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28397         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28398
28399         * m4/mbstok_r.m4: Remove file.
28400         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28401         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28402
28403         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28404
28405         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28406         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28407
28408         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28409
28410 2009-03-08  Bruno Haible  <bruno@clisp.org>
28411
28412         Tests for module 'unicase/ulc-casecmp'.
28413         * modules/unicase/ulc-casecmp-tests: New file.
28414         * tests/unicase/test-ulc-casecmp1.sh: New file.
28415         * tests/unicase/test-ulc-casecmp2.sh: New file.
28416         * tests/unicase/test-ulc-casecmp.c: New file.
28417
28418         New module 'unicase/ulc-casecmp'.
28419         * lib/unicase.h (ulc_casecmp): New declaration.
28420         * lib/unicase/ulc-casecmp.c: New file.
28421         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28422         'const SRC_UNIT *'.
28423         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28424         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28425         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28426         * modules/unicase/ulc-casecmp: New file.
28427
28428         Tests for module 'unicase/u32-is-cased'.
28429         * modules/unicase/u32-is-cased-tests: New file.
28430         * tests/unicase/test-u32-is-cased.c: New file.
28431
28432         Tests for module 'unicase/u16-is-cased'.
28433         * modules/unicase/u16-is-cased-tests: New file.
28434         * tests/unicase/test-u16-is-cased.c: New file.
28435
28436         Tests for module 'unicase/u8-is-cased'.
28437         * modules/unicase/u8-is-cased-tests: New file.
28438         * tests/unicase/test-u8-is-cased.c: New file.
28439         * tests/unicase/test-is-cased.h: New file.
28440
28441         New module 'unicase/u32-is-cased'.
28442         * lib/unicase/u32-is-cased.c: New file.
28443         * modules/unicase/u32-is-cased: New file.
28444
28445         New module 'unicase/u16-is-cased'.
28446         * lib/unicase/u16-is-cased.c: New file.
28447         * modules/unicase/u16-is-cased: New file.
28448
28449         New module 'unicase/u8-is-cased'.
28450         * lib/unicase/u8-is-cased.c: New file.
28451         * lib/unicase/u-is-cased.h: New file.
28452         * modules/unicase/u8-is-cased: New file.
28453
28454         Tests for module 'unicase/u32-is-casefolded'.
28455         * modules/unicase/u32-is-casefolded-tests: New file.
28456         * tests/unicase/test-u32-is-casefolded.c: New file.
28457
28458         Tests for module 'unicase/u16-is-casefolded'.
28459         * modules/unicase/u16-is-casefolded-tests: New file.
28460         * tests/unicase/test-u16-is-casefolded.c: New file.
28461
28462         Tests for module 'unicase/u8-is-casefolded'.
28463         * modules/unicase/u8-is-casefolded-tests: New file.
28464         * tests/unicase/test-u8-is-casefolded.c: New file.
28465         * tests/unicase/test-is-casefolded.h: New file.
28466
28467         New module 'unicase/u32-is-casefolded'.
28468         * lib/unicase/u32-is-casefolded.c: New file.
28469         * modules/unicase/u32-is-casefolded: New file.
28470
28471         New module 'unicase/u16-is-casefolded'.
28472         * lib/unicase/u16-is-casefolded.c: New file.
28473         * modules/unicase/u16-is-casefolded: New file.
28474
28475         New module 'unicase/u8-is-casefolded'.
28476         * lib/unicase/u8-is-casefolded.c: New file.
28477         * modules/unicase/u8-is-casefolded: New file.
28478
28479         Tests for module 'unicase/u32-is-titlecase'.
28480         * modules/unicase/u32-is-titlecase-tests: New file.
28481         * tests/unicase/test-u32-is-titlecase.c: New file.
28482
28483         Tests for module 'unicase/u16-is-titlecase'.
28484         * modules/unicase/u16-is-titlecase-tests: New file.
28485         * tests/unicase/test-u16-is-titlecase.c: New file.
28486
28487         Tests for module 'unicase/u8-is-titlecase'.
28488         * modules/unicase/u8-is-titlecase-tests: New file.
28489         * tests/unicase/test-u8-is-titlecase.c: New file.
28490         * tests/unicase/test-is-titlecase.h: New file.
28491
28492         New module 'unicase/u32-is-titlecase'.
28493         * lib/unicase/u32-is-titlecase.c: New file.
28494         * modules/unicase/u32-is-titlecase: New file.
28495
28496         New module 'unicase/u16-is-titlecase'.
28497         * lib/unicase/u16-is-titlecase.c: New file.
28498         * modules/unicase/u16-is-titlecase: New file.
28499
28500         New module 'unicase/u8-is-titlecase'.
28501         * lib/unicase/u8-is-titlecase.c: New file.
28502         * modules/unicase/u8-is-titlecase: New file.
28503
28504         Tests for module 'unicase/u32-is-lowercase'.
28505         * modules/unicase/u32-is-lowercase-tests: New file.
28506         * tests/unicase/test-u32-is-lowercase.c: New file.
28507
28508         Tests for module 'unicase/u16-is-lowercase'.
28509         * modules/unicase/u16-is-lowercase-tests: New file.
28510         * tests/unicase/test-u16-is-lowercase.c: New file.
28511
28512         Tests for module 'unicase/u8-is-lowercase'.
28513         * modules/unicase/u8-is-lowercase-tests: New file.
28514         * tests/unicase/test-u8-is-lowercase.c: New file.
28515         * tests/unicase/test-is-lowercase.h: New file.
28516
28517         New module 'unicase/u32-is-lowercase'.
28518         * lib/unicase/u32-is-lowercase.c: New file.
28519         * modules/unicase/u32-is-lowercase: New file.
28520
28521         New module 'unicase/u16-is-lowercase'.
28522         * lib/unicase/u16-is-lowercase.c: New file.
28523         * modules/unicase/u16-is-lowercase: New file.
28524
28525         New module 'unicase/u8-is-lowercase'.
28526         * lib/unicase/u8-is-lowercase.c: New file.
28527         * modules/unicase/u8-is-lowercase: New file.
28528
28529         Tests for module 'unicase/u32-is-uppercase'.
28530         * modules/unicase/u32-is-uppercase-tests: New file.
28531         * tests/unicase/test-u32-is-uppercase.c: New file.
28532
28533         Tests for module 'unicase/u16-is-uppercase'.
28534         * modules/unicase/u16-is-uppercase-tests: New file.
28535         * tests/unicase/test-u16-is-uppercase.c: New file.
28536
28537         Tests for module 'unicase/u8-is-uppercase'.
28538         * modules/unicase/u8-is-uppercase-tests: New file.
28539         * tests/unicase/test-u8-is-uppercase.c: New file.
28540         * tests/unicase/test-is-uppercase.h: New file.
28541
28542         New module 'unicase/u32-is-uppercase'.
28543         * lib/unicase/u32-is-uppercase.c: New file.
28544         * modules/unicase/u32-is-uppercase: New file.
28545
28546         New module 'unicase/u16-is-uppercase'.
28547         * lib/unicase/u16-is-uppercase.c: New file.
28548         * modules/unicase/u16-is-uppercase: New file.
28549
28550         New module 'unicase/u8-is-uppercase'.
28551         * lib/unicase/u8-is-uppercase.c: New file.
28552         * modules/unicase/u8-is-uppercase: New file.
28553
28554         New module 'unicase/u32-is-invariant'.
28555         * lib/unicase/u32-is-invariant.c: New file.
28556         * modules/unicase/u32-is-invariant: New file.
28557
28558         New module 'unicase/u16-is-invariant'.
28559         * lib/unicase/u16-is-invariant.c: New file.
28560         * modules/unicase/u16-is-invariant: New file.
28561
28562         New module 'unicase/u8-is-invariant'.
28563         * lib/unicase/u8-is-invariant.c: New file.
28564         * lib/unicase/invariant.h: New file.
28565         * lib/unicase/u-is-invariant.h: New file.
28566         * modules/unicase/u8-is-invariant: New file.
28567
28568         Tests for module 'unicase/u32-casecoll'.
28569         * modules/unicase/u32-casecoll-tests: New file.
28570         * tests/unicase/test-u32-casecoll.c: New file.
28571
28572         Tests for module 'unicase/u16-casecoll'.
28573         * modules/unicase/u16-casecoll-tests: New file.
28574         * tests/unicase/test-u16-casecoll.c: New file.
28575
28576         Tests for module 'unicase/u8-casecoll'.
28577         * modules/unicase/u8-casecoll-tests: New file.
28578         * tests/unicase/test-u8-casecoll.c: New file.
28579
28580         New module 'unicase/u32-casecoll'.
28581         * lib/unicase/u32-casecoll.c: New file.
28582         * modules/unicase/u32-casecoll: New file.
28583
28584         New module 'unicase/u16-casecoll'.
28585         * lib/unicase/u16-casecoll.c: New file.
28586         * modules/unicase/u16-casecoll: New file.
28587
28588         New module 'unicase/u8-casecoll'.
28589         * lib/unicase/u8-casecoll.c: New file.
28590         * lib/unicase/u-casecoll.h: New file.
28591         * modules/unicase/u8-casecoll: New file.
28592
28593         New module 'unicase/u32-casexfrm'.
28594         * lib/unicase/u32-casexfrm.c: New file.
28595         * modules/unicase/u32-casexfrm: New file.
28596
28597         New module 'unicase/u16-casexfrm'.
28598         * lib/unicase/u16-casexfrm.c: New file.
28599         * modules/unicase/u16-casexfrm: New file.
28600
28601         New module 'unicase/u8-casexfrm'.
28602         * lib/unicase/u8-casexfrm.c: New file.
28603         * lib/unicase/u-casexfrm.h: New file.
28604         * modules/unicase/u8-casexfrm: New file.
28605
28606         Tests for module 'unicase/u32-casecmp'.
28607         * modules/unicase/u32-casecmp-tests: New file.
28608         * tests/unicase/test-u32-casecmp.c: New file.
28609
28610         Tests for module 'unicase/u16-casecmp'.
28611         * modules/unicase/u16-casecmp-tests: New file.
28612         * tests/unicase/test-u16-casecmp.c: New file.
28613
28614         Tests for module 'unicase/u8-casecmp'.
28615         * modules/unicase/u8-casecmp-tests: New file.
28616         * tests/unicase/test-u8-casecmp.c: New file.
28617         * tests/unicase/test-casecmp.h: New file.
28618
28619         New module 'unicase/u32-casecmp'.
28620         * lib/unicase/u32-casecmp.c: New file.
28621         * modules/unicase/u32-casecmp: New file.
28622
28623         New module 'unicase/u16-casecmp'.
28624         * lib/unicase/u16-casecmp.c: New file.
28625         * modules/unicase/u16-casecmp: New file.
28626
28627         New module 'unicase/u8-casecmp'.
28628         * lib/unicase/u8-casecmp.c: New file.
28629         * lib/unicase/u-casecmp.h: New file.
28630         * modules/unicase/u8-casecmp: New file.
28631
28632         Tests for module 'unicase/u32-casefold'.
28633         * modules/unicase/u32-casefold-tests: New file.
28634         * tests/unicase/test-u32-casefold.c: New file.
28635
28636         Tests for module 'unicase/u16-casefold'.
28637         * modules/unicase/u16-casefold-tests: New file.
28638         * tests/unicase/test-u16-casefold.c: New file.
28639
28640         Tests for module 'unicase/u8-casefold'.
28641         * modules/unicase/u8-casefold-tests: New file.
28642         * tests/unicase/test-u8-casefold.c: New file.
28643
28644         New module 'unicase/u32-casefold'.
28645         * lib/unicase/u32-casefold.c: New file.
28646         * modules/unicase/u32-casefold: New file.
28647
28648         New module 'unicase/u16-casefold'.
28649         * lib/unicase/u16-casefold.c: New file.
28650         * modules/unicase/u16-casefold: New file.
28651
28652         New module 'unicase/u8-casefold'.
28653         * lib/unicase/u8-casefold.c: New file.
28654         * lib/unicase/u-casefold.h: New file.
28655         * modules/unicase/u8-casefold: New file.
28656
28657         New module 'unicase/tocasefold'.
28658         * lib/unicase/casefold.h: New file.
28659         * lib/unicase/tocasefold.c: New file.
28660         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
28661         * modules/unicase/tocasefold: New file.
28662
28663         Tests for module 'unicase/u32-totitle'.
28664         * modules/unicase/u32-totitle-tests: New file.
28665         * tests/unicase/test-u32-totitle.c: New file.
28666
28667         Tests for module 'unicase/u16-totitle'.
28668         * modules/unicase/u16-totitle-tests: New file.
28669         * tests/unicase/test-u16-totitle.c: New file.
28670
28671         Tests for module 'unicase/u8-totitle'.
28672         * modules/unicase/u8-totitle-tests: New file.
28673         * tests/unicase/test-u8-totitle.c: New file.
28674
28675         New module 'unicase/u32-totitle'.
28676         * lib/unicase/u32-totitle.c: New file.
28677         * modules/unicase/u32-totitle: New file.
28678
28679         New module 'unicase/u16-totitle'.
28680         * lib/unicase/u16-totitle.c: New file.
28681         * modules/unicase/u16-totitle: New file.
28682
28683         New module 'unicase/u8-totitle'.
28684         * lib/unicase/u8-totitle.c: New file.
28685         * lib/unicase/u-totitle.h: New file.
28686         * modules/unicase/u8-totitle: New file.
28687
28688         Tests for module 'unicase/u32-tolower'.
28689         * modules/unicase/u32-tolower-tests: New file.
28690         * tests/unicase/test-u32-tolower.c: New file.
28691
28692         Tests for module 'unicase/u16-tolower'.
28693         * modules/unicase/u16-tolower-tests: New file.
28694         * tests/unicase/test-u16-tolower.c: New file.
28695
28696         Tests for module 'unicase/u8-tolower'.
28697         * modules/unicase/u8-tolower-tests: New file.
28698         * tests/unicase/test-u8-tolower.c: New file.
28699
28700         New module 'unicase/u32-tolower'.
28701         * lib/unicase/u32-tolower.c: New file.
28702         * modules/unicase/u32-tolower: New file.
28703
28704         New module 'unicase/u16-tolower'.
28705         * lib/unicase/u16-tolower.c: New file.
28706         * modules/unicase/u16-tolower: New file.
28707
28708         New module 'unicase/u8-tolower'.
28709         * lib/unicase/u8-tolower.c: New file.
28710         * modules/unicase/u8-tolower: New file.
28711
28712         Tests for module 'unicase/u32-toupper'.
28713         * modules/unicase/u32-toupper-tests: New file.
28714         * tests/unicase/test-u32-toupper.c: New file.
28715
28716         Tests for module 'unicase/u16-toupper'.
28717         * modules/unicase/u16-toupper-tests: New file.
28718         * tests/unicase/test-u16-toupper.c: New file.
28719
28720         Tests for module 'unicase/u8-toupper'.
28721         * modules/unicase/u8-toupper-tests: New file.
28722         * tests/unicase/test-u8-toupper.c: New file.
28723
28724         New module 'unicase/u32-toupper'.
28725         * lib/unicase/u32-toupper.c: New file.
28726         * modules/unicase/u32-toupper: New file.
28727
28728         New module 'unicase/u16-toupper'.
28729         * lib/unicase/u16-toupper.c: New file.
28730         * modules/unicase/u16-toupper: New file.
28731
28732         New module 'unicase/u8-toupper'.
28733         * lib/unicase/u8-toupper.c: New file.
28734         * modules/unicase/u8-toupper: New file.
28735
28736         New module 'unicase/u32-casemap'.
28737         * lib/unicase/u32-casemap.c: New file.
28738         * modules/unicase/u32-casemap: New file.
28739
28740         New module 'unicase/u16-casemap'.
28741         * lib/unicase/u16-casemap.c: New file.
28742         * modules/unicase/u16-casemap: New file.
28743
28744         New module 'unicase/u8-casemap'.
28745         * lib/unicase/unicasemap.h: New file.
28746         * lib/unicase/u8-casemap.c: New file.
28747         * lib/unicase/u-casemap.h: New file.
28748         * modules/unicase/u8-casemap: New file.
28749
28750         New module 'unicase/special-casing'.
28751         * lib/unicase/special-casing.h: New file.
28752         * lib/unicase/special-casing.c: New file.
28753         * lib/unicase/special-casing-table.gperf: New file, generated by
28754         gen-uni-tables.c.
28755         * modules/unicase/special-casing: New file.
28756
28757         Tests for module 'unicase/locale-language'.
28758         * modules/unicase/locale-language-tests: New file.
28759         * tests/unicase/test-locale-language.sh: New file.
28760         * tests/unicase/test-locale-language.c: New file.
28761
28762         New module 'unicase/locale-language'.
28763         * lib/unicase/locale-language.c: New file.
28764         * lib/unicase/locale-languages.gperf: New file.
28765         * modules/unicase/locale-language: New file.
28766
28767         Generate more tables for case conversion and case folding.
28768         * lib/gen-uni-tables.c (SCC_*): New enum items.
28769         (struct special_casing_rule): New type.
28770         (casing_rules, num_casing_rules, allocated_casing_rules): New
28771         variables.
28772         (add_casing_rule, fill_casing_rules): New functions.
28773         (struct casefold_rule): New type.
28774         (casefolding_rules, num_casefolding_rules,
28775         allocated_casefolding_rules): New variables.
28776         (fill_casefolding_rules): New function.
28777         (unicode_casefold): New variable.
28778         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
28779         sort_casing_rules, output_casing_rules): New functions.
28780         (main): Accept to more arguments: SpecialCasing.txt and
28781         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
28782         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
28783         Output mapping for casefolding.
28784
28785         * lib/unicase.h: Include stdbool.h, uninorm.h.
28786         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
28787         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
28788         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
28789         arguments.
28790         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
28791         resultp arguments.
28792         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
28793         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
28794         resultp arguments.
28795         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
28796         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
28797         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
28798         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
28799         declarations.
28800         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
28801
28802 2009-03-08  Bruno Haible  <bruno@clisp.org>
28803
28804         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28805         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
28806         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
28807         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28808
28809 2009-03-07  Bruno Haible  <bruno@clisp.org>
28810
28811         Adjust u*_normcmp, u*_normcoll API.
28812         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
28813         u16_normcoll, u32_normcoll): Change failure conventions.
28814         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
28815         errno and return -1.
28816         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
28817
28818 2009-03-07  Bruno Haible  <bruno@clisp.org>
28819
28820         Tests for module 'uninorm/u32-normcoll'.
28821         * modules/uninorm/u32-normcoll-tests: New file.
28822         * tests/uninorm/test-u32-normcoll.c: New file.
28823
28824         Tests for module 'uninorm/u16-normcoll'.
28825         * modules/uninorm/u16-normcoll-tests: New file.
28826         * tests/uninorm/test-u16-normcoll.c: New file.
28827
28828         Tests for module 'uninorm/u8-normcoll'.
28829         * modules/uninorm/u8-normcoll-tests: New file.
28830         * tests/uninorm/test-u8-normcoll.c: New file.
28831
28832 2009-03-07  Bruno Haible  <bruno@clisp.org>
28833
28834         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
28835         tests/uninorm/test-u32-normcmp.c.
28836         * tests/uninorm/test-u32-normcmp.c: Include it.
28837         (test_nonascii): New function, extracted from main. Add some more
28838         tests.
28839         (main): Invoke test_ascii and test_nonascii.
28840         * modules/uninorm/u32-normcmp-tests (Files): Add
28841         tests/uninorm/test-u32-normcmp.h.
28842         (Depends-on): Remove uninorm/u32-normcmp.
28843
28844         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
28845         tests/uninorm/test-u16-normcmp.c.
28846         * tests/uninorm/test-u16-normcmp.c: Include it.
28847         (test_nonascii): New function, extracted from main. Add some more
28848         tests.
28849         (main): Invoke test_ascii and test_nonascii.
28850         * modules/uninorm/u16-normcmp-tests (Files): Add
28851         tests/uninorm/test-u16-normcmp.h.
28852         (Depends-on): Remove uninorm/u16-normcmp.
28853
28854         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
28855         tests/uninorm/test-u8-normcmp.c.
28856         * tests/uninorm/test-u8-normcmp.c: Include it.
28857         (test_nonascii): New function, extracted from main. Add some more
28858         tests.
28859         (main): Invoke test_ascii and test_nonascii.
28860         * modules/uninorm/u8-normcmp-tests (Files): Add
28861         tests/uninorm/test-u8-normcmp.h.
28862         (Depends-on): Remove uninorm/u8-normcmp.
28863
28864 2009-03-07  Bruno Haible  <bruno@clisp.org>
28865
28866         New module 'uninorm/u32-normcoll'.
28867         * lib/uninorm/u32-normcoll.c: New file.
28868         * modules/uninorm/u32-normcoll: New file.
28869
28870         New module 'uninorm/u16-normcoll'.
28871         * lib/uninorm/u16-normcoll.c: New file.
28872         * modules/uninorm/u16-normcoll: New file.
28873
28874         New module 'uninorm/u8-normcoll'.
28875         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
28876         declarations.
28877         * lib/uninorm/u8-normcoll.c: New file.
28878         * lib/uninorm/u-normcoll.h: New file.
28879         * modules/uninorm/u8-normcoll: New file.
28880
28881         New module 'uninorm/u32-normxfrm'.
28882         * lib/uninorm/u32-normxfrm.c: New file.
28883         * modules/uninorm/u32-normxfrm: New file.
28884
28885         New module 'uninorm/u16-normxfrm'.
28886         * lib/uninorm/u16-normxfrm.c: New file.
28887         * modules/uninorm/u16-normxfrm: New file.
28888
28889         New module 'uninorm/u8-normxfrm'.
28890         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
28891         declarations.
28892         * lib/uninorm/u8-normxfrm.c: New file.
28893         * lib/uninorm/u-normxfrm.h: New file.
28894         * modules/uninorm/u8-normxfrm: New file.
28895
28896 2009-03-07  Bruno Haible  <bruno@clisp.org>
28897
28898         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
28899         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
28900         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
28901
28902 2009-03-07  Bruno Haible  <bruno@clisp.org>
28903
28904         New module 'memxfrm'.
28905         * lib/memxfrm.h: New file.
28906         * lib/memxfrm.c: New file.
28907         * modules/memxfrm: New file.
28908
28909 2009-03-07  Bruno Haible  <bruno@clisp.org>
28910
28911         New module 'memcmp2'.
28912         * lib/memcmp2.h: New file.
28913         * lib/memcmp2.c: New file.
28914         * modules/memcmp2: New file.
28915
28916 2009-03-07  Bruno Haible  <bruno@clisp.org>
28917
28918         Tests for module 'uninorm/decomposing-form'.
28919         * modules/uninorm/decomposing-form-tests: New file.
28920         * tests/uninorm/test-decomposing-form.c: New file.
28921
28922         New module 'uninorm/decomposing-form'.
28923         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
28924         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
28925         Add 'decomposing_variant' field.
28926         * lib/uninorm/decomposing-form.c: New file.
28927         * lib/uninorm/nfc.c (uninorm_nfc): Update.
28928         * lib/uninorm/nfd.c (uninorm_nfd): Update.
28929         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
28930         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
28931         * modules/uninorm/decomposing-form: New file.
28932         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
28933         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
28934
28935 2009-03-07  Bruno Haible  <bruno@clisp.org>
28936
28937         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
28938         strings.
28939
28940 2009-03-06  Bruno Haible  <bruno@clisp.org>
28941
28942         Tests for module 'uninorm/u32-normcmp'.
28943         * tests/uninorm/test-u32-normcmp.c: New file.
28944         * modules/uninorm/u32-normcmp-tests: New file.
28945
28946         Tests for module 'uninorm/u16-normcmp'.
28947         * tests/uninorm/test-u16-normcmp.c: New file.
28948         * modules/uninorm/u16-normcmp-tests: New file.
28949
28950         Tests for module 'uninorm/u8-normcmp'.
28951         * tests/uninorm/test-u8-normcmp.c: New file.
28952         * modules/uninorm/u8-normcmp-tests: New file.
28953
28954         New module 'uninorm/u32-normcmp'.
28955         * lib/uninorm/u32-normcmp.c: New file.
28956         * modules/uninorm/u32-normcmp: New file.
28957
28958         New module 'uninorm/u16-normcmp'.
28959         * lib/uninorm/u16-normcmp.c: New file.
28960         * modules/uninorm/u16-normcmp: New file.
28961
28962         New module 'uninorm/u8-normcmp'.
28963         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
28964         declarations.
28965         * lib/uninorm/u8-normcmp.c: New file.
28966         * lib/uninorm/u-normcmp.h: New file.
28967         * modules/uninorm/u8-normcmp: New file.
28968
28969 2009-03-06  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
28972         Reported by Eric Blake.
28973
28974 2009-03-06  Eric Blake  <ebb9@byu.net>
28975             Bruno Haible  <bruno@clisp.org>
28976
28977         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
28978         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
28979         condition.
28980         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28981         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
28982         condition.
28983         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
28984
28985 2009-03-06  Eric Blake  <ebb9@byu.net>
28986
28987         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
28988         to avoid compiler warnings.
28989         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
28990
28991 2009-03-05  Bruno Haible  <bruno@clisp.org>
28992
28993         * tests/test-ftell.c (main): Disable test beyond end of file on
28994         FreeMiNT.
28995         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
28996
28997 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
28998
28999         * lib/filevercmp.c: Move hidden files up in ordering.
29000         * tests/test-filevercmp.c: Add tests for hidden files.
29001
29002 2009-03-04  Bruno Haible  <bruno@clisp.org>
29003
29004         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
29005         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
29006         AM_CFLAGS.
29007         Reported by Simon Josefsson.
29008
29009 2009-03-03  Bruno Haible  <bruno@clisp.org>
29010
29011         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
29012         Reported by Simon Josefsson.
29013
29014         * doc/ld-version-script.texi: Update node reference.
29015
29016 2009-03-03  Bruno Haible  <bruno@clisp.org>
29017
29018         * modules/visibility (License): Change to 'unlimited'.
29019         Suggested by Simon Josefsson.
29020
29021 2009-03-03  Jim Meyering  <meyering@redhat.com>
29022
29023         unlinkdir: cannot_unlink_dir may modify process state
29024         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
29025         it's neither thread-safe nor appropriate for use in a library.
29026
29027 2009-03-03  Eric Blake  <ebb9@byu.net>
29028
29029         test-closein: silence test under Darwin
29030         * tests/test-closein.sh: Ignore stderr from cat, since we don't
29031         care if it dies from EPIPE or EBADF.
29032
29033 2009-03-03  Bruno Haible  <bruno@clisp.org>
29034
29035         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
29036         earlier.
29037         * doc/visibility.texi: Fix @node and @section.
29038
29039 2009-03-03  Simon Josefsson  <simon@josefsson.org>
29040
29041         * doc/gnulib.texi: Link to sections for ld version script and
29042         visibility.
29043         * doc/visibility.texi: Add @node and @section.
29044         * modules/ld-version-script: New module.
29045         * m4/ld-version-script.m4: New file.
29046         * doc/ld-version-script.texi: New file.
29047
29048 2009-03-02  David Lutterkort  <lutter@redhat.com>
29049
29050         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
29051         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29052
29053 2009-03-02  Bruno Haible  <bruno@clisp.org>
29054
29055         * doc/visibility.texi: Mention libtool's -export-symbols option.
29056
29057 2009-03-02  Jim Meyering  <meyering@redhat.com>
29058
29059         announce-gen: new option: --no-print-checksums
29060         * build-aux/announce-gen (usage): Describe it.
29061         (print_checksums): Print a newline here, not in the [*] footnote.
29062         (main): Honor it.
29063
29064 2009-03-01  Bruno Haible  <bruno@clisp.org>
29065
29066         Use socklen_t in the native Windows replacements prototypes.
29067         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
29068         instead of 'int'.
29069         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29070         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29071         * modules/getsockopt (Depends-on): Add socklen.
29072         * modules/setsockopt (Depends-on): Add socklen.
29073
29074 2009-03-01  Bruno Haible  <bruno@clisp.org>
29075
29076         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
29077         least 4.2.
29078
29079 2009-03-01  Eric Blake  <ebb9@byu.net>
29080             Bruno Haible  <bruno@clisp.org>
29081
29082         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
29083         error messages.
29084         * lib/wait-process.c (wait_subprocess): Omit error message about
29085         deadly signal sent to the child of termsigp != NULL.
29086
29087 2009-03-01  Eric Blake  <ebb9@byu.net>
29088
29089         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
29090
29091 2009-03-01  Bruno Haible  <bruno@clisp.org>
29092
29093         Avoid a gcc warning.
29094         * tests/test-sched.c (b): Make global.
29095         Reported by Eric Blake.
29096
29097 2009-01-19  Martin Lambers  <marlam@marlam.de>
29098
29099         Provide POSIX semantics for socket timeout options on W32.
29100         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
29101         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
29102         * modules/setsockopt: Depend on sys_time module for struct timeval.
29103         * modules/getsockopt: Depend on sys_time module for struct timeval.
29104
29105 2009-03-01  Simon Josefsson  <simon@josefsson.org>
29106
29107         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
29108         __USE_GNU, for consistency with netdb.in.h.
29109         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29110
29111 2009-03-01  Bruno Haible  <bruno@clisp.org>
29112
29113         More support for FreeMiNT.
29114         * lib/fseeko.c (rpl_fseeko): Complete last commit.
29115         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29116
29117 2009-03-01  Bruno Haible  <bruno@clisp.org>
29118
29119         More support for FreeMiNT.
29120         * lib/fpurge.c (fpurge): Correct last commit.
29121         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29122
29123 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29124
29125         Fix unportable awk script in vc-list-files.
29126         * build-aux/vc-list-files: In the replacement awk script, use
29127         substr with a second argument of 1, not zero.
29128         Report by Simon Josefsson.
29129
29130 2009-02-28  Bruno Haible  <bruno@clisp.org>
29131
29132         More support for FreeMiNT.
29133         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
29134         to FreeMiNT today.
29135         * lib/fwriting.c (fwriting): Likewise.
29136         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
29137
29138 2009-02-28  Bruno Haible  <bruno@clisp.org>
29139
29140         * tests/test-freadseek.c (main): Disable test beyond end of file on
29141         FreeMiNT.
29142         * tests/test-ftello.c (main): Likewise.
29143         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29144
29145 2009-02-28  Bruno Haible  <bruno@clisp.org>
29146
29147         Add tentative support for FreeMiNT.
29148         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
29149         * lib/fpurge.c (fpurge): Likewise.
29150         * lib/freadable.c (freadable): Likewise.
29151         * lib/freading.c (freading): Likewise.
29152         * lib/freadptr.c (freadptr): Likewise.
29153         * lib/freadseek.c (freadptrinc): Likewise.
29154         * lib/fseeko.c (rpl_fseeko): Likewise.
29155         * lib/fseterr.c (fseterr): Likewise.
29156         * lib/fwritable.c (fwritable): Likewise.
29157         * lib/fwriting.c (fwriting): Likewise.
29158         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29159         Hourihane.
29160         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29161
29162 2009-02-28  Bruno Haible  <bruno@clisp.org>
29163
29164         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29165         SIGCHLD.
29166         Reported by Jim Meyering.
29167
29168 2009-02-28  Bruno Haible  <bruno@clisp.org>
29169
29170         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29171         Mention the results of these tests on various platforms.
29172         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29173         order.
29174         * doc/posix-functions/printf.texi: Likewise.
29175         * doc/posix-functions/snprintf.texi: Likewise.
29176         * doc/posix-functions/sprintf.texi: Likewise.
29177         * doc/posix-functions/vfprintf.texi: Likewise.
29178         * doc/posix-functions/vprintf.texi: Likewise.
29179         * doc/posix-functions/vsnprintf.texi: Likewise.
29180         * doc/posix-functions/vsprintf.texi: Likewise.
29181         * doc/glibc-functions/obstack_printf.texi: Likewise.
29182         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29183
29184 2009-02-28  Bruno Haible  <bruno@clisp.org>
29185
29186         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29187         Reported by Loïc Minier <lool@dooz.org>.
29188
29189 2009-02-27  Bruno Haible  <bruno@clisp.org>
29190
29191         * gnulib-tool (func_import): Make the sed expression used to create the
29192         sed script for updating the .gitignore file POSIX compliant.
29193         Reported by Eric Blake.
29194
29195 2009-02-27  Bruno Haible  <bruno@clisp.org>
29196
29197         * gnulib-tool (sed): Don't alias as "sed --posix".
29198         Reported by Eric Blake.
29199
29200 2009-02-27  Bruno Haible  <bruno@clisp.org>
29201
29202         Avoid test link errors.
29203         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29204         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29205         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29206         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29208
29209 2009-02-27  Bruno Haible  <bruno@clisp.org>
29210
29211         Avoid spurious "(cached)" in configure output.
29212         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29213         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29214         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29215         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29216         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29217         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29218         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29219         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29220         Reported by Eric Blake.
29221
29222 2009-02-27  Eric Blake  <ebb9@byu.net>
29223
29224         printf: fix regression in previous patch
29225         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29226
29227 2009-02-27  Bruno Haible  <bruno@clisp.org>
29228
29229         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29230         value.
29231         * lib/stdint.in.h: Likewise.
29232         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29233
29234 2009-02-27  Eric Blake  <ebb9@byu.net>
29235
29236         doc: mention more functions added in cygwin 1.7.0
29237         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29238         addition.
29239         * doc/posix-functions/open_wmemstream.texi: Likewise.
29240         * doc/posix-functions/wcsnlen.texi: Likewise.
29241         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29242         * doc/posix-functions/wcstod.texi: Likewise.
29243         * doc/posix-functions/wcstof.texi: Likewise.
29244         * doc/posix-functions/wcstoimax.texi: Likewise.
29245         * doc/posix-functions/wcstok.texi: Likewise.
29246         * doc/posix-functions/wcstoumax.texi: Likewise.
29247
29248         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29249         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29250         * doc/posix-functions/fprintf.texi: Update.
29251         * doc/posix-functions/printf.texi: Update.
29252         * doc/posix-functions/snprintf.texi: Update.
29253         * doc/posix-functions/sprintf.texi: Update.
29254         * doc/posix-functions/vfprintf.texi: Update.
29255         * doc/posix-functions/vprintf.texi: Update.
29256         * doc/posix-functions/vsnprintf.texi: Update.
29257         * doc/posix-functions/vsprintf.texi: Update.
29258         * doc/glibc-functions/obstack_printf.texi: Update.
29259         * doc/glibc-functions/obstack_vprintf.texi: Update.
29260
29261 2009-02-26  Eric Blake  <ebb9@byu.net>
29262
29263         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29264         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29265         compilation bug by using runtime conversion.
29266         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29267         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29268         * modules/ceill-tests (Files): Use nan.h.
29269         * modules/floorl-tests (Files): Likewise.
29270         * modules/frexpl-tests (Files): Likewise.
29271         * modules/isnanl-tests (Files): Likewise.
29272         * modules/ldexpl-tests (Files): Likewise.
29273         * modules/roundl-tests (Files): Likewise.
29274         * modules/truncl-tests (Files): Likewise.
29275         * tests/test-ceill.c (main): Use a working NaN.
29276         * tests/test-floorl.c (main): Likewise.
29277         * tests/test-frexpl.c (main): Likewise.
29278         * tests/test-isnan.c (test_long_double): Likewise.
29279         * tests/test-isnanl.h (main): Likewise.
29280         * tests/test-ldexpl.h (main): Likewise.
29281         * tests/test-roundl.h (main): Likewise.
29282         * tests/test-truncl.h (main): Likewise.
29283         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29284
29285 2009-02-26  Eric Blake  <ebb9@byu.net>
29286             Bruno Haible  <bruno@clisp.org>
29287
29288         Work around a *printf bug with %ls on Solaris.
29289         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29290         precision is specified, sprintf stops converting the wide string
29291         argument when the number of bytes that have been produced by this
29292         conversion equals or exceeds the precision.
29293         * doc/posix-functions/fprintf.texi: Update.
29294         * doc/posix-functions/printf.texi: Update.
29295         * doc/posix-functions/snprintf.texi: Update.
29296         * doc/posix-functions/sprintf.texi: Update.
29297         * doc/posix-functions/vfprintf.texi: Update.
29298         * doc/posix-functions/vprintf.texi: Update.
29299         * doc/posix-functions/vsnprintf.texi: Update.
29300         * doc/posix-functions/vsprintf.texi: Update.
29301         * doc/glibc-functions/obstack_printf.texi: Update.
29302         * doc/glibc-functions/obstack_vprintf.texi: Update.
29303
29304 2009-02-26  Eric Blake  <ebb9@byu.net>
29305
29306         stdlib: favor compiler check of random.h
29307         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29308         to avoid an ObjC random.h installed by Swarm.
29309
29310 2009-02-26  Bruno Haible  <bruno@clisp.org>
29311
29312         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29313         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29314         Reported by Gary V. Vaughan <gary@gnu.org>.
29315
29316 2009-02-26  Bruno Haible  <bruno@clisp.org>
29317
29318         Fix *printf behaviour regarding the %ls directive.
29319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29320         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29321         NEED_PRINTF_DIRECTIVE_LS.
29322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29323         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29324         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29325         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29326         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29327         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29328         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29330         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29331         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29332         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29333         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29334         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29336         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29337         * doc/posix-functions/fprintf.texi: Update.
29338         * doc/posix-functions/printf.texi: Update.
29339         * doc/posix-functions/snprintf.texi: Update.
29340         * doc/posix-functions/sprintf.texi: Update.
29341         * doc/posix-functions/vfprintf.texi: Update.
29342         * doc/posix-functions/vprintf.texi: Update.
29343         * doc/posix-functions/vsnprintf.texi: Update.
29344         * doc/posix-functions/vsprintf.texi: Update.
29345         * doc/glibc-functions/obstack_printf.texi: Update.
29346         * doc/glibc-functions/obstack_vprintf.texi: Update.
29347         Reported by Eric Blake.
29348
29349 2009-02-25  Bruno Haible  <bruno@clisp.org>
29350
29351         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29352         with known value.
29353         Reported by Gary V. Vaughan <gary@gnu.org>.
29354
29355 2009-02-25  Bruno Haible  <bruno@clisp.org>
29356
29357         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29358         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29359         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29360         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29361         Reported by Gary V. Vaughan <gary@gnu.org>.
29362
29363 2009-02-25  Bruno Haible  <bruno@clisp.org>
29364
29365         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29366         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29367         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29368         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29369         Reported by Gary V. Vaughan <gary@gnu.org>.
29370
29371 2009-02-25  Eric Blake  <ebb9@byu.net>
29372
29373         tests: skip fseek/ftell tests if ungetc is broken
29374         * m4/ungetc.m4: New file.
29375         * modules/fseek-tests: Split test, so ungetc dependency is
29376         separate from rest of test.
29377         * modules/fseeko-tests: Likewise.
29378         * modules/ftell-tests: Likewise.
29379         * modules/ftello-tests: Likewise.
29380         * tests/test-fseek.c (main): Isolate ungetc dependency.
29381         * tests/test-fseeko.c (main): Likewise.
29382         * tests/test-ftell.c (main): Likewise.
29383         * tests/test-ftello.c (main): Likewise.
29384         * tests/test-fseek2.sh: New file.
29385         * tests/test-fseeko2.sh: Likewise.
29386         * tests/test-ftell2.sh: Likewise.
29387         * tests/test-ftello2.sh: Likewise.
29388
29389 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
29390
29391         test-getaddrinfo: fix usage of skip return code 77
29392         * tests/test-gettaddrinfo.c: Return skip code 77 only
29393         for first occurance of skip (4x77 is not 77)
29394
29395 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29396
29397         strtod: avoid C99 decl-after-statement
29398         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29399
29400 2009-02-24  Eric Blake  <ebb9@byu.net>
29401
29402         strtod: detect HP-UX 11.31 bug
29403         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29404         Reported by Gary V. Vaughan.
29405
29406 2009-02-23  Bruno Haible  <bruno@clisp.org>
29407
29408         Fix invalid read past end of memory block.
29409         * lib/vasnprintf.c (DCHAR_SET): Define.
29410         (local_wcslen): Define only when needed.
29411         (local_strnlen, local_wcsnlen): New functions.
29412         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29413         directives that involve a conversion ourselves.
29414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29415         wcsnlen, mbrtowc, wcrtomb.
29416         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29417         * tests/test-vasprintf-posix.c (test_function): Likewise.
29418         * tests/test-snprintf-posix.h (test_function): Likewise.
29419         * tests/test-sprintf-posix.h (test_function): Likewise.
29420         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29421
29422 2009-02-22  Bruno Haible  <bruno@clisp.org>
29423
29424         Implement new clarified decomposition of Hangul syllables.
29425         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29426         of type LTV, return only a pairwise decomposition.
29427         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29428         Likewise.
29429         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29430         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29431         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29432
29433 2009-02-22  Bruno Haible  <bruno@clisp.org>
29434
29435         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29436         zero-length results and shrink excess allocated memory.
29437         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29438         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29439         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29440         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29441         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29442         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29443         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29444         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29445         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29446         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29447         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29448         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29449
29450 2009-02-21  Bruno Haible  <bruno@clisp.org>
29451
29452         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29453         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29454         spaces after a period. Put a space between a macro name and its
29455         argument list. Trivial rewordings.
29456         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29457         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29458         (main): Return 0 explicitly.
29459
29460 2009-02-21  Bruno Haible  <bruno@clisp.org>
29461
29462         Tests for module 'uninorm/filter'.
29463         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29464         * modules/uninorm/filter-tests: New file.
29465
29466         New module 'uninorm/filter'.
29467         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29468         uninorm_filter_flush, uninorm_filter_free): New declarations.
29469         * lib/uninorm/uninorm-filter.c: New file.
29470         * modules/uninorm/filter: New file.
29471
29472 2009-02-21  Bruno Haible  <bruno@clisp.org>
29473
29474         Tests for module 'uninorm/nfkc'.
29475         * tests/uninorm/test-nfkc.c: New file.
29476         * tests/uninorm/test-u8-nfkc.c: New file.
29477         * tests/uninorm/test-u16-nfkc.c: New file.
29478         * tests/uninorm/test-u32-nfkc.c: New file.
29479         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29480         * tests/uninorm/test-u32-nfkc-big.c: New file.
29481         * modules/uninorm/nfkc-tests: New file.
29482
29483         New module 'uninorm/nfkc'.
29484         * lib/uninorm/nfkc.c: New file.
29485         * modules/uninorm/nfkc: New file.
29486
29487         Tests for module 'uninorm/nfkd'.
29488         * tests/uninorm/test-nfkd.c: New file.
29489         * tests/uninorm/test-u8-nfkd.c: New file.
29490         * tests/uninorm/test-u16-nfkd.c: New file.
29491         * tests/uninorm/test-u32-nfkd.c: New file.
29492         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29493         * tests/uninorm/test-u32-nfkd-big.c: New file.
29494         * modules/uninorm/nfkd-tests: New file.
29495
29496         New module 'uninorm/nfkd'.
29497         * lib/uninorm/nfkd.c: New file.
29498         * modules/uninorm/nfkd: New file.
29499
29500         Tests for module 'uninorm/nfc'.
29501         * tests/uninorm/test-nfc.c: New file.
29502         * tests/uninorm/test-u8-nfc.c: New file.
29503         * tests/uninorm/test-u16-nfc.c: New file.
29504         * tests/uninorm/test-u32-nfc.c: New file.
29505         * tests/uninorm/test-u32-nfc-big.sh: New file.
29506         * tests/uninorm/test-u32-nfc-big.c: New file.
29507         * modules/uninorm/nfc-tests: New file.
29508
29509         New module 'uninorm/nfc'.
29510         * lib/uninorm/nfc.c: New file.
29511         * modules/uninorm/nfc: New file.
29512
29513         Tests for module 'uninorm/nfd'.
29514         * tests/uninorm/test-nfd.c: New file.
29515         * tests/uninorm/test-u8-nfd.c: New file.
29516         * tests/uninorm/test-u16-nfd.c: New file.
29517         * tests/uninorm/test-u32-nfd.c: New file.
29518         * tests/uninorm/test-u32-nfd-big.sh: New file.
29519         * tests/uninorm/test-u32-nfd-big.c: New file.
29520         * tests/uninorm/test-u32-normalize-big.h: New file.
29521         * tests/uninorm/test-u32-normalize-big.c: New file.
29522         * tests/uninorm/NormalizationTest.txt: New file, created from
29523         Unicode 5.1.0 NormalizationTest.txt.
29524         * modules/uninorm/nfd-tests: New file.
29525
29526         New module 'uninorm/nfd'.
29527         * lib/uninorm/nfd.c: New file.
29528         * modules/uninorm/nfd: New file.
29529
29530         New module 'uninorm/u32-normalize'.
29531         * lib/uninorm/u32-normalize.c: New file.
29532         * modules/uninorm/u32-normalize: New file.
29533
29534         New module 'uninorm/u16-normalize'.
29535         * lib/uninorm/u16-normalize.c: New file.
29536         * modules/uninorm/u16-normalize: New file.
29537
29538         New module 'uninorm/u8-normalize'.
29539         * lib/uninorm/u8-normalize.c: New file.
29540         * lib/uninorm/normalize-internal.h: New file.
29541         * lib/uninorm/u-normalize-internal.h: New file.
29542         * modules/uninorm/u8-normalize: New file.
29543
29544         New module 'uninorm/decompose-internal'.
29545         * lib/uninorm/decompose-internal.c: New file.
29546         * modules/uninorm/decompose-internal: New file.
29547
29548         Tests for module 'uninorm/composition'.
29549         * tests/uninorm/test-composition.c: New file.
29550         * modules/uninorm/composition-tests: New file.
29551
29552         New module 'uninorm/composition'.
29553         * lib/uninorm/composition.c: New file.
29554         * lib/uninorm/composition-table.gperf: New file, generated by
29555         gen-uni-tables.
29556         * modules/uninorm/composition: New file.
29557
29558         Tests for module 'uninorm/compat-decomposition'.
29559         * tests/uninorm/test-compat-decomposition.c: New file.
29560         * modules/uninorm/compat-decomposition-tests: New file.
29561
29562         New module 'uninorm/compat-decomposition'.
29563         * lib/uninorm/decompose-internal.h: New file.
29564         * lib/uninorm/compat-decomposition.c: New file.
29565         * modules/uninorm/compat-decomposition: New file.
29566
29567         Tests for module 'uninorm/canonical-decomposition'.
29568         * tests/uninorm/test-canonical-decomposition.c: New file.
29569         * modules/uninorm/canonical-decomposition-tests: New file.
29570
29571         New module 'uninorm/canonical-decomposition'.
29572         * lib/uninorm/canonical-decomposition.c: New file.
29573         * modules/uninorm/canonical-decomposition: New file.
29574
29575         Tests for module 'uninorm/decomposition'.
29576         * tests/uninorm/test-decomposition.c: New file.
29577         * modules/uninorm/decomposition-tests: New file.
29578
29579         New module 'uninorm/decomposition'.
29580         * lib/uninorm/decomposition.c: New file.
29581         * modules/uninorm/decomposition: New file.
29582
29583         New module 'uninorm/decomposition-table'.
29584         * lib/uninorm/decomposition-table.h: New file.
29585         * lib/uninorm/decomposition-table.c: New file.
29586         * lib/uninorm/decomposition-table1.h: New file, generated by
29587         gen-uni-tables.
29588         * lib/uninorm/decomposition-table2.h: New file, generated by
29589         gen-uni-tables.
29590         * modules/uninorm/decomposition-table: New file.
29591
29592         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29593         (UC_DECOMP_*): New enumeration items.
29594         (get_decomposition): New function.
29595         (struct decomp_table): New type.
29596         (output_decomposition, output_decomposition_tables): New functions.
29597         (unicode_composition_exclusions): New variable.
29598         (fill_composition_exclusions, debug_output_composition_tables): New
29599         functions.
29600         (main): Accept one more argument. Invoke fill_composition_exclusions.
29601         Output decomposition and composition tables.
29602
29603         New module 'uninorm/base'.
29604         * lib/uninorm.h: New file.
29605         * lib/unictype.h: Update comment.
29606         * modules/uninorm/base: New file.
29607
29608 2009-02-21  David Lutterkort  <lutter@redhat.com>
29609
29610         Tests for module 'safe-alloc'.
29611         * tests/test-safe-alloc.c: New file.
29612         * modules/safe-alloc-tests: New file.
29613
29614         New module 'safe-alloc'.
29615         * lib/safe-alloc.h: New file.
29616         * lib/safe-alloc.c: New file.
29617         * m4/safe-alloc.m4: New file.
29618         * modules/safe-alloc: New file.
29619         * doc/safe-alloc.texi: New file.
29620         * doc/gnulib.texi: Include it.
29621         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29622         safe-alloc.
29623
29624 2009-02-18  Bruno Haible  <bruno@clisp.org>
29625
29626         Fix link error on non-glibc systems.
29627         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
29628         variable.
29629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29630
29631 2009-02-18  Jim Meyering  <meyering@redhat.com>
29632
29633         fts: avoid used-uninitialized error due to recent change
29634         * lib/fts.c (fts_read): Guard uses of the new member,
29635         parent->fts_n_dirs_remaining, since it's not relevant for
29636         the parent of a directory specified on the command-line.
29637
29638 2009-02-17  James Youngman  <jay@gnu.org>
29639             Bruno Haible  <bruno@clisp.org>
29640
29641         * m4/include_next.m4: Reformulate comment.
29642
29643 2009-02-16  Jim Meyering  <meyering@redhat.com>
29644
29645         fts: add #if guards so that the fts_lgpl module still builds
29646         * lib/fts.c: Guard just-added hash-table-using parts with
29647         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
29648         Reported by Simon Josefsson.
29649
29650 2009-02-15  Bruno Haible  <bruno@clisp.org>
29651
29652         * modules/array-mergesort-tests: New file.
29653         * tests/test-array-mergesort.c: New file.
29654
29655         New module 'array-mergesort'.
29656         * modules/array-mergesort: New file.
29657         * lib/array-mergesort.h: New file.
29658
29659 2009-02-15  Bruno Haible  <bruno@clisp.org>
29660
29661         Fix 2009-02-07 commit.
29662         * lib/gen-uni-tables.c (output_predicate, output_category,
29663         output_combclass, output_bidi_category, output_decimal_digit,
29664         output_digit, output_numeric, output_mirror, output_scripts,
29665         output_ident_category, output_simple_mapping): Fix format directives.
29666         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
29667
29668 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
29669
29670         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
29671         fixes are available from IBM.
29672
29673 2009-02-13  Jim Meyering  <meyering@redhat.com>
29674
29675         fts: arrange not to stat non-directories in more cases
29676         This makes GNU find (when it doesn't need to stat each file)
29677         *much* more efficient at traversing reiserfs file systems.
29678         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
29679         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
29680         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
29681         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
29682         (leaf_optimization_applies): New function.
29683         (LCO_hash, LCO_compare): New helper functions.
29684         (link_count_optimize_ok): New function.
29685         (fts_stat): Initialize new member (if dir).
29686         (fts_read): Decrement parent's fts_n_dirs_remaining count if
29687         we've just stat'ed a directory.  Skip the stat call when possible.
29688         ---
29689         Note this AFS-related exchange:
29690         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
29691         and note find's pioctl call in find/fstype.c.
29692         But that is necessary only if you want to enable the
29693         optimization for AFS, and for now, I don't.
29694
29695         fts: move a function definition "up" (no semantic change)
29696         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
29697         "up" to precede upcoming use of a related function.
29698
29699 2009-02-11  Jim Meyering  <meyering@redhat.com>
29700
29701         fts: correct internal computation of nlinks (optimization-related)
29702         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
29703         whether the current entry is a directory, so don't test it.
29704
29705 2009-02-10  Bruno Haible  <bruno@clisp.org>
29706
29707         Tests for module 'uniwbrk/ulc-wordbreaks'.
29708         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
29709         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
29710         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
29711
29712         Tests for module 'uniwbrk/u32-wordbreaks'.
29713         * modules/uniwbrk/u32-wordbreaks-tests: New file.
29714         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
29715
29716         Tests for module 'uniwbrk/u16-wordbreaks'.
29717         * modules/uniwbrk/u16-wordbreaks-tests: New file.
29718         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
29719
29720         Tests for module 'uniwbrk/u8-wordbreaks'.
29721         * modules/uniwbrk/u8-wordbreaks-tests: New file.
29722         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
29723
29724 2009-02-10  Bruno Haible  <bruno@clisp.org>
29725
29726         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
29727         property.
29728         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
29729         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
29730         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
29731
29732 2009-02-10  Simon Josefsson  <simon@josefsson.org>
29733
29734         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
29735         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
29736
29737 2009-02-10  Bruno Haible  <bruno@clisp.org>
29738
29739         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
29740         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
29741         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
29742         * lib/unilbrk/u8-possible-linebreaks.c: Update.
29743         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
29744         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
29745
29746 2009-02-09  Simon Josefsson  <simon@josefsson.org>
29747
29748         * lib/sockets.h (gl_fd_to_handle): New function.
29749
29750         * tests/test-sockets.c: Call gl_fd_to_handle.
29751
29752 2009-02-09  Bruno Haible  <bruno@clisp.org>
29753
29754         * doc/havelib.texi: Document the conventions on bi-arch systems.
29755
29756 2009-02-08  Bruno Haible  <bruno@clisp.org>
29757
29758         Document the AC_LIB_LINKFLAGS macro.
29759         * doc/havelib.texi: New file, mostly written on 2005-05-24.
29760         * doc/gnulib.texi: Include it.
29761
29762 2009-02-08  Bruno Haible  <bruno@clisp.org>
29763
29764         Fix wrong order of sections, compared to TOC.
29765         * doc/gnulib.texi: Include relocatable-maint.texi after the
29766         "Regular expressions" node, not before.
29767
29768 2009-02-08  Bruno Haible  <bruno@clisp.org>
29769
29770         Tests for module 'unicase/totitle'.
29771         * modules/unicase/totitle-tests: New file.
29772
29773         Tests for module 'unicase/tolower'.
29774         * modules/unicase/tolower-tests: New file.
29775
29776         Tests for module 'unicase/toupper'.
29777         * modules/unicase/toupper-tests: New file.
29778         * tests/unicase/test-mapping-part1.h: New file.
29779         * tests/unicase/test-mapping-part2.h: New file.
29780
29781         New module 'unicase/totitle'.
29782         * modules/unicase/totitle: New file.
29783         * lib/unicase/totitle.c: New file.
29784
29785         New module 'unicase/tolower'.
29786         * modules/unicase/tolower: New file.
29787         * lib/unicase/tolower.c: New file.
29788
29789         New module 'unicase/toupper'.
29790         * modules/unicase/toupper: New file.
29791         * lib/unicase/toupper.c: New file.
29792         * lib/unicase/simple-mapping.h: New file.
29793
29794         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
29795         (mapping_table): New structure.
29796         (output_simple_mapping): New function.
29797         (main): Invoke output_simple_mapping_test and output_simple_mapping.
29798         * modules/gen-uni-tables (Description): Update.
29799         * lib/unicase/toupper.h: New file, automatically generated by
29800         gen-uni-tables.
29801         * lib/unicase/tolower.h: New file, automatically generated by
29802         gen-uni-tables.
29803         * lib/unicase/totitle.h: New file, automatically generated by
29804         gen-uni-tables.
29805         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
29806         gen-uni-tables.
29807         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
29808         gen-uni-tables.
29809         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
29810         gen-uni-tables.
29811
29812         New module 'unicase/base'.
29813         * modules/unicase/base: New file.
29814         * lib/unicase.h: New file.
29815
29816 2009-02-08  Bruno Haible  <bruno@clisp.org>
29817
29818         New module 'uniwbrk/ulc-wordbreaks'.
29819         * modules/uniwbrk/ulc-wordbreaks: New file.
29820         * lib/uniwbrk/ulc-wordbreaks.c: New file.
29821
29822         New module 'uniwbrk/u32-wordbreaks'.
29823         * modules/uniwbrk/u32-wordbreaks: New file.
29824         * lib/uniwbrk/u32-wordbreaks.c: New file.
29825
29826         New module 'uniwbrk/u16-wordbreaks'.
29827         * modules/uniwbrk/u16-wordbreaks: New file.
29828         * lib/uniwbrk/u16-wordbreaks.c: New file.
29829
29830         New module 'uniwbrk/u8-wordbreaks'.
29831         * modules/uniwbrk/u8-wordbreaks: New file.
29832         * lib/uniwbrk/u8-wordbreaks.c: New file.
29833         * lib/uniwbrk/u-wordbreaks.h: New file.
29834
29835         New module 'uniwbrk/table'.
29836         * modules/uniwbrk/table: New file.
29837         * lib/uniwbrk/wbrktable.h: New file.
29838         * lib/uniwbrk/wbrktable.c: New file.
29839
29840         New module 'uniwbrk/wordbreak-property'.
29841         * modules/uniwbrk/wordbreak-property: New file.
29842         * lib/uniwbrk/wordbreak-property.c: New file.
29843
29844         * lib/gen-uni-tables.c (WBP_*): New enum items.
29845         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
29846         (unicode_org_wbp): New variable.
29847         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
29848         New functions.
29849         (wbp_table): New structure.
29850         (output_wbp, output_wbrk_tables): New functions.
29851         (main): Accept additional argument. Invoke fill_org_wbp,
29852         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
29853         output_wbrk_tables.
29854         * modules/gen-uni-tables (Description): Update.
29855         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
29856         gen-uni-tables.
29857
29858         New module 'uniwbrk/base'.
29859         * modules/uniwbrk/base: New file.
29860         * lib/uniwbrk.h: New file.
29861
29862 2009-02-08  Bruno Haible  <bruno@clisp.org>
29863
29864         Update to Unicode 5.1.0.
29865         * lib/gen-uni-tables.c (is_property_alphabetic): Include
29866         U+2185..U+2188.
29867         (is_property_default_ignorable_code_point): Don't include characters
29868         of category Cc or Cs and not-a-characters.
29869         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
29870         U+0D79, U+109E, U+109F, U+A60C.
29871         * lib/unictype/bidi_of.h: Regenerated.
29872         * lib/unictype/blocks.h: Regenerated.
29873         * lib/unictype/categ_C.h: Regenerated.
29874         * lib/unictype/categ_Cf.h: Regenerated.
29875         * lib/unictype/categ_Cn.h: Regenerated.
29876         * lib/unictype/categ_L.h: Regenerated.
29877         * lib/unictype/categ_Ll.h: Regenerated.
29878         * lib/unictype/categ_Lm.h: Regenerated.
29879         * lib/unictype/categ_Lo.h: Regenerated.
29880         * lib/unictype/categ_Lu.h: Regenerated.
29881         * lib/unictype/categ_M.h: Regenerated.
29882         * lib/unictype/categ_Mc.h: Regenerated.
29883         * lib/unictype/categ_Me.h: Regenerated.
29884         * lib/unictype/categ_Mn.h: Regenerated.
29885         * lib/unictype/categ_N.h: Regenerated.
29886         * lib/unictype/categ_Nd.h: Regenerated.
29887         * lib/unictype/categ_Nl.h: Regenerated.
29888         * lib/unictype/categ_No.h: Regenerated.
29889         * lib/unictype/categ_P.h: Regenerated.
29890         * lib/unictype/categ_Pd.h: Regenerated.
29891         * lib/unictype/categ_Pe.h: Regenerated.
29892         * lib/unictype/categ_Pf.h: Regenerated.
29893         * lib/unictype/categ_Pi.h: Regenerated.
29894         * lib/unictype/categ_Po.h: Regenerated.
29895         * lib/unictype/categ_Ps.h: Regenerated.
29896         * lib/unictype/categ_S.h: Regenerated.
29897         * lib/unictype/categ_Sk.h: Regenerated.
29898         * lib/unictype/categ_Sm.h: Regenerated.
29899         * lib/unictype/categ_So.h: Regenerated.
29900         * lib/unictype/categ_of.h: Regenerated.
29901         * lib/unictype/combining.h: Regenerated.
29902         * lib/unictype/ctype_alnum.h: Regenerated.
29903         * lib/unictype/ctype_alpha.h: Regenerated.
29904         * lib/unictype/ctype_graph.h: Regenerated.
29905         * lib/unictype/ctype_lower.h: Regenerated.
29906         * lib/unictype/ctype_print.h: Regenerated.
29907         * lib/unictype/ctype_punct.h: Regenerated.
29908         * lib/unictype/ctype_upper.h: Regenerated.
29909         * lib/unictype/decdigit.h: Regenerated.
29910         * lib/unictype/digit.h: Regenerated.
29911         * lib/unictype/mirror.h: Regenerated.
29912         * lib/unictype/numeric.h: Regenerated.
29913         * lib/unictype/pr_alphabetic.h: Regenerated.
29914         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
29915         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
29916         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
29917         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
29918         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
29919         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
29920         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
29921         * lib/unictype/pr_combining.h: Regenerated.
29922         * lib/unictype/pr_dash.h: Regenerated.
29923         * lib/unictype/pr_decimal_digit.h: Regenerated.
29924         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
29925         * lib/unictype/pr_deprecated.h: Regenerated.
29926         * lib/unictype/pr_diacritic.h: Regenerated.
29927         * lib/unictype/pr_extender.h: Regenerated.
29928         * lib/unictype/pr_format_control.h: Regenerated.
29929         * lib/unictype/pr_grapheme_base.h: Regenerated.
29930         * lib/unictype/pr_grapheme_extend.h: Regenerated.
29931         * lib/unictype/pr_grapheme_link.h: Regenerated.
29932         * lib/unictype/pr_id_continue.h: Regenerated.
29933         * lib/unictype/pr_id_start.h: Regenerated.
29934         * lib/unictype/pr_ideographic.h: Regenerated.
29935         * lib/unictype/pr_ignorable_control.h: Regenerated.
29936         * lib/unictype/pr_lowercase.h: Regenerated.
29937         * lib/unictype/pr_math.h: Regenerated.
29938         * lib/unictype/pr_numeric.h: Regenerated.
29939         * lib/unictype/pr_other_alphabetic.h: Regenerated.
29940         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
29941         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
29942         * lib/unictype/pr_other_id_continue.h: Regenerated.
29943         * lib/unictype/pr_other_lowercase.h: Regenerated.
29944         * lib/unictype/pr_other_math.h: Regenerated.
29945         * lib/unictype/pr_punctuation.h: Regenerated.
29946         * lib/unictype/pr_sentence_terminal.h: Regenerated.
29947         * lib/unictype/pr_soft_dotted.h: Regenerated.
29948         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
29949         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
29950         * lib/unictype/pr_unified_ideograph.h: Regenerated.
29951         * lib/unictype/pr_uppercase.h: Regenerated.
29952         * lib/unictype/pr_xid_continue.h: Regenerated.
29953         * lib/unictype/pr_xid_start.h: Regenerated.
29954         * lib/unictype/pr_zero_width.h: Regenerated.
29955         * lib/unictype/scripts.h: Regenerated.
29956         * lib/unictype/scripts_byname.gperf: Regenerated.
29957         * lib/unictype/sy_java_ident.h: Regenerated.
29958         * lib/unilbrk/lbrkprop1.h: Regenerated.
29959         * lib/unilbrk/lbrkprop2.h: Regenerated.
29960         * tests/unictype/test-categ_C.c: Regenerated.
29961         * tests/unictype/test-categ_Cf.c: Regenerated.
29962         * tests/unictype/test-categ_Cn.c: Regenerated.
29963         * tests/unictype/test-categ_L.c: Regenerated.
29964         * tests/unictype/test-categ_Ll.c: Regenerated.
29965         * tests/unictype/test-categ_Lm.c: Regenerated.
29966         * tests/unictype/test-categ_Lo.c: Regenerated.
29967         * tests/unictype/test-categ_Lu.c: Regenerated.
29968         * tests/unictype/test-categ_M.c: Regenerated.
29969         * tests/unictype/test-categ_Mc.c: Regenerated.
29970         * tests/unictype/test-categ_Me.c: Regenerated.
29971         * tests/unictype/test-categ_Mn.c: Regenerated.
29972         * tests/unictype/test-categ_N.c: Regenerated.
29973         * tests/unictype/test-categ_Nd.c: Regenerated.
29974         * tests/unictype/test-categ_Nl.c: Regenerated.
29975         * tests/unictype/test-categ_No.c: Regenerated.
29976         * tests/unictype/test-categ_P.c: Regenerated.
29977         * tests/unictype/test-categ_Pd.c: Regenerated.
29978         * tests/unictype/test-categ_Pe.c: Regenerated.
29979         * tests/unictype/test-categ_Pf.c: Regenerated.
29980         * tests/unictype/test-categ_Pi.c: Regenerated.
29981         * tests/unictype/test-categ_Po.c: Regenerated.
29982         * tests/unictype/test-categ_Ps.c: Regenerated.
29983         * tests/unictype/test-categ_S.c: Regenerated.
29984         * tests/unictype/test-categ_Sk.c: Regenerated.
29985         * tests/unictype/test-categ_Sm.c: Regenerated.
29986         * tests/unictype/test-categ_So.c: Regenerated.
29987         * tests/unictype/test-ctype_alnum.c: Regenerated.
29988         * tests/unictype/test-ctype_alpha.c: Regenerated.
29989         * tests/unictype/test-ctype_graph.c: Regenerated.
29990         * tests/unictype/test-ctype_lower.c: Regenerated.
29991         * tests/unictype/test-ctype_print.c: Regenerated.
29992         * tests/unictype/test-ctype_punct.c: Regenerated.
29993         * tests/unictype/test-ctype_upper.c: Regenerated.
29994         * tests/unictype/test-decdigit.h: Regenerated.
29995         * tests/unictype/test-digit.h: Regenerated.
29996         * tests/unictype/test-numeric.h: Regenerated.
29997         * tests/unictype/test-pr_alphabetic.c: Regenerated.
29998         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
29999         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
30000         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
30001         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
30002         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
30003         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
30004         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
30005         * tests/unictype/test-pr_combining.c: Regenerated.
30006         * tests/unictype/test-pr_dash.c: Regenerated.
30007         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
30008         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
30009         * tests/unictype/test-pr_deprecated.c: Regenerated.
30010         * tests/unictype/test-pr_diacritic.c: Regenerated.
30011         * tests/unictype/test-pr_extender.c: Regenerated.
30012         * tests/unictype/test-pr_format_control.c: Regenerated.
30013         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
30014         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
30015         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
30016         * tests/unictype/test-pr_id_continue.c: Regenerated.
30017         * tests/unictype/test-pr_id_start.c: Regenerated.
30018         * tests/unictype/test-pr_ideographic.c: Regenerated.
30019         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
30020         * tests/unictype/test-pr_lowercase.c: Regenerated.
30021         * tests/unictype/test-pr_math.c: Regenerated.
30022         * tests/unictype/test-pr_numeric.c: Regenerated.
30023         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
30024         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
30025         Regenerated.
30026         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
30027         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
30028         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
30029         * tests/unictype/test-pr_other_math.c: Regenerated.
30030         * tests/unictype/test-pr_punctuation.c: Regenerated.
30031         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
30032         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
30033         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
30034         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
30035         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
30036         * tests/unictype/test-pr_uppercase.c: Regenerated.
30037         * tests/unictype/test-pr_xid_continue.c: Regenerated.
30038         * tests/unictype/test-pr_xid_start.c: Regenerated.
30039         * tests/unictype/test-pr_zero_width.c: Regenerated.
30040
30041         Update to Unicode 5.1.0.
30042         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
30043         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
30044         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
30045         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
30046         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
30047         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
30048         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
30049         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
30050         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
30051         (nonspacing_table_ind): Update.
30052         * tests/uniwidth/test-uc_width2.sh: Update expected result.
30053
30054         Update to Unicode 5.1.0.
30055         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
30056         code transform.
30057         * lib/uniname/uniname.c (unicode_character_name,
30058         unicode_name_character): Add the range 0x1Fxxx to the code transform.
30059         * lib/uniname/uninames.h: Regenerated.
30060         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
30061
30062 2009-02-07  Bruno Haible  <bruno@clisp.org>
30063
30064         Merge gen-ctype and gen-lbrk into a single program.
30065         * lib/gen-uni-tables.c: New file, incorporating
30066         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
30067         Add directory prefixes to the names of the generated files.
30068         * lib/unictype/gen-ctype.c: Remove file.
30069         * lib/unilbrk/gen-lbrk.c: Remove file.
30070         * modules/gen-uni-tables: New file.
30071         * modules/unictype/gen-ctype: Remove file.
30072         * modules/unilbrk/gen-lbrk: Remove file.
30073
30074 2009-02-07  Bruno Haible  <bruno@clisp.org>
30075
30076         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
30077
30078         New module 'unistr/u32-strcoll'.
30079         * modules/unistr/u32-strcoll: New file.
30080         * lib/unistr/u32-strcoll.c: New file.
30081
30082         New module 'unistr/u16-strcoll'.
30083         * modules/unistr/u16-strcoll: New file.
30084         * lib/unistr/u16-strcoll.c: New file.
30085
30086         New module 'unistr/u8-strcoll'.
30087         * modules/unistr/u8-strcoll: New file.
30088         * lib/unistr/u8-strcoll.c: New file.
30089         * lib/unistr/u-strcoll.h: New file.
30090
30091 2009-02-07  Bruno Haible  <bruno@clisp.org>
30092
30093         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
30094         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30095         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30096         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
30097         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
30098         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
30099
30100 2009-02-07  Bruno Haible  <bruno@clisp.org>
30101
30102         Make 64-bit clean.
30103         * lib/unictype/gen-ctype.c (output_predicate, output_category,
30104         output_combclass, output_bidi_category, output_decimal_digit,
30105         output_digit, output_numeric, output_mirror, output_scripts,
30106         output_ident_category): Use proper width specifier in format strings.
30107
30108 2009-02-07  Bruno Haible  <bruno@clisp.org>
30109
30110         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
30111         failure behaviour.
30112
30113 2009-02-07  Jim Meyering  <meyering@redhat.com>
30114
30115         regex: avoid compilation failure with upcoming gcc-4.4
30116         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
30117         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
30118         "... error: integer overflow in preprocessor expression".
30119
30120 2009-02-05  Ben Pfaff  <blp@gnu.org>
30121
30122         Fix link errors on Windows when close module is used.
30123         * modules/close: Add $(LIB_CLOSE) to Link section.
30124         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
30125         $(LIB_CLOSE) on Windows.
30126
30127 2009-02-05  Jim Meyering  <meyering@redhat.com>
30128
30129         still avoid unused-parameter warnings, but do it cleanly
30130         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
30131         (get_fs_usage): Cast to void instead.
30132         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
30133         (dev_from_mount_options, read_file_system_list): Cast to void.
30134         Prompted by Bruno Haible.
30135
30136 2009-02-04  Jim Meyering  <meyering@redhat.com>
30137
30138         fsusage.c: correct copyright year
30139         * lib/fsusage.c: Reflect year in which the change is pushed into
30140
30141         avoid misc. warnings
30142         * lib/fsusage.c (UNUSED_PARAM): Define.
30143         (get_fs_usage): Mark parameter "disk" as unused.
30144         * lib/getugroups.c (getgrent): Use "void" in prototype.
30145         * lib/mountlist.c: Mark unused parameters.
30146         (read_file_system_list): Declare a local with "const".
30147         * lib/nanosleep.c (getnow): Declare static.
30148         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
30149
30150         dirfd: set errno upon failure
30151         * lib/dirfd.c: Include <errno.h>.
30152         Set errno to ENOTSUP when returning -1.
30153         * modules/dirfd (Depends-on): Add errno.
30154         Suggested by John Kodis <kodis@comcast.net>.
30155
30156 2009-02-01  Bruno Haible  <bruno@clisp.org>
30157
30158         Don't assume sizeof (long) >= sizeof (void *).
30159         * lib/memcmp.c: Include stdint.h.
30160         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30161         srcp2 to 'const byte *'.
30162         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30163         types to uintptr_t.
30164         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30165         * modules/memcmp (Depends-on): Add stdint.
30166         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30167
30168 2009-01-30  Eric Blake  <ebb9@byu.net>
30169
30170         fix more require-before-expand issues
30171         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30172         expand, AC_PROG_AWK.
30173         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30174
30175 2009-01-28  Eric Blake  <ebb9@byu.net>
30176
30177         version-etc: use consistent URL formatting
30178         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30179         Improve formatting.  Use fputs for string without %.
30180
30181 2009-01-28  Jim Meyering  <meyering@redhat.com>
30182
30183         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30184         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30185         "underquoted definition of NAME" from autoconf-2.59.
30186
30187 2009-01-28  Bruno Haible  <bruno@clisp.org>
30188
30189         * doc/gnulib.texi: Add "Obsolete modules" to index.
30190
30191 2009-01-28  Jim Meyering  <meyering@redhat.com>
30192
30193         useless-if-before-free: recognize more variants
30194         * build-aux/useless-if-before-free: Also recognize e.g.,
30195         if (NULL != p) free (p);
30196
30197 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30198
30199         test-getaddrinfo: skip (don't fail) this test when there's no network
30200         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30201         on the presumption that it means you lack network access.
30202
30203 2009-01-26  Jim Meyering  <meyering@redhat.com>
30204
30205         fflush: avoid warnings on modern systems
30206         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30207         pos and result, into scopes where they're used.
30208
30209 2009-01-26  Eric Blake  <ebb9@byu.net>
30210
30211         Silence warning reintroduced by recent extensions patch.
30212         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30213         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30214         autoconf.
30215
30216         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30217         * m4/00gnulib.m4: New file.
30218         * gnulib-tool (func_get_filelist): Always use it.
30219         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30220         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30221
30222 2009-01-25  Bruno Haible  <bruno@clisp.org>
30223
30224         Make test-quotearg work on MacOS X and AIX.
30225         * tests/test-quotearg.sh: New file.
30226         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30227         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30228         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30229         include <libintl.h>.
30230         (fake_locale): Remove variable.
30231         (gettext, dgettext, dcgettext): Remove functions.
30232         (main): Instead of setting a fake locale, set a real locale. Call
30233         textdomain and bindtextdomain.
30234         * modules/quotearg-tests (Files): Add the new files.
30235         (Depends-on): Add gettext, setenv, unsetenv.
30236         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30237         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30238         Augment TESTS_ENVIRONMENT.
30239
30240 2009-01-25  Bruno Haible  <bruno@clisp.org>
30241
30242         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30243         fr_FR.ISO8859-1 locale on MacOS X.
30244         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30245         ja_JP.eucJP locale on MacOS X.
30246         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30247         zh_CN.GB18030 locale on MacOS X.
30248
30249 2009-01-25  Bruno Haible  <bruno@clisp.org>
30250
30251         Avoid link errors on MacOS X 10.3.
30252         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30253         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30254
30255 2009-01-25  Bruno Haible  <bruno@clisp.org>
30256
30257         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30258         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30259         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30260         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30261         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30262         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30263         posix_spawnattr_init, posix_spawnattr_setsigmask,
30264         posix_spawnattr_setflags, posix_spawnattr_destroy.
30265
30266         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30267         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30268         * modules/execute (Files): Remove m4/posix_spawn.m4.
30269         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30270         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30271         posix_spawnattr_init, posix_spawnattr_setsigmask,
30272         posix_spawnattr_setflags, posix_spawnattr_destroy.
30273
30274 2009-01-25  Bruno Haible  <bruno@clisp.org>
30275
30276         * lib/glthread/threadlib.c: Include <stdlib.h>.
30277
30278 2009-01-25  Bruno Haible  <bruno@clisp.org>
30279
30280         * lib/glthread/threadlib.c (dummy): New declaration.
30281
30282 2009-01-25  Bruno Haible  <bruno@clisp.org>
30283
30284         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30285         multibyte characters also for the GB18030 encoding. Don't crash when
30286         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30287
30288 2009-01-25  Bruno Haible  <bruno@clisp.org>
30289
30290         Avoid redefining 'struct random_data' on OSF/1 5.1.
30291         * lib/stdlib.in.h: Include <random.h> if it exists.
30292         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30293         HAVE_RANDOM_H. Include <random.h> when testing whether
30294         'struct random_data' exists.
30295         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30296
30297 2009-01-25  Bruno Haible  <bruno@clisp.org>
30298
30299         Don't install charset.alias on MacOS X >= 10.3.
30300         * lib/localcharset.c (DARWIN7): New macro.
30301         (get_charset_aliases): Hardcode the result for Darwin7.
30302         * modules/localcharset (install-exec-local): Don't install
30303         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30304
30305 2009-01-25  Bruno Haible  <bruno@clisp.org>
30306
30307         Don't install charset.alias on mingw and Cygwin.
30308         * modules/localcharset (install-exec-local): Don't install
30309         charset.alias on mingw and Cygwin, if the file does not yet exist.
30310         The result for these platforms is hardcoded in localcharset.c.
30311
30312 2009-01-25  Bruno Haible  <bruno@clisp.org>
30313
30314         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30315         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30316         before requiring AC_USE_SYSTEM_EXTENSIONS.
30317
30318 2009-01-25  Jim Meyering  <meyering@redhat.com>
30319
30320         c-strtod: avoid warnings
30321         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30322         "assignment discards qualifiers from pointer target type" warnings.
30323
30324 2009-01-24  Bruno Haible  <bruno@clisp.org>
30325
30326         Add support for non-UTF-8 locales on MacOS X.
30327         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30328         canonical encodings. For Darwin 7 and newer, don't map traditional
30329         encodings to UTF-8.
30330         Reported by Vincent Lefevre <vincent@vinc17.org>
30331         at <http://savannah.gnu.org/bugs/?25235>.
30332
30333 2009-01-24  Bruno Haible  <bruno@clisp.org>
30334
30335         * doc/gnulib.texi (Obsolete modules): New section.
30336         Reported by Mike Frysinger <vapier@gentoo.org>.
30337
30338 2009-01-24  Bruno Haible  <bruno@clisp.org>
30339
30340         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30341         (%.dvi): New rule.
30342
30343 2009-01-24  Bruno Haible  <bruno@clisp.org>
30344
30345         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30346         Reported by Eric Blake.
30347
30348 2009-01-24  Bruno Haible  <bruno@clisp.org>
30349
30350         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30351         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30352         Reported by Gary V. Vaughan <gary@gnu.org>.
30353
30354 2009-01-24  Bruno Haible  <bruno@clisp.org>
30355
30356         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30357
30358 2009-01-23  Bruno Haible  <bruno@clisp.org>
30359
30360         Make c-strtod, c-strtold usable in libraries.
30361         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30362         (C_STRTOD): Call strdup instead of xstrdup.
30363         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30364         * modules/c-strtold (Depends-on): Likewise.
30365         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30366         * NEWS: Mention the change.
30367         Reported by Michael Gold <mgold@ncf.ca>.
30368
30369 2009-01-23  Jim Meyering  <meyering@redhat.com>
30370
30371         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30372         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30373         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30374
30375 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30376
30377         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30378         GNU CoreUtils.
30379         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30380         * modules/version-etc (Description): Update.
30381
30382 2009-01-22  Bruno Haible  <bruno@clisp.org>
30383
30384         Cache the C locale object.
30385         * lib/c-strtod.c (c_locale_cache): New variable.
30386         (c_locale): New function.
30387         (C_STRTOD): Use it, and don't call freelocale.
30388         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30389         Suggested by Paolo Bonzini.
30390
30391 2009-01-21  Bruno Haible  <bruno@clisp.org>
30392
30393         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30394         conditions other than overflow.
30395
30396 2009-01-21  Bruno Haible  <bruno@clisp.org>
30397
30398         * lib/c-strtod.c: Include errno.h.
30399         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30400         value from STRTOD_L and STRTOD.
30401
30402 2009-01-21  Bruno Haible  <bruno@clisp.org>
30403         and Jim Meyering  <meyering@redhat.com>
30404
30405         nanosleep: skip configure test (fail it) for apple universal builds
30406         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30407         universal builds, assume that nanosleep does not work.
30408         * modules/nanosleep (Depends-on): Add multiarch.
30409
30410         mktime: skip configure test (fail it) for apple universal builds
30411         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30412         universal builds, assume that mktime does not work.
30413         * modules/mktime (Depends-on): Add multiarch.
30414
30415 2009-01-21  Eric Blake  <ebb9@byu.net>
30416
30417         multiarch: avoid expand-before-require warning
30418         * modules/multiarch (configure.ac): Require, rather than expand,
30419         gl_MULTIARCH.
30420         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30421         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30422         enforce that all clients require it.  Partial reversion of
30423         2008-12-29 patch.
30424
30425         error: avoid expand-before-require warning
30426         * modules/errno (configure.ac): Require, rather than expand,
30427         gl_HEADER_ERRNO_H.
30428         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30429         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30430         enforce that all clients require it.
30431
30432         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30433         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30434         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30435         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30436
30437 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30438
30439         Revert:
30440         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30441
30442         regex: do not depend on obsolete modules.
30443         * modules/regex: Remove memcmp and memmove.
30444
30445 2009-01-20  Bruno Haible  <bruno@clisp.org>
30446
30447         Make the 'link' module link on Windows NT 4.
30448         * lib/link.c (_WIN32_WINNT): Don't define.
30449         (CreateHardLinkFuncType): New type.
30450         (CreateHardLinkFunc, initialized): New variables.
30451         (initialize): New function.
30452         (link): Invoke CreateHardLink indirectly through the function pointer.
30453
30454 2009-01-20  Bruno Haible  <bruno@clisp.org>
30455
30456         Fix compilation failure on mingw.
30457         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30458
30459 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30460
30461         * doc/c-strtod.texi: Mention a couple of restrictions.
30462
30463 2009-01-20  Jim Meyering  <meyering@redhat.com>
30464
30465         gettimeofday: move more declarations out of functions
30466         * lib/gettimeofday.c: Move extern declarations of tzset and
30467         gmtime out of containing functions.  Prompted by Bruno Haible.
30468
30469 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30470
30471         regex: do not depend on obsolete modules.
30472         * modules/regex: Remove memcmp and memmove.
30473
30474 2009-01-19  Bruno Haible  <bruno@clisp.org>
30475
30476         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30477         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30478         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30479         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30480         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30481
30482 2009-01-19  Bruno Haible  <bruno@clisp.org>
30483
30484         * tests/test-link.c: Include <errno.h>.
30485         (main): Exit with code 77 when a hard link cannot be created due to
30486         the file system.
30487         * tests/test-link.sh: Skip test when a hard link cannot be created due
30488         to the file system.
30489         Suggested by Eric Blake.
30490
30491 2009-01-19  Martin Lambers  <marlam@marlam.de>
30492
30493         * modules/link-tests: New file.
30494         * tests/test-link.sh: New file.
30495         * tests/test-link.c: New file.
30496
30497 2009-01-19  Eric Blake  <ebb9@byu.net>
30498
30499         doc: mention another function added in cygwin 1.7.0
30500         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30501         Another new function in cygwin 1.7.
30502
30503 2009-01-19  Bruno Haible  <bruno@clisp.org>
30504
30505         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30506         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30507         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30508         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30509         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30510         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30511         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30512         * m4/md4.m4 (gl_MD4): Likewise.
30513         * m4/md5.m4 (gl_MD5): Likewise.
30514         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30515         * m4/sha1.m4 (gl_SHA1): Likewise.
30516         * m4/sha256.m4 (gl_SHA256): Likewise.
30517         * m4/sha512.m4 (gl_SHA512): Likewise.
30518
30519 2009-01-19  Bruno Haible  <bruno@clisp.org>
30520
30521         * modules/uniname/uniname-tests (Depends-on): Add progname.
30522         * tests/uniname/test-uninames.c: Include progname.h.
30523         (main): Call set_program_name.
30524
30525         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30526         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30527         (main): Call set_program_name.
30528
30529         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
30530         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
30531         (main): Call set_program_name.
30532
30533         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30534         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30535         (main): Call set_program_name.
30536
30537         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30538         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30539         (main): Call set_program_name.
30540
30541         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30542         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30543         (main): Call set_program_name.
30544
30545         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30546         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30547         (main): Call set_program_name.
30548
30549         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30550         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30551         (main): Call set_program_name.
30552
30553         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30554         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30555         (main): Call set_program_name.
30556
30557 2009-01-19  Eric Blake  <ebb9@byu.net>
30558
30559         test-unistd: test previous patch
30560         * tests/test-unistd.c: Test *_FILENO macros.
30561
30562         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30563         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30564         Guarantee a definition.
30565         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30566         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30567         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30568         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30569         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30570         Likewise.
30571         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30572         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30573         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30574         Likewise.
30575         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30576         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30577         (STDERR_FILENO): Likewise.
30578         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30579         (STDERR_FILENO): Likewise.
30580         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30581         (STDERR_FILENO): Likewise.
30582         Reported by Elbert Pol.
30583
30584 2009-01-19  Eric Blake  <ebb9@byu.net>
30585
30586         doc: mention more functions added in cygwin 1.7.0
30587         * doc/posix-functions/abort.texi (abort): Update wording related
30588         to cygwin.
30589         * doc/posix-functions/daylight.texi (daylight): Likewise.
30590         * doc/posix-functions/optarg.texi (optarg): Likewise.
30591         * doc/posix-functions/optarg.texi (opterr): Likewise.
30592         * doc/posix-functions/optarg.texi (optind): Likewise.
30593         * doc/posix-functions/optarg.texi (optopt): Likewise.
30594         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30595         worked in 1.5.x, and was withdrawn in 1.7.
30596         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30597         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
30598         cygwin versions.
30599         * doc/posix-functions/perror.texi (perror): Likewise.
30600         * doc/posix-functions/printf.texi (printf): Likewise.
30601         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
30602         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
30603         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30604         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30605         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30606         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
30607         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30608         Likewise.
30609         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30610         Likewise.
30611         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
30612         this function.
30613         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
30614         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
30615         Likewise.
30616         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
30617         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
30618         * doc/posix-functions/confstr.texi (confstr): Likewise.
30619         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
30620         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
30621         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
30622         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
30623         * doc/posix-functions/fputws.texi (fputws): Likewise.
30624         * doc/posix-functions/fwide.texi (fwide): Likewise.
30625         * doc/posix-functions/getwc.texi (getwc): Likewise.
30626         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
30627         * doc/posix-functions/putwc.texi (putwc): Likewise.
30628         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
30629         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
30630         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
30631         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
30632         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
30633         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
30634         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
30635         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
30636         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
30637         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
30638         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
30639
30640 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30641
30642         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
30643         * lib/ioctl.c: Include <sys/ioctl.h>.
30644
30645 2009-01-19  Simon Josefsson  <simon@josefsson.org>
30646
30647         * modules/getdate-tests (Depends-on): Add progname.
30648         * tests/test-getdate.c: Use progname module, to avoid link errors
30649         on non-glibc systems.
30650
30651 2009-01-18  Simon Josefsson  <simon@josefsson.org>
30652
30653         * modules/filenamecat-tests (Depends-on): Add progname.
30654         * modules/fstrcmp-tests (Depends-on): Likewise.
30655
30656         * tests/test-filenamecat.c: Use progname module, to avoid link
30657         errors on non-glibc systems.
30658         * tests/test-fstrcmp.c: Likewise.
30659
30660 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30661
30662         gettimeofday: avoid warning: nested extern declaration of 'localtime'
30663         * lib/gettimeofday.c: Move extern declaration out of function.
30664
30665 2009-01-18  Bruno Haible  <bruno@clisp.org>
30666
30667         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
30668         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
30669         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
30670
30671 2009-01-18  Bruno Haible  <bruno@clisp.org>
30672
30673         * lib/strftime.c (MEMPCPY): Remove unused macro.
30674         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
30675
30676 2009-01-18  Martin Lambers  <marlam@marlam.de>
30677
30678         New module 'link'.
30679         * lib/unistd.in.h (link): New declaration.
30680         * lib/link.c: New file.
30681         * m4/link.m4: New file.
30682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
30683         HAVE_LINK.
30684         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
30685         * modules/link: New file.
30686         * doc/posix-functions/link.texi: Mention the new module.
30687
30688 2009-01-18  Bruno Haible  <bruno@clisp.org>
30689
30690         * tests/test-avltree_list.c (main): Call set_program_name.
30691         * tests/test-avltree_oset.c (main): Likewise.
30692         * tests/test-obstack-printf.c: Include progname.h.
30693         (main): Call set_program_name.
30694         * tests/test-quotearg.c: Include progname.h.
30695         (main): Call set_program_name.
30696         * tests/test-xmemdup0.c: Include progname.h.
30697         (main): Call set_program_name.
30698
30699 2009-01-18  Bruno Haible  <bruno@clisp.org>
30700
30701         New module 'alphasort'.
30702         * lib/dirent.in.h (alphasort): New declaration.
30703         * lib/alphasort.c: New file, from glibc with modifications.
30704         * m4/alphasort.m4: New file.
30705         * modules/alphasort: New file.
30706         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
30707         HAVE_ALPHASORT.
30708         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
30709         HAVE_ALPHASORT.
30710         * doc/posix-functions/alphasort.texi: Mention the new module and the
30711         portability problems.
30712
30713 2009-01-18  Bruno Haible  <bruno@clisp.org>
30714
30715         New module 'scandir'.
30716         * lib/dirent.in.h (scandir): New declaration.
30717         * lib/scandir.c: New file, from glibc with modifications.
30718         * m4/scandir.m4: New file.
30719         * modules/scandir: New file.
30720         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
30721         HAVE_SCANDIR.
30722         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
30723         HAVE_SCANDIR.
30724         * doc/posix-functions/scandir.texi: Mention the new module and the
30725         portability problems.
30726
30727 2009-01-17  Bruno Haible  <bruno@clisp.org>
30728
30729         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
30730         Update documentation.
30731         (func_remove_suffix): Escape all dots in the suffix. Update
30732         documentation.
30733         (func_filter_filelist): Update documentation.
30734         Reported by Ralf Wildenhues.
30735
30736 2009-01-17  Bruno Haible  <bruno@clisp.org>
30737
30738         * modules/dprintf-posix-tests: New file.
30739         * tests/test-dprintf-posix.sh: New file.
30740         * tests/test-dprintf-posix.c: New file.
30741
30742         New modules 'dprintf', 'dprintf-posix'.
30743         * lib/stdio.in.h (dprintf): New declaration.
30744         * lib/dprintf.c: New file.
30745         * m4/dprintf.m4: New file.
30746         * m4/dprintf-posix.m4: New file.
30747         * modules/dprintf: New file.
30748         * modules/dprintf-posix: New file.
30749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
30750         HAVE_DPRINTF, REPLACE_DPRINTF.
30751         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
30752         HAVE_DPRINTF, REPLACE_DPRINTF.
30753         * doc/posix-functions/dprintf.texi: Mention the new modules.
30754
30755 2009-01-17  Bruno Haible  <bruno@clisp.org>
30756
30757         * modules/vdprintf-posix-tests: New file.
30758         * tests/test-vdprintf-posix.sh: New file.
30759         * tests/test-vdprintf-posix.c: New file.
30760
30761         New modules 'vdprintf', 'vdprintf-posix'.
30762         * lib/stdio.in.h (vdprintf): New declaration.
30763         * lib/vdprintf.c: New file.
30764         * m4/vdprintf.m4: New file.
30765         * m4/vdprintf-posix.m4: New file.
30766         * modules/vdprintf: New file.
30767         * modules/vdprintf-posix: New file.
30768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
30769         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30770         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
30771         HAVE_VDPRINTF, REPLACE_VDPRINTF.
30772         * doc/posix-functions/vdprintf.texi: Mention the new modules.
30773
30774 2009-01-17  Bruno Haible  <bruno@clisp.org>
30775
30776         Fix replacement of fopen on mingw.
30777         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
30778         mingw.
30779
30780 2009-01-17  Bruno Haible  <bruno@clisp.org>
30781
30782         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
30783         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
30784
30785 2009-01-17  Bruno Haible  <bruno@clisp.org>
30786
30787         Avoid test-fflush2.sh failure on mingw.
30788         * tests/test-fflush2.c: Include binary-io.h.
30789         (main): Put standard input into binary mode.
30790         * modules/fflush-tests (Depends-on): Add binary-io.
30791
30792 2009-01-17  Bruno Haible  <bruno@clisp.org>
30793
30794         * lib/wchar.in.h: In another particular situation, include only the
30795         system's <wchar.h> file.
30796         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
30797         Reported by Albert Chin-A-Young <china@thewrittenword.com>
30798         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
30799
30800 2009-01-17  Bruno Haible  <bruno@clisp.org>
30801
30802         Support for stripping executables in --enable-relocatable.
30803         * build-aux/install-reloc: Expect one more argument, or an environment
30804         variable RELOC_STRIP_PROG. If set, strip the destination program and
30805         its wrapper.
30806         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
30807         RELOC_STRIP_PROG.
30808         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
30809         to set RELOCATABLE_STRIP.
30810         * NEWS: Mention the new Makefile requirement.
30811
30812 2009-01-17  Bruno Haible  <bruno@clisp.org>
30813
30814         * build-aux/install-reloc: Remove debugging information left over by
30815         C compiler on MacOS X.
30816
30817 2009-01-17  Bruno Haible  <bruno@clisp.org>
30818
30819         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
30820         * lib/progreloc.c (find_executable): Fix type of pointer passed to
30821         _NSGetExecutablePath.
30822
30823 2009-01-16  Jim Meyering  <meyering@redhat.com>
30824
30825         strerror: avoid warnings about discarding "const"
30826         * lib/strerror.c (rpl_strerror): Instead of returning a const
30827         string from each and every "case", use a variable, and add a single
30828         cast after the switch.
30829
30830 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
30831
30832         * lib/arpa_inet.in.h: Add extern "C" block for C++.
30833
30834 2009-01-16  Bruno Haible  <bruno@clisp.org>
30835
30836         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
30837         array initializer syntax that also works in C++ mode.
30838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30839
30840 2009-01-16  Jim Meyering  <meyering@redhat.com>
30841
30842         poll: suppress a warning
30843         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
30844         to ignore "...unsigned expression < 0 is always false" warnings.
30845
30846 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
30847
30848         poll: remove declarations of unused variables
30849         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
30850         sockbuf and optlen.
30851
30852 2009-01-15  Bruno Haible  <bruno@clisp.org>
30853
30854         Make fflush-after-ungetc POSIX compliant on BSD systems.
30855         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
30856         (clear_ungetc_buffer): Implement also for other systems.
30857         (rpl_fflush): On glibc systems, invoke
30858         clear_ungetc_buffer_preserving_position. Otherwise, invoke
30859         clear_ungetc_buffer after fetching the stream's position, not before.
30860
30861 2009-01-15  Bruno Haible  <bruno@clisp.org>
30862
30863         Make fflush-after-ungetc POSIX compliant on glibc systems.
30864         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
30865         after ungetc.
30866         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
30867         (rpl_fflush): On glibc systems, simply call the system's fflush
30868         function after clearing the ungetc buffer.
30869         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
30870         Instead, lseek only to the end of file, then use the system's fseeko
30871         for the rest. On glibc systems, reset the EOF indicator bit.
30872
30873 2009-01-15  Jim Meyering  <meyering@redhat.com>
30874
30875         openmp.m4: revert quote-adding change, for portability to older autoconf
30876         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
30877         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
30878         Simon Josefsson noticed the problem when using autoconf-2.61.
30879
30880 2009-01-15  Bruno Haible  <bruno@clisp.org>
30881
30882         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
30883         * tests/test-fflush2.c (ASSERT): Always fail.
30884         (main): Add two tests for fflush() after ungetc(), taking into account
30885         the Austin Group's clarification.
30886         Suggested by Eric Blake.
30887
30888 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
30889
30890         mktime.m4: remove K&R-style function prototypes
30891         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
30892         for the Sun C++ compiler.
30893
30894 2009-01-14  Bruno Haible  <bruno@clisp.org>
30895
30896         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
30897         while including <wchar.h>.
30898         * lib/wchar.in.h: In two particular situations on HP-UX, include only
30899         the system's <wchar.h> file.
30900         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30901
30902 2009-01-14  Bruno Haible  <bruno@clisp.org>
30903
30904         * m4/csharp.m4: Don't mention gettext on the serial number line.
30905         * m4/csharpexec.m4: Likewise.
30906         * m4/eaccess.m4: Likewise.
30907         * m4/javaexec.m4: Likewise.
30908         * m4/sig_atomic_t.m4: Likewise.
30909         * m4/tmpdir.m4: Likewise.
30910         * m4/intldir.m4: Bump gettext version.
30911         * m4/lib-ld.m4: Likewise.
30912
30913 2009-01-14  Bruno Haible  <bruno@clisp.org>
30914
30915         * lib/progname.c (set_program_name): Add more comments.
30916         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30917
30918 2009-01-14  Simon Josefsson  <simon@josefsson.org>
30919
30920         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
30921         were sys/stat.h does not define it.
30922
30923 2009-01-14  Jim Meyering  <meyering@redhat.com>
30924
30925         many *.m4 files: improve m4 quoting
30926         99% of this change was performed by running the following commands:
30927         git ls-files | grep '\.m4$' | xargs perl -pi \
30928           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
30929           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30930           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
30931           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
30932         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
30933         The remainder were to add Copyright dates, increment serial numbers,
30934         undo some changes in comments, exclude m4/intl.m4, and add quotes
30935         around the "1" in ",1" where the unusual spacing prohibited the
30936         above regexps from doing the job.  For more details, see
30937         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
30938         * m4/acl.m4: Modified.
30939         * m4/afs.m4: Likewise.
30940         * m4/alloca.m4: Likewise.
30941         * m4/argp.m4: Likewise.
30942         * m4/argz.m4: Likewise.
30943         * m4/atexit.m4: Likewise.
30944         * m4/bison-i18n.m4: Likewise.
30945         * m4/bison.m4: Likewise.
30946         * m4/byteswap.m4: Likewise.
30947         * m4/c-stack.m4: Likewise.
30948         * m4/c-strtod.m4: Likewise.
30949         * m4/calloc.m4: Likewise.
30950         * m4/canonicalize-lgpl.m4: Likewise.
30951         * m4/chown.m4: Likewise.
30952         * m4/clock_time.m4: Likewise.
30953         * m4/codeset.m4: Likewise.
30954         * m4/copy-file.m4: Likewise.
30955         * m4/csharp.m4: Likewise.
30956         * m4/csharpcomp.m4: Likewise.
30957         * m4/csharpexec.m4: Likewise.
30958         * m4/d-ino.m4: Likewise.
30959         * m4/d-type.m4: Likewise.
30960         * m4/dirfd.m4: Likewise.
30961         * m4/double-slash-root.m4: Likewise.
30962         * m4/eaccess.m4: Likewise.
30963         * m4/eealloc.m4: Likewise.
30964         * m4/environ.m4: Likewise.
30965         * m4/errno_h.m4: Likewise.
30966         * m4/euidaccess.m4: Likewise.
30967         * m4/execute.m4: Likewise.
30968         * m4/fatal-signal.m4: Likewise.
30969         * m4/fchdir.m4: Likewise.
30970         * m4/fcntl_h.m4: Likewise.
30971         * m4/fileblocks.m4: Likewise.
30972         * m4/filenamecat.m4: Likewise.
30973         * m4/findprog.m4: Likewise.
30974         * m4/flexmember.m4: Likewise.
30975         * m4/fnmatch.m4: Likewise.
30976         * m4/fopen.m4: Likewise.
30977         * m4/fpending.m4: Likewise.
30978         * m4/fprintf-posix.m4: Likewise.
30979         * m4/free.m4: Likewise.
30980         * m4/frexp.m4: Likewise.
30981         * m4/frexpl.m4: Likewise.
30982         * m4/fsusage.m4: Likewise.
30983         * m4/ftruncate.m4: Likewise.
30984         * m4/gc-camellia.m4: Likewise.
30985         * m4/gc-random.m4: Likewise.
30986         * m4/gc.m4: Likewise.
30987         * m4/getaddrinfo.m4: Likewise.
30988         * m4/getcwd-abort-bug.m4: Likewise.
30989         * m4/getcwd-path-max.m4: Likewise.
30990         * m4/getdate.m4: Likewise.
30991         * m4/getdomainname.m4: Likewise.
30992         * m4/getgroups.m4: Likewise.
30993         * m4/gethostname.m4: Likewise.
30994         * m4/gethrxtime.m4: Likewise.
30995         * m4/getline.m4: Likewise.
30996         * m4/getloadavg.m4: Likewise.
30997         * m4/getndelim2.m4: Likewise.
30998         * m4/getpass.m4: Likewise.
30999         * m4/gettext.m4: Likewise.
31000         * m4/gettime.m4: Likewise.
31001         * m4/gettimeofday.m4: Likewise.
31002         * m4/gnulib-common.m4: Likewise.
31003         * m4/group-member.m4: Likewise.
31004         * m4/host-os.m4: Likewise.
31005         * m4/iconv.m4: Likewise.
31006         * m4/iconv_open.m4: Likewise.
31007         * m4/inet_ntop.m4: Likewise.
31008         * m4/inet_pton.m4: Likewise.
31009         * m4/inline.m4: Likewise.
31010         * m4/intldir.m4: Likewise.
31011         * m4/intlmacosx.m4: Likewise.
31012         * m4/intmax.m4: Likewise.
31013         * m4/intmax_t.m4: Likewise.
31014         * m4/inttypes.m4: Likewise.
31015         * m4/inttypes_h.m4: Likewise.
31016         * m4/inttypes-pri.m4: Likewise.
31017         * m4/isapipe.m4: Likewise.
31018         * m4/isnand.m4: Likewise.
31019         * m4/isnanf.m4: Likewise.
31020         * m4/isnanl.m4: Likewise.
31021         * m4/javacomp.m4: Likewise.
31022         * m4/javaexec.m4: Likewise.
31023         * m4/jm-winsz1.m4: Likewise.
31024         * m4/jm-winsz2.m4: Likewise.
31025         * m4/lchown.m4: Likewise.
31026         * m4/lcmessage.m4: Likewise.
31027         * m4/ldexpl.m4: Likewise.
31028         * m4/lib-ld.m4: Likewise.
31029         * m4/lib-link.m4: Likewise.
31030         * m4/libsigsegv.m4: Likewise.
31031         * m4/link-follow.m4: Likewise.
31032         * m4/localcharset.m4: Likewise.
31033         * m4/locale-fr.m4: Likewise.
31034         * m4/locale-ja.m4: Likewise.
31035         * m4/locale-tr.m4: Likewise.
31036         * m4/locale-zh.m4: Likewise.
31037         * m4/lock.m4: Likewise.
31038         * m4/longlong.m4: Likewise.
31039         * m4/ls-mntd-fs.m4: Likewise.
31040         * m4/lstat.m4: Likewise.
31041         * m4/malloc.m4: Likewise.
31042         * m4/mathl.m4: Likewise.
31043         * m4/mbrtowc.m4: Likewise.
31044         * m4/mbstate_t.m4: Likewise.
31045         * m4/mbswidth.m4: Likewise.
31046         * m4/memchr.m4: Likewise.
31047         * m4/memcmp.m4: Likewise.
31048         * m4/memcpy.m4: Likewise.
31049         * m4/memmem.m4: Likewise.
31050         * m4/memmove.m4: Likewise.
31051         * m4/mempcpy.m4: Likewise.
31052         * m4/memrchr.m4: Likewise.
31053         * m4/memset.m4: Likewise.
31054         * m4/minmax.m4: Likewise.
31055         * m4/mkdir-slash.m4: Likewise.
31056         * m4/mkdtemp.m4: Likewise.
31057         * m4/mktime.m4: Likewise.
31058         * m4/mmap-anon.m4: Likewise.
31059         * m4/mountlist.m4: Likewise.
31060         * m4/nanosleep.m4: Likewise.
31061         * m4/nls.m4: Likewise.
31062         * m4/nocrash.m4: Likewise.
31063         * m4/open.m4: Likewise.
31064         * m4/openat.m4: Likewise.
31065         * m4/openmp.m4: Likewise.
31066         * m4/pathmax.m4: Likewise.
31067         * m4/perl.m4: Likewise.
31068         * m4/physmem.m4: Likewise.
31069         * m4/pipe.m4: Likewise.
31070         * m4/po.m4: Likewise.
31071         * m4/poll.m4: Likewise.
31072         * m4/posixtm.m4: Likewise.
31073         * m4/posixver.m4: Likewise.
31074         * m4/printf-frexp.m4: Likewise.
31075         * m4/printf-frexpl.m4: Likewise.
31076         * m4/printf-posix.m4: Likewise.
31077         * m4/printf-posix-rpl.m4: Likewise.
31078         * m4/printf.m4: Likewise.
31079         * m4/progtest.m4: Likewise.
31080         * m4/putenv.m4: Likewise.
31081         * m4/readline.m4: Likewise.
31082         * m4/readlink.m4: Likewise.
31083         * m4/readutmp.m4: Likewise.
31084         * m4/realloc.m4: Likewise.
31085         * m4/regex.m4: Likewise.
31086         * m4/relocatable.m4: Likewise.
31087         * m4/relocatable-lib.m4: Likewise.
31088         * m4/rename-dest-slash.m4: Likewise.
31089         * m4/rename.m4: Likewise.
31090         * m4/rmdir-errno.m4: Likewise.
31091         * m4/rmdir.m4: Likewise.
31092         * m4/roundf.m4: Likewise.
31093         * m4/roundl.m4: Likewise.
31094         * m4/rpmatch.m4: Likewise.
31095         * m4/save-cwd.m4: Likewise.
31096         * m4/selinux-selinux-h.m4: Likewise.
31097         * m4/setenv.m4: Likewise.
31098         * m4/settime.m4: Likewise.
31099         * m4/sig2str.m4: Likewise.
31100         * m4/sig_atomic_t.m4: Likewise.
31101         * m4/signalblocking.m4: Likewise.
31102         * m4/signbit.m4: Likewise.
31103         * m4/sigpipe.m4: Likewise.
31104         * m4/sockets.m4: Likewise.
31105         * m4/sockpfaf.m4: Likewise.
31106         * m4/st_dm_mode.m4: Likewise.
31107         * m4/stat-time.m4: Likewise.
31108         * m4/stdbool.m4: Likewise.
31109         * m4/stdint.m4: Likewise.
31110         * m4/stdint_h.m4: Likewise.
31111         * m4/stpcpy.m4: Likewise.
31112         * m4/stpncpy.m4: Likewise.
31113         * m4/strcase.m4: Likewise.
31114         * m4/strchrnul.m4: Likewise.
31115         * m4/strcspn.m4: Likewise.
31116         * m4/strdup.m4: Likewise.
31117         * m4/strftime.m4: Likewise.
31118         * m4/strndup.m4: Likewise.
31119         * m4/strnlen.m4: Likewise.
31120         * m4/strpbrk.m4: Likewise.
31121         * m4/strptime.m4: Likewise.
31122         * m4/strsep.m4: Likewise.
31123         * m4/strtod.m4: Likewise.
31124         * m4/strtoimax.m4: Likewise.
31125         * m4/strtok_r.m4: Likewise.
31126         * m4/strtol.m4: Likewise.
31127         * m4/strtoll.m4: Likewise.
31128         * m4/strtoul.m4: Likewise.
31129         * m4/strtoull.m4: Likewise.
31130         * m4/strtoumax.m4: Likewise.
31131         * m4/strverscmp.m4: Likewise.
31132         * m4/threadlib.m4: Likewise.
31133         * m4/timegm.m4: Likewise.
31134         * m4/tm_gmtoff.m4: Likewise.
31135         * m4/tmpdir.m4: Likewise.
31136         * m4/tmpfile.m4: Likewise.
31137         * m4/tzset.m4: Likewise.
31138         * m4/uintmax_t.m4: Likewise.
31139         * m4/unlinkdir.m4: Likewise.
31140         * m4/unlocked-io.m4: Likewise.
31141         * m4/uptime.m4: Likewise.
31142         * m4/userspec.m4: Likewise.
31143         * m4/utimbuf.m4: Likewise.
31144         * m4/utime.m4: Likewise.
31145         * m4/utimes-null.m4: Likewise.
31146         * m4/utimes.m4: Likewise.
31147         * m4/vararrays.m4: Likewise.
31148         * m4/vasnprintf.m4: Likewise.
31149         * m4/vfprintf-posix.m4: Likewise.
31150         * m4/vprintf-posix.m4: Likewise.
31151         * m4/wait-process.m4: Likewise.
31152         * m4/wchar_t.m4: Likewise.
31153         * m4/wint_t.m4: Likewise.
31154         * m4/write-any-file.m4: Likewise.
31155         * m4/yield.m4: Likewise.
31156
31157 2009-01-13  Bruno Haible  <bruno@clisp.org>
31158
31159         Avoid test-copy-file.sh failures when ACL support insufficient.
31160         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31161         TESTS_ENVIRONMENT.
31162         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31163         Reported by Jim Meyering.
31164
31165 2009-01-13  Bruno Haible  <bruno@clisp.org>
31166
31167         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31168         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31169         * modules/unistdio/u8-printf-parse (Files): Likewise.
31170         * modules/unistdio/u32-printf-parse (Files): Likewise.
31171         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31172
31173 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31174
31175         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31176         and m4/inttypes_h.m4 too.
31177
31178 2009-01-12  Eric Blake  <ebb9@byu.net>
31179
31180         tests: IRIX 6.2 cc can't compile -0.0 into .data
31181         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31182         rather than at compile-time.
31183         * tests/test-floorl.c (minus_zero): Likewise.
31184         * tests/test-frexpl.c (minus_zero): Likewise.
31185         * tests/test-isnan.c (minus_zerol): Likewise.
31186         * tests/test-isnanl.h (minus_zero): Likewise.
31187         * tests/test-ldexpl.c (minus_zero): Likewise.
31188         * tests/test-roundl.c (minus_zero): Likewise.
31189         * tests/test-signbit.c (minus_zerol): Likewise.
31190         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31191         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31192         * tests/test-truncl.c (minus_zero): Likewise.
31193         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31194         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31195         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31196
31197 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31198
31199         regex: fix glibc bug 9697
31200         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31201         handling.
31202
31203 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31204
31205         regex: fix glibc bug 697
31206         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31207         being NULL also if there are no backreferences.
31208
31209 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31210
31211         regex: merge glibc changes
31212         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31213         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31214         re_string_skip_chars, re_string_reconstruct): Likewise.
31215         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31216
31217 2009-01-07  Jim Meyering  <meyering@redhat.com>
31218
31219         poll: filter through cppi
31220         * lib/poll.c: Indent cpp directives to reflect nesting.
31221
31222 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31223
31224         poll: don't return uninitialized
31225         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31226
31227 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31228
31229         avoid compile failure on AIX 6.1
31230         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31231         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31232
31233 2009-01-04  Jim Meyering  <meyering@redhat.com>
31234
31235         remove duplicate inclusion of <stdio.h>
31236         * tests/test-fprintf-posix.c: Likewise.
31237         * tests/test-printf-posix.c: Likewise.
31238         * tests/test-snprintf-posix.c: Likewise.
31239         * tests/test-sprintf-posix.c: Likewise.
31240         * tests/test-vasprintf-posix.c: Likewise.
31241         * tests/test-vfprintf-posix.c: Likewise.
31242         * tests/test-vprintf-posix.c: Likewise.
31243         * tests/test-vsnprintf-posix.c: Likewise.
31244         * tests/test-vsprintf-posix.c: Likewise.
31245
31246 2009-01-03  Jim Meyering  <meyering@redhat.com>
31247
31248         gnulib-tool: fix sed-based filtering
31249         * gnulib-tool (func_filter_filelist): Remove extra backslash
31250         in sed_fff_filter definition.
31251
31252 2009-01-02  Jim Meyering  <meyering@redhat.com>
31253
31254         strftime: avoid compilation failure on Solaris 2.6
31255         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31256         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31257         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31258         be available.  Reported by Tom G. Christensen.  Details in
31259         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31260
31261 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31262             Bruno Haible  <bruno@clisp.org>
31263
31264         Speed up gnulib-tool by doing more string processing through shell
31265         built-ins.
31266         * gnulib-tool (fast_func_append): New variable.
31267         (func_remove_prefix, func_remove_suffix): New functions.
31268         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31269         (func_filter_filelist): New function.
31270         (func_get_dependencies): Use func_remove_suffix instead of sed.
31271         (func_get_automake_snippet): Use func_filter_filelist instead of a
31272         subshell and sed invocation.
31273
31274 2009-01-01  Bruno Haible  <bruno@clisp.org>
31275
31276         Fix a security bug.
31277         * gnulib-tool (func_import, import, update): Don't allow the characters
31278         '"', '$', '`', '\' in macro arguments that become part of commands that
31279         are evaluated.
31280
31281 2009-01-01  Bruno Haible  <bruno@clisp.org>
31282
31283         * gnulib-tool (func_reset_sigpipe): Add more comments.
31284
31285 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31286
31287         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31288         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31289         already know the answer.
31290
31291 2009-01-01  Jim Meyering  <meyering@redhat.com>
31292
31293         * lib/version-etc.c (version_etc_va): Update copyright year.
31294
31295 2008-12-30  Bruno Haible  <bruno@clisp.org>
31296
31297         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31298         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31299         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31300
31301 2008-12-29  Eric Blake  <ebb9@byu.net>
31302
31303         multiarch: avoid autoconf AC_REQUIRE bug
31304         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31305         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31306         2.63 and older.
31307         Reported by Bruno Haible, and analyzed in
31308         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31309
31310 2008-12-29  Bruno Haible  <bruno@clisp.org>
31311
31312         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31313         files in subdirectories correctly.
31314         Reported by Ralf Wildenhues.
31315
31316 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31317
31318         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31319         rather than 'join FILE -', for Solaris join.
31320
31321 2008-12-29  Bruno Haible  <bruno@clisp.org>
31322
31323         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31324         quoting.
31325         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31326         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31327         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31328         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31329         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31330         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31331         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31332         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31333         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31334         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31335         * m4/nls.m4 (AM_NLS): Likewise.
31336         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31337         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31338         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31339         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31340         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31341         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31342         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31343         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31344         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31345         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31346         * m4/xsize.m4 (gl_XSIZE): Likewise.
31347         Suggested by Jim Meyering.
31348
31349 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31350
31351         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31352         * lib/parse-duration.c: use a switch instead of cascading if's.
31353
31354 2008-12-29  Eric Blake  <ebb9@byu.net>
31355
31356         wchar.h: supply WEOF on Irix 5.3
31357         * lib/wchar.in.h (wint_t): Also supply WEOF.
31358         * lib/wctype.in.h (wint_t): Likewise.
31359         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31360         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31361         Reported by Tom G. Christensen.
31362
31363 2008-12-26  Bruno Haible  <bruno@clisp.org>
31364
31365         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31366         i486, i586, i686.
31367
31368 2008-12-26  Bruno Haible  <bruno@clisp.org>
31369
31370         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31371
31372 2008-12-26  Bruno Haible  <bruno@clisp.org>
31373
31374         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31375         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31376         not __STDC_CONSTANT_MACROS.
31377         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31378
31379 2008-12-25  Bruno Haible  <bruno@clisp.org>
31380
31381         Add support for universal builds to vasnprintf.
31382         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31383         universal builds, guess no.
31384         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31385         * modules/vasprintf-posix (Depends-on): Likewise.
31386         * modules/fprintf-posix (Depends-on): Likewise.
31387         * modules/vfprintf-posix (Depends-on): Likewise.
31388         * modules/snprintf-posix (Depends-on): Likewise.
31389         * modules/vsnprintf-posix (Depends-on): Likewise.
31390         * modules/sprintf-posix (Depends-on): Likewise.
31391         * modules/vsprintf-posix (Depends-on): Likewise.
31392         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31393         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31394         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31395         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31396         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31397         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31398         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31399
31400         Add support for universal builds to <inttypes.h>.
31401         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31402         _SCNu64_PREFIX): In Apple
31403         universal builds, define directly, using _LP64.
31404         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31405         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31406         * modules/inttypes (Depends-on): Add multiarch.
31407         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31408
31409         Add support for universal builds to <stdint.h>.
31410         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31411         universal builds, define directly, using _LP64.
31412         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31413         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31414         and size_t.
31415         * modules/stdint (Depends-on): Add multiarch.
31416         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31417
31418         New module 'multiarch'.
31419         * modules/multiarch: New file.
31420         * m4/multiarch.m4: New file.
31421
31422 2008-12-25  Bruno Haible  <bruno@clisp.org>
31423
31424         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31425
31426 2008-12-25  Bruno Haible  <bruno@clisp.org>
31427
31428         * modules/btowc (License): Relicense under LGPLv2+.
31429         * modules/mbsinit (License): Likewise.
31430         * modules/mbrtowc (License): Likewise.
31431         * modules/wcrtomb (License): Likewise.
31432         * modules/streq (License): Likewise.
31433         Reported by David Lutterkort <lutter@redhat.com>.
31434
31435 2008-12-23  Bruno Haible  <bruno@clisp.org>
31436
31437         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31438
31439 2008-12-23  Bruno Haible  <bruno@clisp.org>
31440
31441         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31442         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31443         GETADDRINFO_LIB, not in LIBS.
31444         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31445         * modules/canon-host (Link): Likewise.
31446         * NEWS: Mention the change.
31447         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31448         GETADDRINFO_LIB.
31449
31450 2008-12-22  Bruno Haible  <bruno@clisp.org>
31451
31452         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31453         * doc/posix-functions/iswalpha_l.texi: Likewise.
31454         * doc/posix-functions/iswblank_l.texi: Likewise.
31455         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31456         * doc/posix-functions/iswctype_l.texi: Likewise.
31457         * doc/posix-functions/iswdigit_l.texi: Likewise.
31458         * doc/posix-functions/iswgraph_l.texi: Likewise.
31459         * doc/posix-functions/iswlower_l.texi: Likewise.
31460         * doc/posix-functions/iswprint_l.texi: Likewise.
31461         * doc/posix-functions/iswpunct_l.texi: Likewise.
31462         * doc/posix-functions/iswspace_l.texi: Likewise.
31463         * doc/posix-functions/iswupper_l.texi: Likewise.
31464         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31465         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31466         * doc/posix-functions/open_wmemstream.texi: Likewise.
31467         * doc/posix-functions/swscanf.texi: Likewise.
31468         * doc/posix-functions/towctrans_l.texi: Likewise.
31469         * doc/posix-functions/towlower.texi: Likewise.
31470         * doc/posix-functions/towlower_l.texi: Likewise.
31471         * doc/posix-functions/towupper.texi: Likewise.
31472         * doc/posix-functions/towupper_l.texi: Likewise.
31473         * doc/posix-functions/vfwprintf.texi: Likewise.
31474         * doc/posix-functions/vfwscanf.texi: Likewise.
31475         * doc/posix-functions/vswscanf.texi: Likewise.
31476         * doc/posix-functions/vwprintf.texi: Likewise.
31477         * doc/posix-functions/vwscanf.texi: Likewise.
31478         * doc/posix-functions/wcpcpy.texi: Likewise.
31479         * doc/posix-functions/wcpncpy.texi: Likewise.
31480         * doc/posix-functions/wcscasecmp.texi: Likewise.
31481         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31482         * doc/posix-functions/wcscoll_l.texi: Likewise.
31483         * doc/posix-functions/wcsdup.texi: Likewise.
31484         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31485         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31486         * doc/posix-functions/wcsnlen.texi: Likewise.
31487         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31488         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31489         * doc/posix-functions/wctrans_l.texi: Likewise.
31490         * doc/posix-functions/wctype_l.texi: Likewise.
31491         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31492         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31493         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31494         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31495         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31496         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31497         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31498         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31499         * doc/glibc-functions/wcschrnul.texi: Likewise.
31500         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31501         * doc/glibc-functions/wcstod_l.texi: Likewise.
31502         * doc/glibc-functions/wcstof_l.texi: Likewise.
31503         * doc/glibc-functions/wcstol_l.texi: Likewise.
31504         * doc/glibc-functions/wcstold_l.texi: Likewise.
31505         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31506         * doc/glibc-functions/wcstoq.texi: Likewise.
31507         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31508         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31509         * doc/glibc-functions/wcstouq.texi: Likewise.
31510         * doc/glibc-functions/wmempcpy.texi: Likewise.
31511
31512 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31513             Eric Blake  <ebb9@byu.net>
31514             Paolo Bonzini  <bonzini@gnu.org>
31515             Bruno Haible  <bruno@clisp.org>
31516
31517         Make c-stack work on Haiku.
31518         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31519         (c_stack_action): Use SA_ONSTACK flag.
31520
31521 2008-12-22  Bruno Haible  <bruno@clisp.org>
31522
31523         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31524
31525 2008-12-22  Bruno Haible  <bruno@clisp.org>
31526
31527         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31528         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31529         being overridden.
31530         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
31531         New macros.
31532         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31534         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31535         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31536
31537 2008-12-22  Bruno Haible  <bruno@clisp.org>
31538
31539         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31540         from test code.
31541
31542 2008-12-22  Eric Blake  <ebb9@byu.net>
31543
31544         Avoid gcc warnings on cygwin.
31545         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31546         Avoid unused variable.
31547         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31548         Likewise.
31549
31550 2008-12-22  Bruno Haible  <bruno@clisp.org>
31551
31552         Remove HAVE_MBRTOWC conditionals.
31553         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31554         (mbscasecmp): Assume mbrtowc function.
31555         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31556         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31557         * lib/mbschr.c: Include mbuiter.h unconditionally.
31558         (mbschr): Assume mbrtowc function.
31559         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31560         (mbscspn): Assume mbrtowc function.
31561         * lib/mbslen.c: Include mbuiter.h unconditionally.
31562         (mbslen): Assume mbrtowc function.
31563         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31564         (mbsncasecmp): Assume mbrtowc function.
31565         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31566         (mbsnlen): Assume mbrtowc function.
31567         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31568         (mbspbrk): Assume mbrtowc function.
31569         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31570         (mbspcasecmp): Assume mbrtowc function.
31571         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31572         (mbsrchr): Assume mbrtowc function.
31573         * lib/mbssep.c: Include mbuiter.h unconditionally.
31574         (mbssep): Assume mbrtowc function.
31575         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31576         (mbsspn): Assume mbrtowc function.
31577         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31578         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31579         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31580         (mbstok_r): Assume mbrtowc function.
31581         * lib/propername.c: Include mbuiter.h unconditionally.
31582         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31583         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31584         (trim2): Assume mbrtowc function.
31585         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31586         (mbsnwidth): Assume mbrtowc function.
31587         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31588         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31589         fallback definitions.
31590         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31591
31592 2008-12-22  Bruno Haible  <bruno@clisp.org>
31593
31594         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31595
31596 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
31597
31598         * modules/regex: Request emulations for the mb*/wc* functions we need.
31599         * m4/regex.m4: Don't look for those functions here.
31600         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
31601
31602 2008-12-22  Bruno Haible  <bruno@clisp.org>
31603
31604         * modules/fnmatch (Depends-on): Remove duplicated dependency.
31605
31606 2008-12-21  Bruno Haible  <bruno@clisp.org>
31607
31608         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
31609         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
31610         (Include): Remove conditionalization.
31611         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
31612         (Include): Remove conditionalization.
31613         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
31614         (Include): Remove conditionalization.
31615         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
31616         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31617         * NEWS: Mention the change.
31618         Reported by Alan Hourihane <alanh@fairlite.co.uk>
31619         via Sergey Poznyakoff <gray@gnu.org.ua>.
31620
31621 2008-12-21  Bruno Haible  <bruno@clisp.org>
31622
31623         * MODULES.html.sh (Extended multibyte and wide character utilities
31624         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
31625         wcrtomb, wcsrtombs.
31626         (Support for systems lacking POSIX:2008): Add accept, bind, close,
31627         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
31628         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
31629         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
31630
31631 2008-12-21  Bruno Haible  <bruno@clisp.org>
31632
31633         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
31634
31635 2008-12-21  Bruno Haible  <bruno@clisp.org>
31636
31637         * modules/wcsnrtombs-tests: New file.
31638         * tests/test-wcsnrtombs1.sh: New file.
31639         * tests/test-wcsnrtombs2.sh: New file.
31640         * tests/test-wcsnrtombs3.sh: New file.
31641         * tests/test-wcsnrtombs4.sh: New file.
31642         * tests/test-wcsnrtombs.c: New file.
31643
31644         New module 'wcsnrtombs'.
31645         * lib/wchar.in.h (wcsnrtombs): New declaration.
31646         * lib/wcsnrtombs.c: New file.
31647         * lib/wcsrtombs-state.c: New file.
31648         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
31649         (internal_state): Remove variable.
31650         * m4/wcsnrtombs.m4: New file.
31651         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
31652         compilation units.
31653         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
31654         HAVE_WCSNRTOMBS.
31655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
31656         HAVE_WCSNRTOMBS.
31657         * modules/wcsnrtombs: New file.
31658         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
31659         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
31660
31661 2008-12-21  Bruno Haible  <bruno@clisp.org>
31662
31663         * modules/wcsrtombs-tests: New file.
31664         * tests/test-wcsrtombs1.sh: New file.
31665         * tests/test-wcsrtombs2.sh: New file.
31666         * tests/test-wcsrtombs3.sh: New file.
31667         * tests/test-wcsrtombs4.sh: New file.
31668         * tests/test-wcsrtombs.c: New file.
31669
31670         New module 'wcsrtombs'.
31671         * lib/wchar.in.h (wcsrtombs): New declaration.
31672         * lib/wcsrtombs.c: New file.
31673         * m4/wcsrtombs.m4: New file.
31674         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
31675         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
31677         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
31678         * modules/wcsrtombs: New file.
31679         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
31680         bugs.
31681
31682 2008-12-21  Bruno Haible  <bruno@clisp.org>
31683
31684         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
31685         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
31686         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
31687         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
31688         if not correct.
31689         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
31690         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
31691         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31692         m4/locale-zh.m4, m4/codeset.m4.
31693         * doc/posix-functions/wcrtomb.texi: Document the bug.
31694
31695 2008-12-21  Bruno Haible  <bruno@clisp.org>
31696
31697         Work around a btowc() bug on IRIX 6.5.
31698         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
31699         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
31700         REPLACE_WTOBC if not.
31701         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
31702         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
31703         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
31704
31705 2008-12-21  Bruno Haible  <bruno@clisp.org>
31706
31707         * modules/wcrtomb-tests: New file.
31708         * tests/test-wcrtomb.sh: New file.
31709         * tests/test-wcrtomb.c: New file.
31710
31711         New module 'wcrtomb'.
31712         * lib/wchar.in.h (wcrtomb): New declaration.
31713         * lib/wcrtomb.c: New file.
31714         * m4/wcrtomb.m4: New file.
31715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
31716         HAVE_WCRTOMB.
31717         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
31718         HAVE_WCRTOMB.
31719         * modules/wcrtomb: New file.
31720         * doc/posix-functions/wcrtomb.texi: Mention the new module.
31721
31722 2008-12-21  Bruno Haible  <bruno@clisp.org>
31723
31724         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
31725         * modules/mbsrtowcs (Files): Likewise.
31726         * modules/wctob (Files): Likewise.
31727         * modules/c-strcase-tests (Files): Likewise.
31728         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31729         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31730         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31731         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31732         * modules/vasnprintf-posix-tests (Files): Likewise.
31733
31734 2008-12-21  William Pursell  <bill.pursell@gmail.com>
31735
31736         gitlog-to-changelog: pass all command-line arguments to git-log
31737         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
31738         it is sometimes convenient to filter the commits in various ways.
31739         gitlog-to-changelog only allows --since to specify a start date,
31740         but git-log itself supports many other filtering mechanisms.
31741         At the moment, I want to filter by branch name.  Rather than
31742         adding a --branch option to gitlog-to-changelog, it seems more
31743         flexible to simply pass all options directly to git-log and let
31744         git do the work.  Notice that this effectively makes --since a
31745         redundant option for gitlog-to-changelog, but removing it would
31746         require current usage to change since calls would then require
31747         an additional '--'.
31748
31749 2008-12-21  Bruno Haible  <bruno@clisp.org>
31750
31751         * modules/mbsnrtowcs-tests: New file.
31752         * tests/test-mbsnrtowcs1.sh: New file.
31753         * tests/test-mbsnrtowcs2.sh: New file.
31754         * tests/test-mbsnrtowcs3.sh: New file.
31755         * tests/test-mbsnrtowcs4.sh: New file.
31756         * tests/test-mbsnrtowcs.c: New file.
31757
31758         New module 'mbsnrtowcs'.
31759         * lib/wchar.in.h (mbsnrtowcs): New declaration.
31760         * lib/mbsnrtowcs.c: New file.
31761         * lib/mbsrtowcs-state.c: New file.
31762         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
31763         (internal_state): Remove variable.
31764         * m4/mbsnrtowcs.m4: New file.
31765         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
31766         compilation units.
31767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
31768         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31769         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
31770         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
31771         * modules/mbsnrtowcs: New file.
31772         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
31773         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
31774         portability problem.
31775
31776 2008-12-21  Bruno Haible  <bruno@clisp.org>
31777
31778         Work around mbsrtowcs bug.
31779         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
31780         (gl_FUNC_MBSRTOWCS): Invoke it.
31781         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31782         m4/locale-zh.m4.
31783         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
31784
31785 2008-12-21  Bruno Haible  <bruno@clisp.org>
31786
31787         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
31788
31789 2008-12-21  Bruno Haible  <bruno@clisp.org>
31790
31791         Update doc for AIX.
31792         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
31793         16-bit wchar_t type.
31794         * doc/posix-functions/btowc.texi: Likewise.
31795         * doc/posix-functions/fgetwc.texi: Likewise.
31796         * doc/posix-functions/fgetws.texi: Likewise.
31797         * doc/posix-functions/fputwc.texi: Likewise.
31798         * doc/posix-functions/fputws.texi: Likewise.
31799         * doc/posix-functions/fwide.texi: Likewise.
31800         * doc/posix-functions/fwprintf.texi: Likewise.
31801         * doc/posix-functions/fwscanf.texi: Likewise.
31802         * doc/posix-functions/getwchar.texi: Likewise.
31803         * doc/posix-functions/getwc.texi: Likewise.
31804         * doc/posix-functions/iswalnum.texi: Likewise.
31805         * doc/posix-functions/iswalpha.texi: Likewise.
31806         * doc/posix-functions/iswblank.texi: Likewise.
31807         * doc/posix-functions/iswcntrl.texi: Likewise.
31808         * doc/posix-functions/iswctype.texi: Likewise.
31809         * doc/posix-functions/iswdigit.texi: Likewise.
31810         * doc/posix-functions/iswgraph.texi: Likewise.
31811         * doc/posix-functions/iswlower.texi: Likewise.
31812         * doc/posix-functions/iswprint.texi: Likewise.
31813         * doc/posix-functions/iswpunct.texi: Likewise.
31814         * doc/posix-functions/iswspace.texi: Likewise.
31815         * doc/posix-functions/iswupper.texi: Likewise.
31816         * doc/posix-functions/iswxdigit.texi: Likewise.
31817         * doc/posix-functions/mbrtowc.texi: Likewise.
31818         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31819         * doc/posix-functions/mbstowcs.texi: Likewise.
31820         * doc/posix-functions/mbtowc.texi: Likewise.
31821         * doc/posix-functions/putwchar.texi: Likewise.
31822         * doc/posix-functions/putwc.texi: Likewise.
31823         * doc/posix-functions/swprintf.texi: Likewise.
31824         * doc/posix-functions/tolower.texi: Likewise.
31825         * doc/posix-functions/toupper.texi: Likewise.
31826         * doc/posix-functions/towctrans.texi: Likewise.
31827         * doc/posix-functions/ungetwc.texi: Likewise.
31828         * doc/posix-functions/vswprintf.texi: Likewise.
31829         * doc/posix-functions/wcrtomb.texi: Likewise.
31830         * doc/posix-functions/wcscat.texi: Likewise.
31831         * doc/posix-functions/wcschr.texi: Likewise.
31832         * doc/posix-functions/wcscmp.texi: Likewise.
31833         * doc/posix-functions/wcscoll.texi: Likewise.
31834         * doc/posix-functions/wcscpy.texi: Likewise.
31835         * doc/posix-functions/wcscspn.texi: Likewise.
31836         * doc/posix-functions/wcsftime.texi: Likewise.
31837         * doc/posix-functions/wcslen.texi: Likewise.
31838         * doc/posix-functions/wcsncat.texi: Likewise.
31839         * doc/posix-functions/wcsncmp.texi: Likewise.
31840         * doc/posix-functions/wcsncpy.texi: Likewise.
31841         * doc/posix-functions/wcspbrk.texi: Likewise.
31842         * doc/posix-functions/wcsrchr.texi: Likewise.
31843         * doc/posix-functions/wcsrtombs.texi: Likewise.
31844         * doc/posix-functions/wcsspn.texi: Likewise.
31845         * doc/posix-functions/wcsstr.texi: Likewise.
31846         * doc/posix-functions/wcstod.texi: Likewise.
31847         * doc/posix-functions/wcstof.texi: Likewise.
31848         * doc/posix-functions/wcstoimax.texi: Likewise.
31849         * doc/posix-functions/wcstok.texi: Likewise.
31850         * doc/posix-functions/wcstold.texi: Likewise.
31851         * doc/posix-functions/wcstoll.texi: Likewise.
31852         * doc/posix-functions/wcstol.texi: Likewise.
31853         * doc/posix-functions/wcstombs.texi: Likewise.
31854         * doc/posix-functions/wcstoull.texi: Likewise.
31855         * doc/posix-functions/wcstoul.texi: Likewise.
31856         * doc/posix-functions/wcstoumax.texi: Likewise.
31857         * doc/posix-functions/wcswidth.texi: Likewise.
31858         * doc/posix-functions/wcsxfrm.texi: Likewise.
31859         * doc/posix-functions/wctob.texi: Likewise.
31860         * doc/posix-functions/wctomb.texi: Likewise.
31861         * doc/posix-functions/wctrans.texi: Likewise.
31862         * doc/posix-functions/wctype.texi: Likewise.
31863         * doc/posix-functions/wcwidth.texi: Likewise.
31864         * doc/posix-functions/wmemchr.texi: Likewise.
31865         * doc/posix-functions/wmemcmp.texi: Likewise.
31866         * doc/posix-functions/wmemcpy.texi: Likewise.
31867         * doc/posix-functions/wmemmove.texi: Likewise.
31868         * doc/posix-functions/wmemset.texi: Likewise.
31869         * doc/posix-functions/wprintf.texi: Likewise.
31870         * doc/posix-functions/wscanf.texi: Likewise.
31871
31872 2008-12-21  Bruno Haible  <bruno@clisp.org>
31873
31874         Update doc for HP-UX 11.11.
31875         * doc/posix-functions/btowc.texi: Clarify that the function is missing
31876         in HP-UX version 11.00, not in all versions of HP-UX 11.
31877         * doc/posix-functions/fwide.texi: Likewise.
31878         * doc/posix-functions/fwprintf.texi: Likewise.
31879         * doc/posix-functions/fwscanf.texi: Likewise.
31880         * doc/posix-functions/inet_ntop.texi: Likewise.
31881         * doc/posix-functions/inet_pton.texi: Likewise.
31882         * doc/posix-functions/mbrlen.texi: Likewise.
31883         * doc/posix-functions/mbrtowc.texi: Likewise.
31884         * doc/posix-functions/mbsinit.texi: Likewise.
31885         * doc/posix-functions/mbsrtowcs.texi: Likewise.
31886         * doc/posix-functions/swprintf.texi: Likewise.
31887         * doc/posix-functions/swscanf.texi: Likewise.
31888         * doc/posix-functions/towctrans.texi: Likewise.
31889         * doc/posix-functions/vfwprintf.texi: Likewise.
31890         * doc/posix-functions/vswprintf.texi: Likewise.
31891         * doc/posix-functions/vwprintf.texi: Likewise.
31892         * doc/posix-functions/wcrtomb.texi: Likewise.
31893         * doc/posix-functions/wcsrtombs.texi: Likewise.
31894         * doc/posix-functions/wcsstr.texi: Likewise.
31895         * doc/posix-functions/wctob.texi: Likewise.
31896         * doc/posix-functions/wctrans.texi: Likewise.
31897         * doc/posix-functions/wmemchr.texi: Likewise.
31898         * doc/posix-functions/wmemcmp.texi: Likewise.
31899         * doc/posix-functions/wmemcpy.texi: Likewise.
31900         * doc/posix-functions/wmemmove.texi: Likewise.
31901         * doc/posix-functions/wmemset.texi: Likewise.
31902         * doc/posix-functions/wprintf.texi: Likewise.
31903         * doc/posix-functions/wscanf.texi: Likewise.
31904
31905 2008-12-21  Bruno Haible  <bruno@clisp.org>
31906
31907         Work around a portability problem.
31908         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
31909         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
31910
31911 2008-12-20  Bruno Haible  <bruno@clisp.org>
31912
31913         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
31914         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
31915         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
31916         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
31917         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
31918
31919         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
31920         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
31921         set.
31922         (GNULIB_defined_mbstate_t): New macro.
31923         (mbsinit): Redefine if REPLACE_MBSINIT is set.
31924         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
31925         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
31926         reuses the system's mbrtowc function but works around the bugs.
31927         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
31928         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
31929         macros.
31930         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
31931         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
31932         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
31933         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
31934         REPLACE_MBSINIT if mbsinit needs to be overridden.
31935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
31936         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31937         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
31938         REPLACE_MBSINIT, REPLACE_MBRTOWC.
31939         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
31940         m4/locale-zh.m4.
31941         (Depends): Add mbsinit.
31942         * modules/mbsinit (Depends): Add mbrtowc.
31943         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
31944
31945 2008-12-20  Bruno Haible  <bruno@clisp.org>
31946
31947         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
31948         so that there are no conversion errors on AIX.
31949         * tests/test-mbsrtowcs.c (main): LIkewise.
31950
31951 2008-12-20  Bruno Haible  <bruno@clisp.org>
31952
31953         Work around wctob bug on Solaris <= 9.
31954         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
31955         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
31956         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
31957         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
31958         * modules/wctob (Files): Add m4/locale-fr.m4.
31959         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
31960
31961 2008-12-20  Bruno Haible  <bruno@clisp.org>
31962
31963         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
31964         /dev/null.
31965         * tests/test-select-in.sh: Likewise.
31966         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31967
31968 2008-12-20  Bruno Haible  <bruno@clisp.org>
31969
31970         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
31971         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
31972         Cygwin 1.5.x.
31973
31974 2008-12-20  Bruno Haible  <bruno@clisp.org>
31975
31976         Ensure mbstate_t is defined on HP-UX 11.11.
31977         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
31978         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
31979         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
31980         AC_USE_SYSTEM_EXTENSIONS.
31981         * modules/fnmatch (Depends-on): Add extensions.
31982         * modules/mbrlen (Depends-on): Likewise.
31983         * modules/mbrtowc (Depends-on): Likewise.
31984         * modules/mbsinit (Depends-on): Likewise.
31985         * modules/mbsrtowcs (Depends-on): Likewise.
31986         * modules/mbswidth (Depends-on): Likewise.
31987         * modules/quotearg (Depends-on): Likewise.
31988         * modules/strftime (Depends-on): Likewise.
31989
31990 2008-12-20  Bruno Haible  <bruno@clisp.org>
31991
31992         Ensure wctob is declared on IRIX 6.5.
31993         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
31994         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
31995         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
31996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
31997         of HAVE_WCTOB.
31998         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
31999         HAVE_WCTOB.
32000         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
32001
32002 2008-12-19  Bruno Haible  <bruno@clisp.org>
32003
32004         * modules/mbsrtowcs-tests: New file.
32005         * tests/test-mbsrtowcs1.sh: New file.
32006         * tests/test-mbsrtowcs2.sh: New file.
32007         * tests/test-mbsrtowcs3.sh: New file.
32008         * tests/test-mbsrtowcs4.sh: New file.
32009         * tests/test-mbsrtowcs.c: New file.
32010
32011         New module 'mbsrtowcs'.
32012         * lib/wchar.in.h (mbsrtowcs): New declaration.
32013         * lib/mbsrtowcs.c: New file.
32014         * m4/mbsrtowcs.m4: New file.
32015         * modules/mbsrtowcs: New file.
32016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
32017         HAVE_MBSRTOWCS.
32018         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
32019         HAVE_MBSRTOWCS.
32020         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
32021
32022 2008-12-19  Bruno Haible  <bruno@clisp.org>
32023
32024         New module 'mbrlen'.
32025         * lib/wchar.in.h (mbrlen): New declaration.
32026         * lib/mbrlen.c: New file.
32027         * m4/mbrlen.m4: New file.
32028         * modules/mbrlen: New file.
32029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
32030         HAVE_MBRLEN.
32031         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
32032         HAVE_MBRLEN.
32033         * doc/posix-functions/mbrlen.texi: Document the new module.
32034
32035 2008-12-19  Bruno Haible  <bruno@clisp.org>
32036
32037         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
32038         * modules/mbrtowc (Depends-on): Add verify.
32039         Suggested by Paul Eggert.
32040
32041 2008-12-18  Bruno Haible  <bruno@clisp.org>
32042
32043         * modules/mbsinit-tests: New file.
32044         * tests/test-mbsinit.sh: New file.
32045         * tests/test-mbsinit.c: New file.
32046
32047 2008-12-18  Bruno Haible  <bruno@clisp.org>
32048
32049         * modules/mbrtowc-tests: New file.
32050         * tests/test-mbrtowc1.sh: New file.
32051         * tests/test-mbrtowc2.sh: New file.
32052         * tests/test-mbrtowc3.sh: New file.
32053         * tests/test-mbrtowc4.sh: New file.
32054         * tests/test-mbrtowc.c: New file.
32055
32056         New module 'mbrtowc'.
32057         * lib/wchar.in.h (mbstate_t): Override when the system does not have
32058         mbsinit and mbrtowc.
32059         (mbrtowc): New declaration.
32060         * lib/mbrtowc.c: New file.
32061         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
32062         * modules/mbrtowc: New file.
32063         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
32064         HAVE_MBRTOWC.
32065         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
32066         HAVE_MBRTOWC.
32067         * doc/posix-functions/mbrtowc.texi: Document the new module.
32068
32069 2008-12-18  Bruno Haible  <bruno@clisp.org>
32070
32071         New module 'wctob'.
32072         * lib/wchar.in.h (wctob): New declaration.
32073         * lib/wctob.c: New file.
32074         * m4/wctob.m4: New file.
32075         * modules/wctob: New file.
32076         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
32077         HAVE_WCTOB.
32078         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
32079         * doc/posix-functions/wctob.texi: Document the new module.
32080
32081 2008-12-18  Bruno Haible  <bruno@clisp.org>
32082
32083         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
32084         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
32085
32086 2008-12-18  Simon Josefsson  <simon@josefsson.org>
32087
32088         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
32089         G. Christensen" <tgc@jupiterrise.com>.
32090
32091         * lib/flock.c: Need to include errno.h.  Reported by "Tom
32092         G. Christensen" <tgc@jupiterrise.com>.
32093
32094         * lib/flock.c: Need to include string.h.  Reported by "Tom
32095         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
32096         <ebb9@byu.net>.
32097
32098 2008-12-18  Bruno Haible  <bruno@clisp.org>
32099
32100         * m4/locale-ja.m4: New file, from GNU gettext.
32101
32102 2008-12-17  Bruno Haible  <bruno@clisp.org>
32103
32104         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
32105         Suggested by Eric Blake.
32106
32107 2008-12-17  Bruno Haible  <bruno@clisp.org>
32108
32109         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
32110
32111 2008-12-17  Bruno Haible  <bruno@clisp.org>
32112
32113         * lib/mbsinit.c: Include verify.h. Verify an assumption.
32114         * modules/mbsinit (Depends-on): Add verify.
32115         Suggested by Paul Eggert.
32116
32117 2008-12-17  Bruno Haible  <bruno@clisp.org>
32118
32119         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
32120         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
32121         gl_FUNC_MBRTOWC.
32122         * m4/mbiter.m4 (gl_MBITER): LIkewise.
32123         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
32124         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
32125         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
32126         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
32127         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
32128         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
32129         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
32130         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
32131         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
32132         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
32133         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
32134         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
32135         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
32136         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
32137         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32138         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
32139         * modules/trim (configure.ac): Likewise.
32140
32141 2008-12-17  Bruno Haible  <bruno@clisp.org>
32142
32143         * modules/btowc-tests: New file.
32144         * tests/test-btowc1.sh: New file.
32145         * tests/test-btowc2.sh: New file.
32146         * tests/test-btowc.c: New file.
32147
32148         New module 'btowc'.
32149         * lib/wchar.in.h (btowc): New declaration.
32150         * lib/btowc.c: New file.
32151         * m4/btowc.m4: New file.
32152         * modules/btowc: New file.
32153         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32154         HAVE_BTOWC.
32155         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32156         * doc/posix-functions/btowc.texi: Document the new module.
32157
32158 2008-12-17  Bruno Haible  <bruno@clisp.org>
32159
32160         New module 'mbsinit'.
32161         * lib/wchar.in.h (mbsinit): New declaration.
32162         * lib/mbsinit.c: New file.
32163         * m4/mbsinit.m4: New file.
32164         * modules/mbsinit: New file.
32165         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32166         HAVE_MBSINIT.
32167         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32168         HAVE_MBSINIT.
32169         * doc/posix-functions/mbsinit.texi: Document the new module.
32170
32171 2008-12-16  Bruno Haible  <bruno@clisp.org>
32172
32173         * lib/unistd.in.h: Add comment.
32174         * tests/test-environ.c: Don't include <stdlib.h>.
32175
32176 2008-12-16  Bruno Haible  <bruno@clisp.org>
32177
32178         * lib/parse-duration.h (parse_duration): Document return value
32179         convention.
32180         * lib/parse-duration.c: Include specification header first. Add
32181         comments.
32182         (_): Remove macro.
32183         (parse_year_month_day, parse_hour_minute_second): Move side effects
32184         outside of strchr call.
32185         (parse_non_iso8601): Move side effects outside of isspace call.
32186         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32187         call.
32188
32189 2008-12-16  Bruno Haible  <bruno@clisp.org>
32190
32191         * tests/test-parse-duration.sh: Produce no output when the test
32192         succeeds.
32193
32194 2008-12-16  Bruno Haible  <bruno@clisp.org>
32195
32196         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32197         expressions.
32198
32199 2008-12-15  Bruno Haible  <bruno@clisp.org>
32200
32201         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32202         * doc/glibc-functions/flistxattr.texi: Likewise.
32203         * doc/glibc-functions/fopencookie.texi: Likewise.
32204         * doc/glibc-functions/fremovexattr.texi: Likewise.
32205         * doc/glibc-functions/fsetxattr.texi: Likewise.
32206         * doc/glibc-functions/getxattr.texi: Likewise.
32207         * doc/glibc-functions/lgetxattr.texi: Likewise.
32208         * doc/glibc-functions/listxattr.texi: Likewise.
32209         * doc/glibc-functions/llistxattr.texi: Likewise.
32210         * doc/glibc-functions/lremovexattr.texi: Likewise.
32211         * doc/glibc-functions/lsetxattr.texi: Likewise.
32212         * doc/glibc-functions/removexattr.texi: Likewise.
32213         * doc/glibc-functions/setxattr.texi: Likewise.
32214         * doc/posix-functions/open_memstream.texi: Likewise.
32215
32216 2008-12-15  Eric Blake  <ebb9@byu.net>
32217
32218         Update doc for cygwin 1.7.
32219         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32220         functions.
32221         * doc/posix-functions/fchmodat.texi: Likewise.
32222         * doc/posix-functions/fchownat.texi: Likewise.
32223         * doc/posix-functions/fdopendir.texi: Likewise.
32224         * doc/posix-functions/fmemopen.texi: Likewise.
32225         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32226         * doc/posix-functions/fstatat.texi: Likewise.
32227         * doc/posix-functions/futimens.texi: Likewise.
32228         * doc/posix-functions/gai_strerror.texi: Likewise.
32229         * doc/posix-functions/getaddrinfo.texi: Likewise.
32230         * doc/posix-functions/getnameinfo.texi: Likewise.
32231         * doc/posix-functions/if_freenameindex.texi: Likewise.
32232         * doc/posix-functions/if_indextoname.texi: Likewise.
32233         * doc/posix-functions/if_nameindex.texi: Likewise.
32234         * doc/posix-functions/if_nametoindex.texi: Likewise.
32235         * doc/posix-functions/insque.texi: Likewise.
32236         * doc/posix-functions/linkat.texi: Likewise.
32237         * doc/posix-functions/llrint.texi: Likewise.
32238         * doc/posix-functions/llrintf.texi: Likewise.
32239         * doc/posix-functions/llrintl.texi: Likewise.
32240         * doc/posix-functions/lockf.texi: Likewise.
32241         * doc/posix-functions/lrintl.texi: Likewise.
32242         * doc/posix-functions/mkdirat.texi: Likewise.
32243         * doc/posix-functions/mkfifoat.texi: Likewise.
32244         * doc/posix-functions/mknodat.texi: Likewise.
32245         * doc/posix-functions/mq_close.texi: Likewise.
32246         * doc/posix-functions/mq_getattr.texi: Likewise.
32247         * doc/posix-functions/mq_notify.texi: Likewise.
32248         * doc/posix-functions/mq_open.texi: Likewise.
32249         * doc/posix-functions/mq_receive.texi: Likewise.
32250         * doc/posix-functions/mq_send.texi: Likewise.
32251         * doc/posix-functions/mq_setattr.texi: Likewise.
32252         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32253         * doc/posix-functions/mq_timedsend.texi: Likewise.
32254         * doc/posix-functions/mq_unlink.texi: Likewise.
32255         * doc/posix-functions/open_memstream.texi: Likewise.
32256         * doc/posix-functions/openat.texi: Likewise.
32257         * doc/posix-functions/posix_fadvise.texi: Likewise.
32258         * doc/posix-functions/posix_fallocate.texi: Likewise.
32259         * doc/posix-functions/posix_madvise.texi: Likewise.
32260         * doc/posix-functions/posix_memalign.texi: Likewise.
32261         * doc/posix-functions/posix_openpt.texi: Likewise.
32262         * doc/posix-functions/readlinkat.texi: Likewise.
32263         * doc/posix-functions/remque.texi: Likewise.
32264         * doc/posix-functions/renameat.texi: Likewise.
32265         * doc/posix-functions/rintl.texi: Likewise.
32266         * doc/posix-functions/sem_unlink.texi: Likewise.
32267         * doc/posix-functions/shm_open.texi: Likewise.
32268         * doc/posix-functions/shm_unlink.texi: Likewise.
32269         * doc/posix-functions/signgam.texi: Likewise.
32270         * doc/posix-functions/sigset.texi: Likewise.
32271         * doc/posix-functions/stpcpy.texi: Likewise.
32272         * doc/posix-functions/stpncpy.texi: Likewise.
32273         * doc/posix-functions/strerror.texi: Likewise.
32274         * doc/posix-functions/strtod.texi: Likewise.
32275         * doc/posix-functions/symlinkat.texi: Likewise.
32276         * doc/posix-functions/unlinkat.texi: Likewise.
32277         * doc/posix-functions/utimensat.texi: Likewise.
32278         * doc/glibc-functions/bindresvport.texi: Likewise.
32279         * doc/glibc-functions/dn_expand.texi: Likewise.
32280         * doc/glibc-functions/exp10.texi: Likewise.
32281         * doc/glibc-functions/exp10f.texi: Likewise.
32282         * doc/glibc-functions/fgetxattr.texi: Likewise.
32283         * doc/glibc-functions/flistxattr.texi: Likewise.
32284         * doc/glibc-functions/fopencookie.texi: Likewise.
32285         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32286         * doc/glibc-functions/fremovexattr.texi: Likewise.
32287         * doc/glibc-functions/fsetxattr.texi: Likewise.
32288         * doc/glibc-functions/getifaddrs.texi: Likewise.
32289         * doc/glibc-functions/getxattr.texi: Likewise.
32290         * doc/glibc-functions/lgetxattr.texi: Likewise.
32291         * doc/glibc-functions/listxattr.texi: Likewise.
32292         * doc/glibc-functions/llistxattr.texi: Likewise.
32293         * doc/glibc-functions/lremovexattr.texi: Likewise.
32294         * doc/glibc-functions/lsetxattr.texi: Likewise.
32295         * doc/glibc-functions/pow10.texi: Likewise.
32296         * doc/glibc-functions/pow10f.texi: Likewise.
32297         * doc/glibc-functions/rcmd_af.texi: Likewise.
32298         * doc/glibc-functions/removexattr.texi: Likewise.
32299         * doc/glibc-functions/res_init.texi: Likewise.
32300         * doc/glibc-functions/res_mkquery.texi: Likewise.
32301         * doc/glibc-functions/res_query.texi: Likewise.
32302         * doc/glibc-functions/res_querydomain.texi: Likewise.
32303         * doc/glibc-functions/res_send.texi: Likewise.
32304         * doc/glibc-functions/rresvport_af.texi: Likewise.
32305         * doc/glibc-functions/setxattr.texi: Likewise.
32306         * doc/glibc-functions/strcasestr.texi: Likewise.
32307
32308 2008-12-15  Bruno Haible  <bruno@clisp.org>
32309
32310         Fix compilation error on OSF/1 4.0.
32311         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32312         <sys/time.h>, simply delegate to the system header.
32313         Reported by Daniel Richard G. <oss@teragram.com>.
32314
32315 2008-12-15  Bruno Haible  <bruno@clisp.org>
32316
32317         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32318         * doc/posix-functions/fchmodat.texi: Likewise.
32319         * doc/posix-functions/fchownat.texi: Likewise.
32320         * doc/posix-functions/fdopendir.texi: Likewise.
32321         * doc/posix-functions/fstatat.texi: Likewise.
32322         * doc/posix-functions/mkdirat.texi: Likewise.
32323         * doc/posix-functions/unlinkat.texi: Likewise.
32324
32325 2008-12-14  Bruno Haible  <bruno@clisp.org>
32326
32327         Update doc for POSIX:2008.
32328         * doc/posix-functions/faccessat.texi: New file.
32329         * doc/posix-functions/fchmodat.texi: New file.
32330         * doc/posix-functions/fchownat.texi: New file.
32331         * doc/posix-functions/fdopendir.texi: New file.
32332         * doc/posix-functions/fstatat.texi: New file.
32333         * doc/posix-functions/futimens.texi: New file.
32334         * doc/posix-functions/linkat.texi: New file.
32335         * doc/posix-functions/mkdirat.texi: New file.
32336         * doc/posix-functions/mkfifoat.texi: New file.
32337         * doc/posix-functions/mknodat.texi: New file.
32338         * doc/posix-functions/open_wmemstream.texi: New file.
32339         * doc/posix-functions/openat.texi: New file.
32340         * doc/posix-functions/psiginfo.texi: New file.
32341         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32342         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32343         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32344         * doc/posix-functions/readlinkat.texi: New file.
32345         * doc/posix-functions/renameat.texi: New file.
32346         * doc/posix-functions/strerror_l.texi: New file.
32347         * doc/posix-functions/symlinkat.texi: New file.
32348         * doc/posix-functions/unlinkat.texi: New file.
32349         * doc/posix-functions/utimensat.texi: New file.
32350         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32351
32352 2008-12-14  Bruno Haible  <bruno@clisp.org>
32353
32354         Update doc for POSIX:2008.
32355         * doc/posix-functions/alphasort.texi: Renamed from
32356         doc/glibc-functions/alphasort.texi.
32357         * doc/posix-functions/dirfd.texi: Renamed from
32358         doc/glibc-functions/dirfd.texi.
32359         * doc/posix-functions/dprintf.texi: Renamed from
32360         doc/glibc-functions/dprintf.texi.
32361         * doc/posix-functions/duplocale.texi: Renamed from
32362         doc/glibc-functions/duplocale.texi.
32363         * doc/posix-functions/fexecve.texi: Renamed from
32364         doc/glibc-functions/fexecve.texi.
32365         * doc/posix-functions/fmemopen.texi: Renamed from
32366         doc/glibc-functions/fmemopen.texi.
32367         * doc/posix-functions/freelocale.texi: Renamed from
32368         doc/glibc-functions/freelocale.texi.
32369         * doc/posix-functions/getdate_err.texi: Renamed from
32370         doc/glibc-functions/getdate_err.texi.
32371         * doc/posix-functions/isalnum_l.texi: Renamed from
32372         doc/glibc-functions/isalnum_l.texi.
32373         * doc/posix-functions/isalpha_l.texi: Renamed from
32374         doc/glibc-functions/isalpha_l.texi.
32375         * doc/posix-functions/isblank_l.texi: Renamed from
32376         doc/glibc-functions/isblank_l.texi.
32377         * doc/posix-functions/iscntrl_l.texi: Renamed from
32378         doc/glibc-functions/iscntrl_l.texi.
32379         * doc/posix-functions/isdigit_l.texi: Renamed from
32380         doc/glibc-functions/isdigit_l.texi.
32381         * doc/posix-functions/isgraph_l.texi: Renamed from
32382         doc/glibc-functions/isgraph_l.texi.
32383         * doc/posix-functions/islower_l.texi: Renamed from
32384         doc/glibc-functions/islower_l.texi.
32385         * doc/posix-functions/isprint_l.texi: Renamed from
32386         doc/glibc-functions/isprint_l.texi.
32387         * doc/posix-functions/ispunct_l.texi: Renamed from
32388         doc/glibc-functions/ispunct_l.texi.
32389         * doc/posix-functions/isspace_l.texi: Renamed from
32390         doc/glibc-functions/isspace_l.texi.
32391         * doc/posix-functions/isupper_l.texi: Renamed from
32392         doc/glibc-functions/isupper_l.texi.
32393         * doc/posix-functions/iswalnum_l.texi: Renamed from
32394         doc/glibc-functions/iswalnum_l.texi.
32395         * doc/posix-functions/iswalpha_l.texi: Renamed from
32396         doc/glibc-functions/iswalpha_l.texi.
32397         * doc/posix-functions/iswblank_l.texi: Renamed from
32398         doc/glibc-functions/iswblank_l.texi.
32399         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32400         doc/glibc-functions/iswcntrl_l.texi.
32401         * doc/posix-functions/iswctype_l.texi: Renamed from
32402         doc/glibc-functions/iswctype_l.texi.
32403         * doc/posix-functions/iswdigit_l.texi: Renamed from
32404         doc/glibc-functions/iswdigit_l.texi.
32405         * doc/posix-functions/iswgraph_l.texi: Renamed from
32406         doc/glibc-functions/iswgraph_l.texi.
32407         * doc/posix-functions/iswlower_l.texi: Renamed from
32408         doc/glibc-functions/iswlower_l.texi.
32409         * doc/posix-functions/iswprint_l.texi: Renamed from
32410         doc/glibc-functions/iswprint_l.texi.
32411         * doc/posix-functions/iswpunct_l.texi: Renamed from
32412         doc/glibc-functions/iswpunct_l.texi.
32413         * doc/posix-functions/iswspace_l.texi: Renamed from
32414         doc/glibc-functions/iswspace_l.texi.
32415         * doc/posix-functions/iswupper_l.texi: Renamed from
32416         doc/glibc-functions/iswupper_l.texi.
32417         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32418         doc/glibc-functions/iswxdigit_l.texi.
32419         * doc/posix-functions/isxdigit_l.texi: Renamed from
32420         doc/glibc-functions/isxdigit_l.texi.
32421         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32422         doc/glibc-functions/mbsnrtowcs.texi.
32423         * doc/posix-functions/mkdtemp.texi: Renamed from
32424         doc/glibc-functions/mkdtemp.texi.
32425         * doc/posix-functions/newlocale.texi: Renamed from
32426         doc/glibc-functions/newlocale.texi.
32427         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32428         doc/glibc-functions/nl_langinfo_l.texi.
32429         * doc/posix-functions/open_memstream.texi: Renamed from
32430         doc/glibc-functions/open_memstream.texi.
32431         * doc/posix-functions/opterr.texi: Renamed from
32432         doc/glibc-functions/opterr.texi.
32433         * doc/posix-functions/optind.texi: Renamed from
32434         doc/glibc-functions/optind.texi.
32435         * doc/posix-functions/optopt.texi: Renamed from
32436         doc/glibc-functions/optopt.texi.
32437         * doc/posix-functions/psignal.texi: Renamed from
32438         doc/glibc-functions/psignal.texi.
32439         * doc/posix-functions/scandir.texi: Renamed from
32440         doc/glibc-functions/scandir.texi.
32441         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32442         doc/glibc-functions/sched_get_priority_min.texi.
32443         * doc/posix-functions/signgam.texi: Renamed from
32444         doc/glibc-functions/signgam.texi.
32445         * doc/posix-functions/stpcpy.texi: Renamed from
32446         doc/glibc-functions/stpcpy.texi.
32447         * doc/posix-functions/stpncpy.texi: Renamed from
32448         doc/glibc-functions/stpncpy.texi.
32449         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32450         doc/glibc-functions/strcasecmp_l.texi.
32451         * doc/posix-functions/strcoll_l.texi: Renamed from
32452         doc/glibc-functions/strcoll_l.texi.
32453         * doc/posix-functions/strfmon_l.texi: Renamed from
32454         doc/glibc-functions/strfmon_l.texi.
32455         * doc/posix-functions/strftime_l.texi: Renamed from
32456         doc/glibc-functions/strftime_l.texi.
32457         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32458         doc/glibc-functions/strncasecmp_l.texi.
32459         * doc/posix-functions/strndup.texi: Renamed from
32460         doc/glibc-functions/strndup.texi.
32461         * doc/posix-functions/strnlen.texi: Renamed from
32462         doc/glibc-functions/strnlen.texi.
32463         * doc/posix-functions/strsignal.texi: Renamed from
32464         doc/glibc-functions/strsignal.texi.
32465         * doc/posix-functions/strxfrm_l.texi: Renamed from
32466         doc/glibc-functions/strxfrm_l.texi.
32467         * doc/posix-functions/timer_gettime.texi: Renamed from
32468         doc/glibc-functions/timer_gettime.texi.
32469         * doc/posix-functions/tolower_l.texi: Renamed from
32470         doc/glibc-functions/tolower_l.texi.
32471         * doc/posix-functions/toupper_l.texi: Renamed from
32472         doc/glibc-functions/toupper_l.texi.
32473         * doc/posix-functions/towctrans_l.texi: Renamed from
32474         doc/glibc-functions/towctrans_l.texi.
32475         * doc/posix-functions/towlower_l.texi: Renamed from
32476         doc/glibc-functions/towlower_l.texi.
32477         * doc/posix-functions/towupper_l.texi: Renamed from
32478         doc/glibc-functions/towupper_l.texi.
32479         * doc/posix-functions/uselocale.texi: Renamed from
32480         doc/glibc-functions/uselocale.texi.
32481         * doc/posix-functions/vdprintf.texi: Renamed from
32482         doc/glibc-functions/vdprintf.texi.
32483         * doc/posix-functions/wcpcpy.texi:
32484         Renamed from doc/glibc-functions/wcpcpy.texi.
32485         * doc/posix-functions/wcpncpy.texi: Renamed from
32486         doc/glibc-functions/wcpncpy.texi.
32487         * doc/posix-functions/wcscasecmp.texi: Renamed from
32488         doc/glibc-functions/wcscasecmp.texi.
32489         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32490         doc/glibc-functions/wcscasecmp_l.texi.
32491         * doc/posix-functions/wcscoll_l.texi: Renamed from
32492         doc/glibc-functions/wcscoll_l.texi.
32493         * doc/posix-functions/wcsdup.texi: Renamed from
32494         doc/glibc-functions/wcsdup.texi.
32495         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32496         doc/glibc-functions/wcsncasecmp.texi.
32497         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32498         doc/glibc-functions/wcsncasecmp_l.texi.
32499         * doc/posix-functions/wcsnlen.texi: Renamed from
32500         doc/glibc-functions/wcsnlen.texi.
32501         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32502         doc/glibc-functions/wcsnrtombs.texi.
32503         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32504         doc/glibc-functions/wcsxfrm_l.texi.
32505         * doc/posix-functions/wctrans_l.texi: Renamed from
32506         doc/glibc-functions/wctrans_l.texi.
32507         * doc/posix-functions/wctype_l.texi: Renamed from
32508         doc/glibc-functions/wctype_l.texi.
32509         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32510         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32511         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32512         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32513         these subsections.
32514         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32515         Remove sections.
32516
32517 2008-12-14  Bruno Haible  <bruno@clisp.org>
32518
32519         Update doc for POSIX:2008.
32520         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32521
32522 2008-12-14  Bruno Haible  <bruno@clisp.org>
32523
32524         Update doc for POSIX:2008.
32525         * doc/pastposix-functions/bcmp.texi: Renamed from
32526         doc/posix-functions/bcmp.texi.
32527         * doc/pastposix-functions/bcopy.texi: Renamed from
32528         doc/posix-functions/bcopy.texi.
32529         * doc/pastposix-functions/bsd_signal.texi: Renamed from
32530         doc/posix-functions/bsd_signal.texi.
32531         * doc/pastposix-functions/bzero.texi: Renamed from
32532         doc/posix-functions/bzero.texi.
32533         * doc/pastposix-functions/ecvt.texi: Renamed from
32534         doc/posix-functions/ecvt.texi.
32535         * doc/pastposix-functions/fcvt.texi: Renamed from
32536         doc/posix-functions/fcvt.texi.
32537         * doc/pastposix-functions/ftime.texi: Renamed from
32538         doc/posix-functions/ftime.texi.
32539         * doc/pastposix-functions/gcvt.texi: Renamed from
32540         doc/posix-functions/gcvt.texi.
32541         * doc/pastposix-functions/getcontext.texi: Renamed from
32542         doc/posix-functions/getcontext.texi.
32543         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32544         doc/posix-functions/gethostbyaddr.texi.
32545         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32546         doc/posix-functions/gethostbyname.texi.
32547         * doc/pastposix-functions/getwd.texi: Renamed from
32548         doc/posix-functions/getwd.texi.
32549         * doc/pastposix-functions/h_errno.texi: Renamed from
32550         doc/posix-functions/h_errno.texi.
32551         * doc/pastposix-functions/index.texi: Renamed from
32552         doc/posix-functions/index.texi.
32553         * doc/pastposix-functions/makecontext.texi: Renamed from
32554         doc/posix-functions/makecontext.texi.
32555         * doc/pastposix-functions/mktemp.texi: Renamed from
32556         doc/posix-functions/mktemp.texi.
32557         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32558         doc/posix-functions/pthread_attr_getstackaddr.texi.
32559         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32560         doc/posix-functions/pthread_attr_setstackaddr.texi.
32561         * doc/pastposix-functions/rindex.texi: Renamed from
32562         doc/posix-functions/rindex.texi.
32563         * doc/pastposix-functions/scalb.texi: Renamed from
32564         doc/posix-functions/scalb.texi.
32565         * doc/pastposix-functions/setcontext.texi: Renamed from
32566         doc/posix-functions/setcontext.texi.
32567         * doc/pastposix-functions/swapcontext.texi: Renamed from
32568         doc/posix-functions/swapcontext.texi.
32569         * doc/pastposix-functions/ualarm.texi: Renamed from
32570         doc/posix-functions/ualarm.texi.
32571         * doc/pastposix-functions/usleep.texi: Renamed from
32572         doc/posix-functions/usleep.texi.
32573         * doc/pastposix-functions/vfork.texi: Renamed from
32574         doc/posix-functions/vfork.texi.
32575         * doc/pastposix-functions/wcswcs.texi: Renamed from
32576         doc/posix-functions/wcswcs.texi.
32577         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32578         (Function Substitutes): Update.
32579
32580 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32581
32582         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32583         m4/strerror.m4.
32584
32585 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32586             Bruno Haible  <bruno@clisp.org>
32587
32588         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32589
32590 2008-12-13  Bruno Haible  <bruno@clisp.org>
32591
32592         * modules/strtoull (Depends-on): Remove unistd.
32593
32594 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32595
32596         * modules/strtoull (Depends-on): Add stdlib.
32597
32598 2008-12-11  Simon Josefsson  <simon@josefsson.org>
32599
32600         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
32601
32602 2008-12-10  Jim Meyering  <meyering@redhat.com>
32603
32604         gl_ASSERT: don't say assertions are disabled when they're not
32605         * m4/assert.m4 (gl_ASSERT): Do not make configure report
32606         "checking whether to enable assertions... no", when they are in
32607         fact enabled.  This is solely a bug in the output of configure.
32608         In spite of saying "no", NDEBUG was not defined in that case.
32609         Also, as noted by Eric Blake, leave assertions enabled upon
32610         --enable-assert=INVALID.
32611
32612 2008-12-10  Bruno Haible  <bruno@clisp.org>
32613
32614         Change MODULES.html to refer to POSIX:2008 where possible.
32615         * MODULES.html.sh (POSIX2008_URL): New variable.
32616         (posix_headers): Remove sys/timeb, ucontext.
32617         (posix2001_headers): New variable.
32618         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
32619         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
32620         index, makecontext, mktemp, pthread_attr_getstackaddr,
32621         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
32622         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
32623         (posix2001_functions): New variable.
32624         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
32625         otherwise.
32626
32627 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32628
32629         add missing include to parse-duration.c
32630         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
32631         * modules/parse-duration (Depends-on): Add xalloc.
32632
32633         fix sed script reading maint.mk
32634         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
32635         (syntax-check-rules): Use it.
32636
32637 2008-12-09  Bruno Haible  <bruno@clisp.org>
32638
32639         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
32640         MacOS X 10.4/PowerPC.
32641         Reported by Simon Josefsson.
32642
32643 2008-12-08  Jim Meyering  <meyering@redhat.com>
32644
32645         work around mingw's lack of some S_IF definitions
32646         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
32647         Reported by Simon Josefsson.
32648
32649 2008-12-08  Bruno Haible  <bruno@clisp.org>
32650
32651         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
32652         applied to variables. Needed on MacOS X 10.4/PowerPC.
32653         Reported by Simon Josefsson.
32654
32655 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
32656         and Eric Blake  <ebb9@byu.net>
32657
32658         assert: honor --enable-assert
32659         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
32660         order to honor --enable-assert, rather than treating it as a
32661         synonym for --disable-assert.
32662
32663 2008-12-08  Jim Meyering  <meyering@redhat.com>
32664
32665         * lib/posixtm.c: Remove now-useless declaration of mktime.
32666
32667         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
32668
32669 2008-12-07  Bruno Haible  <bruno@clisp.org>
32670
32671         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
32672         test_once): Mark functions as static.
32673         * tests/test-tls.c (test_tls): Likewise.
32674
32675 2008-12-07  Bruno Haible  <bruno@clisp.org>
32676
32677         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
32678         iconv_register_autodetect.
32679
32680 2008-12-07  Jim Meyering  <meyering@redhat.com>
32681
32682         posixtm.c: avoid a warning
32683         * lib/posixtm.c (posixtime): Don't initialize tm0.
32684         It's no longer needed to placate gcc4's -Wuninitialized,
32685         and the attempt to placate would elicit a new warning.
32686
32687         unicodeio.c: mark unused parameters
32688         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32689         (fallback_failure_callback): Likewise.
32690
32691 2008-12-07  Bruno Haible  <bruno@clisp.org>
32692
32693         * gnulib-tool (func_create_testdir): When building the tests
32694         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
32695         Reported by Simon Josefsson.
32696
32697 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32698
32699         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
32700
32701 2008-12-06  Bruno Haible  <bruno@clisp.org>
32702
32703         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
32704         Suggested by Eric Blake.
32705
32706 2008-12-06  Bruno Haible  <bruno@clisp.org>
32707
32708         Fix a c-stack test failure on MacOS X.
32709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
32710         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
32711         handler for SIGBUS as well.
32712         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
32713         install a signal handler for SIGBUS as well.
32714         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
32715
32716 2008-12-06  Bruno Haible  <bruno@clisp.org>
32717
32718         Advocacy documentation.
32719         * doc/gnulib-intro.texi (Benefits): New section.
32720         * doc/gnulib.texi: Update.
32721
32722 2008-12-06  Bruno Haible  <bruno@clisp.org>
32723
32724         Document the 'manywarnings' module.
32725         * doc/manywarnings.texi: New file.
32726         * doc/gnulib.texi: Include it.
32727
32728 2008-12-05  Eric Blake  <ebb9@byu.net>
32729
32730         tests: silence some gcc warnings
32731         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
32732         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
32733         type mismatches.
32734
32735 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32736             Bruno Haible  <bruno@clisp.org>
32737
32738         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
32739
32740 2008-11-29  Jim Meyering  <meyering@redhat.com>
32741
32742         unicodeio.c: mark unused parameters
32743         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
32744         (fallback_failure_callback): Likewise.
32745
32746         fts: fix a thinko
32747         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
32748         (set_stat_type): Return S_IF*-valued "type" directly.
32749         Prompted by James Youngman's spotting a related bug.
32750         Confirmed by further testing through find.
32751
32752         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
32753         * lib/fts.c (D_TYPE): Define.
32754         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
32755         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
32756         (s_ifmt_shift_bits): New function.
32757         (set_stat_type): New function.
32758         (fts_build): When not calling fts_stat, call set_stat_type
32759         to propagate dirent.d_type info to fts_read caller.
32760         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
32761         fts_statp->st_mode type information may be valid.
32762
32763 2008-11-28  Simon Josefsson  <simon@josefsson.org>
32764
32765         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
32766         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
32767         <sds@gnu.org>.
32768
32769 2008-11-20  Bruno Haible  <bruno@clisp.org>
32770
32771         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
32772         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
32773         INCLUDE_NEXT.
32774         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
32775         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
32776         * modules/math (Makefile.am): Substitute
32777         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
32778         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32779
32780 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32781             Bruno Haible  <bruno@clisp.org>
32782
32783         * lib/stdint.in.h: Define all type macros so that their expansion is
32784         a single typedef'ed token. Fixes a compilation failure in Boost which
32785         does "using ::int8_t;".
32786
32787 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32788
32789         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
32790         gl_MANYWARN_ALL_GCC.
32791         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
32792         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
32793         * modules/manywarnings: New file.
32794         * MODULES.html.sh: Mention manywarnings module.
32795
32796 2008-11-18  Bruno Haible  <bruno@clisp.org>
32797
32798         * doc/gnulib-tool.texi (Unit tests): New section.
32799
32800 2008-11-18  Simon Josefsson  <simon@josefsson.org>
32801
32802         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
32803         paths like 'lib/po/foo.po'.
32804
32805 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32806
32807         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
32808         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
32809
32810 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32811
32812         * m4/warnings.m4: Use CPPFLAGS to really check whether the
32813         parameter works.
32814
32815 2008-11-17  Simon Josefsson  <simon@josefsson.org>
32816
32817         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
32818
32819 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32820
32821         * modules/parse-duration-tests: New file.
32822         * tests/test-parse-duration.sh: New file.
32823         * tests/test-parse-duration.c: New file.
32824
32825         New module 'parse-duration'.
32826         * lib/parse-duration.h: New file.
32827         * lib/parse-duration.c: New file.
32828         * modules/parse-duration: New file.
32829
32830 2008-11-17  Bruno Haible  <bruno@clisp.org>
32831
32832         * tests/test-select-out.sh: Comment out the first pipe test.
32833         Reported by Simon Josefsson.
32834
32835 2008-11-17  Bruno Haible  <bruno@clisp.org>
32836
32837         * modules/getaddrinfo (Depends-on): Add servent, hostent.
32838         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
32839         gl_HOSTENT.
32840
32841 2008-11-17  Bruno Haible  <bruno@clisp.org>
32842
32843         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
32844         -lnetwork and -lnet. Needed for Haiku and BeOS.
32845
32846 2008-11-16  Bruno Haible  <bruno@clisp.org>
32847
32848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
32849
32850 2008-11-16  Bruno Haible  <bruno@clisp.org>
32851
32852         Avoid test failure on Haiku.
32853         * tests/test-fsync.c: Include <errno.h>.
32854         (main): Don't require that fsync (0) fails.
32855
32856 2008-11-15  Bruno Haible  <bruno@clisp.org>
32857
32858         New module 'hostent'.
32859         * modules/hostent: New file.
32860         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
32861
32862 2008-11-15  Bruno Haible  <bruno@clisp.org>
32863
32864         New module 'servent'.
32865         * modules/servent: New file.
32866         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
32867
32868 2008-11-15  Bruno Haible  <bruno@clisp.org>
32869
32870         Avoid generating same test program with two different rules.
32871         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
32872         test-frexp to test-frexp-nolibm.
32873         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
32874         test-frexpl to test-frexpl-nolibm.
32875
32876 2008-11-15  Bruno Haible  <bruno@clisp.org>
32877
32878         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
32879         $(FREXPL_LIBM).
32880
32881 2008-11-15  Bruno Haible  <bruno@clisp.org>
32882
32883         * lib/netdb.in.h: Activate the definitions also when the system's
32884         <netdb.h> has 'struct addrinfo'.
32885         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
32886         EAI_OVERFLOW or AI_NUMERICSERV.
32887         * doc/posix-headers/netdb.texi: Document the problem.
32888
32889 2008-11-15  Bruno Haible  <bruno@clisp.org>
32890
32891         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
32892
32893         Make the 'sched' module work on platforms where <sched.h> exists but
32894         is incomplete (such as Haiku).
32895         * lib/sched.in.h; Include the system's <sched.h> if it exists.
32896         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
32897         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
32898         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
32899         HAVE_STRUCT_SCHED_PARAM.
32900         * modules/sched (Depends-on): Add include_next.
32901         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
32902         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
32903         * doc/posix-headers/sched.texi: Document the issue.
32904
32905 2008-11-13  Jim Meyering  <meyering@redhat.com>
32906
32907         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
32908         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
32909         test would fail due to the difference in the Report bugs to ...
32910         line.  The expected address is empty, "<>", while the actual
32911         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
32912
32913 2008-11-12  Bruno Haible  <bruno@clisp.org>
32914
32915         lstat: don't compile lstat.c on systems lacking lstat
32916         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
32917         which don't have lstat; this is handled by lib/sys_stat.in.h already.
32918         Reported by Daniel P. Berrange via Jim Meyering.
32919
32920 2008-11-12  Jim Meyering  <meyering@redhat.com>
32921
32922         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
32923
32924 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32925
32926         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
32927         instead.
32928
32929 2008-11-12  Bruno Haible  <bruno@clisp.org>
32930
32931         * lib/unicodeio.c: Include unistr.h.
32932         (utf8_wctomb): Remove function.
32933         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
32934
32935 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32936
32937         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
32938         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
32939         <bruno@clisp.org>.
32940         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
32941
32942 2008-11-12  Simon Josefsson  <simon@josefsson.org>
32943
32944         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
32945         * doc/gnulib.texi: Add section for warnings.
32946
32947 2008-11-11  Bruno Haible  <bruno@clisp.org>
32948
32949         * lib/sockets.h: Add a comment.
32950
32951 2008-11-11  Karl Berry  <karl@gnu.org>
32952
32953         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
32954
32955 2008-11-11  Eric Blake  <ebb9@byu.net>
32956
32957         fdl.texi: avoid git symlinks
32958         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
32959
32960 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32961
32962         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
32963
32964 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32965
32966         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
32967         (gl_WARN_ADD): Substitute $2 if literal.
32968
32969 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32970
32971         * m4/warning.m4: Remove.
32972
32973 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
32974
32975         * m4/warnings.m4: Almost complete rewrite. :-)
32976
32977 2008-11-10  Simon Josefsson  <simon@josefsson.org>
32978
32979         * modules/warnings: New module.
32980         * m4/warnings.m4: New file.
32981         * MODULES.html.sh: Mention warnings module.
32982         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
32983         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32984
32985 2008-11-10  Eric Blake  <ebb9@byu.net>
32986
32987         fdl.texi: make a symlink to the latest version
32988         * doc/standards.texi: Revert today's earlier change.
32989         * doc/fdl-1.2.texi: Rename from old fdl.texi...
32990         * doc/fdl.texi: ...and replace this with a symlink to the newer
32991         fdl-1.3.texi.
32992
32993 2008-11-10  Bruno Haible  <bruno@clisp.org>
32994
32995         * tests/test-select-fd.c (main): Accept the result file name as fourth
32996         argument.
32997         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
32998         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
32999
33000 2008-11-10  Bruno Haible  <bruno@clisp.org>
33001
33002         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
33003         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
33004         as autoconf-substituted macros.
33005         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
33006         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
33007         gl_NETDB_H_DEFAULTS. Set these variables.
33008         * modules/netdb (Makefile.am): Substitute these variables.
33009
33010 2008-11-10  Eric Blake  <ebb9@byu.net>
33011
33012         standards.texi: include correct file for FDL 1.3
33013         * doc/standards.texi (GNU Free Documentation License): Change
33014         include file to pull in FDL 1.3, not 1.2.
33015
33016         fdl.texi: revert accidental change to license
33017         * doc/fdl.texi: This is FDL 1.2, not 1.3.
33018
33019 2008-11-10  Bruno Haible  <bruno@clisp.org>
33020
33021         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
33022         cross-compiling guesses also when the native compile gives no result.
33023
33024 2008-11-10  Bruno Haible  <bruno@clisp.org>
33025
33026         * lib/spawni.c (__spawni): Force variable into the stack.
33027
33028 2008-11-10  Bruno Haible  <bruno@clisp.org>
33029
33030         Add support for Haiku.
33031         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
33032         glibc and BeOS, but also on Haiku.
33033         * lib/fpurge.c (fpurge): Likewise.
33034         * lib/freadable.c (freadable): Likewise.
33035         * lib/freadahead.c (freadahead): Likewise.
33036         * lib/freading.c (freading): Likewise.
33037         * lib/freadptr.c (freadptr): Likewise.
33038         * lib/freadseek.c (freadptrinc): Likewise.
33039         * lib/fseeko.c (rpl_fseeko): Likewise.
33040         * lib/fseterr.c (fseterr): Likewise.
33041         * lib/fwritable.c (fwritable): Likewise.
33042         * lib/fwriting.c (fwriting): Likewise.
33043         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
33044
33045 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33046
33047         * lib/config.charset: Treat Haiku like BeOS.
33048
33049 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33050
33051         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
33052         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
33053
33054 2008-11-08  Bruno Haible  <bruno@clisp.org>
33055
33056         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
33057         AC_CACHE_CHECK.
33058
33059 2008-11-08  Bruno Haible  <bruno@clisp.org>
33060
33061         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
33062
33063 2008-11-08  Bruno Haible  <bruno@clisp.org>
33064
33065         * tests/test-select-fd.c: New file.
33066         * tests/test-select-in.sh: New file.
33067         * tests/test-select-out.sh: New file.
33068         * tests/test-select-stdin.c: New file.
33069         * modules/select-tests (Files): Add the new files.
33070         (Depends-on): Add gettimeofday.
33071         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
33072         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
33073         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
33074
33075 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
33076             Bruno Haible  <bruno@clisp.org>
33077
33078         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
33079
33080 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
33081
33082         * build-aux/pmccabe2html: Added support for C++ source files.
33083
33084 2008-11-05  Ben Pfaff  <blp@gnu.org>
33085
33086         Fix lib/close.c build on Windows.
33087         * modules/close (Files): Add lib/w32sock.h.
33088
33089 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
33090
33091         Accept Bison's NEWS format.
33092         * build-aux/announce-gen (print_news_deltas): Tweak
33093         $re_prefix.
33094
33095 2008-11-04  Bruno Haible  <bruno@clisp.org>
33096
33097         * modules/random_r (Maintainer): Add glibc.
33098
33099 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33100
33101         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
33102         by karl@freefriends.org (Karl Berry).
33103         * doc/alloca.texi: Likewise.
33104         * doc/c-ctype.texi: Likewise.
33105         * doc/c-strcase.texi: Likewise.
33106         * doc/c-strcaseeq.texi: Likewise.
33107         * doc/c-strcasestr.texi: Likewise.
33108         * doc/c-strstr.texi: Likewise.
33109         * doc/c-strtod.texi: Likewise.
33110         * doc/c-strtold.texi: Likewise.
33111         * doc/ctime.texi: Likewise.
33112         * doc/error.texi: Likewise.
33113         * doc/fdl.texi: Likewise.
33114         * doc/gcd.texi: Likewise.
33115         * doc/getdate.texi: Likewise.
33116         * doc/gnulib-intro.texi: Likewise.
33117         * doc/gnulib-tool.texi: Likewise.
33118         * doc/gnulib.texi: Likewise.
33119         * doc/inet_ntoa.texi: Likewise.
33120         * doc/maintain.texi: Likewise.
33121         * doc/make-stds.texi: Likewise.
33122         * doc/quote.texi: Likewise.
33123         * doc/regexprops-generic.texi: Likewise.
33124         * doc/standards.texi: Likewise.
33125         * doc/verify.texi: Likewise.
33126         * doc/visibility.texi: Likewise.
33127         * doc/gnulib.texi (GNU Free Documentation License): Include
33128         fdl-1.3.texi instead of fdl.texi.
33129
33130 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33131
33132         * doc/fdl-1.3.texi: New file, from
33133         <http://www.gnu.org/licenses/fdl-1.3.texi>.
33134         * modules/fdl-1.3: Add.
33135         * MODULES.html.sh: Add fdl-1.3.
33136
33137 2008-11-03  Bruno Haible  <bruno@clisp.org>
33138
33139         Make determination of absolute name of header file work with AIX xlc.
33140         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
33141         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
33142         preprocessing.
33143         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33144         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33145
33146 2008-11-03  Simon Josefsson  <simon@josefsson.org>
33147
33148         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
33149         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
33150         <ludo@gnu.org>.
33151
33152 2008-11-02  Bruno Haible  <bruno@clisp.org>
33153
33154         Mark 'strpbrk' obsolete.
33155         * modules/strpbrk (Status, Notice): New sections.
33156         * modules/strtok_r (Depends-on): Add strpbrk.
33157
33158 2008-11-02  Bruno Haible  <bruno@clisp.org>
33159
33160         Mark 'strdup' obsolete.
33161         * modules/strdup (Status, Notice): New sections.
33162         * modules/findprog (Depends-on): Add strdup.
33163         * modules/getaddrinfo (Depends-on): Likewise.
33164         * modules/localename (Depends-on): Likewise.
33165         * modules/relocatable-lib (Depends-on): Likewise.
33166         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33167         * modules/relocatable-prog (Depends-on): Likewise.
33168         * modules/trim (Depends-on): Likewise.
33169         * modules/unictype/gen-ctype (Depends-on): Likewise.
33170         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33171
33172 2008-11-02  Bruno Haible  <bruno@clisp.org>
33173
33174         Mark 'strcspn' obsolete.
33175         * modules/strcspn (Status, Notice): New sections.
33176
33177 2008-11-02  Bruno Haible  <bruno@clisp.org>
33178
33179         Mark 'rmdir' obsolete.
33180         * modules/rmdir (Status, Notice): New sections.
33181         * modules/clean-temp (Depends-on): Add rmdir.
33182         * modules/openat (Depends-on): Likewise.
33183
33184 2008-11-02  Bruno Haible  <bruno@clisp.org>
33185
33186         Mark 'raise' obsolete.
33187         * modules/raise (Status, Notice): New sections.
33188         (Include): Specify <signal.h>.
33189         * modules/stdio (Depends-on): Add raise.
33190         * modules/write (Depends-on): Likewise.
33191
33192 2008-11-02  Bruno Haible  <bruno@clisp.org>
33193
33194         Mark 'memset' obsolete.
33195         * modules/memset (Status, Notice): New sections.
33196
33197 2008-11-02  Bruno Haible  <bruno@clisp.org>
33198
33199         Mark 'memmove' obsolete.
33200         * modules/memmove (Status, Notice): New sections.
33201         * modules/argp (Depends-on): Add memmove.
33202         * modules/argz (Depends-on): Likewise.
33203         * modules/canonicalize (Depends-on): Likewise.
33204         * modules/canonicalize-lgpl (Depends-on): Likewise.
33205         * modules/fts (Depends-on): Likewise.
33206         * modules/getcwd (Depends-on): Likewise.
33207         * modules/human (Depends-on): Likewise.
33208         * modules/regex (Depends-on): Likewise.
33209         * modules/striconveh (Depends-on): Likewise.
33210         * modules/trim (Depends-on): Likewise.
33211         * modules/unistr/u8-move (Depends-on): Likewise.
33212         * modules/unistr/u16-move (Depends-on): Likewise.
33213         * modules/unistr/u32-move (Depends-on): Likewise.
33214
33215 2008-11-02  Bruno Haible  <bruno@clisp.org>
33216
33217         Mark 'memcpy' obsolete.
33218         * modules/memcpy (Status, Notice): New sections.
33219
33220 2008-11-02  Bruno Haible  <bruno@clisp.org>
33221
33222         Mark 'memcmp' obsolete.
33223         * modules/memcmp (Status, Notice): New sections.
33224         * modules/argmatch (Depends-on): Add memchr.
33225         * modules/backupfile (Depends-on): Likewise.
33226         * modules/c-strcasestr (Depends-on): Likewise.
33227         * modules/crypto/des (Depends-on): Likewise.
33228         * modules/csharpcomp (Depends-on): Likewise.
33229         * modules/fnmatch (Depends-on): Likewise.
33230         * modules/git-merge-changelog (Depends-on): Likewise.
33231         * modules/isnand (Depends-on): Likewise.
33232         * modules/isnand-nolibm (Depends-on): Likewise.
33233         * modules/isnanf (Depends-on): Likewise.
33234         * modules/isnanf-nolibm (Depends-on): Likewise.
33235         * modules/isnanl (Depends-on): Likewise.
33236         * modules/isnanl-nolibm (Depends-on): Likewise.
33237         * modules/mbchar (Depends-on): Likewise.
33238         * modules/memcoll (Depends-on): Likewise.
33239         * modules/quotearg (Depends-on): Likewise.
33240         * modules/regex (Depends-on): Likewise.
33241         * modules/relocatable-prog (Depends-on): Likewise.
33242         * modules/same (Depends-on): Likewise.
33243         * modules/signbit (Depends-on): Likewise.
33244         * modules/strcasestr-simple (Depends-on): Likewise.
33245         * modules/unictype/gen-ctype (Depends-on): Likewise.
33246         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33247         * modules/uniname/uniname (Depends-on): Likewise.
33248         * modules/unistr/u8-cmp (Depends-on): Likewise.
33249
33250 2008-11-02  Bruno Haible  <bruno@clisp.org>
33251
33252         Mark 'memchr' obsolete.
33253         * modules/memchr (Status, Notice): New sections.
33254         * modules/argp (Depends-on): Add memchr.
33255         * modules/base64 (Depends-on): Likewise.
33256         * modules/c-strcasestr (Depends-on): Likewise.
33257         * modules/chdir-long (Depends-on): Likewise.
33258         * modules/fnmatch (Depends-on): Likewise.
33259         * modules/getsubopt (Depends-on): Likewise.
33260         * modules/git-merge-changelog (Depends-on): Likewise.
33261         * modules/glob (Depends-on): Likewise.
33262         * modules/strcasestr-simple (Depends-on): Likewise.
33263         * modules/strnlen (Depends-on): Likewise.
33264
33265 2008-11-02  Bruno Haible  <bruno@clisp.org>
33266
33267         Mark 'atexit' obsolete.
33268         * modules/atexit (Status, Notice): New sections.
33269         * modules/chdir-long (Depends-on): Add atexit.
33270         * modules/wait-process (Depends-on): Likewise.
33271
33272 2008-11-02  Bruno Haible  <bruno@clisp.org>
33273
33274         * gnulib-tool: New option --with-obsolete.
33275         (func_usage): Document it.
33276         (func_modules_transitive_closure): Drop obsolete dependencies if
33277         incobsolete is not true.
33278         (func_import): Read and save the incobsolete variable to the cache.
33279
33280 2008-11-02  Bruno Haible  <bruno@clisp.org>
33281
33282         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33283         * gnulib-tool: New option --extract-status.
33284         (func_usage): Document it.
33285         (sed_extract_prog): Recognize it.
33286         (func_get_status): New function.
33287
33288 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33289
33290         * modules/sockets (License): Change from LGPL to LGPLv2+.
33291
33292 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33293
33294         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33295
33296 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33297
33298         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33299         Mention times and sys_times.
33300         * modules/sys_times, modules/sys_times-tests: New modules.
33301         * modules/times, modules/times-tests: Likewise
33302         * m4/sys_times_h.m4: New file.
33303         * lib/sys_times.in.h: Likewise
33304         * lib/times.c: Likewise.
33305         * tests/test-sys_times.c: Likewise.
33306         * tests/test-times.c: Likewise.
33307         * doc/posix-headers/sys_times.texi: Update.
33308         * doc/posix-functions/times.texi: Update.
33309
33310 2008-10-28  Jim Meyering  <meyering@redhat.com>
33311
33312         * modules/tempname (Depends-on): Add lstat.
33313
33314         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33315
33316 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33317
33318         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33319         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33320         using idiom used elsewhere in gnulib.
33321
33322 2008-10-27  Jim Meyering  <meyering@redhat.com>
33323
33324         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33325
33326 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33327
33328         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33329         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33330         programs.
33331         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33332
33333 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33334
33335         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33336
33337 2008-10-27  Bruno Haible  <bruno@clisp.org>
33338
33339         * tests/test-lstat.c: Include <stdio.h>.
33340
33341 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33342
33343         * modules/lstat-tests: New module.
33344         * tests/test-lstat.c: New file.
33345
33346 2008-10-26  Jim Meyering  <meyering@redhat.com>
33347
33348         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33349
33350 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33351             Bruno Haible  <bruno@clisp.org>
33352
33353         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33354         * modules/configmake (Include): Add a note that the include must come
33355         after all system headers.
33356         * lib/javaversion.c: Include configmake.h after all other includes.
33357
33358 2008-10-26  Bruno Haible  <bruno@clisp.org>
33359
33360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33361         HAVE_STRUCT_RANDOM_DATA to 1.
33362         (gl_STDLIB_H): Simplify.
33363
33364 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33365
33366         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33367         substitute HAVE_STRUCT_RANDOM_DATA.
33368         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33369         random_data.
33370         * modules/stdlib (Makefile.am): Substitute
33371         HAVE_STRUCT_RANDOM_DATA.
33372
33373 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33374
33375         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33376         * doc/gnulib-intro.texi (Copyright): Likewise.
33377
33378 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33379
33380         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33381         findings.
33382
33383 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33384             Bruno Haible  <bruno@clisp.org>
33385
33386         * lib/unistd.in.h: Include <winsock2.h>.
33387         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33388         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33389         Provide dummy declarations.
33390         (gethostname): Override.
33391         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33392         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33393         gl_PREREQ_SYS_H_WINSOCK2.
33394         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33395         * doc/posix-functions/gethostname.texi: More details.
33396
33397 2008-10-25  Bruno Haible  <bruno@clisp.org>
33398
33399         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33400         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33401         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33402
33403         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33404         here ...
33405         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33406         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33407         gl_UNISTD_H_DEFAULTS.
33408
33409 2008-10-25  Eric Blake  <ebb9@byu.net>
33410
33411         signbit: avoid spurious compiler failure
33412         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33413         declarations inside function.
33414
33415 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33416             Bruno Haible  <bruno@clisp.org>
33417
33418         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33419         * modules/random_r (Depends-on): Add stdint.
33420
33421 2008-10-24  Bruno Haible  <bruno@clisp.org>
33422
33423         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33424         Eggert.
33425         * modules/strerror (License): Likewise.
33426
33427 2008-10-24  Jim Meyering  <meyering@redhat.com>
33428
33429         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33430         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33431
33432 2008-10-24  Eric Blake  <ebb9@byu.net>
33433
33434         getgroups: fix compilation when getgroups is available
33435         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33436         but with <config.h> override of getgroups disabled.
33437
33438 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33439
33440         * doc/gnulib.texi (Header files): Add note about C++ problems.
33441         Explained by Bruno Haible <bruno@clisp.org>.
33442
33443 2008-10-23  Bruno Haible  <bruno@clisp.org>
33444
33445         Define a dummy SA_NODEFER macro on Interix.
33446         * lib/signal.in.h (SA_NODEFER): Define fallback.
33447         Reported by Aleksey Cheusov <cheusov@tut.by> via
33448         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33449
33450 2008-10-23  Bruno Haible  <bruno@clisp.org>
33451
33452         * modules/freadahead (License): Change to LGPLv2+.
33453         Suggested by Simon Josefsson.
33454
33455 2008-10-23  Jim Meyering  <meyering@redhat.com>
33456
33457         random_r: new module
33458         * modules/random_r: New file.
33459         * m4/random_r.m4: New file.
33460         * lib/random_r.c: New file, from glibc.
33461         * modules/random_r-tests: New file.
33462         * tests/test-random_r.c: New file.
33463         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33464          Declare.
33465         (RAND_MAX): Define.
33466         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33467         * modules/stdlib: Substitute them, too.
33468         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33469         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33470         * doc/glibc-functions/random_r.texi: Likewise.
33471         * doc/glibc-functions/setstate_r.texi: Likewise.
33472         * doc/glibc-functions/srandom_r.texi: Likewise.
33473         * config/srclist.txt: Mention it.
33474
33475 2008-10-23  David Lutterkort  <lutter@redhat.com>
33476
33477         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33478         link requirement
33479
33480 2008-10-23  Jim Meyering  <meyering@redhat.com>
33481
33482         selinux-h: mark parameters of stub functions as intentionally unused
33483         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33484         * lib/se-context.in.h: Likewise.
33485
33486 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33487
33488         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33489
33490 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33491
33492         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33493
33494 2008-10-22  Eric Blake  <ebb9@byu.net>
33495
33496         glthread/thread: avoid compiler warning
33497         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33498         Add unreachable abort to silence compiler.
33499
33500 2008-10-22  Eric Blake  <ebb9@byu.net>
33501
33502         netdb: also supply struct addrinfo for cygwin 1.5.x
33503         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33504         older cygwin.
33505         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33506         cygwin.
33507         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33508
33509 2008-10-22  Bruno Haible  <bruno@clisp.org>
33510
33511         * users.txt: Update entry about pspp.
33512
33513 2008-10-21  Bruno Haible  <bruno@clisp.org>
33514
33515         Simplification.
33516         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33517         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33518
33519         Simplification.
33520         * lib/ioctl.c (ioctl): Don't undefine.
33521         * lib/socket.c (socket): Don't undefine.
33522
33523         Remove unused module indicator macros.
33524         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33525         GNULIB_$1 as a C macro.
33526
33527         * doc/posix-functions/close.texi: Undo last change.
33528         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33529         Windows platforms.
33530
33531 2008-10-21  Bruno Haible  <bruno@clisp.org>
33532
33533         Add gethostname() declaration to <unistd.h>.
33534         * lib/unistd.in.h (gethostname): New declaration.
33535         * lib/gethostname.c: Include <unistd.h>.
33536         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33537         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33539         and HAVE_GETHOSTNAME.
33540         * modules/gethostname (Depends-on): Add unistd.
33541         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33542         (Include): Specify <unistd.h>.
33543         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33544         HAVE_GETHOSTNAME.
33545         * tests/test-gethostname.c: Include <unistd.h> first.
33546
33547 2008-10-21  Bruno Haible  <bruno@clisp.org>
33548
33549         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33550         * modules/select-tests (Depends-on): Likewise.
33551         Reported by Simon Josefsson.
33552
33553 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33554
33555         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33556         * lib/accept.c: New file, based on winsock.c.
33557         * lib/bind.c: New file, based on winsock.c.
33558         * lib/connect.c: New file, based on winsock.c.
33559         * lib/getpeername.c: New file, based on winsock.c.
33560         * lib/getsockname.c: New file, based on winsock.c.
33561         * lib/getsockopt.c: New file, based on winsock.c.
33562         * lib/ioctl.c: New file, based on winsock.c.
33563         * lib/listen.c: New file, based on winsock.c.
33564         * lib/recv.c: New file, based on winsock.c.
33565         * lib/recvfrom.c: New file, based on winsock.c.
33566         * lib/send.c: New file, based on winsock.c.
33567         * lib/sendto.c: New file, based on winsock.c.
33568         * lib/setsockopt.c: New file, based on winsock.c.
33569         * lib/shutdown.c: New file, based on winsock.c.
33570         * lib/socket.c: New file, based on winsock.c.
33571         * lib/w32sock.h: New file, based on winsock.c.
33572         * lib/winsock.c: Remove file.
33573         * modules/accept: Likewise.
33574         * modules/bind: Likewise.
33575         * modules/connect: Likewise.
33576         * modules/getpeername: Likewise.
33577         * modules/getsockname: Likewise.
33578         * modules/getsockopt: Likewise.
33579         * modules/ioctl: Likewise.
33580         * modules/listen: Likewise.
33581         * modules/recv: Likewise.
33582         * modules/recvfrom: Likewise.
33583         * modules/send: Likewise.
33584         * modules/sendto: Likewise.
33585         * modules/setsockopt: Likewise.
33586         * modules/shutdown: Likewise.
33587         * modules/socket: Use socket.c instead of winsock.c.
33588         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33589         * doc/posix-functions/accept.texi: Doc fix.
33590         * doc/posix-functions/bind.texi: Doc fix.
33591         * doc/posix-functions/close.texi: Doc fix.
33592         * doc/posix-functions/connect.texi: Doc fix.
33593         * doc/posix-functions/getpeername.texi: Doc fix.
33594         * doc/posix-functions/getsockname.texi: Doc fix.
33595         * doc/posix-functions/getsockopt.texi: Doc fix.
33596         * doc/posix-functions/ioctl.texi: Doc fix.
33597         * doc/posix-functions/listen.texi: Doc fix.
33598         * doc/posix-functions/recv.texi: Doc fix.
33599         * doc/posix-functions/recvfrom.texi: Doc fix.
33600         * doc/posix-functions/send.texi: Doc fix.
33601         * doc/posix-functions/sendto.texi: Doc fix.
33602         * doc/posix-functions/setsockopt.texi: Doc fix.
33603         * doc/posix-functions/shutdown.texi: Doc fix.
33604         * doc/posix-functions/socket.texi: Doc fix.
33605
33606 2008-10-20  Bruno Haible  <bruno@clisp.org>
33607
33608         Take into account the role of SIGABRT_COMPAT on Windows 2008.
33609         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
33610         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
33611         as an alias for SIGABRT.
33612         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
33613         (sigaction): Map it to SIGABRT.
33614         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
33615
33616 2008-10-20  Bruno Haible  <bruno@clisp.org>
33617
33618         * lib/fts.c: Don't include lstat.h.
33619         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
33620
33621         Move the lstat() declaration to <sys/stat.h>.
33622         * lib/lstat.h: Remove file.
33623         * lib/sys_stat.in.h: Add special invocation convention.
33624         (lstat): New declaration.
33625         * lib/lstat.c (orig_lstat): New function.
33626         (rpl_lstat): Use orig_lstat instead of lstat.
33627         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
33628         AC_C_INLINE. Set REPLACE_LSTAT.
33629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
33630         and REPLACE_LSTAT.
33631         * modules/lstat (Files): Remove lib/lstat.h.
33632         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33633         (Include): Specify <sys/stat.h> instead of lstat.h.
33634         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
33635         REPLACE_LSTAT.
33636         * NEWS: Mention the change.
33637
33638 2008-10-20  Bruno Haible  <bruno@clisp.org>
33639
33640         * modules/posix_spawn-tests: New file.
33641         * tests/test-posix_spawn3.c: New file.
33642
33643 2008-10-20  Bruno Haible  <bruno@clisp.org>
33644
33645         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
33646         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33647         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
33648         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33649         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
33650
33651 2008-10-20  Bruno Haible  <bruno@clisp.org>
33652
33653         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
33654         of posix_spawn on AIX 5.3.
33655
33656 2008-10-20  Bruno Haible  <bruno@clisp.org>
33657
33658         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
33659
33660 2008-10-20  Bruno Haible  <bruno@clisp.org>
33661
33662         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
33663         of AC_LANG_PROGRAM.
33664
33665 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33666
33667         * lib/netdb.in.h: Don't define GNU specific constants until they
33668         are supported or needed.  Reported by Bruno Haible
33669         <bruno@clisp.org>.
33670
33671 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33672
33673         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
33674
33675 2008-10-20  Simon Josefsson  <simon@josefsson.org>
33676
33677         * lib/getaddrinfo.h: Remove file.
33678         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
33679         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
33680         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
33681         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
33682         * modules/netdb: Substitute GNULIB_GETADDRINFO.
33683         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
33684         * tests/test-getaddrinfo.c: Likewise.
33685         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
33686         * NEWS: Mention change.
33687
33688 2008-10-19  Bruno Haible  <bruno@clisp.org>
33689
33690         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
33691
33692 2008-10-19  Bruno Haible  <bruno@clisp.org>
33693
33694         * lib/wait-process.c: Include simply <sys/wait.h>.
33695         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
33696         WIFSTOPPED): Remove fallback definitions.
33697         * modules/wait-process (Depends-on): Add sys_wait.
33698
33699         New module 'sys_wait'.
33700         * modules/sys_wait: New file.
33701         * lib/sys_wait.in.h: New file, partially copied from
33702         lib/wait-process.c.
33703         * m4/sys_wait_h.m4: New file.
33704         * doc/posix-headers/sys_wait.texi: Mention the new module.
33705
33706 2008-10-19  Bruno Haible  <bruno@clisp.org>
33707
33708         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
33709
33710 2008-10-19  Bruno Haible  <bruno@clisp.org>
33711
33712         Assume that waitpid() fills an 'int' status, not a 'union wait'.
33713         * lib/wait-process.c (WAIT_T): Remove type.
33714         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
33715         (wait_subprocess): Update.
33716
33717 2008-10-19  Bruno Haible  <bruno@clisp.org>
33718
33719         New module 'atoll'.
33720         * modules/atoll: New file.
33721         * lib/stdlib.in.h (atoll): New declaration.
33722         * lib/atoll.c: New file, from glibc with modifications.
33723         * m4/atoll.m4: New file.
33724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
33725         HAVE_ATOLL.
33726         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
33727         * doc/posix-functions/atoll.texi: Mention the new module.
33728
33729 2008-10-19  Bruno Haible  <bruno@clisp.org>
33730
33731         Add strtoull() declaration to <stdlib.h>.
33732         * lib/stdlib.in.h (strtoull): New declaration.
33733         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33734         Set HAVE_STRTOULL.
33735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
33736         HAVE_STRTOULL.
33737         * modules/strtoull (Depends-on): Add stdlib.
33738         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33739         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
33740         HAVE_STRTOULL.
33741
33742 2008-10-19  Bruno Haible  <bruno@clisp.org>
33743
33744         Add strtoll() declaration to <stdlib.h>.
33745         * lib/stdlib.in.h (strtoll): New declaration.
33746         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
33747         Set HAVE_STRTOLL.
33748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
33749         HAVE_STRTOLL.
33750         * modules/strtoll (Depends-on): Add stdlib.
33751         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33752         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
33753
33754 2008-10-19  Bruno Haible  <bruno@clisp.org>
33755
33756         * modules/bcopy (Depends-on): Add strings.
33757         (Include): Specify <strings.h>.
33758
33759 2008-10-19  Bruno Haible  <bruno@clisp.org>
33760
33761         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
33762
33763 2008-10-19  Bruno Haible  <bruno@clisp.org>
33764
33765         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
33766         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
33767         mingw.
33768
33769 2008-10-19  Bruno Haible  <bruno@clisp.org>
33770
33771         * lib/atanl.c: Don't include isnanl.h.
33772         * lib/cosl.c: Likewise.
33773         * lib/ldexpl.c: Likewise.
33774         * lib/logl.c: Likewise.
33775         * lib/sinl.c: Likewise.
33776         * lib/sqrtl.c: Likewise.
33777         * lib/tanl.c: Likewise.
33778
33779         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
33780         * lib/isnanf.h: Remove file.
33781         * lib/isnand.h: Remove file.
33782         * lib/isnanl.h: Remove file.
33783         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
33784         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
33785         macros.
33786         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
33787         HAVE_ISNANF, don't define it as a C macro.
33788         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
33789         HAVE_ISNAND, don't define it as a C macro.
33790         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
33791         HAVE_ISNANL, don't define it as a C macro.
33792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
33793         HAVE_ISNAN[FDL].
33794         * modules/isnanf (Files): Remove lib/isnanf.h.
33795         (Depends-on): Add math.
33796         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33797         (Include): Specify <math.h> instead of isnanf.h.
33798         * modules/isnand (Files): Remove lib/isnand.h.
33799         (Depends-on): Add math.
33800         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33801         (Include): Specify <math.h> instead of isnand.h.
33802         * modules/isnanl (Files): Remove lib/isnanl.h.
33803         (Depends-on): Add math.
33804         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
33805         (Include): Specify <math.h> instead of isnanl.h.
33806         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
33807         HAVE_ISNAN[FDL].
33808         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
33809         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
33810         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
33811         * NEWS: Mention the change.
33812
33813 2008-10-18  Bruno Haible  <bruno@clisp.org>
33814
33815         Add getusershell(), setusershell(), endusershell() declarations to
33816         <unistd.h>.
33817         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
33818         declarations.
33819         * lib/getusershell.c: Include unistd.h.
33820         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
33821         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33822         HAVE_GETUSERSHELL.
33823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
33824         and HAVE_GETUSERSHELL.
33825         * modules/getusershell (Depends-on): Add unistd, extensions.
33826         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33827         (Include): Specify <unistd.h>.
33828         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
33829         HAVE_GETUSERSHELL.
33830
33831 2008-10-18  Bruno Haible  <bruno@clisp.org>
33832
33833         Add a getloadavg() declaration to <stdlib.h>.
33834         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
33835         getloadavg declaration.
33836         (getloadavg): New declaration.
33837         * lib/getloadavg.c: Include <stdlib.h> first.
33838         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
33839         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
33840         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
33841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
33842         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33843         * modules/getloadavg (Depends-on): Add stdlib, extensions.
33844         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33845         (Include): Specify <stdlib.h>.
33846         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
33847         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
33848
33849 2008-10-18  Bruno Haible  <bruno@clisp.org>
33850
33851         * lib/dirchownmod.c: Don't include lchmod.h.
33852
33853         Move the lchmod() declaration to <sys/stat.h>.
33854         * lib/lchmod.h: Remove file.
33855         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
33856         (lchmod): New declaration, moved here from lib/lchown.h.
33857         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
33858         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
33859         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
33860         and HAVE_LCHMOD.
33861         * modules/lchmod (Files): Remove lib/lchmod.h.
33862         (Depends-on): Add sys_stat, extensions.
33863         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33864         (Include): Specify <sys/stat.h> instead of lchmod.h.
33865         * modules/sys_stat (Depends-on): Add link-warning.
33866         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
33867         definition of GL_LINK_WARNING.
33868         * NEWS: Mention the change.
33869
33870 2008-10-18  Bruno Haible  <bruno@clisp.org>
33871
33872         * lib/fchdir.c: Don't include dirfd.h.
33873         * lib/fts.c: Likewise.
33874         * lib/getcwd.c: Likewise.
33875         * lib/glob.c: Likewise.
33876
33877         Move the dirfd() declaration to <dirent.h>.
33878         * lib/dirfd.h: Remove file.
33879         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
33880         (dirfd): New declaration.
33881         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
33882         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
33883         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
33884         HAVE_DECL_DIRFD.
33885         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
33886         HAVE_DECL_DIRFD.
33887         * modules/dirfd (Files): Remove lib/dirfd.h.
33888         (Depends-on): Add dirent, extensions.
33889         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
33890         (Include): Specify <dirent.h> instead of dirfd.h.
33891         * modules/dirent (Depends-on): Add link-warning.
33892         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
33893         definition of GL_LINK_WARNING.
33894         * NEWS: Mention the change.
33895
33896 2008-10-18  Bruno Haible  <bruno@clisp.org>
33897
33898         Move the euidaccess() declaration to <unistd.h>.
33899         * lib/euidaccess.h: Remove file.
33900         * lib/unistd.in.h (euidaccess): New declaration.
33901         * lib/euidaccess.c: Don't include euidaccess.h.
33902         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
33903         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
33904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
33905         and HAVE_EUIDACCESS.
33906         * modules/euidaccess (Files): Remove lib/euidaccess.h.
33907         (Depends-on): Add unistd.
33908         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33909         (Include): Specify <unistd.h> instead of euidaccess.h.
33910         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
33911         HAVE_EUIDACCESS.
33912         * NEWS: Mention the change.
33913
33914 2008-10-18  Bruno Haible  <bruno@clisp.org>
33915
33916         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
33917
33918         Move the getdomainname() declaration to <unistd.h>.
33919         * lib/getdomainname.h: Remove file.
33920         * lib/unistd.in.h (getdomainname): New declaration.
33921         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
33922         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
33923         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
33924         HAVE_GETDOMAINNAME.
33925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33926         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
33927         * modules/getdomainname (Files): Remove lib/getdomainname.h.
33928         (Depends-on): Add unistd, extensions.
33929         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33930         (Includes): Specify <unistd.h> instead of getdomainname.h.
33931         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
33932         HAVE_GETDOMAINNAME.
33933         * NEWS: Mention the change.
33934
33935 2008-10-18  Bruno Haible  <bruno@clisp.org>
33936
33937         * modules/dirent: New file.
33938         * m4/dirent_h.m4: New file.
33939         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
33940         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
33941         * modules/fchdir (Files): Remove lib/dirent.in.h.
33942         (Depends-on): Add dirent.
33943         (Makefile.am): Move rules to modules/dirent.
33944         * doc/posix-headers/dirent.texi: Mention the new module.
33945
33946 2008-10-18  Bruno Haible  <bruno@clisp.org>
33947
33948         Avoid -Wunused-parameter warnings in public gnulib header files.
33949         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
33950         macro.
33951         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
33952
33953 2008-10-18  Bruno Haible  <bruno@clisp.org>
33954
33955         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
33956         * doc/glibc-functions/error.texi: Mention the module 'error'.
33957         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
33958         * doc/glibc-functions/getdomainname.texi: Mention the module
33959         'getdomainname'.
33960         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
33961         * doc/glibc-functions/getpagesize.texi: Mention the module
33962         'getpagesize'.
33963         * doc/glibc-functions/getusershell.texi: Mention the module
33964         'getusershell'.
33965         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
33966         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
33967         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
33968         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
33969         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
33970         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
33971         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
33972         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
33973         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
33974         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
33975         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
33976         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
33977         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
33978         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
33979
33980 2008-10-17  Bruno Haible  <bruno@clisp.org>
33981
33982         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
33983         HP-UX and IRIX, use -0.0L.
33984         * tests/test-ceill.c (minus_zero): Likewise.
33985         * tests/test-floorl.c (minus_zero): Likewise.
33986         * tests/test-frexpl.c (minus_zero): Likewise.
33987         * tests/test-isnan.c (minus_zerol): Likewise.
33988         * tests/test-isnanl.h (minus_zero): Likewise.
33989         * tests/test-ldexpl.c (minus_zero): Likewise.
33990         * tests/test-roundl.c (minus_zero): Likewise.
33991         * tests/test-signbit.c (minus_zerol): Likewise.
33992         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33993         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33994         * tests/test-truncl.c (minus_zero): Likewise.
33995         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33996         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33997         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
33998         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33999
34000 2008-10-17  Bruno Haible  <bruno@clisp.org>
34001
34002         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
34003         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
34004         that it gets activated only for gcc >= 3.0.
34005         * lib/dirent.in.h: Likewise.
34006         * lib/errno.in.h: Likewise.
34007         * lib/fcntl.in.h: Likewise.
34008         * lib/float.in.h: Likewise.
34009         * lib/iconv.in.h: Likewise.
34010         * lib/inttypes.in.h: Likewise.
34011         * lib/locale.in.h: Likewise.
34012         * lib/math.in.h: Likewise.
34013         * lib/netdb.in.h: Likewise.
34014         * lib/netinet_in.in.h: Likewise.
34015         * lib/search.in.h: Likewise.
34016         * lib/signal.in.h: Likewise.
34017         * lib/spawn.in.h: Likewise.
34018         * lib/stdarg.in.h: Likewise.
34019         * lib/stdint.in.h: Likewise.
34020         * lib/stdio.in.h: Likewise.
34021         * lib/stdlib.in.h: Likewise.
34022         * lib/string.in.h: Likewise.
34023         * lib/strings.in.h: Likewise.
34024         * lib/sys_file.in.h: Likewise.
34025         * lib/sys_ioctl.in.h: Likewise.
34026         * lib/sys_select.in.h: Likewise.
34027         * lib/sys_socket.in.h: Likewise.
34028         * lib/sys_stat.in.h: Likewise.
34029         * lib/sys_time.in.h: Likewise.
34030         * lib/sysexits.in.h: Likewise.
34031         * lib/time.in.h: Likewise.
34032         * lib/unistd.in.h: Likewise.
34033         * lib/wchar.in.h: Likewise.
34034         * lib/wctype.in.h: Likewise.
34035         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34036
34037 2008-10-17  Jim Meyering  <meyering@redhat.com>
34038
34039         ignore-value: don't depend on inline module
34040         * modules/ignore-value (Depends-on): Remove 'inline'.
34041         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
34042         Suggestion from Bruno Haible.
34043
34044 2008-10-17  Bruno Haible  <bruno@clisp.org>
34045
34046         New implementation of condition variables for Win32.
34047         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
34048         (gl_linked_waitqueue_t): New type.
34049         (gl_cond_t): Use it.
34050         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
34051         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
34052         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
34053         (glthread_cond_init_func, glthread_cond_wait_func,
34054         glthread_cond_timedwait_func, glthread_cond_signal_func,
34055         glthread_cond_broadcast_func, glthread_cond_destroy_func):
34056         Reimplemented on the basis of gl_linked_waitqueue_t.
34057         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
34058         gl_waitqueue_t.
34059         (gl_rwlock_t): Update.
34060         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
34061
34062 2008-10-17  Simon Josefsson  <simon@josefsson.org>
34063
34064         * modules/recvfrom (Depends-on): Add dependency on getpeername.
34065         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34066
34067 2008-10-17  Jim Meyering  <meyering@redhat.com>
34068
34069         ignore-value: new module
34070         * modules/ignore-value: New file.
34071         * lib/ignore-value.h: New file.
34072         * MODULES.html.sh (Compiler warning management): New section,
34073         just for this module.  More to come.
34074
34075 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34076
34077         open-safer.c: avoid 'signed and unsigned in conditional...' warning
34078         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
34079         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
34080
34081 2008-10-16  Jim Meyering  <meyering@redhat.com>
34082
34083         openat-die.c: avoid 'no previous prototype' warning
34084         * lib/openat-die.c: Include "openat.h".
34085         Reported by Reuben Thomas <rrt@sc3d.org>.
34086
34087 2008-10-16  Simon Josefsson  <simon@josefsson.org>
34088
34089         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
34090         * lib/netdb.in.h: Fix typo.
34091         Reported by Bruno Haible  <bruno@clisp.org>
34092
34093         * lib/netdb.in.h: Include sys/socket.h for platforms without
34094         netdb.h, to get structures like hostent on MinGW.
34095         * modules/netdb (Depends-on): Add sys_socket.
34096
34097 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34098
34099         * modules/netdb, modules/netdb-tests: New file.
34100         * m4/netdb_h.m4: New file.
34101         * lib/netdb.in.h: Add, currently just an empty file pending
34102         definitions.
34103         * tests/test-netdb.c: New file.
34104         * doc/posix-headers/netdb.texi: Mention that we replace it if
34105         needed.
34106         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34107         netdb.
34108
34109 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34110
34111         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
34112         with code.
34113
34114 2008-10-13  Bruno Haible  <bruno@clisp.org>
34115
34116         * lib/glthread/cond.c (glthread_cond_wait_func,
34117         glthread_cond_timedwait_func): Add a comment.
34118
34119 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34120
34121         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
34122         * tests/test-select.c: Likewise,
34123
34124 2008-10-13  Bruno Haible  <bruno@clisp.org>
34125
34126         * lib/glthread/cond.c (glthread_cond_wait_func,
34127         glthread_cond_timedwait_func): Fix variable name.
34128         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34129
34130 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
34131
34132         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
34133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
34134         struct sockaddr.sa_len.
34135         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
34136
34137 2008-10-13  Simon Josefsson  <simon@josefsson.org>
34138
34139         * build-aux/pmccabe2html: Add css and css_url parameters.
34140
34141 2008-10-12  Bruno Haible  <bruno@clisp.org>
34142
34143         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
34144         calling aclx_get.
34145         Reported by Rainer Tammer <tammer@tammer.net>.
34146
34147 2008-10-12  Bruno Haible  <bruno@clisp.org>
34148
34149         Use msvcrt aware primitives for creation/termination of Win32 threads.
34150         * lib/glthread/thread.c: Include <process.h>.
34151         (glthread_create_func): Use _beginthreadex instead of CreateThread.
34152         (wrapper_func): Update signature.
34153         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34154
34155 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34156             Bruno Haible  <bruno@clisp.org>
34157
34158         Provide a Win32 implementation of the 'cond' module.
34159         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34160         * lib/glthread/cond.c (glthread_cond_init_func,
34161         glthread_cond_wait_func, glthread_cond_timedwait_func,
34162         glthread_cond_signal_func, glthread_cond_broadcast_func,
34163         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34164         * modules/cond (Dependencies): Add gettimeofday.
34165
34166 2008-10-11  Bruno Haible  <bruno@clisp.org>
34167
34168         Make sleep work on older versions of mingw.
34169         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34170         only whether it exists.
34171         * doc/posix-functions/sleep.texi: Mention the problem with older
34172         versions of mingw.
34173
34174 2008-10-11  Bruno Haible  <bruno@clisp.org>
34175
34176         New module 'shutdown'.
34177         * modules/shutdown: New file.
34178         * lib/sys_socket.in.h (shutdown): New declaration.
34179         * lib/winsock.c (shutdown): New function.
34180         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34181         GNULIB_SHUTDOWN.
34182         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34183         * doc/posix-functions/shutdown.texi: Document the new module.
34184
34185 2008-10-11  Jim Meyering  <meyering@redhat.com>
34186
34187         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34188
34189 2008-10-11  Bruno Haible  <bruno@clisp.org>
34190
34191         New module 'fclose'.
34192         * modules/fclose: New file.
34193         * lib/stdio.in.h (fclose): New declaration.
34194         * lib/fclose.c: New file.
34195         * m4/fclose.m4: New file.
34196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34197         REPLACE_FCLOSE.
34198         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34199         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34200         REPLACE_FCLOSE.
34201         * modules/close (Depends-on): fclose.
34202         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34203
34204 2008-10-11  Bruno Haible  <bruno@clisp.org>
34205
34206         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34207         set errno and don't call _close.
34208
34209 2008-10-10  Bruno Haible  <bruno@clisp.org>
34210
34211         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34212         ACL, not afterwards. Fixes test failure on Cygwin.
34213
34214 2008-10-09  Ben Pfaff  <blp@gnu.org>
34215
34216         * build-aux/announce-gen: Fix gnulib version related part of usage
34217         message.  Die with a useful error message if no tarballs are
34218         found.
34219
34220 2008-10-10  Jim Meyering  <meyering@redhat.com>
34221
34222         bootstrap: use git's --depth=N option only if it's supported
34223         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34224         recognize the --depth option.  Reported by Pádraig Brady.
34225
34226 2008-10-09  Bruno Haible  <bruno@clisp.org>
34227
34228         New module 'ioctl'.
34229         * modules/ioctl: New file.
34230         * lib/sys_socket.in.h (ioctl): Remove declaration.
34231         * lib/winsock.c: Include <sys/ioctl.h>.
34232         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34233         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34234         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34235         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34236         * doc/posix-functions/ioctl.texi: Mention the new module.
34237
34238 2008-10-09  Bruno Haible  <bruno@clisp.org>
34239
34240         New module 'sys_ioctl'.
34241         * lib/sys_ioctl.in.h: New file.
34242         * m4/sys_ioctl_h.m4: New file.
34243         * modules/sys_ioctl: New file.
34244         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34245
34246 2008-10-09  Bruno Haible  <bruno@clisp.org>
34247
34248         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34249         * lib/winsock.c: Include <stdarg.h>.
34250         (rpl_ioctl): Change to second argument 'int' and then varargs.
34251
34252 2008-10-09  Bruno Haible  <bruno@clisp.org>
34253
34254         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34255         when the sys_socket module is present and the system has <winsock2.h>.
34256
34257 2008-10-09  Bruno Haible  <bruno@clisp.org>
34258
34259         * doc/posix-functions/close.texi: Mention module 'close' instead of
34260         module 'sys_socket'.
34261
34262 2008-10-09  Bruno Haible  <bruno@clisp.org>
34263
34264         * doc/glibc-headers/sys_ioctl.texi: New file.
34265         * doc/gnulib.texi: Include it.
34266
34267 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34268             Bruno Haible  <bruno@clisp.org>
34269
34270         Combine the two replacements of 'close'.
34271         * lib/sys_socket.in.h (close): Define to a reminder to include
34272         <unistd.h>.
34273         (_gl_close_fd_maybe_socket): New declaration.
34274         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34275         * lib/winsock.c (close): Remove undefinition.
34276         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34277         needed for the gnulib module 'close'.
34278         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34279         define to an error symbol or to a warning, if suitable.
34280         * lib/close.c: Include <sys/socket.h>.
34281         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34282         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34283         UNISTD_H_HAVE_WINSOCK2_H.
34284         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34286         UNISTD_H_HAVE_WINSOCK2_H.
34287         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34288         (configure.ac): Set a module indicator.
34289         (Makefile.am): Substitute GNULIB_CLOSE.
34290         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34291         * modules/poll-tests (Depends-on): Add close.
34292         * modules/select-tests (Depends-on): Likewise.
34293
34294 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34295             Bruno Haible  <bruno@clisp.org>
34296
34297         New module 'close'.
34298         * modules/close: New file.
34299         * lib/unistd.in.h (close): Move declaration out of the
34300         FCHDIR_REPLACEMENT scope.
34301         (_gl_unregister_fd): New declaration.
34302         * lib/close.c: New file.
34303         * lib/fchdir.c (rpl_close): Remove function.
34304         * m4/close.m4: New file.
34305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34306         close.
34307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34308         REPLACE_CLOSE.
34309         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34310         REPLACE_CLOSE.
34311         * modules/fchdir (Depends-on): Add close.
34312
34313 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34314             Bruno Haible  <bruno@clisp.org>
34315
34316         * lib/fcntl.in.h (open): Simplify conditionals.
34317         (_gl_register_fd): New declaration.
34318         * lib/fchdir.c (rpl_open): Remove function.
34319         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34320         also.
34321         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34322         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34323         open.
34324
34325 2008-10-09  Jim Meyering  <meyering@redhat.com>
34326
34327         GNUmakefile: use the more name-space-friendly "_version"
34328         * top/GNUmakefile (_dummy): Update.
34329         (_version): Rename from "version".
34330
34331 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34332             Bruno Haible  <bruno@clisp.org>
34333
34334         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34335         rpl_close.
34336         (_gl_register_fd): New function, extracted from rpl_open.
34337         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34338         (rpl_open, rpl_opendir): Use _gl_register_fd.
34339
34340 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34341
34342         Fix organization of 'open' replacement.
34343         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34344         (gl_FUNC_OPEN): Use it.
34345         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34346
34347 2008-10-08  Bruno Haible  <bruno@clisp.org>
34348
34349         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34350
34351 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34352
34353         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34354         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34355         listen).
34356
34357 2008-10-08  Eric Blake  <ebb9@byu.net>
34358
34359         GNUmakefile: add 'make version' target
34360         * top/GNUmakefile (_curr-ver): Split version update rules...
34361         (version): ...into a target.
34362
34363 2008-10-07  Bruno Haible  <bruno@clisp.org>
34364
34365         Use a more portable replacement expression for -0.0L.
34366         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34367         instead of -0.0L. Fix m4 quotation.
34368
34369         * tests/test-signbit.c: Include <float.h>.
34370         (minus_zero): New variable.
34371         (test_signbitl): Use minus_zero instead of -zero.
34372         * modules/signbit-tests (Depends-on): Add float.
34373
34374         * tests/test-ceill.c: Include <float.h>.
34375         (zero): Remove variable.
34376         (minus_zero): New variable.
34377         (main): Use minus_zero instead of -zero.
34378         * modules/ceill-tests (Depends-on): Add float.
34379
34380         * tests/test-floorl.c: Include <float.h>.
34381         (zero): Remove variable.
34382         (minus_zero): New variable.
34383         (main): Use minus_zero instead of -zero.
34384         * modules/floorl-tests (Depends-on): Add float.
34385
34386         * tests/test-roundl.c: Include <float.h>.
34387         (zero): Remove variable.
34388         (minus_zero): New variable.
34389         (main): Use minus_zero instead of -zero.
34390         * modules/roundl-tests (Depends-on): Add float.
34391
34392         * tests/test-truncl.c: Include <float.h>.
34393         (zero): Remove variable.
34394         (minus_zero): New variable.
34395         (main): Use minus_zero instead of -zero.
34396         * modules/truncl-tests (Depends-on): Add float.
34397
34398         * tests/test-frexpl.c (zero): Remove variable.
34399         (minus_zero): New variable.
34400         (main): Use minus_zero instead of -zero.
34401         * modules/frexpl-tests (Depends-on): Add float.
34402
34403         * tests/test-isnan.c (zerol): Remove variable.
34404         (minus_zerol): New variable.
34405         (test_long_double): Use minus_zerol instead of -zerol.
34406         * modules/isnan-tests (Depends-on): Add float.
34407
34408         * tests/test-isnanl.h (zero): Remove variable.
34409         (minus_zero): New variable.
34410         (main): Use minus_zero instead of -zero.
34411         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34412         * modules/isnanl-tests (Depends-on): Add float.
34413
34414         * tests/test-ldexpl.c (zero): Remove variable.
34415         (minus_zero): New variable.
34416         (main): Use minus_zero instead of -zero.
34417         * modules/ldexpl-tests (Depends-on): Add float.
34418
34419         * tests/test-snprintf-posix.h (zerol): Remove variable.
34420         (minus_zerol): New variable.
34421         (test_function): Use minus_zerol instead of -zerol.
34422         * modules/snprintf-posix-tests (Depends-on): Add float.
34423         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34424
34425         * tests/test-sprintf-posix.h (zerol): Remove variable.
34426         (minus_zerol): New variable.
34427         (test_function): Use minus_zerol instead of -zerol.
34428         * modules/sprintf-posix-tests (Depends-on): Add float.
34429         * modules/vsprintf-posix-tests (Depends-on): Add float.
34430
34431         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34432         (minus_zerol): New variable.
34433         (test_function): Use minus_zerol instead of -zerol.
34434         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34435
34436         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34437         (minus_zerol): New variable.
34438         (test_function): Use minus_zerol instead of -zerol.
34439         * modules/vasprintf-posix-tests (Depends-on): Add float.
34440
34441 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34442
34443         * MODULES.html.sh (Support for building documentation): Mention
34444         pmccabe2html.  Sort entries.
34445
34446         Add pmccabe2html module, from gnupdf.
34447         * build-aux/pmccabe.css: New file.
34448         * build-aux/pmccabe2html: New file.
34449         * m4/pmccabe2html.m4: New file.
34450         * modules/pmccabe2html: New file.
34451
34452 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34453
34454         flock: new module
34455         * MODULES.html.sh: Add to list of modules.
34456         * lib/flock.c: flock implementation for Windows and Unix systems
34457         which have fcntl.
34458         * doc/glibc-functions/flock.texi: Update documentation.
34459         * lib/sys_file.in.h: <sys/file.h> header file.
34460         * m4/flock.m4: M4 macros.
34461         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34462         * modules/flock: flock module.
34463         * modules/flock-tests: flock tests module.
34464         * modules/sys_file: sys/file.h module.
34465         * tests/test-flock.c: test suite for flock.
34466
34467 2008-10-06  Jim Meyering  <meyering@redhat.com>
34468
34469         bootstrap: check for LT_INIT more portably still ;-)
34470         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34471         Spotted by Bruno Haible.
34472
34473 2008-10-06  Eric Blake  <ebb9@byu.net>
34474
34475         test-signbit: avoid tripping Irix cc bug on -0.0L
34476         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34477         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34478         entire testsuite consistent and avoids an Irix 6.2 bug.
34479
34480 2008-10-05  Bruno Haible  <bruno@clisp.org>
34481             Jim Meyering  <jim@meyering.net>
34482
34483         Add an option for ignoring EPIPE during close_stdout.
34484         * lib/closeout.h: Include <stdbool.h>.
34485         (close_stdout_set_ignore_EPIPE): New declaration.
34486         * lib/closeout.c: Include <stdbool.h>.
34487         (ignore_EPIPE): New variable.
34488         (close_stdout_set_ignore_EPIPE): New function.
34489         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34490         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34491         failure.
34492         * modules/closeout (Depends-on): Add stdbool.
34493
34494 2008-10-05  Bruno Haible  <bruno@clisp.org>
34495
34496         * modules/accept: New file.
34497         * modules/bind: New file.
34498         * modules/connect: New file.
34499         * modules/getpeername: New file.
34500         * modules/getsockname: New file.
34501         * modules/getsockopt: New file.
34502         * modules/listen: New file.
34503         * modules/recv: New file.
34504         * modules/recvfrom: New file.
34505         * modules/send: New file.
34506         * modules/sendto: New file.
34507         * modules/setsockopt: New file.
34508         * modules/socket: New file.
34509         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34510         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34511         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34512         the particular module is requested. Add a link warning when the
34513         particular module is not requested.
34514         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34515         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34516         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34517         the particular module is requested.
34518         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34519         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34520         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34521         * modules/sys_socket (Depends-on): Add link-warning.
34522         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34523         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34524         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34525         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34526         GL_LINK_WARNING.
34527         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34528         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34529         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
34530         * doc/posix-functions/getpeername.texi: Mention the new module
34531         'getpeername'.
34532         * doc/posix-functions/getsockname.texi: Mention the new module
34533         'getsockname'.
34534         * doc/posix-functions/getsockopt.texi: Mention the new module
34535         'getsockopt'.
34536         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34537         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34538         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34539         * doc/posix-functions/send.texi: Mention the new module 'send'.
34540         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34541         * doc/posix-functions/setsockopt.texi: Mention the new module
34542         'setsockopt'.
34543         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34544         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34545         listen, connect, accept.
34546         * modules/select-tests (Depends-on): Likewise.
34547
34548 2008-10-05  Bruno Haible  <bruno@clisp.org>
34549
34550         * lib/winsock.c (strerror): Remove unused #undef.
34551         (rpl_close): Remove unused local variable.
34552
34553         * modules/sys_socket (Depends-on); Add errno.
34554
34555 2008-10-05  Bruno Haible  <bruno@clisp.org>
34556
34557         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34558         (select): Add a link warning when the 'select' module is not used.
34559         * modules/sys_select (Depends-on): Add link-warning.
34560         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34561         Suggested by Paolo Bonzini.
34562
34563 2008-10-05  Jim Meyering  <meyering@redhat.com>
34564
34565         bootstrap: check for LT_INIT more portably
34566         * build-aux/bootstrap: Avoid using grep -E, since it's not
34567         portable enough.  Suggestion from Bruno Haible.
34568
34569 2008-10-05  Bruno Haible  <bruno@clisp.org>
34570
34571         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34572         as being fixed by gnulib.
34573
34574 2008-10-05  Bruno Haible  <bruno@clisp.org>
34575
34576         * modules/select-tests: New file, mostly copied from
34577         modules/sys_select-tests.
34578         * tests/test-select.c: New file, mostly copied from
34579         tests/test-sys_select.c.
34580         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34581         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34582         (Makefile.am): Remove test_sys_select_LDADD.
34583
34584         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34585         to an undefined symbol, for an error message.
34586         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34587         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34588         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34589         winsock-select.c here.
34590         * modules/sys_select (Files): Remove lib/winsock-select.c.
34591         (Depends-on): Remove alloca.
34592         (Makefile.am): Substitute GNULIB_SELECT.
34593         * modules/select: New file.
34594         * doc/posix-functions/select.texi: Update.
34595
34596 2008-10-05  Bruno Haible  <bruno@clisp.org>
34597
34598         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
34599         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
34600         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
34601         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
34602         getdtablesize.
34603         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34604         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34605
34606 2008-10-05  Bruno Haible  <bruno@clisp.org>
34607
34608         * modules/getdtablesize-tests: New file.
34609         * tests/test-getdtablesize.c: New file.
34610
34611         New module 'getdtablesize'.
34612         * lib/unistd.in.h (getdtablesize): New declaration.
34613         * lib/getdtablesize.c: New file.
34614         * m4/getdtablesize.m4: New file.
34615         * modules/getdtablesize: New file.
34616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34617         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
34618         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
34619         HAVE_GETDTABLESIZE.
34620         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
34621
34622 2008-10-05  Bruno Haible  <bruno@clisp.org>
34623
34624         * modules/sched (Makefile.am): Fix typo.
34625         Reported by Simon Josefsson.
34626
34627 2008-10-05  Jim Meyering  <meyering@redhat.com>
34628
34629         bootstrap: check for LT_INIT, too
34630         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
34631         are deprecated.  Suggestion from Ralf Wildenhues.
34632
34633 2008-10-05  Bruno Haible  <bruno@clisp.org>
34634
34635         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
34636         overriding them by ours.
34637         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
34638
34639 2008-10-05  Jim Meyering  <meyering@redhat.com>
34640
34641         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
34642         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
34643         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
34644
34645 2008-10-04  Bruno Haible  <bruno@clisp.org>
34646
34647         * modules/dup2 (License): Change to LGPLv2+.
34648         * modules/sleep (License): Likewise.
34649         * modules/perror (License): Likewise.
34650         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
34651         Blake.
34652         * modules/signal (License): Likewise.
34653         * modules/sigprocmask (License): Likewise.
34654         * modules/raise (License): Change to LGPLv2+, with approval by Jim
34655         Meyering.
34656
34657 2008-10-04  Bruno Haible  <bruno@clisp.org>
34658
34659         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
34660         Reported by Rainer Tammer <tammer@tammer.net>.
34661
34662 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
34663             Bruno Haible  <bruno@clisp.org>
34664
34665         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
34666         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
34667         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
34668
34669 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
34670
34671         filevercmp: new module
34672         * lib/filevercmp.h: New function filevercmp comparing version strings.
34673         * lib/filevercmp.c: Implementation of filevercmp function.
34674         * modules/filevercmp: Module metadata.
34675         * tests/test-filevercmp.c: Unit test for new module.
34676         * modules/filevercmp-tests: Unit test metadata.
34677         * MODULES.html.sh: Add filevercmp module.
34678
34679 2008-10-03  Bruno Haible  <bruno@clisp.org>
34680
34681         * lib/c-ctype.h: Add comment.
34682         Reported by Jim Meyering.
34683
34684 2008-10-02  Bruno Haible  <bruno@clisp.org>
34685
34686         * modules/posix_spawn-internal (Depends-on): Add 'open'.
34687
34688 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34689
34690         * build-aux/bootstrap: Allow renaming bootstrap, and change the
34691         name of bootstrap.conf accordingly.
34692
34693 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34694
34695         * build-aux/bootstrap: Install git-merge-changelog configuration
34696         items into .gitconfig if needed.
34697
34698 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
34699
34700         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
34701         git repository, and initialize/update it accordingly.
34702
34703 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
34704
34705         * modules/fsync-tests: New file.
34706         * tests/test-fsync.c: New file.
34707
34708         New module 'fsync'.
34709         * lib/fsync.c: New file.
34710         * m4/fsync.m4: New file.
34711         * modules/fsync: New file.
34712         * lib/unistd.in.h (fsync): New declaration.
34713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
34714         GNULIB_FSYNC and HAVE_FSYNC.
34715         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
34716         * MODULES.html.sh (posix_functions): Add fsync.
34717         * doc/posix-functions/fsync.texi: Mention the new module.
34718
34719 2008-10-02  Jim Meyering  <meyering@redhat.com>
34720
34721         fts.c: sync with similar code from coreutils' remove.c
34722         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
34723         Guard also with "#if defined __linux__", since for now at least,
34724         this code is Linux-kernel-specific.
34725
34726 2008-10-02  Jim Meyering  <meyering@redhat.com>
34727
34728         fts: bug fixes
34729         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
34730         Include <sys/vfs.h>, not <sys/statfs.h>.
34731
34732         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
34733         Include <sys/vfs.h>, not <sys/statfs.h>.
34734
34735 2008-10-01  Bruno Haible  <bruno@clisp.org>
34736
34737         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
34738         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
34739         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
34740         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
34741         * doc/posix-functions/posix_spawnp.texi: Likewise.
34742         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
34743         whether posix_spawn actually works.
34744         * m4/pipe.m4 (gl_PIPE): Likewise.
34745         * modules/execute (Files): Add m4/posix_spawn.m4.
34746         * modules/pipe (Files): Add m4/posix_spawn.m4.
34747         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
34748
34749 2008-10-01  Jim Meyering  <meyering@redhat.com>
34750
34751         remove trailing spaces
34752         * NEWS: Likewise.
34753         * lib/poll.c (poll): Likewise.
34754         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
34755         * lib/winsock.c (rpl_close): Likewise.
34756         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
34757         * modules/yield: Likewise.
34758         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
34759         * tests/test-sys_select.c (connect_to_socket): Likewise.
34760
34761         fts.c: adjust a new interface to be more generally useful
34762         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
34763         (fts_build): Adjust caller.
34764
34765 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34766
34767         * modules/cond-tests: New file.
34768         * tests/test-cond.c: New file.
34769
34770 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34771             Bruno Haible  <bruno@clisp.org>
34772
34773         * modules/cond (Dependencies): Add errno, time.
34774         * lib/glthread/cond.h: Include <time.h>.
34775         (gl_cond_define, gl_cond_define_initialized): Use the same definition
34776         across platforms.
34777
34778 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34779             Bruno Haible  <bruno@clisp.org>
34780
34781         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
34782
34783 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34784             Bruno Haible  <bruno@clisp.org>
34785
34786         * modules/tls-tests (Depends-on): Add thread, yield.
34787         (configure.ac): Remove all checks.
34788         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
34789         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34790         gl_thread_self): Remove definitions. Include glthread/thread.h and
34791         glthread/yield.h instead.
34792         (test_tls): Pass an additional NULL argument to gl_thread_join.
34793
34794 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34795             Bruno Haible  <bruno@clisp.org>
34796
34797         * modules/lock-tests (Depends-on): Add thread, yield.
34798         (configure.ac): Remove all checks.
34799         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
34800         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
34801         gl_thread_self): Remove definitions. Include glthread/thread.h and
34802         glthread/yield.h instead.
34803         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
34804         additional NULL argument to gl_thread_join.
34805
34806 2008-09-30  Bruno Haible  <bruno@clisp.org>
34807
34808         Fix the Win32 implementation of the 'thread' module.
34809         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
34810         pointer type.
34811         (gl_thread_self): Invoke gl_thread_self_func.
34812         (gl_thread_self_func): New declaration.
34813         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
34814         (do_init_self_key, init_self_key): New functions.
34815         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
34816         Remove some fields.
34817         (running_threads, running_lock): Remove variables.
34818         (get_current_thread_handle): New function.
34819         (gl_thread_self_func, wrapper_func, glthread_create_func,
34820         glthread_join_func, gl_thread_exit_func): Largely rewritten and
34821         simplified.
34822
34823 2008-09-30  Bruno Haible  <bruno@clisp.org>
34824
34825         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
34826         files.
34827
34828 2008-09-30  Jim Meyering  <meyering@redhat.com>
34829
34830         fts.m4: correct the test for statfs.f_type
34831         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
34832         when checking for statfs.f_type.
34833
34834 2008-09-15  Simon Josefsson  <simon@josefsson.org>
34835
34836         tests: avoid some compiler warnings
34837         * tests/test-memchr.c (main): Pass NULL indirectly.
34838         * tests/test-getdate.c (main): Remove unused variable 'ret'.
34839
34840 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
34841
34842         getdate.y: disallow countable dayshifts like "4 yesterday ago"
34843         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
34844         exactly specified dayshifts.
34845         (dayshift): New rule.
34846         (rel): Add dayshift.
34847         (relative_time_table) [tomorrow, yesterday, today, now]:
34848         Use tDAY_SHIFT in place of tDAY_UNIT.
34849         * tests/test-getdate.c: Add tests for now-disallowed countable
34850         dayshifts, e.g., "4 yesterday ago".
34851
34852 2008-09-29  Bruno Haible  <bruno@clisp.org>
34853
34854         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
34855         * tests/test-posix_spawn1.in.sh: Renamed from
34856         tests/test-posix_spawn.in.sh.
34857         * tests/test-posix_spawn2.c: New file.
34858         * tests/test-posix_spawn2.in.sh: New file.
34859         * modules/posix_spawnp-tests (Files): Update.
34860         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
34861
34862 2008-09-29  Bruno Haible  <bruno@clisp.org>
34863
34864         Propagate effects of putenv/setenv/unsetenv to child processes.
34865         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
34866         * lib/pipe.c (create_pipe): Likewise.
34867
34868 2008-09-29  Bruno Haible  <bruno@clisp.org>
34869
34870         Enable use of shell scripts as executables in mingw.
34871         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
34872         run the program as a shell script.
34873         * lib/pipe.c (create_pipe): Likewise.
34874         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
34875         resulting array.
34876
34877 2008-09-29  Eric Blake  <ebb9@byu.net>
34878
34879         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
34880
34881 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
34882
34883         * doc/posix-functions/accept.texi: Update mingw problems.
34884         * doc/posix-functions/bind.texi: Update mingw problems.
34885         * doc/posix-functions/close.texi: Update mingw problems.
34886         * doc/posix-functions/connect.texi: Update mingw problems.
34887         * doc/posix-functions/getpeername.texi: Update mingw problems.
34888         * doc/posix-functions/getsockname.texi: Update mingw problems.
34889         * doc/posix-functions/getsockopt.texi: Update mingw problems.
34890         * doc/posix-functions/ioctl.texi: Update mingw problems.
34891         * doc/posix-functions/listen.texi: Update mingw problems.
34892         * doc/posix-functions/recv.texi: Update mingw problems.
34893         * doc/posix-functions/recvfrom.texi: Update mingw problems.
34894         * doc/posix-functions/select.texi: Update mingw problems.
34895         * doc/posix-functions/send.texi: Update mingw problems.
34896         * doc/posix-functions/sendto.texi: Update mingw problems.
34897         * doc/posix-functions/setsockopt.texi: Update mingw problems.
34898         * doc/posix-functions/socket.texi: Update mingw problems.
34899
34900 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
34901             Bruno Haible  <bruno@clisp.org>
34902
34903         * lib/sys_select.in.h: Include sys/time.h.
34904         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
34905         * modules/sys_select: Depend on sys_time.
34906         * tests/test-sys_select.c: Test that sys/select.h defines struct
34907         timeval fully.
34908
34909 2008-09-29  Bruno Haible  <bruno@clisp.org>
34910
34911         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
34912         * lib/sys_select.in.h: Likewise.
34913
34914 2008-09-29  Bruno Haible  <bruno@clisp.org>
34915
34916         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
34917
34918 2008-09-29  Bruno Haible  <bruno@clisp.org>
34919
34920         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
34921         Set LIBSOCKET instead of augmenting LIBS.
34922         * modules/sockets (Link): New section.
34923         * modules/sockets-tests (test_sockets_LDADD): New variable.
34924         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
34925         * modules/poll-tests (test_poll_LDADD): New variable.
34926         * NEWS: Document the change.
34927
34928 2008-09-29  Bruno Haible  <bruno@clisp.org>
34929
34930         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
34931         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
34932         ARPA_INET_H directly.
34933         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34934
34935 2008-09-28  Bruno Haible  <bruno@clisp.org>
34936
34937         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
34938         from gl_HEADER_SYS_SOCKET.
34939         (gl_HEADER_SYS_SOCKET): Invoke it.
34940         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34941
34942 2008-09-28  Bruno Haible  <bruno@clisp.org>
34943
34944         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
34945         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
34946         Needed on OSF/1 4.0.
34947
34948 2008-09-28  Bruno Haible  <bruno@clisp.org>
34949
34950         Override open more carefully.
34951         * lib/open.c (orig_open): New function.
34952         (rpl_open): Use orig_open instead of open.
34953         * lib/fcntl.in.h: Add special invocation convention.
34954         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
34955         (gl_FUNC_OPEN): Invoke it.
34956
34957         Override freopen more carefully.
34958         * lib/freopen.c (orig_freopen): New function.
34959         (rpl_freopen): Use orig_freopen instead of freopen.
34960         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
34961         (gl_FUNC_FREOPEN): Invoke it.
34962
34963         Override fopen more carefully.
34964         * lib/fopen.c (orig_fopen): New function.
34965         (rpl_fopen): Use orig_fopen instead of fopen.
34966         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
34967         (gl_FUNC_FOPEN): Invoke it.
34968         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
34969
34970 2008-09-28  Bruno Haible  <bruno@clisp.org>
34971
34972         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
34973         SIGPIPE.
34974
34975 2008-09-28  Bruno Haible  <bruno@clisp.org>
34976
34977         * tests/test-sigaction.c (handler, main): Disable the check whether
34978         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
34979         glibc systems with LinuxThreads.
34980
34981 2008-09-28  Bruno Haible  <bruno@clisp.org>
34982
34983         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
34984
34985         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
34986         with AIX xlc.
34987         * lib/fcntl.in.h (open): Likewise.
34988         Reported by Rainer Tammer <tammer@tammer.net>.
34989
34990 2008-09-28  Bruno Haible  <bruno@clisp.org>
34991
34992         * modules/posix_spawnp-tests: New file.
34993         * tests/test-posix_spawn.c: New file.
34994         * tests/test-posix_spawn.in.sh: New file.
34995
34996         New module 'posix_spawnp'.
34997         * modules/posix_spawnp: New file.
34998         * lib/spawnp.c: New file, from GNU libc with modifications.
34999         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
35000
35001         New module 'posix_spawn'.
35002         * modules/posix_spawn: New file.
35003         * lib/spawn.c: New file, from GNU libc with modifications.
35004         * doc/posix-functions/posix_spawn.texi: Mention the new module.
35005
35006         New module 'posix_spawnattr_destroy'.
35007         * modules/posix_spawnattr_destroy: New file.
35008         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
35009         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
35010         module.
35011
35012         New module 'posix_spawnattr_setsigmask'.
35013         * modules/posix_spawnattr_setsigmask: New file.
35014         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
35015         modifications.
35016         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
35017         new module.
35018
35019         New module 'posix_spawnattr_getsigmask'.
35020         * modules/posix_spawnattr_getsigmask: New file.
35021         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
35022         modifications.
35023         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
35024         new module.
35025
35026         New module 'posix_spawnattr_setsigdefault'.
35027         * modules/posix_spawnattr_setsigdefault: New file.
35028         * lib/spawnattr_setdefault.c: New file, from GNU libc with
35029         modifications.
35030         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
35031         new module.
35032
35033         New module 'posix_spawnattr_getsigdefault'.
35034         * modules/posix_spawnattr_getsigdefault: New file.
35035         * lib/spawnattr_getdefault.c: New file, from GNU libc with
35036         modifications.
35037         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
35038         new module.
35039
35040         New module 'posix_spawnattr_setschedpolicy'.
35041         * modules/posix_spawnattr_setschedpolicy: New file.
35042         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
35043         modifications.
35044         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
35045         new module.
35046
35047         New module 'posix_spawnattr_getschedpolicy'.
35048         * modules/posix_spawnattr_getschedpolicy: New file.
35049         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
35050         modifications.
35051         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
35052         new module.
35053
35054         New module 'posix_spawnattr_setschedparam'.
35055         * modules/posix_spawnattr_setschedparam: New file.
35056         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
35057         modifications.
35058         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
35059         new module.
35060
35061         New module 'posix_spawnattr_getschedparam'.
35062         * modules/posix_spawnattr_getschedparam: New file.
35063         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
35064         modifications.
35065         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
35066         new module.
35067
35068         New module 'posix_spawnattr_setpgroup'.
35069         * modules/posix_spawnattr_setpgroup: New file.
35070         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
35071         modifications.
35072         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
35073         module.
35074
35075         New module 'posix_spawnattr_getpgroup'.
35076         * modules/posix_spawnattr_getpgroup: New file.
35077         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
35078         modifications.
35079         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
35080         module.
35081
35082         New module 'posix_spawnattr_setflags'.
35083         * modules/posix_spawnattr_setflags: New file.
35084         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
35085         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35086         module.
35087
35088         New module 'posix_spawnattr_getflags'.
35089         * modules/posix_spawnattr_getflags: New file.
35090         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
35091         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
35092         module.
35093
35094         New module 'posix_spawnattr_init'.
35095         * modules/posix_spawnattr_init: New file.
35096         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
35097         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
35098         module.
35099
35100         New module 'posix_spawn_file_actions_destroy'.
35101         * modules/posix_spawn_file_actions_destroy: New file.
35102         * lib/spawn_faction_destroy.c: New file, from GNU libc with
35103         modifications.
35104         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
35105         the new module.
35106
35107         New module 'posix_spawn_file_actions_addopen'.
35108         * modules/posix_spawn_file_actions_addopen: New file.
35109         * lib/spawn_faction_addopen.c: New file, from GNU libc with
35110         modifications.
35111         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35112         the new module.
35113
35114         New module 'posix_spawn_file_actions_adddup2'.
35115         * modules/posix_spawn_file_actions_adddup2: New file.
35116         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
35117         modifications.
35118         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35119         the new module.
35120
35121         New module 'posix_spawn_file_actions_addclose'.
35122         * modules/posix_spawn_file_actions_addclose: New file.
35123         * lib/spawn_faction_addclose.c: New file, from GNU libc with
35124         modifications.
35125         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35126         the new module.
35127
35128         New module 'posix_spawn_file_actions_init'.
35129         * modules/posix_spawn_file_actions_init: New file.
35130         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
35131         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
35132         new module.
35133
35134         New module 'posix_spawn-internal'.
35135         * modules/posix_spawn-internal: New file.
35136         * lib/spawn_int.h: New file, from GNU libc with modifications.
35137         * lib/spawni.c: New file, from GNU libc with modifications.
35138         * m4/posix_spawn.m4: New file.
35139
35140         New module 'spawn'.
35141         * modules/spawn: New file.
35142         * lib/spawn.in.h: New file, from GNU libc with modifications.
35143         * m4/spawn_h.m4: New file.
35144         * doc/posix-headers/spawn.texi: Mention the new module.
35145
35146 2008-09-28  Bruno Haible  <bruno@clisp.org>
35147
35148         * modules/sched-tests: New file.
35149         * tests/test-sched.c: New file.
35150
35151         New module 'sched'.
35152         * modules/sched: New file.
35153         * lib/sched.in.h: New file.
35154         * m4/sched_h.m4: New file.
35155         * doc/posix-headers/sched.texi: Mention the new module.
35156
35157 2008-09-27  Eric Blake  <ebb9@byu.net>
35158
35159         Fix previous patch, and tweak references to $0.
35160         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35161         (func_version, func_gnulib_dir): Don't call this program
35162         gnulib-tool.
35163         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35164         with using $0 in function.
35165         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35166         (func_fatal_error): Reuse the name the user invoked us with.
35167
35168 2008-09-27  Bruno Haible  <bruno@clisp.org>
35169
35170         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35171         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35172         (gl_ICONV_H): Not here.
35173         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35174         instead of assigning ICONV_H directly.
35175
35176         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35178         WCHAR_H directly.
35179
35180 2008-09-27  Bruno Haible  <bruno@clisp.org>
35181
35182         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35183         * modules/arpa_inet (Depends-on): Add link-warning.
35184         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35185         * modules/unistd (Makefile.am): Likewise.
35186
35187 2008-09-26  Bruno Haible  <bruno@clisp.org>
35188
35189         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35190         variables.
35191         (func_version): Essentially copied from gnulib-tool.
35192         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35193         func_readlink): Copied from gnulib-tool.
35194
35195 2008-09-26  Bruno Haible  <bruno@clisp.org>
35196
35197         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35198         invoking git-version-gen.
35199
35200 2008-09-26  Bruno Haible  <bruno@clisp.org>
35201
35202         * posix-modules: Update to directory names changed on 2008-01-19.
35203         Remove commas in output before splitting into words. No more need to
35204         avoid 'ftruncate' since 2007-02-19.
35205
35206 2008-09-26  Bruno Haible  <bruno@clisp.org>
35207
35208         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35209
35210 2008-09-26  Bruno Haible  <bruno@clisp.org>
35211
35212         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35213         * modules/fwriteerror (Depends-on): Add errno.
35214
35215 2008-09-26  Bruno Haible  <bruno@clisp.org>
35216
35217         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35218         * tests/test-vc-list-files-cvs.sh: Likewise.
35219
35220 2008-09-26  Bruno Haible  <bruno@clisp.org>
35221
35222         * doc/posix-headers/sys_resource.texi: Reorder items.
35223
35224 2008-09-26  Jim Meyering  <meyering@redhat.com>
35225
35226         fts: tweak inode comparison function
35227         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35228         inode numbers, as documented.
35229
35230         fts: sort dirent entries on inode number before traversing
35231         This avoids a quadratic, seek-related performance penalty when
35232         operating on a directory containing many entries (measurable at 10k;
35233         3.5 hours at 2 million entries with a cold cache) on certain types
35234         of file systems, including ext3 and ext4, but not tmpfs.
35235         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35236         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35237         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35238         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35239         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35240         (fts_build): Set the stat.st_ino member from D_INO.
35241         If it is likely to be useful, sort dirent entries on inode number.
35242
35243         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35244         and the struct statfs.f_type member.
35245         * modules/fts (Depends-on): Add d-ino.
35246
35247 2008-09-26  Bruno Haible  <bruno@clisp.org>
35248
35249         * modules/sigpipe-die (Depends-on): Add sigpipe.
35250
35251         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35252         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35253         and GNULIB_STDIO_H_SIGPIPE are set.
35254         * lib/stdio-write.c: New file.
35255         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35256         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35257         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35258         REPLACE_STDIO_WRITE_FUNCS.
35259         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35260         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35261         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35262         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35263         * modules/stdio (Files): Add lib/stdio-write.c.
35264         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35265         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35266         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35267         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35268         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35269         REPLACE_FPRINTF_POSIX.
35270         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35271         REPLACE_PRINTF_POSIX.
35272         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35273         REPLACE_VFPRINTF_POSIX.
35274         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35275         REPLACE_VPRINTF_POSIX.
35276         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35277         SIGPIPE issue.
35278         * doc/posix-functions/fputc.texi: Likewise.
35279         * doc/posix-functions/fputs.texi: Likewise.
35280         * doc/posix-functions/fwrite.texi: Likewise.
35281         * doc/posix-functions/printf.texi: Likewise.
35282         * doc/posix-functions/putc.texi: Likewise.
35283         * doc/posix-functions/putchar.texi: Likewise.
35284         * doc/posix-functions/puts.texi: Likewise.
35285         * doc/posix-functions/vfprintf.texi: Likewise.
35286         * doc/posix-functions/vprintf.texi: Likewise.
35287
35288         * modules/safe-write (Depends-on): Add write.
35289
35290         * modules/sigpipe-tests: New file.
35291         * tests/test-sigpipe.c: New file.
35292         * tests/test-sigpipe.sh: New file.
35293
35294         * modules/write: New file.
35295         * lib/unistd.in.h: Include <sys/types.h>.
35296         (write): New declaration.
35297         * lib/write.c: New file.
35298         * m4/write.m4: New file.
35299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35300         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35301         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35302         GNULIB_WRITE, REPLACE_WRITE.
35303         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35304         and the SIGPIPE issue.
35305
35306         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35307         (raise): New declaration.
35308         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35309         (ext_signal): New function.
35310         (rpl_raise): New function.
35311         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35312         GNULIB_SIGNAL_H_SIGPIPE.
35313         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35314         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35315
35316         * modules/sigpipe: New file.
35317         * m4/sigpipe.m4: New file.
35318
35319 2008-09-25  Derek Price  <derek@ximbiot.com>
35320             Bruno Haible  <bruno@clisp.org>
35321
35322         * gnulib-tool (func_import): Report all license incompatibilities, not
35323         just the first one.
35324
35325 2008-09-25  Bruno Haible  <bruno@clisp.org>
35326
35327         * gnulib-tool (func_import): When computing the edits, consider not
35328         only the Makefile.ams that exist but also those that will be generated.
35329
35330 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35331
35332         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35333         fixes gnulib-tool --test warning about duplicate dependency.
35334
35335 2008-09-25  Bruno Haible  <bruno@clisp.org>
35336
35337         * gnulib-tool: Don't ask the user to perform edits in the generated
35338         Makefile.ams.
35339         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35340         apply to the Makefile.am being generated.
35341         (func_emit_tests_Makefile_am): Execute edits that apply to the
35342         Makefile.am being generated.
35343         (func_import): Setup list of Makefile.am edits before emitting the
35344         Makefile.ams, not at the end.
35345         (func_create_testdir): Update.
35346         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35347
35348 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35349
35350         * gnulib-tool (func_import): Store the --tests-base option in the
35351         comment in gnulib-cache.m4.
35352
35353 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35354
35355         * NEWS: Document increased portability that sys_select now provides.
35356
35357         * lib/sys_select.in.h: Install select wrapper.
35358         * lib/sys_socket.in.h: Use more descriptive name when there is no
35359         select wrapper.
35360         * lib/winsock-select.c: New.
35361         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35362         Require gl_HEADER_SYS_SOCKET.
35363         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35364         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35365         * tests/test-sys_select.c: Add functional tests.
35366
35367 2008-09-24  Eric Blake  <ebb9@byu.net>
35368
35369         open, fopen: close fd leak in last patch
35370         * lib/open.c (rpl_open): Close fd before returning error.
35371         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35372         * doc/posix-functions/open.texi (open): Document that Irix also
35373         has the bug.
35374         * doc/posix-functions/fopen.texi (fopen): Likewise.
35375         Reported by Paolo Bonzini.
35376
35377 2008-09-24  Bruno Haible  <bruno@clisp.org>
35378
35379         Ensure that a filename ending in a slash cannot be used to access a
35380         non-directory.
35381         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35382         to check whether it's really a directory.
35383         * lib/fopen.c: Include fcntl.h, unistd.h.
35384         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35385         and fdopen().
35386         * modules/fopen (Depends-on): Add unistd.
35387         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35388         * tests/test-fopen.c (main): Likewise.
35389         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35390         * doc/posix-functions/fopen.texi: Likewise.
35391         Reported by Eric Blake.
35392
35393 2008-09-23  Eric Blake  <ebb9@byu.net>
35394
35395         c-stack: avoid compiler optimizations when provoking overflow
35396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35397         recursion harder to optimize, to ensure a stack overflow occurs.
35398         * tests/test-c-stack.c (recurse): Likewise.
35399         Borrowed from libsigsegv.
35400
35401         c-stack: work around Irix sigaltstack bug
35402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35403         whether sigaltstack uses wrong end of stack_t (copied in part from
35404         libsigsegv).
35405         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35406         Irix bug, without requiring an over-allocation.
35407         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35408         bug.
35409
35410         fopen: document mingw bug on directories
35411         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35412         not allowing a stream visiting a directory, even though reading
35413         from such a stream is not portable.
35414
35415 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35416
35417         * lib/poll.c: Rewrite.
35418         * modules/poll: Depend on alloca.
35419
35420 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35421
35422         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35423         instead define prototypes for a full set of wrappers.  Ensure
35424         that Cygwin does not use the compatibility code, which is only
35425         for MinGW.
35426         * lib/winsock.c: New.
35427         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35428         * modules/sys_socket: Add lib/winsock.c.
35429
35430         * modules/poll-tests: Add errno and perror.
35431         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35432
35433 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35434
35435         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35436
35437 2008-09-23  Bruno Haible  <bruno@clisp.org>
35438
35439         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35440         * doc/glibc-functions/*: Likewise.
35441
35442 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35443
35444         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35445         success.
35446
35447 2008-09-22  Eric Blake  <ebb9@byu.net>
35448             Bruno Haible  <bruno@clisp.org>
35449
35450         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35451         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35452         supply %A but mishandle pseudo-NaN.
35453         Reported by Simon Josefsson.
35454
35455 2008-09-21  Bruno Haible  <bruno@clisp.org>
35456
35457         * tests/test-lock.c (main): Tweak skip message.
35458         * tests/test-tls.c (main): Likewise.
35459
35460 2008-09-21  Bruno Haible  <bruno@clisp.org>
35461
35462         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35463         whether 'struct sigaction' has sa_sigaction here...
35464         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35465         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35466
35467 2008-09-21  Bruno Haible  <bruno@clisp.org>
35468
35469         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35470         section.
35471         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35472         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35473         the new section.
35474         (Support for obsolete systems lacking POSIX:2001): New section.
35475         (String handling <string.h>): Move strdup to the new section.
35476         Suggested by Simon Josefsson and Paolo Bonzini.
35477
35478 2008-09-21  Bruno Haible  <bruno@clisp.org>
35479
35480         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35481         exponents in %e and %g results on 'long double'. Needed for mingw's
35482         improved *printf functions.
35483         * tests/test-vasprintf-posix.c (test_function): Likewise.
35484         * tests/test-snprintf-posix.h (test_function): Likewise.
35485         * tests/test-sprintf-posix.h (test_function): Likewise.
35486         Reported by Eric Blake.
35487
35488 2008-09-21  Bruno Haible  <bruno@clisp.org>
35489
35490         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35491         * tests/test-sprintf-posix.h (test_function): Likewise.
35492
35493 2008-09-21  Bruno Haible  <bruno@clisp.org>
35494
35495         * modules/getpass (Depends-on): Add strdup-posix.
35496
35497         New module 'strdup-posix'.
35498         * modules/strdup-posix: New file.
35499         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35500         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35502         REPLACE_STRDUP.
35503         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35504         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35505         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35506         strdup-posix.
35507
35508         * modules/strdup (Depends-on): Remove malloc-posix.
35509
35510 2008-09-20  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35513         Wildenhues.
35514
35515 2008-09-20  Bruno Haible  <bruno@clisp.org>
35516
35517         Ensure that wint_t gets defined on IRIX 5.3.
35518         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35519         * lib/wctype.in.h (wint_t): Likewise.
35520         (__wctype_wint_t): Remove type.
35521         (isw*): Use wint_t instead of __wctype_wint_t.
35522         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35523         * modules/wchar (Files): Add m4/wint_t.m4.
35524         (Makefile.am): Substitute HAVE_WINT_T.
35525         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35526         * tests/test-wctype.c: Check that wint_t is defined.
35527         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35528         * doc/posix-headers/wctype.texi: Likewise.
35529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35530
35531 2008-09-18  Bruno Haible  <bruno@clisp.org>
35532
35533         * gnulib-tool (func_exit): Update comment.
35534
35535 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35536
35537         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35538         assumes strdup exists and does not depend on strdup to return
35539         ENOMEM on out of memory conditions.
35540
35541 2008-09-18  Bruno Haible  <bruno@clisp.org>
35542
35543         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
35544         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35545         digits for the exponent.
35546
35547 2008-09-18  Jim Meyering  <meyering@redhat.com>
35548             Bruno Haible  <bruno@clisp.org>
35549
35550         * lib/vasnprintf.c (decimal_point_char): Define also if
35551         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35552
35553 2008-09-16  Bruno Haible  <bruno@clisp.org>
35554         and Eric Blake  <ebb9@byu.net>
35555
35556         vasnprintf: support Irix 5.3
35557         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35558         that mishandle long double infinity.
35559         Reported by Tom G. Christensen.
35560
35561 2008-09-16  Bruno Haible  <bruno@clisp.org>
35562
35563         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35564         Solaris 9.
35565         * doc/glibc-functions/alphasort.texi: Likewise.
35566         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35567
35568 2008-09-16  Jim Meyering  <meyering@redhat.com>
35569
35570         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35571         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35572         a umask modification leak out of a subshell.  Otherwise, the
35573         opensolaris /bin/sh would be accepted and thus cause unwarranted
35574         failures in the coreutils test suite.
35575
35576 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35577
35578         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35579         to succeed.
35580
35581 2008-09-16  Jim Meyering  <meyering@redhat.com>
35582
35583         avoid spurious test failure when library is built without ACL support
35584         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35585         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35586         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35587         * tests/test-copy-acl.sh: Likewise.
35588
35589 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35590
35591         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35592         based on character occurrence counts.
35593
35594 2008-09-15  Eric Blake  <ebb9@byu.net>
35595
35596         tests: avoid some compiler warnings
35597         * tests/test-memchr.c (main): Pass NULL indirectly.
35598         * tests/test-closein.c (main): Avoid unused variable.
35599
35600 2008-09-15  Bruno Haible  <bruno@clisp.org>
35601
35602         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
35603         are missing on OpenBSD 4.0 individually.
35604         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35605
35606 2008-09-15  Bruno Haible  <bruno@clisp.org>
35607
35608         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
35609         * doc/posix-functions/strerror.texi: Mention also Cygwin.
35610         * doc/posix-functions/perror.texi: Likewise.
35611         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
35612         is missing.
35613         Reported by Eric Blake.
35614
35615         * lib/errno.in.h: Use replacement values >= 2000.
35616         Reported by Eric Blake.
35617
35618 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35619
35620         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
35621         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
35622         limit.
35623         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
35624         compareseq was aborted.
35625
35626 2008-09-14  Bruno Haible  <bruno@clisp.org>
35627
35628         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
35629         yvec_edit_count.
35630         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
35631         (fstrcmp_bounded): Simplify result computation accordingly.
35632
35633 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35634
35635         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
35636         (fstrcmp): Define in terms of fstrcmp_bounded.
35637         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
35638         lower_bound argument.
35639         Return quickly if the result is certainly < lower_bound.
35640         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
35641
35642 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35643
35644         * lib/diffseq.h (EARLY_ABORT): New macro.
35645         (compareseq): Change return type to bool. Return true when EARLY_ABORT
35646         evaluates to true.
35647
35648 2008-09-14  Bruno Haible  <bruno@clisp.org>
35649
35650         * modules/perror-tests: New file.
35651         * tests/test-perror.sh: New file.
35652         * tests/test-perror.c: New file.
35653
35654         New module 'perror'.
35655         * lib/stdio.in.h (perror): New declaration.
35656         * lib/perror.c: New file.
35657         * m4/perror.m4: New file.
35658         * modules/perror: New file.
35659         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
35660         * doc/posix-functions/perror.texi: Mention the perror module.
35661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
35662         REPLACE_PERROR.
35663         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
35664         REPLACE_PERROR.
35665
35666 2008-09-14  Bruno Haible  <bruno@clisp.org>
35667
35668         * modules/stdio (Makefile.am): Reorder to match the order in
35669         lib/stdio.in.h.
35670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35671
35672 2008-09-13  Bruno Haible  <bruno@clisp.org>
35673
35674         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
35675
35676 2008-09-13  Bruno Haible  <bruno@clisp.org>
35677
35678         Extend strerror to cover the added errno values.
35679         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
35680         (rpl_strerror): Provide error messages for the added errno values and
35681         for the WSA* values.
35682         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
35683         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
35684         strerror.
35685         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
35686         * modules/strerror (Depends-on): Add errno.
35687         * doc/posix-functions/strerror.texi: Document the change.
35688         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
35689         and EOVERFLOW.
35690
35691 2008-09-13  Bruno Haible  <bruno@clisp.org>
35692
35693         * modules/EOVERFLOW: Remove file.
35694         * m4/eoverflow.m4: Remove file.
35695         * modules/EOVERFLOW-tests: Remove file.
35696         * tests/test-EOVERFLOW.c: Remove file.
35697         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
35698         * modules/ftell (Depends-on): Likewise.
35699         * modules/getdelim (Depends-on): Likewise.
35700         * modules/getugroups (Depends-on): Likewise.
35701         * modules/poll (Depends-on): Likewise.
35702         * modules/snprintf (Depends-on): Likewise.
35703         * modules/sprintf-posix (Depends-on): Likewise.
35704         * modules/vasnprintf (Depends-on): Likewise.
35705         * modules/vasprintf (Depends-on): Likewise.
35706         * modules/vfprintf-posix (Depends-on): Likewise.
35707         * modules/vsnprintf (Depends-on): Likewise.
35708         * modules/vsprintf-posix (Depends-on): Likewise.
35709         * modules/xvasprintf (Depends-on): Likewise.
35710         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35711         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
35712         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
35713         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
35714         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35715         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
35716         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
35717         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
35718         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35719         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
35720         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
35721         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
35722         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35723         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
35724         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
35725         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
35726         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35727         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
35728         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
35729         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
35730         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35731         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
35732         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
35733         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
35734         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
35735         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35736         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
35737         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
35738         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
35739         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
35740         * MODULES.html.sh: Remove EOVERFLOW.
35741         * NEWS: Mention the change.
35742
35743 2008-09-13  Bruno Haible  <bruno@clisp.org>
35744
35745         * modules/errno-tests: New file.
35746         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
35747
35748         * lib/errno.in.h: New file.
35749         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
35750         * modules/errno: New file.
35751         * doc/posix-headers/errno.texi: Update documentation.
35752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
35753
35754 2008-09-13  Bruno Haible  <bruno@clisp.org>
35755
35756         * tests/test-poll.c: Use #if for native Windows, rather than testing
35757         __MSVCRT__.
35758
35759 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35760             Bruno Haible  <bruno@clisp.org>
35761
35762         * lib/glob.c: Don't include <pwd.h> on native Windows.
35763         (WINDOWS32): New macro.
35764         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
35765
35766 2008-09-13  Bruno Haible  <bruno@clisp.org>
35767
35768         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
35769         (ETIMEDOUT): Remove macro.
35770         (glthread_cond_timedwait_multithreaded): New declaration.
35771         (glthread_cond_timedwait): Use it.
35772         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
35773         (glthread_cond_timedwait_multithreaded): New function.
35774
35775 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35776
35777         * modules/poll-tests: Do not check for io.h.
35778         * tests/test-poll.c: Check for __MSVCRT__ instead.
35779
35780 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35781
35782         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
35783         * modules/poll-tests: Add inet_pton, stdbool, sockets.
35784         * tests/test-poll.c: Use them.  Use _pipe on Windows.
35785
35786 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
35787
35788         * modules/poll-tests: New.
35789         * tests/test-poll.c: New.
35790
35791 2008-09-12  Eric Blake  <ebb9@byu.net>
35792
35793         frexp: test for NetBSD failure on -0.0
35794         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
35795         not all, bugs from NetBSD 3.0 have been fixed.
35796         * doc/posix-functions/frexp.texi (frexp): Document bug.
35797         Reported by Thomas Klausner.
35798
35799         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
35800         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
35801         literal -0.0.
35802         Reported by Jonathan C. Patschke <jp@centtech.com>.
35803
35804 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35805
35806         * lib/glthread/cond.h: Use dummy implementation also if
35807         USE_WIN32_THREADS.
35808
35809 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35810
35811         * modules/fnmatch-posix (License): Change to LGPLv2+.
35812         * modules/fnmatch-gnu (License): Likewise.
35813
35814 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35815
35816         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
35817
35818 2008-09-11  Jim Meyering  <meyering@redhat.com>
35819
35820         * users.txt: Add gtk-vnc.
35821
35822 2008-09-08  Simon Josefsson  <simon@josefsson.org>
35823
35824         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
35825         rotate amounts.
35826
35827         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
35828         required for 16-bit and 8-bit rotates.
35829         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
35830         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
35831         UINT8_MAX instead of hard-coded constants.
35832         Suggested by Paul Eggert.
35833
35834 2008-09-07  Bruno Haible  <bruno@clisp.org>
35835
35836         * tests/test-striconveh.c (main): Check behaviour when converting from
35837         UTF-7.
35838
35839         Make striconveh work better with stateful encodings.
35840         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
35841         that iconv does not increment the inptr when returning -1/EINVAL.
35842
35843 2008-09-07  Bruno Haible  <bruno@clisp.org>
35844
35845         * build-aux/config.rpath: Update according to libtool-2.2.6.
35846         * build-aux/config.libpath: Likewise.
35847
35848 2008-09-06  Bruno Haible  <bruno@clisp.org>
35849
35850         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
35851         * lib/freadptr.c (freadptr): Likewise.
35852         * lib/freadseek.c (freadptrinc): Likewise.
35853         Reported by Simon Josefsson.
35854
35855 2008-09-06  Bruno Haible  <bruno@clisp.org>
35856
35857         * modules/freadptr (License): Change to LGPLv2+.
35858         * modules/freadseek (License): Likewise.
35859         Suggested by Eric Blake.
35860
35861         * modules/memchr2 (License): Change to LGPLv2+.
35862         Approved by Eric Blake.
35863
35864 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35865             Bruno Haible  <bruno@clisp.org>
35866
35867         Make gnulib-tool work with native 'sed' on AIX.
35868         * gnulib-tool (sed_noop): New variable.
35869         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
35870         func_add_or_update, func_create_testdir): Use it to initialize sed
35871         script variables.
35872         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35873
35874 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
35875             Bruno Haible  <bruno@clisp.org>
35876
35877         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
35878         also works after #include directives.
35879
35880 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
35881
35882         getdate.y: reject an out-of-range timezone value
35883         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
35884         the range [-24...+24].  When specified with only one or two digits,
35885         * tests/test-getdate.c: Tests for the fix.
35886         * doc/getdate.texi: Document this change.
35887
35888 2008-09-03  Bruno Haible  <bruno@clisp.org>
35889
35890         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
35891
35892 2008-09-02  Simon Josefsson  <simon@josefsson.org>
35893
35894         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
35895         <bruce.korb@gmail.com> with ideas from Ben Pfaff
35896         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
35897         Blake <ebb9@byu.net>.
35898
35899         * tests/test-bitrotate.c: Add more test vectors.
35900
35901 2008-09-02  Eric Blake  <ebb9@byu.net>
35902
35903         vasnprintf-posix: handle large precision via %.*d
35904         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
35905         when handling it ourselves.
35906         * tests/test-vasnprintf-posix.c (test_function): Add test.
35907         * tests/test-snprintf-posix.h (test_function): Likewise.
35908         * tests/test-sprintf-posix.h (test_function): Likewise.
35909         * tests/test-vasprintf-posix.c (test_function): Likewise.
35910         Reported by Alain Guibert.
35911
35912 2008-09-01  Eric Blake  <ebb9@byu.net>
35913
35914         c-stack: make configure-time check more robust
35915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
35916         successful sigaction call.
35917         Reported by Tom G. Christensen.
35918
35919 2008-09-01  Bruno Haible  <bruno@clisp.org>
35920
35921         New module 'findprog-lgpl'.
35922         * modules/findprog-lgpl: New file.
35923         * lib/findprog-lgpl.c: New file.
35924         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
35925         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
35926         to decide whether to use strdup or xstrdup, concatenated_filename or
35927         xconcatenated_filename.
35928
35929 2008-09-01  Bruno Haible  <bruno@clisp.org>
35930
35931         Split module 'concat-filename' into 'concat-filename' (LGPL) and
35932         'xconcat-filename' (GPL).
35933         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
35934         (License): Change to LGPLv2+.
35935         * modules/xconcat-filename: New file.
35936         * lib/concat-filename.h (concatenated_filename): Change specification.
35937         (xconcatenated_filename): New declaration.
35938         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
35939         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
35940         memory situations.
35941         * lib/xconcat-filename.c: New file.
35942         * NEWS: Mention the change.
35943         * lib/findprog.c: Include concat-filename.h, not filename.h.
35944         (find_in_path): Use xconcatenated_filename instead of
35945         concatenated_filename.
35946         * lib/javacomp.c: Include concat-filename.h, not filename.h.
35947         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35948         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35949         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35950         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
35951         instead of concatenated_filename.
35952         * lib/javaexec.c: Include concat-filename.h, not filename.h.
35953         (execute_java_class): Use xconcatenated_filename instead of
35954         concatenated_filename.
35955         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
35956         * modules/javacomp (Depends-on): Likewise.
35957         * modules/javaexec (Depends-on): Likewise.
35958
35959 2008-09-01  Bruno Haible  <bruno@clisp.org>
35960
35961         Split module 'filename' into 'filename' and 'concat-filename'.
35962         * modules/filename: Keep only lib/filename.h.
35963         (License): Change to LGPLv2+.
35964         * modules/concat-filename: New file, extracted from modules/filename.
35965         * lib/filename.h (concatenated_filename): Remove declaration.
35966         * lib/concat-filename.h: New file, extracted from lib/filename.h.
35967         * lib/concat-filename.c: Include concat-filename.h.
35968         * NEWS: Mention the change.
35969
35970 2008-09-01  Simon Josefsson  <simon@josefsson.org>
35971
35972         * lib/bitrotate.h (rotl8, rotr8): Add.
35973
35974         * modules/bitrotate (configure.ac): Need
35975         AC_REQUIRE([AC_C_INLINE]).
35976         (Description): Mention stdint.h.  Reported by Bruno Haible
35977         <bruno@clisp.org>.
35978
35979         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
35980         Paolo Bonzini <bonzini@gnu.org>.
35981
35982 2008-08-31  Bruno Haible  <bruno@clisp.org>
35983
35984         Assume Solaris specific bi-arch conventions on Solaris systems.
35985         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
35986         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
35987         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
35988         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
35989         like acl_libdirstem.
35990         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
35991         acl_libdirstem.
35992         * NEWS: Mention the change.
35993         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
35994
35995 2008-08-31  Jim Meyering  <meyering@redhat.com>
35996
35997         * lib/strftime.h: Add comments describing the two added arguments.
35998
35999         remove duplicate #include directives
36000         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
36001         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
36002
36003 2008-08-31  Bruno Haible  <bruno@clisp.org>
36004
36005         New module 'sigpipe-die'.
36006         * modules/sigpipe-die: New file.
36007         * lib/sigpipe-die.h: New file.
36008         * lib/sigpipe-die.c: New file.
36009         * MODULES.html.sh (Signal handling): Add sigpipe-die.
36010
36011 2008-08-31  Bruno Haible  <bruno@clisp.org>
36012
36013         Don't override previously installed signal handlers.
36014         * lib/fatal-signal.c (saved_sigactions): New variable.
36015         (uninstall_handlers): Reset the signal to the saved handler, not
36016         to SIG_DFL (except when ignored).
36017         (install_handlers): Save the previous handlers.
36018
36019 2008-08-30  Bruno Haible  <bruno@clisp.org>
36020
36021         * gnulib-tool (func_reset_sigpipe): New function.
36022         (func_get_automake_snippet, func_modules_transitive_closure,
36023         func_import): Invoke it before a join command that reads from stdin,
36024         to avoid "echo: write error: Broken pipe" error messages on stderr.
36025         Reported by Sam Steingold <sds@gnu.org>.
36026
36027 2008-08-30  Bruno Haible  <bruno@clisp.org>
36028
36029         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
36030         Code copied from m4/open.m4.
36031         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
36032         access and the filename ends in a slash. Code copied from lib/open.c.
36033         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
36034         * tests/test-fopen.c (main): Check against bug with trailing slash.
36035
36036 2008-08-29  Bruno Haible  <bruno@clisp.org>
36037
36038         Avoid some "gcc -pedantic" warnings.
36039         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
36040         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
36041         * lib/dirent.in.h: Likewise.
36042         * lib/fcntl.in.h: Likewise.
36043         * lib/float.in.h: Likewise.
36044         * lib/iconv.in.h: Likewise.
36045         * lib/inttypes.in.h: Likewise.
36046         * lib/locale.in.h: Likewise.
36047         * lib/math.in.h: Likewise.
36048         * lib/netinet_in.in.h: Likewise.
36049         * lib/search.in.h: Likewise.
36050         * lib/signal.in.h: Likewise.
36051         * lib/stdarg.in.h: Likewise.
36052         * lib/stdint.in.h: Likewise.
36053         * lib/stdio.in.h: Likewise.
36054         * lib/stdlib.in.h: Likewise.
36055         * lib/string.in.h: Likewise.
36056         * lib/strings.in.h: Likewise.
36057         * lib/sys_select.in.h: Likewise.
36058         * lib/sys_socket.in.h: Likewise.
36059         * lib/sys_stat.in.h: Likewise.
36060         * lib/sys_time.in.h: Likewise.
36061         * lib/sysexits.in.h: Likewise.
36062         * lib/time.in.h: Likewise.
36063         * lib/unistd.in.h: Likewise.
36064         * lib/wchar.in.h: Likewise.
36065         * lib/wctype.in.h: Likewise.
36066         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
36067         * modules/fchdir (Makefile.am): Likewise.
36068         * modules/fcntl (Makefile.am): Likewise.
36069         * modules/float (Makefile.am): Likewise.
36070         * modules/iconv_open (Makefile.am): Likewise.
36071         * modules/inttypes (Makefile.am): Likewise.
36072         * modules/locale (Makefile.am): Likewise.
36073         * modules/math (Makefile.am): Likewise.
36074         * modules/netinet_in (Makefile.am): Likewise.
36075         * modules/search (Makefile.am): Likewise.
36076         * modules/signal (Makefile.am): Likewise.
36077         * modules/stdarg (Makefile.am): Likewise.
36078         * modules/stdint (Makefile.am): Likewise.
36079         * modules/stdio (Makefile.am): Likewise.
36080         * modules/stdlib (Makefile.am): Likewise.
36081         * modules/string (Makefile.am): Likewise.
36082         * modules/strings (Makefile.am): Likewise.
36083         * modules/sys_select (Makefile.am): Likewise.
36084         * modules/sys_socket (Makefile.am): Likewise.
36085         * modules/sys_stat (Makefile.am): Likewise.
36086         * modules/sys_time (Makefile.am): Likewise.
36087         * modules/sysexits (Makefile.am): Likewise.
36088         * modules/time (Makefile.am): Likewise.
36089         * modules/unistd (Makefile.am): Likewise.
36090         * modules/wchar (Makefile.am): Likewise.
36091         * modules/wctype (Makefile.am): Likewise.
36092         Reported by Reuben Thomas <rrt@sc3d.org>.
36093
36094 2008-08-29  Bruno Haible  <bruno@clisp.org>
36095
36096         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
36097         any more.
36098
36099 2008-08-29  Simon Josefsson  <simon@josefsson.org>
36100
36101         * MODULES.html.sh (Misc): Add bitrotate.
36102
36103         * modules/bitrotate: New file.
36104
36105         * lib/bitrotate.h: New file.
36106
36107         * modules/bitrotate-tests: New file.
36108
36109         * tests/test-bitrotate.c: New file.
36110
36111         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
36112         on the bitrotate module.
36113
36114         * lib/arctwo.c: Use new bitrotate module.
36115
36116 2008-08-29  Jim Meyering  <meyering@redhat.com>
36117
36118         bootstrap: merge changes from coreutils
36119         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
36120         of copied files.  Remove a kludge, now that this is fixed.
36121         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
36122         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
36123         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
36124
36125 2008-08-29  Bruno Haible  <bruno@clisp.org>
36126
36127         * MODULES.html.sh: Remove --cvs-urls option.
36128
36129 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
36130
36131         maint.mk: adjust to file name change
36132         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
36133
36134 2008-08-28  Jim Meyering  <meyering@redhat.com>
36135
36136         * modules/getndelim2 (License): Relicense to LGPLv2+.
36137         Approved by Richard Stallman for the version of 1995, and by
36138         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
36139
36140 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
36141
36142         * lib/getdelim.c (flockfile, funlockfile): Make all of them
36143         dummy if one is not available.  Do not touch them if
36144         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
36145         (getc_maybe_unlocked): New.
36146         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
36147
36148 2008-08-26  Eric Blake  <ebb9@byu.net>
36149
36150         doc/INSTALL: resync from autoconf
36151         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
36152         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36153         moving...
36154         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36155         * INSTALL: Regenerate.
36156         * INSTALL.ISO: New file.
36157         * INSTALL.UTF-8: Likewise.
36158
36159 2008-08-26  Jim Meyering  <meyering@redhat.com>
36160
36161         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36162         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36163         these definitions conditional, so that they may be overridden, too.
36164
36165 2008-08-26  Bruno Haible  <bruno@clisp.org>
36166
36167         Generate INSTALL file variants with prettier quotes.
36168         * doc/Makefile (INSTALL_PRELUDE): New macro.
36169         (INSTALL): Use it.
36170         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36171
36172 2008-08-26  Bruno Haible  <bruno@clisp.org>
36173
36174         Run makeinfo in an English locale.
36175         * doc/Makefile (MAKEINFO): New variable.
36176
36177 2008-08-26  Bruno Haible  <bruno@clisp.org>
36178
36179         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36180         Suggested by Eric Blake.
36181
36182 2008-08-25  Bruno Haible  <bruno@clisp.org>
36183
36184         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36185
36186 2008-08-25  Eric Blake  <ebb9@byu.net>
36187
36188         c-stack: test that stack overflow can be caught
36189         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36190         that platform allows handling stack overflow; at least OS/2 EMX
36191         has sigaltstack, but crashes before transferring control to
36192         handler on stack overflow.
36193         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36194         check for HAVE_STACK_OVERFLOW_HANDLING.
36195         Reported by Elbert Pol.
36196
36197 2008-08-25  Bruno Haible  <bruno@clisp.org>
36198
36199         * doc/posix-functions/strftime.texi: Fix description of strftime
36200         module.
36201
36202 2008-08-24  Bruno Haible  <bruno@clisp.org>
36203
36204         * tests/uniwidth/test-uc_width2.c: New file.
36205         * tests/uniwidth/test-uc_width2.sh: New file.
36206         * modules/uniwidth/width-tests (Files): Add the new files.
36207         (TESTS): Add uniwidth/test-uc_width2.sh.
36208         (TESTS_ENVIRONMENT): New variable.
36209         (check_PROGRAMS): Add test-uc_width2.
36210         (test_uc_width2_SOURCES): New variable.
36211
36212         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36213         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36214         not 0x00AB.
36215         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36216
36217 2008-08-22  Eric Blake  <ebb9@byu.net>
36218
36219         test-lock, test-tls: mention why a test is skipped
36220         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36221         skipped.
36222         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36223
36224         count-one-bits: relax license
36225         * modules/count-one-bits (License): Relicense to LGPLv2+.
36226         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36227
36228 2008-08-22  Andreas Schwab  <schwab@suse.de>
36229
36230         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36231         Remove spurious space in assignment.
36232
36233 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36234
36235         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36236         Paul Eggert <eggert@CS.UCLA.EDU>.
36237
36238 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36239
36240         * modules/gettext: Add m4/threadlib.m4.
36241
36242 2008-08-19  Eric Blake  <ebb9@byu.net>
36243
36244         test-c-stack: fix compilation failure on FreeBSD 5.0
36245         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36246         headers before <sys/resource.h>.
36247         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36248         the bug.
36249         Reported by Nelson H. F. Beebe.
36250
36251         strverscmp: migrate from "strverscmp.h" to <string.h>
36252         * modules/string (Makefile.am): Add new hooks.
36253         * modules/strverscmp (Files): Remove strverscmp.h.
36254         (Depends-on): Add string.
36255         (configure.ac): Add indicator.
36256         (Include): Mention new header.
36257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36258         defaults.
36259         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36260         results.
36261         * lib/strverscmp.h: Delete.
36262         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36263         * tests/test-strverscmp.c (includes): Adjust client.
36264         * lib/check-version.c (includes): Likewise.
36265         * NEWS: Document the change.
36266
36267         strverscmp: add unit test
36268         * modules/strverscmp-tests: New file.
36269         * tests/test-strverscmp.c: Likewise.
36270
36271 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36272
36273         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36274         regarding Windows crypto stuff, from Mono.
36275
36276 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36277
36278         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36279         if present, for intel RND.  Return error on failures.
36280
36281 2008-08-18  Ben Pfaff  <blp@gnu.org>
36282
36283         gitlog-to-changelog: give better diagnostic for failed pipe-open
36284         * build-aux/gitlog-to-changelog: Improve error message: suggest
36285         that the version of Git may be too old.
36286
36287 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36288
36289         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36290         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36291
36292 2008-08-18  Bruno Haible  <bruno@clisp.org>
36293
36294         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36295         pthread_in_use().
36296
36297 2008-08-18  Bruno Haible  <bruno@clisp.org>
36298
36299         * lib/glthread/threadlib.c: Include <pthread.h>.
36300
36301 2008-08-18  Bruno Haible  <bruno@clisp.org>
36302
36303         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36304         glthread_recursive_lock_* macros.
36305         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36306         Fix syntax error.
36307
36308 2008-08-18  Bruno Haible  <bruno@clisp.org>
36309
36310         * lib/glthread/thread.c: Avoid forcing a context switch right after
36311         thread creation.
36312
36313 2008-08-17  Bruno Haible  <bruno@clisp.org>
36314
36315         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36316         * lib/glthread/thread.h: Provide Win32 specific implementation.
36317         * modules/thread (Files): Add lib/glthread/thread.c.
36318         (Depends-on): Add lock.
36319         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36320
36321 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36322
36323         New module 'yield'.
36324         * modules/yield: New file.
36325         * lib/glthread/yield.h: New file.
36326         * m4/yield.m4: New file.
36327         * MODULES.html.sh (Multithreading): Add yield.
36328
36329 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36330
36331         New module 'thread'.
36332         * modules/thread: New file.
36333         * lib/glthread/thread.h: New file.
36334         * m4/thread.m4: New file.
36335         * MODULES.html.sh (Multithreading): Add thread.
36336
36337 2008-08-17  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/glthread/lock.h: Include <stdlib.h> always.
36340         * lib/glthread/tls.h: Likewise.
36341         * lib/glthread/cond.h: Likewise.
36342
36343 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36344
36345         New module 'cond'.
36346         * modules/cond: New file.
36347         * lib/glthread/cond.h: New file.
36348         * lib/glthread/cond.c: New file.
36349         * m4/cond.m4: New file.
36350         * MODULES.html.sh (Multithreading): Add cond.
36351
36352 2008-08-16  Eric Blake  <ebb9@byu.net>
36353
36354         c-stack: fix regression on Irix 5.3 from 2008-06-21
36355         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36356         sa_sigaction...
36357         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36358         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36359         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36360         * modules/signal (Makefile.am): Use the value.
36361         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36362         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36363         * doc/posix-headers/signal.texi (signal.h): Document this
36364         portability issue.
36365         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36366         Reported by Tom G. Christensen.
36367
36368 2008-08-17  Bruno Haible  <bruno@clisp.org>
36369
36370         New module 'threadlib'.
36371         * modules/threadlib: New file.
36372         * lib/glthread/threadlib.c: New file, extracted from
36373         lib/glthread/lock.c.
36374         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36375         functions.
36376         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36377         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36378         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36379         macros.
36380         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36381         (gl_DISABLE_THREADS): Remove macro.
36382         * modules/lock (Files): Remove build-aux/config.rpath.
36383         (Depends-on): Remove havelib. Add threadlib.
36384         (configure.ac-early): Remove section.
36385         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36386         * modules/tls (Depends-on): Remove lock. Add threadlib.
36387         (Link): New section, copied from threadlib.
36388         * MODULES.html.sh (Multithreading): Add threadlib.
36389
36390 2008-08-14  Bruno Haible  <bruno@clisp.org>
36391
36392         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36393         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36394         glthread_rwlock_unlock, glthread_rwlock_destroy,
36395         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36396         glthread_recursive_lock_destroy): Define as macros always.
36397         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36398         glthread_lock_lock.
36399         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36400         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36401         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36402         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36403         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36404         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36405         (glthread_recursive_lock_lock_func): Renamed from
36406         glthread_recursive_lock_lock.
36407         (glthread_recursive_lock_unlock_func): Renamed from
36408         glthread_recursive_lock_unlock.
36409         (glthread_recursive_lock_destroy_func): Renamed from
36410         glthread_recursive_lock_destroy.
36411
36412 2008-08-14  Bruno Haible  <bruno@clisp.org>
36413
36414         * lib/glthread/lock.h: Renamed from lib/lock.h.
36415         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36416         * lib/glthread/tls.h: Renamed from lib/tls.h.
36417         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36418         * lib/fstrcmp.c: Update includes.
36419         * lib/strsignal.c: Update includes.
36420         * modules/lock (Files, Makefile.am): Update.
36421         (Include): Change to "glthread/lock.h".
36422         * modules/tls (Files, Makefile.am): Update.
36423         (Include): Change to "glthread/tls.h".
36424         * tests/test-lock.c: Update includes.
36425         * tests/test-tls.c: Update includes.
36426         * NEWS: Mention the renamed header files.
36427
36428 2008-08-11  Jim Meyering  <meyering@redhat.com>
36429
36430         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36431
36432 2008-08-11  Eric Blake  <ebb9@byu.net>
36433
36434         test-c-stack: avoid C99-ism
36435         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36436         before statement.
36437         Reported by Alain Guibert.
36438
36439 2008-08-10  Jim Meyering  <meyering@redhat.com>
36440
36441         ensure that return value of uinttostr et al are not ignored
36442         * lib/inttostr.h (__GNUC_PREREQ): Define.
36443         (__attribute_warn_unused_result__): Define.
36444         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36445
36446 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36447
36448         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36449         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36450
36451 2008-08-07  Jim Meyering  <meyering@redhat.com>
36452
36453         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36454
36455         * modules/mkstemp (License): Relicense under LGPLv2+.
36456         * modules/tempname (License): Likewise.
36457
36458 2008-08-06  Bruno Haible  <bruno@clisp.org>
36459
36460         * lib/poll.c (poll): Further micro-optimization.
36461
36462 2008-08-06  Jim Meyering  <meyering@redhat.com>
36463
36464         inet_pton.c: use locale-independent tolower
36465         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36466         (inet_pton6): Use c_tolower rather than tolower.
36467         * modules/inet_pton (Depends-on): Add c-ctype.
36468
36469 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36470
36471         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36472         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36473
36474 2008-08-06  Jim Meyering  <meyering@redhat.com>
36475
36476         * modules/inet_pton (License): Relicense under LGPLv2+.
36477
36478 2008-08-03  Bruno Haible  <bruno@clisp.org>
36479
36480         Additional non-aborting API for lock and tls.
36481         * lib/lock.h: Include <errno.h>.
36482         (glthread_lock_init): New macro/function.
36483         (gl_lock_init): Define as wrapper around glthread_lock_init.
36484         (glthread_lock_lock): New macro/function.
36485         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36486         (glthread_lock_unlock): New macro/function.
36487         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36488         (glthread_lock_destroy): New macro/function.
36489         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36490         (glthread_rwlock_init): New macro/function.
36491         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36492         (glthread_rwlock_rdlock): New macro/function.
36493         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36494         (glthread_rwlock_wrlock): New macro/function.
36495         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36496         (glthread_rwlock_unlock): New macro/function.
36497         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36498         (glthread_rwlock_destroy): New macro/function.
36499         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36500         (glthread_recursive_lock_init): New macro/function.
36501         (gl_recursive_lock_init): Define as wrapper around
36502         glthread_recursive_lock_init.
36503         (glthread_recursive_lock_lock): New macro/function.
36504         (gl_recursive_lock_lock): Define as wrapper around
36505         glthread_recursive_lock_lock.
36506         (glthread_recursive_lock_unlock): New macro/function.
36507         (gl_recursive_lock_unlock): Define as wrapper around
36508         glthread_recursive_lock_unlock.
36509         (glthread_recursive_lock_destroy): New macro/function.
36510         (gl_recursive_lock_destroy): Define as wrapper around
36511         glthread_recursive_lock_destroy.
36512         (glthread_once): New macro/function.
36513         (gl_once): Define as wrapper around glthread_once.
36514         Update function declarations.
36515         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36516         glthread_rwlock_init. Return error code.
36517         (glthread_rwlock_rdlock_multithreaded): Renamed from
36518         glthread_rwlock_rdlock. Return error code.
36519         (glthread_rwlock_wrlock_multithreaded): Renamed from
36520         glthread_rwlock_wrlock. Return error code.
36521         (glthread_rwlock_unlock_multithreaded): Renamed from
36522         glthread_rwlock_unlock. Return error code.
36523         (glthread_rwlock_destroy_multithreaded): Renamed from
36524         glthread_rwlock_destroy. Return error code.
36525         (glthread_recursive_lock_init_multithreaded): Renamed from
36526         glthread_recursive_lock_init. Return error code.
36527         (glthread_recursive_lock_lock_multithreaded): Renamed from
36528         glthread_recursive_lock_lock. Return error code.
36529         (glthread_recursive_lock_unlock_multithreaded): Renamed from
36530         glthread_recursive_lock_unlock. Return error code.
36531         (glthread_recursive_lock_destroy_multithreaded): Renamed from
36532         glthread_recursive_lock_destroy. Return error code.
36533         (glthread_once_call): Make static.
36534         (glthread_once_multithreaded): Renamed from glthread_once.
36535         * lib/tls.h: Include <errno.h>.
36536         (glthread_tls_key_init): New macro/function.
36537         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36538         (glthread_tls_set): New macro/function.
36539         (gl_tls_set): Define as wrapper around glthread_tls_set.
36540         (glthread_tls_key_destroy): New macro/function.
36541         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36542         Update function declarations.
36543         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36544         glthread_tls_get.
36545         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36546
36547 2008-08-04  Eric Blake  <ebb9@byu.net>
36548
36549         gnumakefile: use space, not TAB, outside of targets
36550         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36551
36552 2008-08-02  Jim Meyering  <meyering@redhat.com>
36553
36554         getdate.y: avoid locale-dependent date parsing failure
36555         In Turkish locales, getdate would fail to recognize keywords
36556         containing a lowercase "i".  The solution is not to rely on
36557         locale-sensitive case-conversion.
36558         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36559         (lookup_word): Use c_toupper in place of toupper.
36560         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36561         Reported by Vefa Bicakci <bicave@superonline.com> in
36562         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36563         * modules/getdate (Depends-on): Add c-ctype.
36564
36565 2008-08-02  Bruno Haible  <bruno@clisp.org>
36566
36567         * gnulib-tool (func_import): When updating or creating a .gitignore
36568         file, prepend each added line with a slash, and ignore leading slashes
36569         from the existing lines.
36570         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36571
36572 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36573
36574         Portability fix for GNU make 3.79.1.
36575         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36576         versions do not understand.
36577
36578 2008-08-01  Bruno Haible  <bruno@clisp.org>
36579
36580         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36581         * tests/test-isnanf.h (zero): New variable.
36582         (main): Avoid literal -0.0f.
36583         * tests/test-isnand.h (zero): New variable.
36584         (main): Avoid literal -0.0.
36585         * tests/test-isnanl.h (zero): New variable.
36586         (main): Avoid literal -0.0L.
36587         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36588         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36589         -0.0, -0.0L.
36590         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36591         (test_signbitd): Avoid literal -0.0.
36592         (test_signbitl): Avoid literal -0.0L.
36593         * tests/test-ceilf1.c (zero): New variable.
36594         (main): Avoid literal -0.0f.
36595         * tests/test-ceill.c (zero): New variable.
36596         (main): Avoid literal -0.0L.
36597         * tests/test-floorf1.c (zero): New variable.
36598         (main): Avoid literal -0.0f.
36599         * tests/test-floorl.c (zero): New variable.
36600         (main): Avoid literal -0.0L.
36601         * tests/test-roundf1.c (zero): New variable.
36602         (main): Avoid literal -0.0f.
36603         * tests/test-round1.c (zero): New variable.
36604         (main): Avoid literal -0.0.
36605         * tests/test-roundl.c (zero): New variable.
36606         (main): Avoid literal -0.0L.
36607         * tests/test-truncf1.c (zero): New variable.
36608         (main): Avoid literal -0.0f.
36609         * tests/test-trunc1.c (zero): New variable.
36610         (main): Avoid literal -0.0.
36611         * tests/test-truncl.c (zero): New variable.
36612         (main): Avoid literal -0.0L.
36613         * tests/test-frexp.c (zero): New variable.
36614         (main): Avoid literal -0.0.
36615         * tests/test-frexpl.c (zero): New variable.
36616         (main): Avoid literal -0.0L.
36617         * tests/test-ldexpl.c (zero): New variable.
36618         (main): Avoid literal -0.0L.
36619         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36620         (zerod, zerol): New variables.
36621         (test_function): Avoid literals -0.0, -0.0L.
36622         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36623         (zerod, zerol): New variables.
36624         (test_function): Avoid literals -0.0, -0.0L.
36625         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36626         (zerod, zerol): New variables.
36627         (test_function): Avoid literals -0.0, -0.0L.
36628         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36629         (zerod, zerol): New variables.
36630         (test_function): Avoid literals -0.0, -0.0L.
36631         * tests/test-strtod.c (zero): New variable.
36632         (main): Avoid literal -0.0.
36633         Reported by Jonathan C. Patschke <jp@centtech.com>.
36634
36635 2008-07-31  Jim Meyering  <meyering@redhat.com>
36636
36637         sha256.h: correct definition of SHA224_DIGEST_SIZE
36638         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
36639         Reported by Paulie Pena IV <paulie4@gmail.com>.
36640         Define as 224 / 8, rather than as a literal.
36641         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
36642         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
36643         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
36644
36645 2008-07-31  Bruno Haible  <bruno@clisp.org>
36646
36647         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
36648         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
36649         Reported by Jonathan Patschke <jp@centtech.com>.
36650
36651 2008-07-31  Bruno Haible  <bruno@clisp.org>
36652
36653         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
36654         Reported by Paolo Bonzini <bonzini@gnu.org>.
36655
36656 2008-07-30  Eric Blake  <ebb9@byu.net>
36657
36658         test-strtod: allow compilation without -lm
36659         * tests/test-strtod.c (main): Avoid link dependence on fabs.
36660         Reported by Dennis Clarke <blastwave@gmail.com>.
36661
36662 2008-07-28  Jim Meyering  <meyering@redhat.com>
36663
36664         bootstrap: work also when there are no .po files in po/
36665         * build-aux/bootstrap (update_po_files): Complete the change
36666         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
36667
36668 2008-07-27  Jim Meyering  <meyering@redhat.com>
36669
36670         * users.txt: Add zile.
36671
36672 2008-07-26  Ben Pfaff  <blp@gnu.org>
36673
36674         Add missing dependencies on new m4/exponent[fdl].m4 files.
36675         * modules/isnanf-nolibm: Add m4/exponentf.m4.
36676         * modules/isnand-nolibm: Add m4/exponentd.m4.
36677         * modules/isnanl-nolibm: Add m4/exponentl.m4.
36678         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
36679         m4/isnan[fdl].m4, because the macros actually used moved.
36680         Reported by Jim Meyering.
36681
36682 2008-07-14  Ben Pfaff  <blp@gnu.org>
36683
36684         Add isinf module.
36685         * lib/isinf.c: New file.
36686         * lib/math.in.h: Define isinf macro if we have decided to replace
36687         it.
36688         * m4/isinf.m4: New file.
36689         * m4/math_h.m4: Initialize and substitute variables for isinf
36690         module.
36691         * modules/isinf: New file.
36692         * modules/isinf-tests: New file.
36693         * modules/math: Add substitutions for new module.
36694         * tests/test-isinf.c: New file.
36695         * doc/posix-functions/isinf.texi: Mention new module.
36696         * MODULES.html.sh: Mention new module.
36697
36698 2008-07-14  Ben Pfaff  <blp@gnu.org>
36699
36700         Factor out some macros for use by additional modules.
36701         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
36702         exponentf.m4.
36703         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
36704         exponentd.m4.
36705         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
36706         file exponentl.m4.
36707         * m4/exponentf.m4: New file.
36708         * m4/exponentd.m4: New file.
36709         * m4/exponentl.m4: New file.
36710         * modules/isnanf: Use new file m4/exponentf.m4.
36711         * modules/isnand: Use new file m4/exponentd.m4.
36712         * modules/isnanl: Use new file m4/exponentl.m4.
36713
36714 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
36715
36716         mktime.c: normalize tp->tm_isdst value to -1/0/1.
36717         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
36718         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
36719         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
36720
36721         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
36722         readlink on platforms without PATH_MAX.
36723
36724 2008-07-21  Eric Blake  <ebb9@byu.net>
36725
36726         Warn, not fail, on stale version.
36727         * top/GNUmakefile (_curr-ver): Tone down previous patch.
36728
36729         Don't allow installation with stale devel version number.
36730         * top/GNUmakefile (_is-install-target): New macro.
36731         (_curr-ver): Forbid installation with stale version number.
36732
36733 2008-07-20  Bruno Haible  <bruno@clisp.org>
36734
36735         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
36736         TESTS_ENVIRONMENT.
36737         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
36738
36739 2008-07-20  Bruno Haible  <bruno@clisp.org>
36740
36741         * lib/c-stack.h (c_stack_action): Add documentation.
36742         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
36743
36744 2008-07-20  Bruno Haible  <bruno@clisp.org>
36745
36746         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
36747         * modules/readlink (License): Likewise.
36748
36749 2008-07-17  Eric Blake  <ebb9@byu.net>
36750
36751         * modules/c-stack (Link): Fix typo.
36752
36753         Make c-stack use libsigsegv, when available.
36754         * modules/c-stack (Depends-on): Add libsigsegv.
36755         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
36756         needed.
36757         * lib/c-stack.c (SIGSTKSZ): Define fallback.
36758         (segv_handler, overflow_handler, c_stack_action)
36759         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
36760         implementation when libsigsegv is available, but only when using
36761         the library is necessary.
36762         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
36763         comment, explaining why XSI check fails on Linux.
36764         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
36765         * tests/test-c-stack2.sh: Tweak skip message.
36766         * NEWS: Document new link-time requirements.
36767
36768 2008-07-16  Eric Blake  <ebb9@byu.net>
36769
36770         c-stack: Expose false positives when not using libsigsegv.
36771         * modules/c-stack-tests (Files): Expand test.
36772         * tests/test-c-stack.c (main): Add means to conditionally trigger
36773         non-overflow SIGSEGV.
36774         * tests/test-c-stack2.sh: New file.
36775
36776 2008-07-14  Bruno Haible  <bruno@clisp.org>
36777
36778         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
36779         Reported by Eric Blake.
36780
36781 2008-07-14  Sam Steingold  <sds@gnu.org>
36782             Bruno Haible  <bruno@clisp.org>
36783
36784         New module libsigsegv.
36785         * modules/libsigsegv: New file.
36786         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
36787         modifications.
36788         * MODULES.html.sh (Signal handling): New section.
36789
36790 2008-07-14  Bruno Haible  <bruno@clisp.org>
36791
36792         * modules/unictype/ctype-* (Description): Add the word "function".
36793         Improves the resulting doc in MODULES.html.
36794
36795 2008-07-12  Ben Pfaff  <blp@gnu.org>
36796
36797         Add longlong module.
36798         * modules/longlong: New file.
36799
36800 2008-07-12  Bruno Haible  <bruno@clisp.org>
36801
36802         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
36803         to empty.
36804
36805 2008-07-10  Ben Pfaff  <blp@gnu.org>
36806
36807         Add isnan module.
36808         * doc/posix-functions/isnan.texi: Mention new module.
36809         * lib/math.in.h: Define isnan macro if we have decided to replace
36810         it.
36811         * m4/isnan.m4: New file.
36812         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
36813         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
36814         also.
36815         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
36816         redundancy.
36817         * m4/math_h.m4: Initialize and substitute variables for isnan
36818         module.
36819         * modules/isnan: New file.
36820         * modules/isnan-tests: New file.
36821         * modules/math: Add substitutions for new module.
36822         * tests/test-isnan.c: New file.
36823         * MODULES.html.sh: Mention new module.
36824
36825 2008-07-10  Ben Pfaff  <blp@gnu.org>
36826
36827         Add isnanf module.
36828         * lib/isnanf.m4: New file.
36829         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
36830         (gl_HAVE_ISNANF_IN_LIBM): New macro.
36831         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
36832         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
36833         * modules/isnanf: New file.
36834         * modules/isnanf-tests: New file.
36835         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
36836         files.
36837         * tests/test-isnanf-nolibm.c: factored most of its contents into
36838         new file tests/test-isnanf.h.
36839         * tests/test-isnanf.h: New file.
36840         * tests/test-isnanf.c: New file.
36841         * MODULES.html.sh: Mention new module.
36842         * doc/glibc-functions/isnanf.texi: Mention new module.
36843
36844 2008-07-10  Ben Pfaff  <blp@gnu.org>
36845
36846         Add isnand module.
36847         * lib/isnand.h: New file.
36848         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
36849         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
36850         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
36851         functionality also.
36852         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
36853         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
36854         (gl_HAVE_ISNAND_IN_LIBM): New macro.
36855         * modules/isnand: New file.
36856         * modules/isnand-tests: New file.
36857         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
36858         files.
36859         * tests/test-isnand-nolibm.c: factored most of its contents into
36860         new file tests/test-isnand.h.
36861         * tests/test-isnand.h: New file.
36862         * tests/test-isnand.c: New file.
36863         * MODULES.html.sh: Mention new module.
36864
36865 2008-07-10  Ben Pfaff  <blp@gnu.org>
36866
36867         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
36868         * lib/isnand.h: Rename lib/isnand-nolibm.h.
36869         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
36870         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
36871         * modules/isnanf-nolibm: Update references to renamed files.
36872         * modules/isnand-nolibm: Likewise.
36873         * modules/isnanf-nolibm-tests: Likewise.
36874         * modules/isnand-nolibm-tests: Likewise.
36875         * lib/frexp.c: Likewise.
36876         * lib/isfinite.c: Likewise.
36877         * lib/signbitd.c: Likewise.
36878         * lib/signbitf.c: Likewise.
36879         * lib/vasnprintf.c: Likewise.
36880         * tests/test-ceilf1.c: Likewise.
36881         * tests/test-ceilf2.c: Likewise.
36882         * tests/test-floorf1.c: Likewise.
36883         * tests/test-floorf2.c: Likewise.
36884         * tests/test-frexp.c: Likewise.
36885         * tests/test-round1.c: Likewise.
36886         * tests/test-round2.c: Likewise.
36887         * tests/test-roundf1.c: Likewise.
36888         * tests/test-strtod.c: Likewise.
36889         * tests/test-trunc1.c: Likewise.
36890         * tests/test-trunc2.c: Likewise.
36891         * tests/test-truncf1.c: Likewise.
36892         * tests/test-truncf2.c: Likewise.
36893         * NEWS: Mention the renamed header files.
36894
36895 2008-07-11  Jim Meyering  <meyering@redhat.com>
36896
36897         vc-list-files: make the last-resort awk code more portable
36898         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
36899         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
36900         does not support it.
36901
36902 2008-07-10  Eric Blake  <ebb9@byu.net>
36903
36904         Work with tar's bootstrap.
36905         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
36906         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
36907         an m4 comment.
36908
36909 2008-07-09  Jim Meyering  <meyering@redhat.com>
36910
36911         posix-shell.m4: fix typo that made this test malfunction
36912         * m4/posix-shell.m4: Remove capitalization in variable name.
36913
36914 2008-07-08  Bruno Haible  <bruno@clisp.org>
36915
36916         * m4/onceonly.m4: Update comments.
36917         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36918
36919 2008-07-04  Jim Meyering  <meyering@redhat.com>
36920
36921         * users.txt: Add vc-dwim.
36922         (bison, coreutils): Use the gitweb URL.
36923
36924 2008-07-03  Jim Meyering  <meyering@redhat.com>
36925
36926         * users.txt: Add libffcall.  From Sam Steingold.
36927
36928 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
36929
36930         getdate.y: do not ignore TZ with relative day, month or year offset
36931         * lib/getdate.y (get_date): Move the tz-handling block to follow the
36932         relative-date-handling, since otherwise, the latter would clobber the
36933         sole output (an updated Start value) of the tz-handling block.
36934         * tests/test-getdate.c: Tests for the fix
36935
36936 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36937
36938         Recognize 'foo_LIBRARIES += libgnu.a'.
36939         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
36940         makefile snippet has already specified an installation location,
36941         also using '+='.
36942
36943 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
36944
36945         getdate.y: factor out common actions
36946         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
36947         Use them in place of open-coded actions.
36948
36949 2008-07-01  Simon Josefsson  <simon@josefsson.org>
36950
36951         Add self-test for getdate module.
36952         * modules/getdate-tests: New file.
36953         * tests/test-getdate.c: New file.
36954
36955 2008-06-29  Bruno Haible  <bruno@clisp.org>
36956
36957         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
36958         .gitignore.
36959         Reported by Sylvain Beucler <beuc@beuc.net>.
36960
36961 2008-06-29  Bruno Haible  <bruno@clisp.org>
36962
36963         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
36964         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
36965
36966 2008-06-29  Bruno Haible  <bruno@clisp.org>
36967
36968         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
36969         EXTRA_DIST.
36970         Reported by Sylvain Beucler <beuc@beuc.net>.
36971
36972 2008-06-26  Jim Meyering  <meyering@redhat.com>
36973
36974         make several modules depend on the "open" module
36975         This provides slightly increased consistency when opening-for-write
36976         the name of a non-directory spelled with a trailing slash.
36977         * modules/chdir-safer: Likewise.
36978         * modules/chown: Likewise.
36979         * modules/clean-temp: Likewise.
36980         * modules/copy-file: Likewise.
36981         * modules/fchdir: Likewise.
36982         * modules/fcntl-safer: Likewise.
36983         * modules/pipe: Likewise.
36984         * modules/utime: Likewise.
36985         Prompted by Eric Blake and Bruno Haible.
36986
36987 2008-06-24  Andreas Schwab  <schwab@suse.de>
36988
36989         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
36990         literals can be used as initializers for global variables.
36991
36992 2008-06-23  Eric Blake  <ebb9@byu.net>
36993
36994         Make gnulib-cache.m4 easier to diff.
36995         * gnulib-tool (func_import): Allow newlines when reading cached
36996         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
36997
36998 2008-06-23  Bruno Haible  <bruno@clisp.org>
36999
37000         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
37001         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
37002         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
37003         m4/signalblocking.m4.
37004         (gl_PREREQ_SIGACTION): Don't invoke it.
37005         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
37006         gl_PREREQ_SIG_HANDLER_H.
37007         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37008         Don't check for sigaction here.
37009
37010 2008-06-23  Bruno Haible  <bruno@clisp.org>
37011
37012         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
37013         (install_handlers): Don't set the SA_RESETHAND flag.
37014
37015 2008-06-23  Bruno Haible  <bruno@clisp.org>
37016
37017         * m4/sigaction.m4: Comment fixes.
37018         * lib/signal.in.h: Likewise.
37019
37020 2008-06-23  Eric Blake  <ebb9@byu.net>
37021
37022         Fix typo.
37023         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
37024
37025         Avoid SA_ namespace.
37026         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
37027         Reported by Ralf Wildenhues.
37028
37029         Avoid test failure due to SA_RESTORER.
37030         * tests/test-sigaction.c (SA_MASK): New macro.
37031         (main): Avoid failing due to extension flags being set.
37032         Reported by Jim Meyering.
37033
37034         Revert use of sig-handler.h in sigprocmask.c.
37035         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
37036         it requires the existence of struct sigaction.
37037         * lib/sigprocmask.c (handler_t): Restore typedef.
37038         (rpl_signal, old_handlers): Use local type.
37039
37040 2008-06-22  Bruno Haible  <bruno@clisp.org>
37041
37042         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
37043         conditionally.
37044         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37045
37046 2008-06-22  Bruno Haible  <bruno@clisp.org>
37047
37048         * doc/posix-functions/siginterrupt.texi: Move note.
37049
37050         * lib/signal.in.h (SA_RESTART): New macro.
37051         * lib/sigaction.c: Update comment.
37052
37053         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
37054
37055         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
37056         (gl_PREREQ_SIGPROCMASK): Invoke it.
37057         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
37058
37059         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
37060
37061         * lib/sigprocmask.c: Update a comment.
37062
37063 2008-06-21  Eric Blake  <ebb9@byu.net>
37064
37065         Use sigaction module rather than signal().
37066         * modules/c-stack (Depends-on): Add sigaction.
37067         * modules/fatal-signal (Depends-on): Likewise.
37068         * modules/nanosleep (Depends-on): Likewise.
37069         * modules/sigprocmask (Files): Add sig-handler.h.
37070         * modules/sigaction (Files): Likewise.
37071         * lib/sig-handler.h (get_handler): New file, suggested by Paul
37072         Eggert.
37073         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
37074         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
37075         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37076         (init_fatal_signals): Likewise.
37077         * lib/nanosleep.c (rpl_nanosleep): Likewise.
37078         (siginterrupt): Delete fallback.
37079         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
37080         instead.
37081         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
37082         siginterrupt.
37083
37084         New module sigaction, for mingw.
37085         * modules/sigaction: New module...
37086         * modules/sigaction-tests: ...and its test.
37087         * m4/sigaction.m4: New file.
37088         * lib/sigaction.c: Likewise.
37089         * tests/test-sigaction.c: Likewise.
37090         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
37091         * modules/signal (Makefile.am): Likewise.
37092         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
37093         needed.
37094         * doc/posix-headers/signal.texi (signal.h): Mention provided
37095         types.
37096         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
37097         that sigaction is preferable.
37098         * doc/posix-functions/sigaction.texi (sigaction): Mention new
37099         module.
37100         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37101         sigaction.
37102
37103         Improve robustness of sigprocmask by overriding signal.
37104         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
37105         is in use.
37106         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
37107         (SIGKILL, SIGSTOP): Provide fallbacks.
37108         (rpl_signal): Implement.
37109         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
37110         signal can be called inside handlers.
37111
37112         Fix nanosleep module on mingw.
37113         * modules/nanosleep (Depends-on): Add sys_select.
37114         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
37115
37116         Fix licensing of sigprocmask.
37117         * modules/raise (License): Relicense as LGPL.
37118
37119 2008-06-21  Bruno Haible  <bruno@clisp.org>
37120
37121         * lib/propername.c (proper_name_utf8): Don't use the transliterated
37122         result if it contains question marks.
37123         Reported by Michael Geng <linux@michaelgeng.de>.
37124
37125 2008-06-19  Bruno Haible  <bruno@clisp.org>
37126
37127         Fix CVS-ism.
37128         * doc/gnulib.texi: Include updated-stamp.texi.
37129         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
37130         (updated-stamp.texi): New rule.
37131         (gnulib.info): Depend on it.
37132         * doc/.gitignore: Add updated-stamp.texi.
37133         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
37134
37135 2008-06-19  Bruno Haible  <bruno@clisp.org>
37136
37137         * doc/Makefile (gnulib.info): Update and simplify dependencies.
37138         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37139
37140 2008-06-19  Eric Blake  <ebb9@byu.net>
37141
37142         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
37143         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
37144         Reported by Stepan Kasal.
37145
37146 2008-06-18  Bruno Haible  <bruno@clisp.org>
37147
37148         * lib/fatal-signal.c (init_fatal_signals): Add comment.
37149         Reported by Eric Blake.
37150
37151 2008-06-18  Eric Blake  <ebb9@byu.net>
37152
37153         Work around cygwin 1.5.25 strsignal bug.
37154         * tests/test-strsignal.c: Allow for const char *.
37155         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37156
37157 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37158
37159         * users.txt: Update URL to article and add author/date
37160         information.
37161
37162 2008-06-17  Bruno Haible  <bruno@clisp.org>
37163
37164         New macro gl_DISABLE_THREADS.
37165         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37166         if the user did not pass --enable-threads or --disable-threads option.
37167         (gl_DISABLE_THREADS): New macro.
37168         Reported by Eric Blake <ebb9@byu.net>.
37169
37170 2008-06-17  Bruno Haible  <bruno@clisp.org>
37171
37172         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37173         when the macro ignores it.
37174         Based on a patch by Eric Blake <ebb9@byu.net>.
37175
37176 2008-06-17  Bruno Haible  <bruno@clisp.org>
37177
37178         * modules/tls (License): Change to LGPLv2+.
37179         Reported by Eric Blake.
37180
37181 2008-06-17  Eric Blake  <ebb9@byu.net>
37182
37183         Simplify c-stack prerequisites.
37184         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37185         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37186         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37187         check.
37188         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37189         <sys/resource.h>.
37190
37191         Move c-stack test into testsuite.
37192         * modules/c-stack-tests: New file.
37193         * lib/c-stack.c [DEBUG]: Move test program...
37194         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37195         fail test if sigaltstack is lacking.
37196         * tests/test-c-stack.sh: New driver file.
37197
37198 2008-06-16  Eric Blake  <ebb9@byu.net>
37199
37200         Use raise module consistently.
37201         * modules/fatal-signal (Depends-on): Add raise.
37202         * modules/sigprocmask (Depends-on): Likewise.
37203         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37204         * lib/sigprocmask.c (sigprocmask): Likewise.
37205         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37206         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37207
37208         Fix compliance bug in sigpending.
37209         * lib/sigprocmask.c (sigpending): Return pending array via
37210         parameter, not return value.
37211
37212 2008-06-14  Eric Blake  <ebb9@byu.net>
37213
37214         Improve obstack-printf test code.
37215         * tests/test-obstack-printf.c (test_function): Fix comment, and
37216         simplify usage of obstack_* in macros.  Add a test for coverage.
37217         Reported by Bruno Haible.
37218
37219 2008-06-14  Bruno Haible  <bruno@clisp.org>
37220
37221         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37222         array size as a constant, not as a const variable.
37223         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37224         AC_USE_SYSTEM_EXTENSIONS.
37225         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37226         Test whether the obstack_printf function actually exists.
37227         * modules/obstack-printf (Depends-on): Add extensions.
37228         (Include): Remove obstack.h.
37229         * modules/obstack-printf-posix (Depends-on): Add extensions.
37230         (Include): Remove obstack.h.
37231
37232 2008-06-13  Eric Blake  <ebb9@byu.net>
37233
37234         Add obstack-printf and obstack-printf-posix modules.
37235         * modules/obstack-printf: New file.
37236         * modules/obstack-printf-posix: Likewise.
37237         * MODULES.html.sh (Misc): Mention them.
37238         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37239         Likewise.
37240         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37241         Likewise.
37242         * modules/stdio (Makefile.am): Accomodate new modules.
37243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37244         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37245         Declare.
37246         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37247         functions.
37248         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37249         (gl_REPLACE_OBSTACK_PRINTF): New macros
37250         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37251         * tests/test-obstack-printf.c: New file.
37252         * modules/obstack-printf-tests: Likewise.
37253         * modules/obstack-printf-posix-tests: Likewise.
37254
37255 2008-06-11  Bruno Haible  <bruno@clisp.org>
37256
37257         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37258         * lib/open.c: Include errno.h.
37259         (open): Fail when attempting to write to a file that has a trailing
37260         slash.
37261         * tests/test-open.c (main): Test against trailing slash bug.
37262         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37263
37264 2008-06-10  Bruno Haible  <bruno@clisp.org>
37265
37266         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37267         for $? to work inside the trap command, with various /bin/sh-s.
37268         * tests/test-vc-list-files-cvs.sh: Likewise.
37269
37270 2008-06-10  Bruno Haible  <bruno@clisp.org>
37271
37272         * lib/acl-internal.h: Don't include gettext.h here.
37273         * lib/set-mode-acl.c: Include gettext.h here.
37274         * lib/copy-acl.c: Likewise.
37275
37276 2008-06-10  Bruno Haible  <bruno@clisp.org>
37277
37278         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37279         * lib/wait-process.c (wait_subprocess): Likewise.
37280         * lib/execute.h (execute): Add termsigp argument.
37281         * lib/execute.c (execute): Likewise.
37282         * lib/csharpcomp.c (compile_csharp_using_pnet,
37283         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37284         * lib/csharpexec.c (execute_csharp_using_pnet,
37285         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37286         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37287         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37288         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37289         is_jikes_present): Update.
37290         * lib/javaexec.c (execute_java_class): Update.
37291         * lib/javaversion.c (execute_and_read_line): Update.
37292         * NEWS: Document the changes.
37293         Reported by Eric Blake.
37294
37295 2008-06-10  Eric Blake  <ebb9@byu.net>
37296
37297         Add missing include.
37298         * tests/test-strstr.c (includes): Add <signal.h>.
37299         * tests/test-strcasestr.c (includes): Likewise.
37300         * tests/test-memmem.c (includes): Likewise.
37301
37302 2008-06-10  Bruno Haible  <bruno@clisp.org>
37303
37304         * lib/wait-process.c (wait_subprocess): Add an assertion.
37305
37306 2008-06-10  Bruno Haible  <bruno@clisp.org>
37307
37308         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37309
37310 2008-06-10  Bruno Haible  <bruno@clisp.org>
37311
37312         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37313         using alarm().
37314         * tests/test-strcasestr.c (main): Likewise.
37315         * tests/test-strstr.c (main): Likewise.
37316
37317 2008-06-09  Bruno Haible  <bruno@clisp.org>
37318
37319         Work around the Solaris 10 ACE ACLs ABI change.
37320         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37321         declare if ACL_NO_TRIVIAL is present.
37322         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37323         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37324         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37325         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37326         define if ACL_NO_TRIVIAL is present.
37327         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37328         and use the current ABI.
37329         (file_has_acl): Use same #if condition as elsewhere.
37330         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37331         in use, and use the current ABI.
37332         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37333         Reported by Jim Meyering.
37334
37335 2008-06-09  Eric Blake  <ebb9@byu.net>
37336
37337         Work around environments that (stupidly) ignore SIGALRM.
37338         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37339         before using alarm().
37340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37341         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37342         Reported by Ian Beckwith <ianb@erislabs.net>.
37343
37344         Produce autobuild blurb earlier in log.
37345         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37346
37347 2008-06-09  Jim Meyering  <meyering@redhat.com>
37348         and Ondřej Vašík  <ovasik@redhat.com>
37349
37350         utimens.c: correct kernel bug work-around
37351         Ondřej Vašík found that the invalid return value of 280 indicates
37352         failure, not success, and the kernel bug we're trying to work
37353         around affects not just the utimensat call, but also the fallback
37354         futimens call.
37355         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37356         not success.
37357         [HAVE_FUTIMENS]: Use the same work-around, here.
37358
37359 2008-06-09  Jim Meyering  <meyering@redhat.com>
37360
37361         add more guards around definition of ACE_-related code
37362         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37363         ALLOW and ACE_OWNER are also defined.
37364
37365 2008-06-08  Bruno Haible  <bruno@clisp.org>
37366
37367         * lib/acl-internal.h: Add me as co-author.
37368         * lib/file-has-acl.c: Likewise.
37369         * lib/set-mode-acl.c: Likewise.
37370         * lib/copy-acl.c: Likewise.
37371
37372 2008-06-08  Bruno Haible  <bruno@clisp.org>
37373
37374         Add support for AIX ACLs.
37375         * lib/acl-internal.h (acl_nontrivial): New declaration.
37376         * lib/file-has-acl.c (acl_nontrivial): New function.
37377         (file_has_acl): Add implementation using AIX 4 ACL API.
37378         * lib/set-mode-acl.c (qset_acl): Likewise.
37379         * lib/copy-acl.c (qcopy_acl): Likewise.
37380
37381 2008-06-08  Bruno Haible  <bruno@clisp.org>
37382
37383         Add support for HP-UX ACLs.
37384         * lib/acl-internal.h (acl_nontrivial): New declaration.
37385         * lib/file-has-acl.c (acl_nontrivial): New function.
37386         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37387         * lib/set-mode-acl.c (qset_acl): Likewise.
37388         * lib/copy-acl.c (qcopy_acl): Likewise.
37389
37390 2008-06-08  Bruno Haible  <bruno@clisp.org>
37391
37392         Add support for Cygwin ACLs.
37393         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37394         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37395         the chmod_or_fchmod call.
37396         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37397
37398 2008-06-08  Bruno Haible  <bruno@clisp.org>
37399
37400         Fix bug with setuid modes in Solaris 10+ code.
37401         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37402         succeeded, when the mode contains some special bits.
37403
37404 2008-06-08  Bruno Haible  <bruno@clisp.org>
37405
37406         Add support for Solaris 7..10 ACLs.
37407         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37408         declarations.
37409         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37410         functions.
37411         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37412         * lib/set-mode-acl.c (qset_acl): Likewise.
37413         * lib/copy-acl.c (qcopy_acl): Likewise.
37414
37415 2008-06-08  Bruno Haible  <bruno@clisp.org>
37416
37417         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37418         declaration.
37419         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37420         (acl_access_nontrivial): Remove MacOS X case.
37421         (file_has_acl): Use acl_extended_nontrivial.
37422         * lib/copy-acl.c (qcopy_acl): Likewise.
37423
37424 2008-06-08  Bruno Haible  <bruno@clisp.org>
37425
37426         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37427
37428 2008-06-08  Jim Meyering  <meyering@redhat.com>
37429
37430         * modules/acl (Maintainer): Add Bruno Haible.
37431
37432 2008-06-07  Bruno Haible  <bruno@clisp.org>
37433
37434         Improve support for Tru64 ACLs.
37435         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37436         ACL on OSF/1.
37437
37438 2008-06-07  Bruno Haible  <bruno@clisp.org>
37439
37440         Add support for MacOS X ACLs.
37441         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37442         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37443         * lib/set-mode-acl.c (qset_acl): Likewise.
37444         * lib/copy-acl.c (qcopy_acl): Likewise.
37445
37446 2008-06-07  Bruno Haible  <bruno@clisp.org>
37447
37448         Fix memory leak introduced on 2008-05-22.
37449         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37450         use.
37451
37452 2008-06-07  Bruno Haible  <bruno@clisp.org>
37453
37454         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37455         to construct an empty ACL.
37456
37457 2008-06-07  Bruno Haible  <bruno@clisp.org>
37458
37459         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37460         precisely.
37461         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37462
37463 2008-06-07  Bruno Haible  <bruno@clisp.org>
37464
37465         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37466         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37467
37468 2008-06-07  Bruno Haible  <bruno@clisp.org>
37469
37470         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37471         regardless of POSIX.
37472         * doc/posix-functions/_longjmp.texi: Likewise.
37473         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37474         SystemV platform in this case.
37475
37476 2008-06-06  Eric Blake  <ebb9@byu.net>
37477
37478         Document abort() bugs.
37479         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37480
37481         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37482         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37483         sigsetjmp.
37484         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37485         siglongjmp, but only as a macro.
37486         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37487         is obsolete.
37488         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37489
37490         Tweak documentation to cover cygwin argz bugs.
37491         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37492         argz bug fix; no code change needed since no cygwin releases
37493         occurred between the last fix and the bug being tested.
37494         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37495         module and recently fixed cygwin bugs.
37496         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37497         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37498         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37499         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37500         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37501         Likewise.
37502         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37503         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37504         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37505         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37506         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37507         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37508         Likewise.
37509
37510         Avoid gcc warning on cygwin.
37511         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37512         !ACL_NO_TRIVIAL]: Avoid unused variable.
37513
37514 2008-06-05  Eric Blake  <ebb9@byu.net>
37515
37516         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37517         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37518         git-version-gen fails to come up with a version.
37519         Reported by Simon Josefsson.
37520
37521 2008-06-05  Jim Meyering  <meyering@redhat.com>
37522             Paul Eggert  <eggert@cs.ucla.edu>
37523
37524         utimens.c: work around a probable Linux kernel bug
37525         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37526         appears to be a kernel bug that causes utimensat to return 280
37527         instead of 0, indicating success.
37528
37529 2008-06-04  Bruno Haible  <bruno@clisp.org>
37530
37531         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
37532         2008-06-01 commit.
37533
37534 2008-06-04  Bruno Haible  <bruno@clisp.org>
37535
37536         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37537         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37538         (file_has_acl): Use it. Save errno afterwards.
37539         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37540
37541 2008-06-03  Bruno Haible  <bruno@clisp.org>
37542
37543         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37544         draft code. Simplify #ifs.
37545         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37546         Put Solaris code after POSIX-draft code. Fix comments regarding
37547         Solaris 10, HP-UX. Mention Cygwin.
37548         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37549
37550 2008-06-03  Eric Blake  <ebb9@byu.net>
37551
37552         Provide fallback for older kernels.
37553         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37554         Provide runtime fallback if kernel lacks support.
37555         Reported by Mike Frysinger.
37556
37557 2008-06-02  Bruno Haible  <bruno@clisp.org>
37558
37559         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37560         it exists.
37561
37562 2008-06-02  Bruno Haible  <bruno@clisp.org>
37563
37564         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37565         * lib/copy-acl.c (qcopy_acl): Update comment.
37566
37567 2008-06-02  Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37570         like ACL APIs.
37571
37572 2008-06-02  Bruno Haible  <bruno@clisp.org>
37573
37574         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37575         * tests/test-set-mode-acl.sh: Likewise.
37576         * tests/test-copy-acl.sh: Likewise.
37577         * tests/test-copy-file.sh: Likewise.
37578
37579 2008-06-02  Bruno Haible  <bruno@clisp.org>
37580
37581         * tests/test-file-has-acl.sh: Remove unused code.
37582
37583 2008-06-01  Bruno Haible  <bruno@clisp.org>
37584
37585         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37586         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37587         messages.
37588         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37589
37590 2008-06-01  Bruno Haible  <bruno@clisp.org>
37591
37592         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37593         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37594         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37595         APIs.
37596         * modules/acl-tests (configure.ac): Remove tests now contained in
37597         m4/acl.m4.
37598
37599 2008-06-02  Jim Meyering  <meyering@redhat.com>
37600
37601         announce-gen: use a better key-server host name
37602         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
37603         it may be more consistently reliable.  Suggested by Werner Koch
37604         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
37605
37606 2008-06-01  Bruno Haible  <bruno@clisp.org>
37607
37608         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
37609         Reported by Voroskoi Andras <voroskoi@gmail.com>.
37610
37611 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
37612
37613         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
37614
37615 2008-06-01  Bruno Haible  <bruno@clisp.org>
37616
37617         New ACL tests.
37618         * tests/test-file-has-acl.sh: New file.
37619         * tests/test-file-has-acl.c: New file.
37620         * tests/test-set-mode-acl.sh: New file.
37621         * tests/test-set-mode-acl.c: New file.
37622         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
37623         * tests/test-copy-acl.c: New file.
37624         * modules/acl-tests: New file, based on modules/copy-file-tests.
37625         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
37626         (Depends-on): Add acl-tests.
37627         (configure.ac): Remove checks.
37628         (Makefile.am): Don't create test-sameacls program here any more.
37629
37630 2008-06-01  Bruno Haible  <bruno@clisp.org>
37631
37632         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
37633         * tests/test-sameacls.c: Include progname.h.
37634         (main): Invoke set_program_name. Portability fixes for MacOS X,
37635         Solaris, HP-UX.
37636
37637 2008-06-01  Bruno Haible  <bruno@clisp.org>
37638
37639         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
37640         function.
37641         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
37642
37643 2008-06-01  Bruno Haible  <bruno@clisp.org>
37644
37645         * modules/rpmatch (Depends-on): Add strdup.
37646
37647 2008-06-01  Bruno Haible  <bruno@clisp.org>
37648
37649         * lib/pipe.c: Include unistd-safer.h.
37650         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
37651         * modules/pipe (Depends-on): Add unistd-safer.
37652
37653 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37654
37655         * modules/autobuild (configure.ac): Call AB_INIT.
37656
37657 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37658
37659         * tests/test-getaddrinfo.c: Don't print debug messages by default.
37660         Suggested by Bruno Haible <bruno@clisp.org>.
37661
37662 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37663
37664         * tests/test-base64.c: Cast size_t to unsigned long when invoking
37665         printf.  Use %lu instead of %d.  Reported by Bruno Haible
37666         <bruno@clisp.org>.
37667
37668 2008-05-29  Eric Blake  <ebb9@byu.net>
37669
37670         Prefer new POSIX 200x interfaces over futimesat.
37671         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
37672         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
37673         when available.
37674         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
37675
37676 2008-05-28  Bruno Haible  <bruno@clisp.org>
37677
37678         * modules/stpcpy (License): Change to LGPLv2+.
37679         Requested by David Lutterkort <dlutter@redhat.com>.
37680
37681 2008-05-27  Bruno Haible  <bruno@clisp.org>
37682
37683         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
37684         current mingw.
37685         Reported by Jose E. Marchesi <jemarch@gnu.org>.
37686
37687 2008-05-27  Bruno Haible  <bruno@clisp.org>
37688
37689         * modules/iconv_open (Link): New section, from module 'iconv'.
37690         * modules/striconv (Link): Likewise.
37691         * modules/striconveh (Link): Likewise.
37692         * modules/xstriconv (Link): Likewise.
37693         * modules/unicodeio (Link): Likewise.
37694         * modules/propername (Link): Likewise.
37695         Reported by Jim Meyering.
37696
37697 2008-05-26  Jim Meyering  <meyering@redhat.com>
37698
37699         sha256: do not artificially restrict buffer length to be < 2^32
37700         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
37701         uint32_t to size_t.
37702         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
37703         to match.
37704
37705         avoid unaligned access errors, e.g., on sparc
37706         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
37707         direct access through a possibly-unaligned uint64* pointer.
37708         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
37709         direct access through a possibly-unaligned uint32* pointer.
37710         Prompted by this patch from Tom "spot" Callaway:
37711         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
37712
37713         sha512.c: fix typo in comment
37714         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
37715
37716 2008-05-25  Bruno Haible  <bruno@clisp.org>
37717
37718         * lib/set-mode-acl.c: Renamed from lib/acl.c.
37719         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
37720         (Makefile.am): Update lib_SOURCES.
37721
37722 2008-05-25  Bruno Haible  <bruno@clisp.org>
37723
37724         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
37725
37726 2008-05-25  Jim Meyering  <meyering@redhat.com>
37727
37728         useless-if-before-free: freed expr may have white-space differences
37729         * build-aux/useless-if-before-free: Recognize cases in which the
37730         freed expression differs from the tested one in embedded white
37731         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
37732         $1 was used, so we can't make any regexp shy.  Improved tests now
37733         detect this.
37734
37735         useless-if-before-free: accept white space in the expression.
37736         * build-aux/useless-if-before-free: For now, any white space
37737         in the expression must be identical in the free argument.
37738
37739         useless-if-before-free: efficiency tweak
37740         * build-aux/useless-if-before-free: Make the expression-matching
37741         regexp "shy".
37742         Make the *outer* regexp shy, not the expr-matching one.
37743
37744         update code-in-comment to accept cast of free arg
37745         * build-aux/useless-if-before-free: Update regexp.
37746
37747 2008-05-25  Bruno Haible  <bruno@clisp.org>
37748
37749         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
37750         * modules/copy-file-tests (Files, Makefile.am): Update.
37751         * tests/test-copy-file.c (func_test_copy): Update.
37752
37753 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
37754
37755         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
37756
37757 2008-05-23  Bruno Haible  <bruno@clisp.org>
37758
37759         Improve support for ACLs on OSF/1.
37760         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
37761         Remove fallback for unknown flavors of ACLs.
37762
37763 2008-05-22  Bruno Haible  <bruno@clisp.org>
37764
37765         Add support for ACLs on OSF/1.
37766         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
37767         replacements.
37768         (acl_free_text): New macro fallback.
37769         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
37770         acl_free.
37771         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
37772         acl_free_text function. Require AC_C_INLINE.
37773
37774 2008-05-22  Bruno Haible  <bruno@clisp.org>
37775
37776         Make copy_acl work on MacOS X 10.5.
37777         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
37778         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
37779         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
37780         If MODE_INSIDE_ACL, don't assume that every system has the same text
37781         representation for ACLs as FreeBSD.
37782         * lib/copy-acl.c (copy_acl): Add support for platforms with
37783         !MODE_INSIDE_ACL.
37784         * lib/file-has-acl.c (file_has_acl): Likewise.
37785         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
37786         FreeBSD, MacOS X, or IRIX, respectively.
37787
37788 2008-05-22  Bruno Haible  <bruno@clisp.org>
37789
37790         * lib/acl.h: Don't include <sys/acl.h>.
37791         (GETACLCNT): Move fallback to lib/acl-internal.h.
37792         * lib/acl-internal.h: Include <sys/acl.h> here.
37793         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
37794
37795 2008-05-22  Bruno Haible  <bruno@clisp.org>
37796
37797         Split off copy_acl function to separate file.
37798         * lib/copy-acl.c: New file, extracted from lib/acl.c.
37799         * lib/acl.c (copy_acl): Moved function to separate file.
37800         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
37801         * modules/acl (Files): Add lib/copy-acl.c.
37802         (Makefiles.am): Augment lib_SOURCES.
37803
37804 2008-05-22  Bruno Haible  <bruno@clisp.org>
37805
37806         * modules/copy-file-tests: New file.
37807         * tests/test-copy-file.sh: New file.
37808         * tests/test-copy-file.c: New file.
37809         * tests/test-copy-file-sameacls.c: New file.
37810
37811 2008-05-22  Eric Blake  <ebb9@byu.net>
37812
37813         Avoid gcc warning.
37814         * tests/test-memcmp.c (main): Pass NULL indirectly.
37815
37816 2008-05-21  Bruno Haible  <bruno@clisp.org>
37817
37818         Add reference doc about ACLs.
37819         * doc/acl-resources.txt: New file.
37820         * doc/acl-cygwin.txt: New file.
37821
37822 2008-05-21  Bruno Haible  <bruno@clisp.org>
37823
37824         Avoid one more warning from gcc.
37825         * lib/vasnprintf.c (IF_LINT): Update comments.
37826         (VASNPRINTF): Use it also for the 'prefix' array initializer.
37827
37828 2008-05-21  Jim Meyering  <meyering@redhat.com>
37829
37830         avoid a warning from gcc
37831         * lib/vasnprintf.c (IF_LINT): Define.
37832         (scale10_round_decimal_long_double):
37833         Use it to avoid a "may be used uninitialized" warning.
37834         (scale10_round_decimal_double): Likewise.
37835
37836 2008-05-21  Simon Josefsson  <simon@josefsson.org>
37837
37838         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
37839         declared.
37840
37841 2008-05-20  Bruno Haible  <bruno@clisp.org>
37842
37843         * tests/test-memcmp.c (main): Test also the sign of the result. Test
37844         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
37845
37846 2008-05-20  Simon Josefsson  <simon@josefsson.org>
37847
37848         * modules/memcmp-tests: New file.
37849         * tests/test-memcmp.c: New file.
37850
37851 2008-05-19  Bruno Haible  <bruno@clisp.org>
37852
37853         * modules/propername (Notice, configure.ac): Put quoted "..." into
37854         --keyword option.
37855         * lib/propername.h: Update comments accordingly.
37856         Reported by Eric Blake.
37857
37858 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
37859
37860         * modules/getpass-gnu (Depends-on): Add fseeko.
37861
37862 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37863
37864         * modules/base64-tests: New file.
37865
37866 2008-05-19  Bo Borgerson <gigabo@gmail.com>
37867
37868         * lib/base64.c (base64_decode_ctx): If a decode context structure
37869         was passed in use it to ignore newlines.  If a context structure
37870         was _not_ passed in, continue to treat newlines as garbage (this
37871         is the historical behavior).  Formerly base64_decode.
37872         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37873         takes a decode context structure.
37874         * lib/base64.h (base64_decode): Macro for four-argument calls.
37875         (base64_decode_alloc): Likewise.
37876         * lib/base64.c (base64_decode_ctx): If a decode context structure
37877         was passed in use it to ignore newlines.  If a context structure
37878         was _not_ passed in, continue to treat newlines as garbage (this
37879         is the historical behavior).  Formerly base64_decode.
37880         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
37881         takes a decode context structure.
37882         * lib/base64.h (base64_decode): Macro for four-argument calls.
37883         (base64_decode_alloc): Likewise.
37884
37885 2008-05-19  Jim Meyering  <meyering@redhat.com>
37886
37887         avoid a warning from gcc
37888         * lib/trim.c (IF_LINT): Define.
37889         (trim2): Use it to avoid a "may be used uninitialized" warning.
37890
37891         Fix doc typo.
37892         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
37893
37894 2008-05-19  Bruno Haible  <bruno@clisp.org>
37895
37896         * doc/glibc-functions/getpass.texi: Document limits of other
37897         implementations.
37898
37899 2008-05-19  Simon Josefsson  <simon@josefsson.org>
37900             Bruno Haible <bruno@clisp.org>
37901
37902         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
37903
37904 2008-05-18  Bruno Haible  <bruno@clisp.org>
37905
37906         * modules/propername: New file, from GNU gettext.
37907         * lib/propername.h: New file, from GNU gettext.
37908         * lib/propername.c: New file, from GNU gettext.
37909         * MODULES.html.sh (Internationalization functions): Add propername.
37910
37911 2008-05-16  Jim Meyering  <meyering@redhat.com>
37912             Bruno Haible  <bruno@clisp.org>
37913
37914         Avoid some warnings from "gcc -Wshadow".
37915         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
37916
37917 2008-05-15  Eric Blake  <ebb9@byu.net>
37918
37919         Extend previous patch to cygwin 1.7.0.
37920         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
37921         fast implementation in cygwin >= 1.7.0.
37922         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37924
37925 2008-05-15  Bruno Haible  <bruno@clisp.org>
37926
37927         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
37928         implementation in glibc >= 2.9.
37929         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37930         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37931
37932 2008-05-15  Bruno Haible  <bruno@clisp.org>
37933
37934         * MODULES.html.sh (Internationalization functions): Remove linebreak.
37935         (Unicode string functions): Add unilbrk/*.
37936         Reported by Karl Berry.
37937
37938 2008-05-15  Eric Blake  <ebb9@byu.net>
37939
37940         Fix violation of <stdbool.h> replacement in regex.
37941         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
37942         * lib/regexec.c (re_search_internal): Likewise.
37943         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
37944
37945 2008-05-15  Jim Meyering  <meyering@redhat.com>
37946
37947         avoid distracting test output when git or cvs is not found
37948         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
37949         * tests/test-vc-list-files-git.sh: Likewise.
37950
37951 2008-05-15  Eric Blake  <ebb9@byu.net>
37952
37953         Glibc finally accepted the memmem speedup code, bugzilla #5514.
37954         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
37955         glibc version.
37956         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37957         * doc/posix-functions/strstr.texi (strstr): Likewise.
37958         * lib/str-two-way.h (MAX): Sychronize with glibc.
37959
37960 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
37961
37962         * lib/regcomp.c (optimize_utf8): Add a note on why we test
37963         opr.ctx_type.
37964         (calc_first): Initialize constraint field.
37965         (duplicate_node_closure): Use it instead of special casing ANCHORS.
37966         Fix grammar.
37967         (duplicate_node): Merge constraint field for all node types.
37968         (calc_eclosure_iter): Look at constraint field for all node types.
37969         * lib/regex_internal.c (create_cd_newstate): Don't look at
37970         opr.ctx_type.
37971
37972 2008-05-14  Bruno Haible  <bruno@clisp.org>
37973
37974         Help GCC to do better code generation.
37975         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
37976         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
37977         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
37978         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
37979         Declare with attribute 'malloc' if supported.
37980
37981 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
37982
37983         use "echo STR|wc -c" rather than unportable "expr length STR"
37984         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
37985         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
37986
37987 2008-05-14  Jim Meyering  <meyering@redhat.com>
37988
37989         use dd ibs=$n count=1 ... rather than less-portable head -c$n
37990         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
37991         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
37992         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
37993         via Collin Lasse.
37994
37995 2008-05-14  Eric Blake  <ebb9@byu.net>
37996
37997         Avoid quadratic growth in gl_LIBSOURCES.
37998         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
37999         Suggested by Bruno Haible.
38000
38001         Test xmemdup0.
38002         * modules/xmemdup0-tests: New file.
38003         * tests/test-xmemdup0.c: Likewise.
38004
38005 2008-05-13  Eric Blake  <ebb9@byu.net>
38006
38007         Split xmemdup0 into its own module.
38008         * modules/xmemdup0: New file.
38009         * lib/xmemdup0.h: Likewise.
38010         * lib/xmemdup0.c: Likewise.
38011         * MODULES.html.sh (Memory management functions): Add xmemdup0.
38012         * lib/xalloc.h (xmemdup0): Remove.
38013         * lib/xmalloc.c (xmemdup0): Likewise.
38014
38015 2008-05-13  Eric Blake  <ebb9@byu.net>
38016             Bruno Haible  <bruno@clisp.org>
38017
38018         Reduce number of forks required during autoconf.
38019         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
38020         and gl_LIBSOURCES_DIR.
38021         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
38022         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
38023         m4_syscmd per file.
38024         <m4_foreach_w>: Move...
38025         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
38026
38027 2008-05-13  Eric Blake  <ebb9@byu.net>
38028
38029         * gnulib-tool: Fix various comment typos.
38030
38031 2008-05-12  Bruno Haible  <bruno@clisp.org>
38032
38033         Tailor the linebreaking algorithm.
38034         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
38035
38036 2008-05-12  Bruno Haible  <bruno@clisp.org>
38037
38038         Update to Unicode 5.0.0.
38039         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38040         LBP_JV, LBP_JT. Redistribute values.
38041         (unilbrk_table): Change size.
38042         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
38043         Unicode TR#14 rev. 22.
38044         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38045         LBP_JV, LBP_JT. Redistribute values.
38046         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
38047         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
38048         Update.
38049         * lib/unilbrk/lbrkprop1.h: Regenerated.
38050         * lib/unilbrk/lbrkprop2.h: Regenerated.
38051         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
38052         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
38053         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
38054         Likewise.
38055         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
38056         Likewise.
38057         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
38058         result.
38059         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38060         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38061         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38062         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
38063         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
38064         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
38065
38066 2008-05-11  Bruno Haible  <bruno@clisp.org>
38067
38068         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
38069
38070 2008-05-11  Bruno Haible  <bruno@clisp.org>
38071
38072         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
38073         * modules/unilbrk/gen-lbrk: New file.
38074
38075 2008-05-11  Bruno Haible  <bruno@clisp.org>
38076
38077         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
38078         * m4/sha512.m4 (gl_SHA512): Likewise.
38079
38080 2008-05-11  Jim Meyering  <meyering@redhat.com>
38081
38082         New modules: crypto/sha256, crypto/sha512 (from coreutils)
38083         * modules/crypto/sha256: New file.
38084         * modules/crypto/sha512: Likewise.
38085         * lib/sha256.c: Likewise.
38086         * lib/sha256.h: Likewise.
38087         * lib/sha512.c: Likewise.
38088         * lib/sha512.h: Likewise.
38089         * lib/u64.h: Likewise.
38090         * m4/sha256.m4: Likewise.
38091         * m4/sha512.m4: Likewise.
38092         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
38093
38094 2008-05-10  Bruno Haible  <bruno@clisp.org>
38095
38096         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
38097         (Input/Output <stdio.h>): Add xprintf.
38098         (Signal handling <signal.h>): Add strsignal.
38099         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
38100         (Core language properties): Add func.
38101         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
38102         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
38103         strings.
38104         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
38105         (Input/output): New section.
38106         (File system functions): Add openat-die, stat-macros.
38107         (Networking functions): Add sockets.
38108         (Unicode string functions): Add unictype/*.
38109         (Support for building libraries and executables): Add gperf.
38110         (Support for building documentation): Add agpl-3.0.
38111         (Misc): Add nocrash.
38112
38113 2008-05-10  Bruno Haible  <bruno@clisp.org>
38114
38115         * modules/unictype/gen-ctype: New file.
38116
38117 2008-05-10  Jim Meyering  <meyering@redhat.com>
38118
38119         Make chdir-safer.c more efficient on a system with no symlinks.
38120         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
38121         also if ELOOP is zero.  Suggested by Bruno Haible.
38122
38123         Make chdir-safer.c slightly safer.
38124         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
38125         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
38126
38127         Avoid compile failure on systems without ELOOP (like mingw).
38128         * lib/chdir-safer.c (ELOOP): Define if not already defined.
38129         Reported by Bruno Haible.
38130
38131 2008-05-10  Bruno Haible  <bruno@clisp.org>
38132
38133         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
38134         (is_utf8_encoding): Use a case-insensitive comparison.
38135         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
38136         streq.
38137
38138 2008-05-10  Bruno Haible  <bruno@clisp.org>
38139
38140         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
38141         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
38142         * lib/unilbrk/ulc-common.h (iconv_string_length,
38143         iconv_string_keeping_offsets): Remove declarations.
38144         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
38145         Don't include <iconv.h>, streq.h, xsize.h.
38146         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
38147         conversion.
38148         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
38149         <iconv.h>, streq.h, xsize.h.
38150         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
38151         conversion.
38152         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38153         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38154         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38155         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38156
38157 2008-05-10  Bruno Haible  <bruno@clisp.org>
38158
38159         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38160         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38161
38162         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38163         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38164
38165         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38166         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38167
38168         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38169         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38170
38171         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38172         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38173
38174         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38175         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38176
38177         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38178         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38179
38180         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38181         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38182
38183 2008-05-10  Bruno Haible  <bruno@clisp.org>
38184
38185         Split up 'linebreak' module.
38186         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38187         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38188         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38189         modifications.
38190         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38191         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38192         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38193         lib/linebreak.c.
38194         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38195         lib/linebreak.c.
38196         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38197         lib/linebreak.c.
38198         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38199         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38200         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38201         lib/linebreak.c.
38202         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38203         lib/linebreak.c.
38204         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38205         lib/linebreak.c.
38206         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38207         lib/linebreak.c.
38208         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38209         lib/linebreak.c.
38210         * modules/unilbrk/base: New file.
38211         * modules/unilbrk/tables: New file.
38212         * modules/unilbrk/u8-possible-linebreaks: New file.
38213         * modules/unilbrk/u16-possible-linebreaks: New file.
38214         * modules/unilbrk/u32-possible-linebreaks: New file.
38215         * modules/unilbrk/ulc-common: New file.
38216         * modules/unilbrk/ulc-possible-linebreaks: New file.
38217         * modules/unilbrk/u8-width-linebreaks: New file.
38218         * modules/unilbrk/u16-width-linebreaks: New file.
38219         * modules/unilbrk/u32-width-linebreaks: New file.
38220         * modules/unilbrk/ulc-width-linebreaks: New file.
38221         * lib/linebreak.h: Remove file.
38222         * lib/linebreak.c: Remove file.
38223         * m4/linebreak.m4: Remove file.
38224         * modules/linebreak: Remove file.
38225         * NEWS: Mention the changes.
38226
38227 2008-05-09  Eric Blake  <ebb9@byu.net>
38228
38229         Add xmemdup0.
38230         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38231         implementation.
38232         * lib/xmalloc.c (xmemdup0): New C implementation.
38233
38234 2008-05-08  Bruno Haible  <bruno@clisp.org>
38235
38236         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38237
38238 2008-05-07  Eric Blake  <ebb9@byu.net>
38239
38240         Support cross-compilation of <wctype.h>.
38241         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38242         AC_CACHE_CHECK.
38243
38244 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38245
38246         * build-aux/vc-list-files: Add support for bzr.
38247
38248 2008-05-03  Jim Meyering  <meyering@redhat.com>
38249
38250         avoid failed assertion with tight malloc
38251         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38252
38253 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38254
38255         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38256         are needed from arpa/inet.h.
38257         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38258         Reported by Bruno Haible.
38259
38260 2008-05-02  Jim Meyering  <meyering@redhat.com>
38261
38262         avoid compilation error on FreeBSD 6
38263         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38264
38265 2008-05-01  Jim Meyering  <meyering@redhat.com>
38266
38267         useless-if-before-free: correct --help's exit status description
38268         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38269         for one or more matches, etc.  Reported by Bruno Haible.
38270
38271         vc-list-files: make the stand-alone gnulib test work
38272         * modules/vc-list-files-tests (configure.ac):
38273         Define and AC_SUBST abs_aux_dir.
38274         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38275         $(abs_top_srcdir) to each script and having each of them
38276         duplicate the work of setting PATH, set PATH here, using
38277         the new variable, abs_aux_dir instead.
38278         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38279         * tests/test-vc-list-files-git.sh: Likewise.
38280         Reported by Bruno Haible.
38281
38282 2008-05-01  Bruno Haible  <bruno@clisp.org>
38283
38284         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38285         reallocation. Rename 'done' to 'found_delimiter'.
38286
38287 2008-05-01  Jim Meyering  <meyering@redhat.com>
38288
38289         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38290         * build-aux/vc-list-files: Use `...`, not $(...).
38291
38292 2008-04-30  Jim Meyering  <meyering@redhat.com>
38293
38294         add tests for vc-list-files
38295         * modules/vc-list-files-tests: New module.
38296         * tests/test-vc-list-files-cvs.sh: New file.
38297         * tests/test-vc-list-files-git.sh: New file.
38298
38299         avoid a warning from gcc
38300         * lib/getndelim2.c (IF_LINT): Define.
38301         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38302
38303         vc-list-files: work properly with build-aux/cvsu, too
38304         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38305         to all cvs-based clauses.
38306
38307         vc-list-files: work properly in the CVS+awk case, too
38308         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38309
38310         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38311         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38312         take more than one file argument, so .  Add quotes, just in case $dir
38313         ever contains a shell meta-character.  Prompted by Soren Hansen in
38314         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38315
38316 2008-04-29  Eric Blake  <ebb9@byu.net>
38317
38318         Optimize getndelim2 to use block operations when possible.
38319         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38320         freadseek, and memchr2.
38321         * lib/getndelim2.c (getndelim2): Use them for block reads.
38322
38323 2008-04-29  Bruno Haible  <bruno@clisp.org>
38324
38325         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38326         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38327         * modules/inet_ntop (Depends-on): Add extensions.
38328         * modules/inet_pton (Depends-on): Likewise.
38329         Reported by Simon Josefsson.
38330
38331 2008-04-29  Jim Meyering  <meyering@redhat.com>
38332
38333         When the is more than one match in a block, match all of them.
38334         * build-aux/useless-if-before-free: Iterate through each block
38335         until there are no more matches.
38336
38337         Fix broken useless-if-before-free script.
38338         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38339         the expression to match cast of argument to free-like function.
38340
38341 2008-04-29  Eric Blake  <ebb9@byu.net>
38342
38343         Use new header.
38344         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38345
38346 2008-04-29  Jim Meyering  <meyering@redhat.com>
38347
38348         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38349         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38350         by gnulib to exist and to declare e.g., inet_ntop.
38351         Don't include "inet_ntop.h", now removed.
38352
38353         * m4/arpa_inet_h.m4: Remove trailing blanks.
38354
38355 2008-04-29  Eric Blake  <ebb9@byu.net>
38356
38357         Silence valgrind on safe reads beyond potential array bounds.
38358         * lib/rawmemchr.valgrind: New file.
38359         * lib/strchrnul.valgrind: Likewise.
38360         * modules/rawmemchr (Files): Distribute new file.
38361         * modules/strchrnul (Files): Likewise.
38362         Suggested by Bruno Haible.
38363
38364 2008-04-29  Bruno Haible  <bruno@clisp.org>
38365
38366         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38367         (inet_ntop, inet_pton): Change portability warning's wording.
38368         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38369         Invoke gl_CHECK_NEXT_HEADERS.
38370         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38371         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38372         set ARPA_INET_H.
38373         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38374         * modules/arpa_inet (Description): No longer only for systems that
38375         lack it.
38376         (Depends-on): Add include_next.
38377         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38378         HAVE_ARPA_INET_H.
38379
38380 2008-04-29  Jim Meyering  <meyering@redhat.com>
38381
38382         * modules/mkdir (License): Re-license as LGPLv2+.
38383
38384 2008-04-29  Bruno Haible  <bruno@clisp.org>
38385
38386         * modules/rawmemchr (Maintainer): Set to Eric.
38387         * modules/strchrnul (Maintainer): Likewise.
38388
38389 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38390
38391         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38392         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38393
38394         * modules/arpa_inet (arpa/inet.h): Use them.
38395
38396 2008-04-28  Eric Blake  <ebb9@byu.net>
38397
38398         Test getndelim2.
38399         * modules/getndelim2-tests: New file.
38400         * tests/test-getndelim2.c: Likewise.
38401         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38402         stream.
38403         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38404
38405         * MODULES.html.sh: Document new module.
38406
38407 2008-04-20  Bruno Haible  <bruno@clisp.org>
38408
38409         * lib/c-stack.c (die): Use raise.
38410         * modules/c-stack (Depends-on): Add raise.
38411
38412 2008-04-28  Bruno Haible  <bruno@clisp.org>
38413
38414         Expect rpmatch to be declared.
38415         * lib/yesno.c (rpmatch): Remove declaration.
38416
38417         Declare rpmatch.
38418         * lib/stdlib.in.h (rpmatch): New declaration.
38419         * lib/rpmatch.c: Include <stdlib.h> first.
38420         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38421         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38423         HAVE_RPMATCH.
38424         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38425         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38426         (Include): Set to <stdlib.h>.
38427         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38428         HAVE_RPMATCH.
38429         * NEWS: Document the change.
38430
38431 2008-04-28  Bruno Haible  <bruno@clisp.org>
38432
38433         Change rpmatch to use nl_langinfo when appropriate.
38434         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38435         (N_): New macro.
38436         (localized_pattern): New function/macro.
38437         (try): Remove match, nomatch arguments. Copy the pattern into safe
38438         memory before caching it.
38439         (rpmatch): Use localized_pattern. Add translator comments.
38440         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38441         Suggested by Eric Blake.
38442         * modules/rpmatch (Depends-on): Add stdbool.
38443
38444 2008-04-28  Eric Blake  <ebb9@byu.net>
38445
38446         Add rawmemchr module, matching glibc.
38447         * modules/string (Makefile.am): New indicator.
38448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38449         * lib/string.in.h (rawmemchr): Declare when appropriate.
38450         * modules/rawmemchr: New file.
38451         * m4/rawmemchr.m4: Likewise.
38452         * lib/rawmemchr.c: Likewise.
38453         * modules/rawmemchr-tests: Likewise.
38454         * tests/test-rawmemchr.c: Likewise.
38455         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38456         module.
38457         * modules/strchrnul (Depends-on): Add rawmemchr.
38458         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38459
38460         Whitespace cleanup.
38461         * tests/test-strchrnul.c: Reindent.
38462         * lib/strchrnul.c: Likewise.
38463
38464         Optimize and test strchrnul.
38465         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38466         * modules/strchrnul-tests: New file.
38467         * tests/test-strchrnul.c: Likewise.
38468
38469         Remove intprops dependency.
38470         * modules/memchr (Depends-on): Remove intprops.
38471         * modules/memrchr (Depends-on): Likewise.
38472         * modules/memchr2 (Depends-on): Likewise.
38473         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38474         * lib/memrchr.c (__memrchr): Likewise.
38475         * lib/memrchr2.c (memchr2): Likewise.
38476         Reported by Simon Josefsson.
38477
38478 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38479
38480         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38481         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38482
38483 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38484
38485         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38486
38487         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38488
38489         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38490
38491         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38492         declarations.
38493         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38494
38495         * m4/inet_pton.m4: Don't check for header files.
38496
38497         * m4/inet_ntop.m4: Don't check for header files.
38498
38499 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38500
38501         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38502         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38503         trigger for cygwin).
38504         Reported by Bruno Haible  <bruno@clisp.org>.
38505
38506 2008-04-28  Bruno Haible  <bruno@clisp.org>
38507
38508         * doc/posix-functions/strdup.texi: Mention mingw problem.
38509
38510 2008-04-27  Bruno Haible  <bruno@clisp.org>
38511
38512         * modules/stat-time-tests (Depends-on): Add sleep.
38513         * tests/test-stat-time.c (force_unlink): New function.
38514         (cleanup): Use it.
38515         (test_mtime): Remove the ctime related tests.
38516         (test_ctime): New function, containing the ctime related tests.
38517         (main): Call test_ctime, except on native Windows platforms.
38518
38519 2008-04-27  Bruno Haible  <bruno@clisp.org>
38520
38521         * lib/rpmatch.c (rpmatch): Add some comments.
38522         Reported by James Youngman <jay@gnu.org>.
38523
38524 2008-04-27  Bruno Haible  <bruno@clisp.org>
38525
38526         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38527         quiet NaNs.
38528
38529 2008-04-27  Bruno Haible  <bruno@clisp.org>
38530
38531         Make test-yesno.sh work on mingw.
38532         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38533         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38534         (main): Set stdin to binary mode.
38535         * modules/yesno-tests (Depends-on): Add binary-io.
38536
38537 2008-04-27  Bruno Haible  <bruno@clisp.org>
38538
38539         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38540         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38541         argument that lie outside the IEEE 854 domain.
38542         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38543         (gl_ISFINITE): Use it.
38544         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38545
38546 2008-04-27  Bruno Haible  <bruno@clisp.org>
38547
38548         Allow local renaming in config.h.
38549         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38550
38551 2008-04-27  Bruno Haible  <bruno@clisp.org>
38552
38553         * lib/memchr.c (__memchr): Change type of 'i'.
38554         * lib/memchr2.c (memchr2): Likewise.
38555
38556 2008-04-26  Eric Blake  <ebb9@byu.net>
38557         and Bruno Haible  <bruno@clisp.org>
38558
38559         Optimize and test memrchr.
38560         * modules/memrchr (Depends-on): Add intprops.
38561         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38562         * modules/memrchr-tests: New file.
38563         * tests/test-memrchr.c: New file.
38564
38565 2008-04-26  Bruno Haible  <bruno@clisp.org>
38566
38567         Add tentative support for DragonFly BSD.
38568         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38569         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38570         fp.
38571         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38572         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38573         * lib/fpurge.c (fpurge): Likewise.
38574         * lib/freadable.c (freaadable): Likewise.
38575         * lib/freadahead.c (freadahead): Likewise.
38576         * lib/freading.c (freading): Likewise.
38577         * lib/freadptr.c (freadptr): Likewise.
38578         * lib/freadseek.c (freadptrinc): Likewise.
38579         * lib/fseeko.c (fseeko): Likewise.
38580         * lib/fseterr.c (fseterr): Likewise.
38581         * lib/fwritable.c (fwritable): Likewise.
38582         * lib/fwriting.c (fwriting): Likewise.
38583
38584 2008-04-26  Bruno Haible  <bruno@clisp.org>
38585
38586         * lib/stdio-impl.h: New file.
38587         * lib/fbufmode.c: Include stdio-impl.h.
38588         (fbufmode): Use fp_, remove redundant #defines.
38589         * lib/fflush.c: Include stdio-impl.h.
38590         (clear_ungetc_buffer): Remove redundant #defines.
38591         * lib/fpurge.c: Include stdio-impl.h.
38592         (fpurge): Remove redundant #defines.
38593         * lib/freadable.c: Include stdio-impl.h.
38594         (freadable): Remove redundant #defines.
38595         * lib/freadahead.c: Include stdio-impl.h.
38596         (freadahead): Remove redundant #defines.
38597         * lib/freading.c: Include stdio-impl.h.
38598         (freading): Remove redundant #defines.
38599         * lib/freadptr.c: Include stdio-impl.h.
38600         (freadptr): Remove redundant #defines.
38601         * lib/freadseek.c: Include stdio-impl.h.
38602         (freadptrinc): Remove redundant #defines.
38603         * lib/fseeko.c: Include stdio-impl.h.
38604         (rpl_fseeko): Remove redundant #defines.
38605         * lib/fseterr.c: Include stdio-impl.h.
38606         (fseterr): Remove redundant #defines.
38607         * lib/fwritable.c: Include stdio-impl.h.
38608         (fwritable: Remove redundant #defines.
38609         * lib/fwriting.c: Include stdio-impl.h.
38610         (fwriting): Remove redundant #defines.
38611         * modules/fbufmode (Files): Add lib/stdio-impl.h.
38612         * modules/fflush (Files): Likewise.
38613         * modules/fpurge (Files): Likewise.
38614         * modules/freadable (Files): Likewise.
38615         * modules/freadahead (Files): Likewise.
38616         * modules/freading (Files): Likewise.
38617         * modules/freadptr (Files): Likewise.
38618         * modules/freadseek (Files): Likewise.
38619         * modules/fseeko (Files): Likewise.
38620         * modules/fseterr (Files): Likewise.
38621         * modules/fwritable (Files): Likewise.
38622         * modules/fwriting (Files): Likewise.
38623
38624 2008-04-26  Bruno Haible  <bruno@clisp.org>
38625
38626         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38627         restore_seek_optimization, update_fpos_cache): New functions, extracted
38628         from rpl_fflush.
38629         (rpl_fflush): Use them.
38630         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
38631         (gl_REPLACE_FFLUSH): Use it.
38632
38633 2008-04-26  Bruno Haible  <bruno@clisp.org>
38634
38635         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
38636         on Solaris.
38637         * tests/test-xstrtoimax.sh: Likewise.
38638         * tests/test-xstrtoumax.sh: Likewise.
38639         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38640
38641 2008-04-26  Bruno Haible  <bruno@clisp.org>
38642
38643         * modules/memchr-tests: New file.
38644         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
38645
38646 2008-04-26  Eric Blake  <ebb9@byu.net>
38647             Bruno Haible  <bruno@clisp.org>
38648
38649         * lib/memchr.c: Include intprops.h.
38650         (__memchr): Optimize parallel detection of matching bytes. Rename local
38651         variables. Add explanatory comments.
38652
38653 2008-04-26  Bruno Haible  <bruno@clisp.org>
38654
38655         Fix module 'memchr', broken since 2000-10-28.
38656         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
38657
38658 2008-04-26  Bruno Haible  <bruno@clisp.org>
38659
38660         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
38661         comments.
38662
38663 2008-04-25  Eric Blake  <ebb9@byu.net>
38664
38665         Use native fstatat on cygwin 1.7.0.
38666         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
38667         first.
38668
38669 2008-04-23  Eric Blake  <ebb9@byu.net>
38670
38671         Improve memchr2 performance.
38672         * lib/memchr2.c (memchr2): Further optimize parallel detection of
38673         NUL bytes.
38674         * modules/memchr2 (Depends-on): Use intprops.h.
38675
38676 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38677
38678         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
38679         an inline function instead of a CPP macro.  Patch by Ben Pfaff
38680         <blp@cs.stanford.edu>.
38681
38682 2008-04-23  Simon Josefsson  <simon@josefsson.org>
38683
38684         * lib/arpa_inet.in.h: New file.
38685
38686         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
38687         (Makefile.am): Sed in substitute header file.
38688
38689         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
38690         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
38691
38692         * modules/inet_ntop (configure.ac): Use
38693         gl_ARPA_INET_MODULE_INDICATOR.
38694
38695         * modules/inet_pton (configure.ac): Use
38696         gl_ARPA_INET_MODULE_INDICATOR.
38697
38698 2008-04-22  Jim Meyering  <meyering@redhat.com>
38699
38700         * modules/verify (License): Re-license as LGPLv2+.
38701
38702 2008-04-22  Simon Josefsson  <simon@josefsson.org>
38703
38704         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
38705         parameter to void* as per POSIX standard (MinGW uses char*).
38706
38707 2008-04-21  Bruno Haible  <bruno@clisp.org>
38708
38709         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38710         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38711         Define to replacements if REPLACE_ISWCNTRL is 1.
38712         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
38713         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
38714         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
38715         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
38716         what it fixes.
38717         * doc/posix-functions/iswalpha.texi: Likewise.
38718         * doc/posix-functions/iswblank.texi: Likewise.
38719         * doc/posix-functions/iswcntrl.texi: Likewise.
38720         * doc/posix-functions/iswdigit.texi: Likewise.
38721         * doc/posix-functions/iswgraph.texi: Likewise.
38722         * doc/posix-functions/iswlower.texi: Likewise.
38723         * doc/posix-functions/iswprint.texi: Likewise.
38724         * doc/posix-functions/iswpunct.texi: Likewise.
38725         * doc/posix-functions/iswspace.texi: Likewise.
38726         * doc/posix-functions/iswupper.texi: Likewise.
38727         * doc/posix-functions/iswxdigit.texi: Likewise.
38728         Reported by Alain Guibert.
38729
38730 2008-04-21  Bruno Haible  <bruno@clisp.org>
38731
38732         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
38733         Patch by Alain Guibert.
38734
38735 2008-04-21  Bruno Haible  <bruno@clisp.org>
38736
38737         Fix test failures on mingw.
38738         * tests/test-xstrtol.c (print_no_progname): New function.
38739         (main): Install it in error_print_progname hook.
38740         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
38741         * tests/test-xstrtoimax.sh: Likewise.
38742         * tests/test-xstrtoumax.sh: Likewise.
38743
38744 2008-04-21  Bruno Haible  <bruno@clisp.org>
38745
38746         Fix test failure on mingw.
38747         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
38748
38749 2008-04-21  Bruno Haible  <bruno@clisp.org>
38750
38751         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
38752         Actually assign a value.
38753
38754 2008-04-20  Bruno Haible  <bruno@clisp.org>
38755
38756         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
38757         take 2.
38758         * lib/canonicalize.c (canonicalize_file_name): Elide if the
38759         'canonicalize-lgpl' module is also used.
38760         * lib/canonicalize-lgpl.c: Undo last change.
38761         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
38762
38763 2008-04-20  Bruno Haible  <bruno@clisp.org>
38764
38765         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
38766         config.h. Provide _mkdir based fallback for mingw.
38767         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
38768         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
38769         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
38770         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
38771         rather than defining mkdir in config.h.
38772         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
38773         (gl_SYS_STAT_H_DEFAULTS): New macro.
38774         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
38775         HAVE_IO_H any more.
38776         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
38777         HAVE_DECL_MKDIR and HAVE_IO_H.
38778
38779 2008-04-20  Bruno Haible  <bruno@clisp.org>
38780
38781         * lib/isapipe.c: Port to native Windows platforms.
38782
38783 2008-04-20  Bruno Haible  <bruno@clisp.org>
38784
38785         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
38786
38787 2008-04-21  Eric Blake  <ebb9@byu.net>
38788
38789         Work around preprocessors that don't handle UINTMAX_MAX.
38790         * lib/memchr2.c (memchr2): Avoid embedded #if.
38791         Reported by Alain Guibert, fix suggested by Bruno Haible.
38792
38793 2008-04-21  Simon Josefsson  <simon@josefsson.org>
38794
38795         * doc/posix-functions/strftime.texi (strftime): Explain better
38796         Windows incompatibility.  Suggested by Micah Cowan
38797         <micah@cowan.name>.
38798
38799 2008-04-20  Bruno Haible  <bruno@clisp.org>
38800
38801         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
38802         unistr/u8-mblen.
38803
38804 2008-04-20  Bruno Haible  <bruno@clisp.org>
38805
38806         Fix test failure on platforms with non-GNU iconv.
38807         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
38808         (U_TO_U8): Use it, rather than u16_to_u8.
38809         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
38810         units at the end of the input string.
38811         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
38812
38813 2008-04-20  Bruno Haible  <bruno@clisp.org>
38814
38815         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
38816         when the resulting length is 0.
38817         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
38818
38819 2008-04-20  Bruno Haible  <bruno@clisp.org>
38820
38821         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
38822         works.
38823         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
38824
38825 2008-04-20  Bruno Haible  <bruno@clisp.org>
38826
38827         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
38828         * modules/tsearch-tests (configure.ac): Test for initstate function.
38829
38830 2008-04-20  Bruno Haible  <bruno@clisp.org>
38831
38832         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
38833         for nlink_t if missing.
38834         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
38835
38836 2008-04-19  Bruno Haible  <bruno@clisp.org>
38837
38838         Work around snprintf bug on Linux libc5.
38839         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
38840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38841         gl_SNPRINTF_SIZE1.
38842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38843         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
38844         that test failed.
38845         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
38846         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
38847         * modules/snprintf (Files): Add m4/printf.m4.
38848         * modules/vsnprintf (Files): Likewise.
38849         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
38850         * doc/posix-functions/vsnprintf.texi: Likewise.
38851
38852 2008-04-19  Bruno Haible  <bruno@clisp.org>
38853
38854         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
38855         from 0.0058 to less than 10^-7.
38856
38857 2008-04-19  Bruno Haible  <bruno@clisp.org>
38858
38859         Fix rounding when a precision is given.
38860         * lib/vasnprintf.c (is_borderline): New function.
38861         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
38862         9...9x.
38863         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
38864         %e, %g.
38865         * tests/test-vasprintf-posix.c (test_function): Likewise.
38866         * tests/test-snprintf-posix.h (test_function): Likewise.
38867         * tests/test-sprintf-posix.h (test_function): Likewise.
38868         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
38869         * tests/test-printf-posix.h (test_function): Likewise.
38870         * tests/test-printf-posix.output: Update.
38871         Reported by John Darrington <john@darrington.wattle.id.au> via
38872         Ben Pfaff <blp@cs.stanford.edu>.
38873
38874 2008-04-18  Simon Josefsson  <simon@josefsson.org>
38875
38876         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
38877         Suggested by Bruno Haible <bruno@clisp.org>.
38878
38879 2008-04-17  Bruno Haible  <bruno@clisp.org>
38880
38881         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
38882         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
38883         implementation.
38884         Patch by Bruce Merry <bmerry@gmail.com>.
38885
38886 2008-04-17  Simon Josefsson  <simon@josefsson.org>
38887
38888         * doc/posix-functions/strftime.texi (strftime): Mention that %e
38889         doesn't work under Windows.
38890
38891 2008-04-16  Bruno Haible  <bruno@clisp.org>
38892
38893         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
38894         New macros.
38895         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
38896         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
38897         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
38898         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
38899         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
38900         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
38901         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
38902         macros.
38903         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
38904         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
38905         Northern Sotho, Uighur.
38906
38907 2008-04-16  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
38910         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
38911         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
38912         Reported by Daniel Bergström <daniel@octocode.com>.
38913
38914 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
38915             Bruno Haible  <bruno@clisp.org>
38916
38917         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
38918         function.
38919         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
38920         New functions, mostly extracted from gl_locale_name_default.
38921         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
38922
38923 2008-04-16  Eric Blake  <ebb9@byu.net>
38924
38925         Adjust strtod detection to catch glibc 2.7 bug.
38926         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
38927         Reported by John Gatewood Ham.
38928
38929 2008-04-16  Bruno Haible  <bruno@clisp.org>
38930
38931         Add tentative support for Linux libc5.
38932         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
38933         * lib/fpurge.c (fpurge): Likewise.
38934         * lib/freadable.c (freadable): Likewise.
38935         * lib/freadahead.c (freadahead): Likewise.
38936         * lib/freading.c (freading): Likewise.
38937         * lib/freadptr.c (freadptr): Likewise.
38938         * lib/freadseek.c (freadptrinc): Likewise.
38939         * lib/fseeko.c (rpl_fseeko): Likewise.
38940         * lib/fseterr.c (fseterr): Likewise.
38941         * lib/fwritable.c (fwritable): Likewise.
38942         * lib/fwriting.c (fwriting): Likewise.
38943         Reported by Alain Guibert <alguibert+bts@free.fr>.
38944
38945 2008-04-15  Bruno Haible  <bruno@clisp.org>
38946
38947         * modules/mathl (configure.ac): Define module indicator.
38948
38949 2008-04-15  Bruno Haible  <bruno@clisp.org>
38950
38951         * lib/logl.c (logl): Remove unused variables.
38952
38953 2008-04-15  Bruno Haible  <bruno@clisp.org>
38954
38955         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
38956         fails.
38957
38958 2008-04-15  Bruno Haible  <bruno@clisp.org>
38959
38960         * lib/trim.c (trim2): Fix argument of isspace() macro.
38961
38962 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
38963
38964         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
38965         to 0.
38966         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
38967
38968 2008-04-14  Bruno Haible  <bruno@clisp.org>
38969
38970         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
38971         AC_LANG_PROGRAM argument.
38972         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
38973         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
38974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38975         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38976         * m4/math_h.m4 (gl_MATH_H): Likewise.
38977         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
38978         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38979         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38980         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
38981         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38982         * m4/regex.m4 (gl_REGEX): Likewise.
38983         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
38984         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
38985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38986         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
38987         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38988         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38989         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38990         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38991
38992 2008-04-14  Jim Meyering  <meyering@redhat.com>
38993
38994         test-strtod: fix typos: s/abs/fabs/
38995         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
38996
38997 2008-04-13  Bruno Haible  <bruno@clisp.org>
38998
38999         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
39000         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
39001         module is also used and while not building the reloc-wrapper.
39002
39003 2008-04-13  Bruno Haible  <bruno@clisp.org>
39004
39005         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
39006
39007 2008-04-13  Bruno Haible  <bruno@clisp.org>
39008
39009         Fix AIX compilation failure introduced on 2008-04-02.
39010         * tests/test-frexp.c (exp): Undefine before redefining.
39011         * tests/test-frexpl.c (exp): Likewise.
39012
39013 2008-04-13  Bruno Haible  <bruno@clisp.org>
39014
39015         Work around a HP-UX stdio bug.
39016         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
39017         * tests/test-ftello.c (main): Likewise.
39018         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
39019         * doc/posix-functions/ftello.texi: Likewise.
39020
39021 2008-04-13  Bruno Haible  <bruno@clisp.org>
39022
39023         Make test-signbit pass on HP-UX/hppa.
39024         * tests/test-signbit.c (minus_zerol): New variable.
39025         (test_signbitl): Use it.
39026
39027 2008-04-13  Bruno Haible  <bruno@clisp.org>
39028
39029         Make truncl work on OSF/1 4.0.
39030         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
39031         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39032         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
39034         HAVE_DECL_TRUNCL.
39035         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
39036         HAVE_DECL_TRUNCL.
39037         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
39038
39039 2008-04-13  Bruno Haible  <bruno@clisp.org>
39040
39041         * lib/unictype.h: Remove trailing comma from enumeration definitions.
39042
39043 2008-04-13  Bruno Haible  <bruno@clisp.org>
39044
39045         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
39046         expression, so as to avoid HP-UX 11 cc compiler bug.
39047
39048 2008-04-13  Bruno Haible  <bruno@clisp.org>
39049
39050         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
39051
39052 2008-04-13  Bruno Haible  <bruno@clisp.org>
39053
39054         * lib/git-merge-changelog.c: Remove empty declaration outside of
39055         functions.
39056
39057 2008-04-13  Bruno Haible  <bruno@clisp.org>
39058
39059         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
39060
39061 2008-04-13  Bruno Haible  <bruno@clisp.org>
39062
39063         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
39064         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
39065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
39066         also if it exists but lacks definitions of the SHUT_* macros.
39067         * modules/sys_socket (Description): Update.
39068         Reported by Elbert Pol <e.pol@chello.nl>.
39069
39070 2008-04-13  Bruno Haible  <bruno@clisp.org>
39071
39072         * lib/localcharset.c (OS2): Don't redefine if already defined.
39073         Reported by Elbert Pol <e.pol@chello.nl>.
39074
39075 2008-04-13  Bruno Haible  <bruno@clisp.org>
39076
39077         * lib/binary-io.h [__EMX__]: Include <io.h>.
39078         Reported by Elbert Pol <e.pol@chello.nl>.
39079
39080 2008-04-12  Bruno Haible  <bruno@clisp.org>
39081
39082         * lib/fpucw.h: Enable the definitions also for x86_64.
39083         Needed for NetBSD/x86_64.
39084         Reported by Thomas Klausner <tk@giga.or.at>.
39085
39086 2008-04-12  Bruno Haible  <bruno@clisp.org>
39087
39088         * tests/test-strtod.c: Include isnand.h.
39089         (main): Use isnand instead of isnan.
39090         Reported by Jim Meyering.
39091
39092 2008-04-12  Bruno Haible  <bruno@clisp.org>
39093
39094         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
39095         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39096
39097 2008-04-12  Jim Meyering  <meyering@redhat.com>
39098
39099         * m4/math_h.m4 (gl_MATH_H): Fix typos.
39100
39101 2008-04-12  Bruno Haible  <bruno@clisp.org>
39102
39103         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
39104         Reported by Elbert Pol <e.pol@chello.nl>.
39105
39106 2008-04-12  Eric Blake  <ebb9@byu.net>
39107
39108         Work around Solaris 10 math.h bug.
39109         * m4/math_h.m4 (gl_MATH_H): Check for bug.
39110         (gl_MATH_H_DEFAULTS): Set up default.
39111         * modules/math (Makefile.am): Replace new indicators.
39112         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
39113         * tests/test-math.c (main): Test this.
39114         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
39115         * doc/posix-headers/math.texi (math.h): Mention bug.
39116         Reported by Nelson H. F. Beebe and Jim Meyering.
39117
39118 2008-04-11  Bruno Haible  <bruno@clisp.org>
39119
39120         Adapt to future versions of Apple GCC.
39121         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
39122         Reported by Peter O'Gorman <peter@pogma.com>.
39123
39124 2008-04-11  Bruno Haible  <bruno@clisp.org>
39125
39126         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
39127
39128 2008-04-11  Bruno Haible  <bruno@clisp.org>
39129
39130         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
39131
39132         * modules/getaddrinfo-tests (Makefile.am): Define
39133         test_getaddrinfo_LDADD.
39134
39135 2008-04-11  Bruno Haible  <bruno@clisp.org>
39136
39137         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
39138         (init): Fix syntax error.
39139         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
39140         is declared.
39141
39142 2008-04-11  Bruno Haible  <bruno@clisp.org>
39143
39144         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
39145         * modules/glob (Depends-on): Add stdbool.
39146
39147 2008-04-11  Bruno Haible  <bruno@clisp.org>
39148
39149         * lib/trim.c: Include <string.h>.
39150
39151 2008-04-11  Eric Blake  <ebb9@byu.net>
39152
39153         Avoid compile failure on OS/2.
39154         * lib/regex_internal.h (internal_function): Disable optimization
39155         on OS/2 (__EMX__), where it caused compiler error.
39156         Reported by Elbert Pol.
39157
39158 2008-04-11  Bruno Haible  <bruno@clisp.org>
39159
39160         Flush the standard error stream before aborting. Needed on mingw.
39161         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39162         * tests/test-array_list.c (ASSERT): Likewise.
39163         * tests/test-array_oset.c (ASSERT): Likewise.
39164         * tests/test-avltree_list.c (ASSERT): Likewise.
39165         * tests/test-avltree_oset.c (ASSERT): Likewise.
39166         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39167         * tests/test-binary-io.c (ASSERT): Likewise.
39168         * tests/test-byteswap.c (ASSERT): Likewise.
39169         * tests/test-c-ctype.c (ASSERT): Likewise.
39170         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39171         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39172         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39173         * tests/test-c-strstr.c (ASSERT): Likewise.
39174         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39175         * tests/test-canonicalize.c (ASSERT): Likewise.
39176         * tests/test-carray_list.c (ASSERT): Likewise.
39177         * tests/test-ceilf1.c (ASSERT): Likewise.
39178         * tests/test-ceilf2.c (ASSERT): Likewise.
39179         * tests/test-ceill.c (ASSERT): Likewise.
39180         * tests/test-count-one-bits.c (ASSERT): Likewise.
39181         * tests/test-fbufmode.c (ASSERT): Likewise.
39182         * tests/test-fflush2.c (ASSERT): Likewise.
39183         * tests/test-floorf1.c (ASSERT): Likewise.
39184         * tests/test-floorf2.c (ASSERT): Likewise.
39185         * tests/test-floorl.c (ASSERT): Likewise.
39186         * tests/test-fopen.c (ASSERT): Likewise.
39187         * tests/test-fpending.c (ASSERT): Likewise.
39188         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39189         * tests/test-fpurge.c (ASSERT): Likewise.
39190         * tests/test-freadable.c (ASSERT): Likewise.
39191         * tests/test-freadahead.c (ASSERT): Likewise.
39192         * tests/test-freading.c (ASSERT): Likewise.
39193         * tests/test-freadptr.c (ASSERT): Likewise.
39194         * tests/test-freadptr2.c (ASSERT): Likewise.
39195         * tests/test-freadseek.c (ASSERT): Likewise.
39196         * tests/test-freopen.c (ASSERT): Likewise.
39197         * tests/test-frexp.c (ASSERT): Likewise.
39198         * tests/test-frexpl.c (ASSERT): Likewise.
39199         * tests/test-fseek.c (ASSERT): Likewise.
39200         * tests/test-fseeko.c (ASSERT): Likewise.
39201         * tests/test-fstrcmp.c (ASSERT): Likewise.
39202         * tests/test-ftell.c (ASSERT): Likewise.
39203         * tests/test-ftello.c (ASSERT): Likewise.
39204         * tests/test-func.c (ASSERT): Likewise.
39205         * tests/test-fwritable.c (ASSERT): Likewise.
39206         * tests/test-fwriting.c (ASSERT): Likewise.
39207         * tests/test-getdelim.c (ASSERT): Likewise.
39208         * tests/test-getline.c (ASSERT): Likewise.
39209         * tests/test-i-ring.c (ASSERT): Likewise.
39210         * tests/test-iconv-utf.c (ASSERT): Likewise.
39211         * tests/test-iconv.c (ASSERT): Likewise.
39212         * tests/test-isfinite.c (ASSERT): Likewise.
39213         * tests/test-isnand.c (ASSERT): Likewise.
39214         * tests/test-isnanf.c (ASSERT): Likewise.
39215         * tests/test-isnanl.h (ASSERT): Likewise.
39216         * tests/test-ldexpl.c (ASSERT): Likewise.
39217         * tests/test-linked_list.c (ASSERT): Likewise.
39218         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39219         * tests/test-localename.c (ASSERT): Likewise.
39220         * tests/test-lseek.c (ASSERT): Likewise.
39221         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39222         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39223         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39224         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39225         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39226         * tests/test-mbschr.c (ASSERT): Likewise.
39227         * tests/test-mbscspn.c (ASSERT): Likewise.
39228         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39229         * tests/test-mbspbrk.c (ASSERT): Likewise.
39230         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39231         * tests/test-mbsrchr.c (ASSERT): Likewise.
39232         * tests/test-mbsspn.c (ASSERT): Likewise.
39233         * tests/test-mbsstr1.c (ASSERT): Likewise.
39234         * tests/test-mbsstr2.c (ASSERT): Likewise.
39235         * tests/test-mbsstr3.c (ASSERT): Likewise.
39236         * tests/test-memchr2.c (ASSERT): Likewise.
39237         * tests/test-memmem.c (ASSERT): Likewise.
39238         * tests/test-open.c (ASSERT): Likewise.
39239         * tests/test-printf-frexp.c (ASSERT): Likewise.
39240         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39241         * tests/test-printf-posix.c (ASSERT): Likewise.
39242         * tests/test-quotearg.c (ASSERT): Likewise.
39243         * tests/test-rbtree_list.c (ASSERT): Likewise.
39244         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39245         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39246         * tests/test-round1.c (ASSERT): Likewise.
39247         * tests/test-roundf1.c (ASSERT): Likewise.
39248         * tests/test-roundl.c (ASSERT): Likewise.
39249         * tests/test-signbit.c (ASSERT): Likewise.
39250         * tests/test-sleep.c (ASSERT): Likewise.
39251         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39252         * tests/test-snprintf.c (ASSERT): Likewise.
39253         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39254         * tests/test-stat-time.c (ASSERT): Likewise.
39255         * tests/test-strcasestr.c (ASSERT): Likewise.
39256         * tests/test-strerror.c (ASSERT): Likewise.
39257         * tests/test-striconv.c (ASSERT): Likewise.
39258         * tests/test-striconveh.c (ASSERT): Likewise.
39259         * tests/test-striconveha.c (ASSERT): Likewise.
39260         * tests/test-strsignal.c (ASSERT): Likewise.
39261         * tests/test-strstr.c (ASSERT): Likewise.
39262         * tests/test-strtod.c (ASSERT): Likewise.
39263         * tests/test-trunc1.c (ASSERT): Likewise.
39264         * tests/test-trunc2.c (ASSERT): Likewise.
39265         * tests/test-truncf1.c (ASSERT): Likewise.
39266         * tests/test-truncf2.c (ASSERT): Likewise.
39267         * tests/test-truncl.c (ASSERT): Likewise.
39268         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39269         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39270         * tests/test-vasnprintf.c (ASSERT): Likewise.
39271         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39272         * tests/test-vasprintf.c (ASSERT): Likewise.
39273         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39274         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39275         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39276         * tests/test-vsnprintf.c (ASSERT): Likewise.
39277         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39278         * tests/test-wcwidth.c (ASSERT): Likewise.
39279         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39280         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39281         * tests/test-xvasprintf.c (ASSERT): Likewise.
39282         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39283         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39284         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39285         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39286         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39287         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39288         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39289         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39290         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39291         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39292         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39293         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39294         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39295         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39296         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39297         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39298         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39299         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39300         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39301         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39302         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39303         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39304         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39305         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39306         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39307         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39308         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39309         * tests/unictype/test-combining.c (ASSERT): Likewise.
39310         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39311         * tests/unictype/test-digit.c (ASSERT): Likewise.
39312         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39313         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39314         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39315         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39316         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39317         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39318         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39319         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39320         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39321         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39322         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39323         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39324         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39325         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39326         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39327         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39328         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39329         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39330         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39331         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39332         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39333         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39334         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39335         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39336         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39337         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39338         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39339         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39340         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39341         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39342         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39343         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39344         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39345         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39346         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39347         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39348         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39349         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39350         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39351         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39352         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39353         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39354         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39355         Reported by Eric Blake.
39356
39357 2008-04-11  Bruno Haible  <bruno@clisp.org>
39358
39359         * lib/wchar.in.h: Tweak comment.
39360
39361 2008-04-11  Bruno Haible  <bruno@clisp.org>
39362
39363         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39364         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39365         gl_COMMON.
39366         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39367
39368 2008-04-11  Bruno Haible  <bruno@clisp.org>
39369
39370         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39371
39372 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39373
39374         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39375         of attempting to use non-existing /dev/*random.  Based on patch
39376         from Adam Strzelecki <ono@java.pl> in
39377         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39378
39379 2008-04-08  Bruno Haible  <bruno@clisp.org>
39380
39381         Add tentative support for emx+gcc.
39382         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39383         * lib/fpurge.c (fpurge): Likewise.
39384         * lib/freadable.c (freadable): Likewise.
39385         * lib/freadahead.c (freadahead): Likewise.
39386         * lib/freading.c (freading): Likewise.
39387         * lib/freadptr.c (freadptr): Likewise.
39388         * lib/freadseek.c (freadptrinc): Likewise.
39389         * lib/fseeko.c (rpl_fseeko): Likewise.
39390         * lib/fseterr.c (fseterr): Likewise.
39391         * lib/fwritable.c (fwritable): Likewise.
39392         * lib/fwriting.c (fwriting): Likewise.
39393         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39394
39395 2008-04-09  Eric Blake  <ebb9@byu.net>
39396
39397         Avoid some autoconf warnings.
39398         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39399         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39400         * m4/afs.m4 (gl_AFS): Likewise.
39401         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39402         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39403         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39404         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39405         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39406         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39407         (AC_CHECK_DECLS_ONCE): Likewise.
39408         Rename file...
39409         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39410         gnulib-tool requires autoconf 2.59 or better.
39411         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39412
39413 2008-04-08  Eric Blake  <ebb9@byu.net>
39414
39415         Use 'git describe --match' if present (added in git 1.5.5).
39416         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39417         if possible.
39418
39419 2008-04-08  Bruno Haible  <bruno@clisp.org>
39420
39421         Add tentative support for OpenServer.
39422         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39423         _ptr, _cnt.
39424         * lib/fpurge.c (fpurge): Likewise.
39425         * lib/freadable.c (freadable): Likewise.
39426         * lib/freadahead.c (freadahead): Likewise.
39427         * lib/freading.c (freading): Likewise.
39428         * lib/freadptr.c (freadptr): Likewise.
39429         * lib/freadseek.c (freadptrinc): Likewise.
39430         * lib/fseeko.c (rpl_fseeko): Likewise.
39431         * lib/fseterr.c (fseterr): Likewise.
39432         * lib/fwritable.c (fwritable): Likewise.
39433         * lib/fwriting.c (fwriting): Likewise.
39434         Reported by Roger Cornelius <rac@tenzing.org> and
39435         Brian K. White <brian@aljex.com>.
39436
39437 2008-04-06  Jim Meyering  <meyering@redhat.com>
39438
39439         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39440
39441 2008-04-06  Bruno Haible  <bruno@clisp.org>
39442
39443         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39444         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39445         * tests/test-printf-posix.sh: Likewise.
39446         * tests/test-vfprintf-posix.sh: Likewise.
39447         * tests/test-vprintf-posix.sh: Likewise.
39448         * tests/test-xprintf-posix.sh: Likewise.
39449
39450 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39451
39452         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39453         hide error from 'ls', needed on OS/2.
39454         Report by Elbert Pol <elbert.pol@gmail.com>.
39455
39456 2008-04-04  Eric Blake  <ebb9@byu.net>
39457
39458         Make test-fseeko.c failures meaningful.
39459         * tests/test-fseeko.c: Print line number on failure.
39460         * tests/test-fseek.c: Likewise.
39461         Reported by Nelson H. F. Beebe.
39462
39463         Improve strtod bug detection check.
39464         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39465         required for Solaris 10.
39466         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39467
39468 2008-04-04  Bruno Haible  <bruno@clisp.org>
39469
39470         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39471         by m4/setenv.m4.
39472
39473 2008-04-03  Eric Blake  <ebb9@byu.net>
39474
39475         Ensure sane .version contents.
39476         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39477         version string.
39478         * build-aux/git-version-gen: Improve documentation.
39479
39480         Make GNU make output nicer.
39481         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39482         MAKECMDGOALS to enforce message for all command line targets.  Set
39483         srcdir for use in maint.mk.
39484
39485         Another maintainer tweak.
39486         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39487         a target that regenerates version.
39488
39489 2008-04-03  Jim Meyering  <meyering@redhat.com>
39490
39491         vc-list-files: don't cause coreutils "make po-check" failure
39492         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39493
39494 2008-04-03  Eric Blake  <ebb9@byu.net>
39495
39496         Allow VPATH usage of vc-list-files.
39497         * build-aux/vc-list-files (scriptversion): Add timestamp.
39498         (options): Add --help, --version, -C.
39499         (CVS): Support installed cvsu.
39500
39501 2008-04-02  Bruno Haible  <bruno@clisp.org>
39502
39503         Avoid some "statement with no effect" warnings from gcc.
39504         * tests/test-wctype.c (main): Explicitly ignore unused values.
39505         Reported by Jim Meyering.
39506
39507 2008-04-02  Jim Meyering  <meyering@redhat.com>
39508
39509         Avoid some warnings from "gcc -Wshadow".
39510         * tests/test-frexp.c (exp): Define to a different identifier.
39511         * tests/test-frexpl.c (exp): Likewise.
39512
39513 2008-04-03  Jim Meyering  <meyering@redhat.com>
39514
39515         bootstrap: remove dangling *.[ch] symlinks from lib
39516         * build-aux/bootstrap [dangling symlink removal]: Move find's
39517         -depth option to precede all others, to avoid a warning.
39518         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39519
39520 2008-04-02  Bruno Haible  <bruno@clisp.org>
39521
39522         Avoid some warnings from "gcc -Wshadow".
39523         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39524         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39525         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39526         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39527         Reported by Jim Meyering.
39528
39529 2008-04-01  Bruno Haible  <bruno@clisp.org>
39530
39531         Fix test to work on IRIX 6.5 with cc.
39532         * tests/test-math.c (numeric_equal): New function.
39533         (main): Use it.
39534
39535 2008-04-01  Bruno Haible  <bruno@clisp.org>
39536
39537         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39538
39539 2008-04-01  Bruno Haible  <bruno@clisp.org>
39540
39541         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39542         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39543         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39544         (Depends-on): Remove math.
39545
39546         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39547         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39548         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39549         (Depends-on): Remove math.
39550
39551         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39552         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39553         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39554         (Depends-on): Remove math.
39555         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39556         (Depends-on): Remove math.
39557
39558         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39559         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39560         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39561         (Depends-on): Remove math.
39562         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39563         (Depends-on): Remove math.
39564
39565         * tests/test-round1.c: Include nan.h.
39566         (main): Use NaNd instead of NAN.
39567         * modules/round-tests (Files): Add tests/nan.h.
39568
39569         * tests/test-trunc1.c: Include nan.h.
39570         (main): Use NaNd instead of NAN.
39571         * modules/trunc-tests (Files): Add tests/nan.h.
39572
39573         * tests/test-roundf1.c: Include nan.h.
39574         (main): Use NaNf instead of NAN.
39575         * modules/roundf-tests (Files): Add tests/nan.h.
39576
39577         * tests/test-truncf1.c: Include nan.h.
39578         (main): Use NaNf instead of NAN.
39579         * modules/truncf-tests (Files): Add tests/nan.h.
39580
39581         * tests/test-ceilf1.c: Include nan.h.
39582         (main): Use NaNf instead of NAN.
39583         * modules/ceilf-tests (Files): Add tests/nan.h.
39584
39585         * tests/test-floorf1.c: Include nan.h.
39586         (main): Use NaNf instead of NAN.
39587         * modules/floorf-tests (Files): Add tests/nan.h.
39588
39589         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39590         (main): Use NaNf instead of NAN.
39591         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39592
39593         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39594         (main): Use NaNd instead of NAN.
39595         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
39596
39597         * tests/test-frexp.c: Include nan.h.
39598         (main): Use NaNd instead of NAN.
39599         * modules/frexp-tests (Files): Add tests/nan.h.
39600
39601         * lib/isnan.c: Don't include <math.h>.
39602         (FUNC): Don't use NAN macro.
39603         * modules/isnand-nolibm (Depends-on): Remove math.
39604         * modules/isnanf-nolibm (Depends-on): Remove math.
39605         * modules/isnanl (Depends-on): Remove math.
39606         * modules/isnanl-nolibm (Depends-on): Remove math.
39607
39608         * tests/nan.h: New file.
39609
39610 2008-04-01  Eric Blake  <ebb9@byu.net>
39611
39612         Fix typos.
39613         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
39614         values to be the right type.
39615
39616         For now, cater to gnulib strtod inaccuracies.
39617         * tests/test-strtod.c (main): Allow 1-ulp error on expected
39618         fractional results.  While not as nice from a QoI perspective, it
39619         is a quicker patch than correctly implementing decimal to binary
39620         rounding.
39621
39622 2008-03-31  Eric Blake  <ebb9@byu.net>
39623
39624         Guarantee a definition of NAN.
39625         * lib/math.in.h (NAN): Define if missing.
39626         * tests/test-math.c (main): Test it.
39627         * doc/posix-headers/math.texi (math.h): Document this.
39628         * lib/isnan.c (rpl_isnand): Use it.
39629         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
39630         * tests/test-floorf1.c (NaN): Likewise.
39631         * tests/test-frexp.c (NaN): Likewise.
39632         * tests/test-isnand.c (NaN): Likewise.
39633         * tests/test-isnanf.c (NaN): Likewise.
39634         * tests/test-round1.c (NaN): Likewise.
39635         * tests/test-roundf1.c (NaN): Likewise.
39636         * tests/test-snprintf-posix.h (NaN): Likewise.
39637         * tests/test-sprintf-posix.h (NaN): Likewise.
39638         * tests/test-trunc1.c (NaN): Likewise.
39639         * tests/test-truncf1.c (NaN): Likewise.
39640         * tests/test-vasnprintf-posix.c (NaN): Likewise.
39641         * tests/test-vasprintf-posix.c (NaN): Likewise.
39642         * modules/isnand-nolibm (Depends-on): Add math.
39643         * modules/isnanf-nolibm (Depends-on): Likewise.
39644         * modules/isnanl (Depends-on): Likewise.
39645         * modules/isnanl-nolibm (Depends-on): Likewise.
39646         * modules/snprintf-posix-tests (Depends-on): Likewise.
39647         * modules/sprintf-posix-tests (Depends-on): Likewise.
39648         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
39649         * modules/vsprintf-posix-tests (Depends-on): Likewise.
39650         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
39651         * modules/vasprintf-posix-tests (Depends-on): Likewise.
39652
39653 2008-03-31  Bruno Haible  <bruno@clisp.org>
39654
39655         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
39656         * doc/posix-functions/strtod.texi: Likewise.
39657
39658 2008-03-31  Bruno Haible  <bruno@clisp.org>
39659
39660         * tests/test-strtod.c (main): Don't use C99 syntax.
39661
39662 2008-03-31  Bruno Haible  <bruno@clisp.org>
39663
39664         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
39665         Reported by Eric Blake.
39666
39667 2008-03-31  Jim Meyering  <meyering@redhat.com>
39668
39669         Don't compare actual signbit return values.
39670         * tests/test-strtod.c (main): Rather, compare only their
39671         zero/non-zero nature.
39672
39673 2008-03-31  Eric Blake  <ebb9@byu.net>
39674
39675         More strtod documentation.
39676         * doc/posix-functions/strtod.texi (strtod): Interpret more test
39677         failures as distinct bugs.
39678
39679 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39680
39681         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
39682         Problem reported by Erik Benada in
39683         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
39684
39685 2008-03-30  Bruno Haible  <bruno@clisp.org>
39686
39687         * tests/test-strtod.c: Add comments about which assertion fails on which
39688         platform.
39689         * doc/posix-functions/strtod.texi: Add info about many more platforms.
39690
39691 2008-03-30  Eric Blake  <ebb9@byu.net>
39692
39693         Test signbit behavior on zeros.
39694         * tests/test-signbit.c (test_signbitf): Add tests for zero.
39695         (test_signbitd, test_signbitl): Likewise.
39696
39697         More strtod touchups.
39698         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
39699         sign of negative underflow, for now.  Use .5, not .1.
39700         * doc/posix-functions/strtod.texi (strtod): Mention these
39701         limitations.
39702         Reported by Jim Meyering.
39703
39704 2008-03-30  Bruno Haible  <bruno@clisp.org>
39705
39706         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
39707         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
39708
39709 2008-03-30  Bruno Haible  <bruno@clisp.org>
39710
39711         Avoid failure when attempting to return empty iconv results on some
39712         platforms.
39713         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
39714         allocation, don't report ENOMEM when the resulting string is empty.
39715
39716 2008-03-30  Bruno Haible  <bruno@clisp.org>
39717
39718         Fix buffer overrun.
39719         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
39720         Don't consider the width for tmp_length. Check count against tmp_length
39721         before doing the padding. Ensure enough allocation during padding.
39722
39723 2008-03-30  Eric Blake  <ebb9@byu.net>
39724
39725         strtod touchups.
39726         * lib/strtod.c (strtod): Avoid compiler warnings.
39727         Reported by Jim Meyering.
39728
39729 2008-03-30  Bruno Haible  <bruno@clisp.org>
39730
39731         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
39732         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
39733         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
39734         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
39735         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
39736         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
39737         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
39738         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
39739
39740         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
39741         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
39742         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
39743         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
39744         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
39745         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
39746         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
39747         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
39748
39749         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
39750         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
39751         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
39752         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
39753         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
39754         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
39755         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
39756         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
39757
39758         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
39759         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
39760
39761         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
39762         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
39763
39764         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
39765         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
39766
39767         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
39768         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
39769         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
39770
39771         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
39772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
39773         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
39774
39775         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
39776         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
39777         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
39778
39779         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
39780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
39781         * modules/vasprintf (Depends-on): Add EOVERFLOW.
39782
39783         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
39784         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
39785         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
39786         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
39787         (Depends-on): Add EOVERFLOW.
39788         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
39789         (Depends-on): Add EOVERFLOW.
39790         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39791         (Depends-on): Add EOVERFLOW.
39792         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
39793         (Depends-on): Add EOVERFLOW.
39794         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39795         (Depends-on): Add EOVERFLOW.
39796         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
39797         (Depends-on): Add EOVERFLOW.
39798         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39799         (Depends-on): Add EOVERFLOW.
39800         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
39801         (Depends-on): Add EOVERFLOW.
39802
39803         * lib/sprintf.c (EOVERFLOW): Remove fallback.
39804         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
39805         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
39806
39807         * lib/snprintf.c (EOVERFLOW): Remove fallback.
39808         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
39809         * modules/snprintf (Depends-on): Add EOVERFLOW.
39810
39811         * lib/poll.c (EOVERFLOW): Remove fallback.
39812         * modules/poll (Depends-on): Add EOVERFLOW.
39813
39814         * lib/getugroups.c (EOVERFLOW): Remove fallback.
39815         * modules/getugroups (Depends-on): Add EOVERFLOW.
39816
39817         * lib/getdelim.c (EOVERFLOW): Remove fallback.
39818         * modules/getdelim (Depends-on): Add EOVERFLOW.
39819
39820         * lib/ftell.c (EOVERFLOW): Remove fallback.
39821         * modules/ftell (Depends-on): Add EOVERFLOW.
39822
39823         * lib/fprintf.c (EOVERFLOW): Remove fallback.
39824         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
39825         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
39826
39827         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
39828
39829         * modules/EOVERFLOW-tests: New file.
39830         * tests/test-EOVERFLOW.c: New file.
39831
39832         * modules/EOVERFLOW: New file.
39833         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
39834
39835 2008-03-30  Bruno Haible  <bruno@clisp.org>
39836
39837         Fix bug introduced on 2007-06-10.
39838         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
39839         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
39840
39841 2008-03-30  Bruno Haible  <bruno@clisp.org>
39842
39843         Improve freadseek's efficiency after ungetc.
39844         * lib/freadseek.c: Include freadahead.h.
39845         (freadptrinc): New function, extracted from freadseek.
39846         (freadseek): Use it in a loop. Use freadahead to determine the number
39847         of loop iterations.
39848         * modules/freadseek (Depends-on): Add freadahead.
39849         (configure.ac): Require AC_C_INLINE.
39850
39851 2008-03-30  Bruno Haible  <bruno@clisp.org>
39852
39853         * lib/freadseek.c (freadseek): Don't ignore the return value of
39854         freadptr.
39855
39856 2008-03-29  Eric Blake  <ebb9@byu.net>
39857
39858         Add hex float support.
39859         * modules/strtod (Depends-on): Add c-ctype.
39860         (Link): Mention POW_LIB.
39861         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
39862         whitespace between 'e' and exponent.
39863         * tests/test-strtod.c (main): Enable hex float tests.
39864         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
39865         now provides.
39866
39867         Document various strtod bugs, with some fixes.
39868         * doc/posix-functions/strtod.texi (strtod): Document bugs with
39869         "-0x", "inf", "nan", and hex constants.
39870         * doc/posix-functions/atof.texi (atof): Likewise.
39871         * modules/stdlib (Makefile.am): Support strtod.
39872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39873         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
39874         detect additional strtod bugs.
39875         * lib/stdlib.in.h (rpl_strtod): Add declarations.
39876         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
39877         bool where appropriate.  Parse 'inf' and 'nan'.
39878         * tests/test-strtod.c: New file.
39879         * modules/strtod (Depends-on): Add stdbool, stdlib.
39880         (configure.ac): Turn on module indicator.
39881         * modules/strtod-tests: New module.
39882
39883 2008-03-29  Eric Blake  <ebb9@byu.net>
39884
39885         Fix ftell on mingw.
39886         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
39887         * modules/ftell-tests (Depends-on): Add binary-io.
39888         * modules/ftello-tests (Depends-on): Likewise.
39889         * tests/test-ftell.c (main): Enhance test to cover behavior after
39890         ungetc.  Enforce binary mode.
39891         * tests/test-ftello.c (main): Likewise.
39892
39893         Pass test-freadseek on cygwin.
39894         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
39895         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
39896         ungetc buffer.
39897
39898         * tests/test-fflush2.c (main): Fix typo.
39899
39900 2008-03-29  Bruno Haible  <bruno@clisp.org>
39901
39902         * tests/test-fflush2.c (main): Temporarily disable the contents of
39903         this test.
39904         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
39905         Reported by Eric Blake.
39906
39907 2008-03-28  Simon Josefsson  <simon@josefsson.org>
39908
39909         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
39910         (GC_SHA224_DIGEST_SIZE): Add.
39911
39912         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
39913         (gc_hash_digest_length): Likewise.
39914         (gc_hash_buffer): Likewise.
39915
39916 2008-03-25  Bruno Haible  <bruno@clisp.org>
39917
39918         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
39919         detail which gettext release to use.
39920         Reported by Simon Josefsson.
39921
39922 2008-03-26  Jim Meyering  <meyering@redhat.com>
39923
39924         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
39925         * modules/gnumakefile (clean-GNUmakefile): Also, use
39926         test ... && ... || : syntax rather than if-then ... fi.
39927
39928         gnumakefile: Don't double-quote-expand $(VPATH) value.
39929         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
39930
39931 2008-03-24  Eric Blake  <ebb9@byu.net>
39932
39933         Alter GNUmakefile to install into top directory.
39934         * modules/maintainer-makefile: Split, and add dependency...
39935         * modules/gnumakefile: to this new module.
39936         * build-aux/GNUmakefile: Move...
39937         * top/GNUmakefile: ...here.
39938         * build-aux/maint.mk: Move...
39939         * top/maint.mk: ...here.
39940         * MODULES.html.sh (Support for maintaining...): Document new
39941         module.
39942
39943 2008-03-23  Bruno Haible  <bruno@clisp.org>
39944
39945         * gnulib-tool: New options --vc-files, --no-vc-files.
39946         (func_usage): Document them.
39947         (vc_files): New variable.
39948         (func_import): Consider vc_files.
39949         (func_create_testdir): Set vc_files to empty.
39950         Suggested by Jim Meyering and Karl Berry.
39951
39952 2008-03-23  Bruno Haible  <bruno@clisp.org>
39953
39954         Fix regex compilation error on HP-UX 11.
39955         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
39956         * modules/regex (Files): Add m4/mbstate_t.m4.
39957         Reported by Ton Voon <ton.voon@altinity.com>.
39958
39959 2008-03-23  Bruno Haible  <bruno@clisp.org>
39960
39961         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
39962
39963 2008-03-23  Eric Blake  <ebb9@byu.net>
39964             Bruno Haible  <bruno@clisp.org>
39965
39966         Install files from top/ in the destination directory.
39967         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39968         augmentation also for the files from top/.
39969         (func_import, func_create_testdir): Rewrite file names:
39970         top/filename -> filename.
39971
39972 2008-03-23  Bruno Haible  <bruno@clisp.org>
39973
39974         Tweak "gnulib --version" output.
39975         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
39976
39977 2008-03-23  Bruno Haible  <bruno@clisp.org>
39978
39979         Tweak "gnulib --version" output.
39980         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
39981         rather than contents of ChangeLog, when possible.
39982
39983 2008-03-21  Eric Blake  <ebb9@byu.net>
39984
39985         More --version tweaks.
39986         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
39987         date of last ChangeLog entry.
39988
39989 2008-03-21  Jim Meyering  <meyering@redhat.com>
39990
39991         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
39992
39993 2008-03-20  Eric Blake  <ebb9@byu.net>
39994
39995         VPATH fix.
39996         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
39997
39998 2008-03-20  Simon Josefsson  <simon@josefsson.org>
39999
40000         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
40001         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
40002
40003 2008-03-20  Eric Blake  <ebb9@byu.net>
40004
40005         Sync GNUmakefile with coreutils.
40006         * build-aux/GNUmakefile (have-Makefile): Rename...
40007         (_have-Makefile): ...to this, for namespace consideration.
40008         (GNUmakefile.cfg): Include, if present.
40009         (_autoreconf): Define a default.
40010         (_is-dist-target): New rule for rebuilds to pick up intra-release
40011         version.
40012         (maint-cfg.mk): Rename...
40013         (cfg.mk): ...to this.
40014
40015 2008-03-18  Jim Meyering  <meyering@redhat.com>
40016
40017         New script and module: mktempd
40018         * MODULES.html.sh (maint+release support): Add mktempd.
40019         * build-aux/mktempd: New file.
40020         * modules/mktempd: New file.
40021
40022 2008-03-15  Jim Meyering  <meyering@redhat.com>
40023
40024         Undo last change.
40025         * lib/sha1.c, lib/md5.c: 63 != ~63.
40026         Reported by Andreas Schwab.
40027
40028         sha1.c, md5.c: Hoist a redundant expression.
40029         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
40030         "ctx->buflen" only once, before calling *_process_block.
40031         * lib/md5.c (md5_process_bytes): Likewise.
40032
40033 2008-03-14  Eric Blake  <ebb9@byu.net>
40034
40035         Bump copyright year in files generated by gnulib-tool.
40036         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
40037         gnulib-tool, rather than hard-coding it.
40038
40039         Fix 'gnulib-tool --version' output to work with git.
40040         * gnulib-tool (func_gnulib_dir): New function, extracted from...
40041         (startup): ...here.
40042         (func_version): Use it to invoke git-version-gen, rather than
40043         relying on CVS keyword expansion.  Modernize wording.
40044         (cvsdatestamp, last_checkin_date, version): Kill unused
40045         variables.
40046
40047 2008-03-12  Jim Meyering  <meyering@redhat.com>
40048
40049         Recognize optional cast of the argument to free.
40050         * build-aux/useless-if-before-free: Update regexps.
40051
40052         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
40053
40054 2008-03-11  Bruno Haible  <bruno@clisp.org>
40055
40056         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
40057         by a single package.
40058         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
40059         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
40060         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
40061         Reported by Sam Steingold <sds@gnu.org>.
40062
40063 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40064
40065         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
40066         repositories.
40067
40068 2008-03-11  Bruno Haible  <bruno@clisp.org>
40069
40070         Avoid conflicts between local macro definitions.
40071         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40072         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
40073
40074 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
40075             Bruno Haible  <bruno@clisp.org>
40076
40077         Make va_copy work with some version of xlc on AIX 5.1.
40078         * lib/stdarg.in.h: New file.
40079         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
40080         On AIX, use a <stdarg.h> file substitute.
40081         * modules/stdarg (Files): Add lib/stdarg.in.h.
40082         (Depends-on): Add include_next.
40083         (Makefile.am): Build a stdarg.h substitute if requested.
40084         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
40085
40086 2008-03-10  Bruno Haible  <bruno@clisp.org>
40087
40088         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
40089         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40090         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40091
40092 2008-03-10  Bruno Haible  <bruno@clisp.org>
40093
40094         * modules/stdlib (Depends-on): Add include_next, remove
40095         absolute-header.
40096
40097 2008-03-09  Bruno Haible  <bruno@clisp.org>
40098
40099         * lib/freadahead.h (freadahead): Document more precisely.
40100         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
40101         the sum of both buffer sizes.
40102         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
40103         * NEWS: Document the change.
40104
40105 2008-03-09  Bruno Haible  <bruno@clisp.org>
40106
40107         Extend freadptr to return also the buffer size.
40108         * lib/freadptr.h (freadptr): Add sizep argument.
40109         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
40110         (freadptr): Add sizep argument. Determine buffer size like freadahead
40111         does.
40112         * tests/test-freadptr.c: Don't include freadahead.h.
40113         (main): Adapt for new calling convention of freadptr.
40114         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
40115         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
40116         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
40117         tests/test-freadptr2.sh.
40118         (Depends): Remove freadahead.
40119         (TESTS): Add test-freadptr2.sh.
40120         (check_PROGRAMS): Add test-freadptr2.
40121
40122 2008-03-09  Bruno Haible  <bruno@clisp.org>
40123
40124         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
40125         Report and solution by Simon Josefsson.
40126
40127 2008-03-06  Bruno Haible  <bruno@clisp.org>
40128
40129         Make fflush after ungetc work on BSD platforms.
40130         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
40131         * tests/test-fflush2.c: New file.
40132         * tests/test-fflush2.sh: New file.
40133         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
40134         tests/test-fflush2.c.
40135         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
40136         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
40137
40138 2008-03-06  Eric Blake  <ebb9@byu.net>
40139
40140         Likewise for ftello.
40141         * modules/ftello (Dependencies): Add extensions.
40142         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
40143
40144 2008-03-06  Bruno Haible  <bruno@clisp.org>
40145
40146         * modules/fseeko (Dependencies): Add extensions.
40147         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
40148         Needed on glibc systems.
40149
40150 2008-03-06  Bruno Haible  <bruno@clisp.org>
40151
40152         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40153         email address.
40154         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40155
40156 2008-03-06  Bruno Haible  <bruno@clisp.org>
40157
40158         * users.txt: Add libgnupdf.
40159
40160 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40161
40162         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40163         (Header File Substitutes, Function Substitutes,
40164         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40165         (Build robot for gnulib): Fix typo.
40166
40167 2008-03-06  Bruno Haible  <bruno@clisp.org>
40168
40169         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40170         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40171
40172 2008-03-06  Bruno Haible  <bruno@clisp.org>
40173
40174         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40175         * doc/gnulib.texi: Include it.
40176
40177 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40178
40179         * modules/func (License): Change license to unlimited; there was
40180         no LGPL parts in the module anyway.
40181
40182 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40183
40184         * modules/__func__: Renamed to modules/func.
40185         * modules/__func__-tests: Renamed to modules/func-tests.
40186         * tests/test-__func__.c: Renamed to tests/test-func.c.
40187         * m4/__func__.m4: Renamed to m4/func.m4.
40188         * doc/gnulib.texi (__func__): Section renamed to func.
40189         Suggested by Eric Blake <ebb9@byu.net>.
40190
40191 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40192
40193         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40194         about __func__.  Make example self-contained.  Suggested by Eric
40195         Blake <ebb9@byu.net>.
40196
40197         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40198         Suggested by Eric Blake <ebb9@byu.net>.
40199
40200 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40201
40202         * modules/__func__: New file.
40203         * modules/__func__-tests: New file.
40204         * tests/test-__func__.c: New file.
40205         * m4/__func__.m4: New file.
40206         * doc/gnulib.texi (__func__): Document __func__ module.
40207
40208 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40209
40210         * modules/byteswap (License): Re-license as LGPLv2+.
40211
40212 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40213
40214         * doc/Makefile: Add pdf target.
40215
40216 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40217
40218         * modules/inline (License): Use 'unlimited', since there are only
40219         *.m4 files in this module.
40220
40221 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40222             Bruno Haible  <bruno@clisp.org>
40223
40224         Add support for HP C 7.1 on OpenVMS 8.3.
40225         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40226
40227 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40228
40229         Update VMS specifics.
40230         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40231
40232 2008-03-02  Jim Meyering  <meyering@redhat.com>
40233
40234         Remove the last dependency on the "free" module.
40235         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40236         Reported by Bob Proulx.
40237
40238         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40239
40240         Remove useless "if" tests before free.  Deprecate "free" module.
40241         * doc/posix-functions/free.texi: Mention that this
40242         module is no longer useful.
40243         * modules/free (Notice): Say this module is obsolete.
40244         * modules/readutmp (Depends-on): Remove free.
40245         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40246         * lib/putenv.c (putenv): Likewise.
40247         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40248         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40249         * tests/test-c-strcasestr.c (main): Likewise.
40250         * tests/test-c-strstr.c (main): Likewise.
40251         * tests/test-mbscasestr1.c (main): Likewise.
40252         * tests/test-mbscasestr2.c (main): Likewise.
40253         * tests/test-mbsstr1.c (main): Likewise.
40254         * tests/test-mbsstr2.c (main): Likewise.
40255         * tests/test-memmem.c (main): Likewise.
40256         * tests/test-strcasestr.c (main): Likewise.
40257         * tests/test-striconv.c (main): Likewise.
40258         * tests/test-striconveh.c (main): Likewise.
40259         * tests/test-striconveha.c (main): Likewise.
40260         * tests/test-strstr.c (main): Likewise.
40261
40262         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40263
40264         bootstrap: sync from coreutils again
40265         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40266
40267 2008-03-01  Jim Meyering  <meyering@redhat.com>
40268
40269         bootstrap: sync from coreutils
40270         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40271         also when the target doesn't exist.
40272
40273 2008-03-01  Eric Blake  <ebb9@byu.net>
40274
40275         Fix bugs in last patch.
40276         * lib/memchr2.c (memchr2): Fix typo.
40277         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40278         extension.
40279         Reported by Bruce Korb.
40280
40281         New module 'memchr2'.
40282         * modules/memchr2: New file.
40283         * modules/memchr2-tests: Likewise.
40284         * lib/memchr2.h: Likewise.
40285         * lib/memchr2.c: Likewise, based on memchr.c.
40286         * tests/test-memchr2.c: New test.
40287         * MODULES.html.sh (String handling): Add memchr2.
40288
40289 2008-02-29  Bruno Haible  <bruno@clisp.org>
40290
40291         * modules/freadseek-tests: New file.
40292         * tests/test-freadseek.sh: New file.
40293         * tests/test-freadseek.c: New file.
40294
40295         New module 'freadseek'.
40296         * modules/freadseek: New file.
40297         * lib/freadseek.h: New file.
40298         * lib/freadseek.c: New file.
40299         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40300
40301 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40302
40303         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40304         wydawca.
40305
40306         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40307         program_invocation_name and program_invocation_short_name are
40308         present.
40309
40310 2008-02-28  Bruno Haible  <bruno@clisp.org>
40311
40312         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40313         * tests/test-freadptr.sh: Also test non-seekable stdin.
40314
40315 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40316
40317         * build-aux/bootstrap (source_base, m4_base)
40318         (doc_base, tests_base): New variables.
40319         (gnulib_tool_options): Do not hardcode base directories, use
40320         the above variables instead.
40321
40322 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40323
40324         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40325
40326 2008-02-28  Bruno Haible  <bruno@clisp.org>
40327
40328         * modules/freadptr-tests: New file.
40329         * tests/test-freadptr.sh: New file.
40330         * tests/test-freadptr.c: New file.
40331
40332         New module 'freadptr'.
40333         * modules/freadptr: New file.
40334         * lib/freadptr.h: New file.
40335         * lib/freadptr.c: New file.
40336         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40337
40338 2008-02-26  Karl Berry  <karl@freefriends.org>
40339
40340         Sync from Libtool:
40341         * libltdl/argz.c (argz_add, argz_count): New functions.
40342         * libltdl/argz.in.h: Declare them.
40343         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40344
40345 2008-02-22  Bruno Haible  <bruno@clisp.org>
40346
40347         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40348         is a pointer type.  Needed for HP-UX 10.
40349         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40350         * doc/posix-functions/gmtime_r.texi: Likewise.
40351         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40352
40353 2008-02-24  Bruno Haible  <bruno@clisp.org>
40354
40355         * modules/environ-tests: New file.
40356         * tests/test-environ.c: New file.
40357
40358         New module 'environ'.
40359         * modules/environ: New file.
40360         * lib/unistd.in.h (environ): New declaration.
40361         * m4/environ.m4: New file.
40362         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40363         after use.
40364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40365         HAVE_DECL_ENVIRON.
40366         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40367         HAVE_DECL_ENVIRON.
40368         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40369         wrong claim that 'environ' is missing on some systems.
40370         * modules/execute (Depends-on): Add environ.
40371         * lib/execute.c (environ): Remove fallback declaration.
40372         * modules/pipe (Depends-on): Add environ.
40373         * lib/pipe.c (environ): Remove fallback declaration.
40374         * modules/setenv (Depends-on): Add environ.
40375         * lib/setenv.c (environ): Remove fallback declaration.
40376         * modules/unsetenv (Depends-on): Add environ.
40377         * lib/unsetenv.c (environ): Remove fallback declaration.
40378         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40379         m4/environ.m4.
40380         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40381         (gl_PREREQ_UNSETENV): Likewise.
40382
40383 2008-02-24  Bruno Haible  <bruno@clisp.org>
40384
40385         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40386
40387 2008-02-20  Bob Proulx  <bob@proulx.com>
40388
40389         Enable use of older two part flavor 'git describe'.
40390         * build-aux/git-version-gen: If using the older two part flavor of
40391         git version then recreate the third part now present in the
40392         newer three part flavor of git describe.
40393
40394 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40395
40396         * lib/fts.c (fts_build): Typo correction to comment.
40397
40398 2008-02-17  Bruno Haible  <bruno@clisp.org>
40399
40400         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40401         generating no-op conflicts.
40402
40403 2008-02-17  Bruno Haible  <bruno@clisp.org>
40404
40405         Speed up by 10%.
40406         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40407         result_entries, rather than an index-based loop.
40408
40409 2008-02-17  Bruno Haible  <bruno@clisp.org>
40410
40411         Speed up by 25%.
40412         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40413         'hashcode_cached'.
40414         (entry_create): New function.
40415         (entry_hashcode): Use the cached hashcode if possible.
40416         (read_changelog_file, try_split_merged_entry): Use entry_create.
40417
40418 2008-02-17  Bruno Haible  <bruno@clisp.org>
40419
40420         Speed up from O(n^2) to O(n) for long ChangeLog files.
40421         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40422         (read_changelog_file): Change implementation of entries_reversed list
40423         to rbtreehash.
40424         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40425
40426 2008-02-17  Bruno Haible  <bruno@clisp.org>
40427
40428         New option --split-merged-entry.
40429         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40430         (find_paragraph_end, try_split_merged_entry): New functions.
40431         (long_options): Add option --split-merged-entry.
40432         (usage): Document option --split-merged-entry.
40433         (main): Implement option --split-merged-entry.
40434         Reported by Eric Blake.
40435
40436 2008-02-17  Bruno Haible  <bruno@clisp.org>
40437
40438         * lib/git-merge-changelog.c: Include c-strstr.h.
40439         (main): Support the "git pull --rebase" situation.
40440         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40441         Reported by Eric Blake.
40442
40443 2008-02-16  Eric Blake  <ebb9@byu.net>
40444
40445         Avoid doubling \ in common case of "c-maybe" quoting style.
40446         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40447         eliding outer quotes.
40448         * lib/quotearg.h: Document this.
40449         * tests/test-quotearg.c (result_strings, inputs, results_g)
40450         (flag_results, locale_results): Test it by adding a new string to
40451         each test group.
40452         (compare_strings): Test new string.
40453
40454 2008-02-13  Eric Blake  <ebb9@byu.net>
40455
40456         Avoid trigraph quoting in default output.
40457         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40458         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40459         unless explicitly requested.
40460         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40461
40462 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40463
40464         Don't rely on signed integer overflowing to negative value.
40465         * lib/getugroups.c (getugroups): Include <limits.h>.
40466         Instead, compare against INT_MAX, and increment only if the test passes.
40467
40468 2008-02-13  Jim Meyering  <meyering@redhat.com>
40469         and Eric Blake  <ebb9@byu.net>
40470
40471         Avoid shadowing warning and compile errors on Linux.
40472         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40473         forwarding macros on Linux.
40474         (dcgettext): Define a stub, for Linux.
40475         (results_g, main): Avoid warnings.
40476
40477 2008-02-12  Eric Blake  <ebb9@byu.net>
40478
40479         Silence warning in last patch.
40480         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40481
40482         Quotearg part 4: add tests, fix c-maybe colon quoting.
40483         * lib/quotearg.h: Improve documentation.
40484         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40485         escapes when adding outer quotes.  When quoting trigraphs, use
40486         valid C notation.  When quoting NUL, omit extra characters if next
40487         character is not digit.  Alter prototype.
40488         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40489         callers.
40490         * modules/quotearg-tests: New module.
40491         * tests/test-quotearg.c: New test.
40492
40493 2008-02-07  Eric Blake  <ebb9@byu.net>
40494
40495         Quotearg part 3: add flag to control outer quote elision.
40496         * lib/quotearg.h (c_maybe_quoting_style): New style.
40497         (enum quoting_flags): Better documentation of flags.
40498         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40499         c-maybe style.
40500         (quotearg_buffer_restyled): Handle new flag to elide outer
40501         quotes.
40502
40503         Quotearg part 2: add flag that can control NUL elision.
40504         * lib/quotearg.h (set_quoting_flags): New prototype.
40505         * lib/quotearg.c (struct quoting_options): Add flag field.
40506         (set_quoting_flags): New function.
40507         (quotearg_buffer_restyled): Add flags parameter.
40508         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40509         (quotearg_n_options): Set the flag, since length cannot be
40510         returned.
40511         (quoting_options_from_style): Default flags correctly.
40512
40513         Quotearg part 1: more wrappers, restore quotearg_char state.
40514         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40515         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40516         (quotearg_colon_mem): New wrappers.
40517         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40518         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40519         functions.
40520         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40521         (quotearg_colon_mem): New functions.
40522
40523 2008-02-11  Bruno Haible  <bruno@clisp.org>
40524
40525         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40526         library in the current directory: it does not work with parallel make.
40527         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40528
40529 2008-02-11  Bruno Haible  <bruno@clisp.org>
40530
40531         * .gitattributes: New file.
40532
40533 2008-02-11  Jim Meyering  <meyering@redhat.com>
40534
40535         useless-if-before-free: Fix reversed exit values.
40536         * build-aux/useless-if-before-free: Use correct values
40537         for EXIT_MATCH and EXIT_NO_MATCH.
40538
40539         * build-aux/useless-if-before-free: Close stdout carefully.
40540
40541 2008-02-10  Bruno Haible  <bruno@clisp.org>
40542
40543         New module 'git-merge-changelog'.
40544         * modules/git-merge-changelog: New file.
40545         * lib/git-merge-changelog.c: New file.
40546
40547 2008-02-10  Jim Meyering  <meyering@redhat.com>
40548
40549         useless-if-before-free: New option: --list (-l).
40550
40551         useless-if-before-free: Don't exit immediately upon open failure.
40552         * build-aux/useless-if-before-free: Exit 2 for errors.
40553         Upon failure to open a file, don't exit immediately.
40554         Rather, just warn and continue with any remaining files.
40555
40556 2008-02-10  Bruno Haible  <bruno@clisp.org>
40557
40558         New abstract list operation 'node_set_value'.
40559         * lib/gl_list.h (gl_list_node_set_value): New function.
40560         (struct gl_list_implementation): New field node_set_value.
40561         * lib/gl_list.c (gl_list_node_set_value): New function.
40562         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40563         (gl_array_list_implementation): Update.
40564         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40565         (gl_carray_list_implementation): Update.
40566         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40567         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40568         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40569         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40570         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40571         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40572         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40573         Update.
40574         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40575         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40576         (gl_sublist_list_implementation): Update.
40577
40578 2008-02-10  Bruno Haible  <bruno@clisp.org>
40579
40580         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40581         Needed when ELEMENT is #defined to 'some_type *'.
40582
40583 2008-02-10  Jim Meyering  <meyering@redhat.com>
40584
40585         New script and module: useless-if-before-free
40586         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40587         * build-aux/useless-if-before-free: New file.
40588         * modules/useless-if-before-free: New file.
40589
40590         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40591
40592         xstrtol_error: Fix typo.
40593         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40594         s/exit_failure/exit_status/.
40595
40596 2008-02-09  Jim Meyering  <meyering@redhat.com>
40597
40598         New script and module: gitlog-to-changelog
40599         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
40600         * modules/gitlog-to-changelog: New file.
40601         * build-aux/gitlog-to-changelog: New file.
40602
40603 2008-02-08  Jim Meyering  <meyering@redhat.com>
40604
40605         Avoid two "parameter unused" warnings.
40606         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
40607         Mark "st" as used.
40608
40609         Use "git COMMAND", not "git-COMMAND".
40610         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
40611         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
40612         * build-aux/git-version-gen: Use "git status", not "git-status".
40613
40614 2008-02-07  Bruno Haible  <bruno@clisp.org>
40615
40616         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
40617         Avoids a crash on Windows Vista.
40618         Reported by Adam Strzelecki <ono@java.pl> via
40619         Simon Josefsson <simon@josefsson.org>.
40620
40621 2008-02-06  Bruno Haible  <bruno@clisp.org>
40622
40623         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
40624         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
40625         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
40626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
40627         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40629         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
40630         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
40631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40632         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40638         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
40639         left-adjust flag.
40640         * tests/test-snprintf-posix.h (test_function): Likewise.
40641         * tests/test-sprintf-posix.h (test_function): Likewise.
40642         * tests/test-vasprintf-posix.c (test_function): Likewise.
40643         * doc/posix-functions/fprintf.texi: Update.
40644         * doc/posix-functions/printf.texi: Update.
40645         * doc/posix-functions/snprintf.texi: Update.
40646         * doc/posix-functions/sprintf.texi: Update.
40647         * doc/posix-functions/vfprintf.texi: Update.
40648         * doc/posix-functions/vprintf.texi: Update.
40649         * doc/posix-functions/vsnprintf.texi: Update.
40650         * doc/posix-functions/vsprintf.texi: Update.
40651         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40652
40653 2008-02-06  Bruno Haible  <bruno@clisp.org>
40654
40655         Fix bug introduced on 2008-01-26.
40656         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
40657
40658 2008-02-06  Bruno Haible  <bruno@clisp.org>
40659
40660         Fix bug introduced on 2007-06-10.
40661         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
40662         !NEED_PRINTF_FLAG_ZERO.
40663
40664 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
40665
40666         getloadavg: use libperfstat on AIX5
40667         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
40668
40669 2008-02-03  Bruno Haible  <bruno@clisp.org>
40670
40671         * lib/diffseq.h: Add comments about required #includes.
40672         Reported by Michael Biggs <gnulib@doubleplum.net>.
40673
40674 2008-02-01  Bruno Haible  <bruno@clisp.org>
40675
40676         * users.txt: Add gnuit.
40677
40678 2008-01-31  Bruno Haible  <bruno@clisp.org>
40679
40680         * lib/md4.c (set_uint32): Mark as inline.
40681         * lib/md5.c (set_uint32): Likewise.
40682         * lib/sha1.c (set_uint32): Likewise.
40683         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
40684         * m4/md5.m4 (gl_MD5): Likewise.
40685         * m4/sha1.m4 (gl_SHA1): Likewise.
40686
40687 2008-01-31  Jim Meyering  <meyering@redhat.com>
40688
40689         Use "sizeof VAR", rather than a literal "4".
40690         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
40691         * lib/md4.c (md4_read_ctx): Likewise.
40692         * lib/sha1.c (sha1_read_ctx): Likewise.
40693
40694 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40695
40696         * tests/test-sha1.c: New file, based on test-md5.c.
40697
40698         * modules/crypto/sha1-tests: New file.
40699
40700 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40701
40702         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
40703
40704 2008-01-31  Jim Meyering  <meyering@redhat.com>
40705
40706         Prefer "sizeof v" over the equivalent "4".
40707         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
40708         * lib/md5.c (set_uint32): Likewise.
40709         * lib/sha1.c (set_uint32): Likewise.
40710
40711 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40712
40713         * lib/sha1.c (set_uint32): Mark function as static.
40714
40715 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40716
40717         md2: clarify comments to say that alignment is not required.
40718         * lib/md2.h: Remove warning about alignment in comment.
40719         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
40720         never been required.
40721
40722 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40723
40724         md4: adapt alignment constraint fix from sha1.
40725         * lib/md4.c (set_uint32): New function, from sha1.c
40726         (md4_read_ctx): Use it.
40727         (md4_finish_ctx): Doc fix.
40728         * lib/md4.h: Doc fix.
40729
40730 2008-01-31  Simon Josefsson  <simon@josefsson.org>
40731
40732         md5: adapt alignment constraint fix from sha1.
40733         * lib/md5.c (set_uint32): New function, from sha1.c
40734         (md5_read_ctx): Use it.
40735         (md5_finish_ctx): Doc fix.
40736         * lib/md5.h: Doc fix.
40737
40738 2008-01-30  Peter Palfrader  <weasel@debian.org>
40739
40740         sha1: remove the result buffer alignment constraint
40741         * lib/sha1.c (set_uint32): New function.
40742         (sha1_read_ctx): Rewrite to remove the result buffer alignment
40743         constraint.
40744         (sha1_finish_ctx): Remove comment warning about alignment constraint.
40745         * lib/sha1.h: Likewise.
40746
40747 2008-01-30  Andreas Schwab  <schwab@suse.de>
40748             Bruno Haible  <bruno@clisp.org>
40749
40750         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
40751         correct definition of LDBL_MIN_EXP.
40752
40753 2008-01-30  Karl Berry  <karl@gnu.org>
40754
40755         * config/srclist-update: try to preserve x bit on updates.
40756         * config/srclistvars.sh: update for karl.
40757
40758 2008-01-29  Jim Meyering  <meyering@redhat.com>
40759
40760         vasnprintf.c: Avoid warning about unused label
40761         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
40762         "overflow" label definition and associated code with the
40763         same cpp condition that guards the sole use of that label.
40764
40765 2008-01-26  Bruno Haible  <bruno@clisp.org>
40766
40767         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
40768         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
40769         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
40770         * lib/isnanl-nolibm.h (isnanl): Likewise.
40771         Reported by Paul Eggert <eggert@cs.ucla.edu>.
40772
40773 2008-01-26  Bruno Haible  <bruno@clisp.org>
40774
40775         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
40776         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
40777
40778 2008-01-26  Bruno Haible  <bruno@clisp.org>
40779
40780         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
40781         GCC >= 4.0 built-in.
40782         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
40783
40784 2008-01-26  Bruno Haible  <bruno@clisp.org>
40785
40786         Rename isnan, applicable to 'double' only, to isnand.
40787         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
40788         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
40789         (configure.ac): Update.
40790         (Include): Replace "isnan.h" with "isnand.h".
40791         * m4/isnand.m4: Renamed from m4/isnan.m4.
40792         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
40793         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
40794         instead of isnan.c.
40795         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
40796         instead of HAVE_ISNAN_IN_LIBC.
40797         (isnand): Renamed from isnan.
40798         * lib/isnand.c: New file.
40799         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
40800         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
40801         (Makefile.am): Update.
40802         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
40803         Include isnand.h instead of isnan.h.
40804         (main): Test isnand instead of isnan.
40805         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
40806         isnan-nolibm.
40807         * modules/frexp (Depends-on): Likewise.
40808         * modules/frexp-tests (Depends-on): Likewise.
40809         * modules/frexp-nolibm (Depends-on): Likewise.
40810         * modules/frexp-nolibm-tests (Depends-on): Likewise.
40811         * modules/isfinite (Depends-on): Likewise.
40812         * modules/round-tests (Depends-on): Likewise.
40813         * modules/signbit (Depends-on): Likewise.
40814         * modules/signbit-tests (Depends-on): Likewise.
40815         * modules/snprintf-posix (Depends-on): Likewise.
40816         * modules/sprintf-posix (Depends-on): Likewise.
40817         * modules/trunc-tests (Depends-on): Likewise.
40818         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40819         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40820         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40821         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40822         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40823         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40824         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40825         * modules/vasnprintf-posix (Depends-on): Likewise.
40826         * modules/vasprintf-posix (Depends-on): Likewise.
40827         * modules/vfprintf-posix (Depends-on): Likewise.
40828         * modules/vsnprintf-posix (Depends-on): Likewise.
40829         * modules/vsprintf-posix (Depends-on): Likewise.
40830         * lib/frexp.c: Include isnand.h instead of isnan.h.
40831         (ISNAN): Set to isnand instead of isnan.
40832         * lib/isfinite.c: Include isnand.h instead of isnan.h.
40833         (gl_isfinited): Use isnand instead of isnan.
40834         * lib/signbitd.c: Include isnand.h instead of isnan.h.
40835         (gl_signbitd): Use isnand instead of isnan.
40836         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
40837         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
40838         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
40839         (main): Use isnand instead of isnan.
40840         * tests/test-round1.c: Include isnand.h.
40841         (main): Use isnand instead of isnan.
40842         * tests/test-round2.c: Include isnand.h instead of isnan.h.
40843         (ISNAN): Set to isnand instead of isnan.
40844         * tests/test-trunc1.c: Include isnand.h.
40845         (main): Use isnand instead of isnan.
40846         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
40847         (equal): Use isnand instead of isnan.
40848         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
40849         isnand-nolibm.
40850         * NEWS: Mention the change.
40851
40852 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40853             Bruno Haible  <bruno@clisp.org>
40854
40855         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
40856         the GCC builtins for signbits are present and set
40857         REPLACE_SIGNBIT_USING_GCC if so.
40858         * lib/math.in.h (signbit): Define using GCC builtins if
40859         REPLACE_SIGNBIT_USING_GCC is set.
40860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
40861         REPLACE_SIGNBIT_USING_GCC.
40862         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
40863
40864 2008-01-25  Jim Meyering  <meyering@redhat.com>
40865
40866         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
40867         * lib/poll.c: Include <config.h>, not "config.h".
40868         * tests/test-getaddrinfo.c: Likewise.
40869
40870 2008-01-25  Simon Josefsson  <simon@josefsson.org>
40871
40872         * modules/sockets-tests: New file.
40873
40874 2008-01-24  Simon Josefsson  <simon@josefsson.org>
40875
40876         * modules/sockets: New module, can be used to call WSA_Startup and
40877         WSA_Cleanup when needed.
40878
40879         * lib/sockets.h, lib/sockets.c: New files.
40880
40881         * m4/sockets.m4: New file.
40882
40883         * tests/test-sockets.c: New file.
40884
40885 2008-01-19  Bruno Haible  <bruno@clisp.org>
40886
40887         * doc/posix-headers: Renamed from doc/headers.
40888         * doc/posix-functions: Renamed from doc/functions.
40889         * doc/gnulib.texi: Update.
40890
40891 2008-01-19  Bruno Haible  <bruno@clisp.org>
40892
40893         * doc/glibc-functions/strcasestr.texi: Include contents of
40894         doc/functions/strcasestr.texi, fixing the list of platforms.
40895         * doc/functions/strcasestr.texi: Remove file.
40896
40897 2008-01-19  Bruno Haible  <bruno@clisp.org>
40898
40899         * doc/glibc-functions/memmem.texi: Include contents of
40900         doc/functions/memmem.texi.
40901         * doc/functions/memmem.texi: Remove file.
40902
40903 2008-01-18  Bruno Haible  <bruno@clisp.org>
40904
40905         * doc/glibc-functions/*.texi: New files.
40906         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
40907         to use the new files.
40908
40909 2008-01-17  Bruno Haible  <bruno@clisp.org>
40910
40911         * tests/test-gethostname.c (main): Fix printf statement.
40912
40913 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40914
40915         * modules/gethostname-tests: New file.
40916
40917         * tests/test-gethostname.c: New file.
40918
40919 2008-01-17  Simon Josefsson  <simon@josefsson.org>
40920
40921         * lib/gethostname.c: Include string.h unconditionally, strncpy is
40922         used by the UNAME case.  Reported by Bruno Haible
40923         <bruno@clisp.org>.
40924
40925 2008-01-17  Eric Blake  <ebb9@byu.net>
40926
40927         Convert c-strcasestr to be more efficient.
40928         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
40929         (Depends-on): Add c-strcase, remove malloca, strnlen.
40930         * tests/test-c-strcasestr.c (main): Enhance test.
40931         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
40932
40933 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40934
40935         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
40936         Use it in creating po/Makevars.
40937
40938 2008-01-15  Simon Josefsson  <simon@josefsson.org>
40939
40940         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
40941         Applications that requires it should initialize libgcrypt
40942         manually.
40943
40944 2008-01-16  Simon Josefsson  <simon@josefsson.org>
40945
40946         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
40947
40948 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
40949
40950         Fix problem with getdate on mingw32 reported by Simon Josefsson
40951         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
40952         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
40953         tzname", when deciding whether to declare tzname.
40954         * lib/strftime.c (tzname): Likewise.
40955
40956 2008-01-15  Bruno Haible  <bruno@clisp.org>
40957
40958         Work around a MacOS X 10.5 bug in frexpl().
40959         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
40960         * doc/functions/frexpl.texi: Document the bug.
40961         Reported by Elias Pipping <pipping@gentoo.org>.
40962
40963 2008-01-14  Eric Blake  <ebb9@byu.net>
40964
40965         Touch up previous patch.
40966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
40967         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
40968
40969         Convert strcasestr module to use Two-Way algorithm.
40970         * modules/strcasestr-simple: New module, based on the old
40971         strcasestr, but with Two-Way rather than KMP.
40972         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
40973         * lib/string.in.h (rpl_strcasestr): Declare.
40974         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
40975         performance.
40976         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
40977         * modules/string (Makefile.am): Support strcasestr.
40978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40979         * modules/strcasestr-tests (Depends-on): Check for alarm.
40980         * tests/test-strcasestr.c: Augment test.
40981         * lib/str-two-way.h: Clean up stray macro.
40982         * NEWS: Document new module.
40983         * MODULES.html.sh (string handling): Likewise.
40984         * doc/functions/strcasestr.texi: New file.
40985         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
40986         here, since it is not a POSIX function.
40987
40988 2008-01-14  Colin Watson  <cjwatson@debian.org>
40989             Bruno Haible  <bruno@clisp.org>
40990
40991         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
40992         works fine; if not, set REPLACE_STRSIGNAL.
40993         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
40994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40995         REPLACE_STRSIGNAL.
40996         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
40997         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
40998         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
40999
41000 2008-01-14  Bruno Haible  <bruno@clisp.org>
41001
41002         * modules/strsignal (Include): Change to <string.h>.
41003
41004 2008-01-14  Colin Watson  <cjwatson@debian.org>
41005
41006         * modules/argp (Notice): Add a notice recommending to change
41007         XGETTEXT_OPTIONS.
41008         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
41009
41010 2008-01-13  Colin Watson  <cjwatson@debian.org>
41011
41012         * modules/strsignal-tests: New file.
41013         * tests/test-strsignal.c: New file.
41014
41015         * lib/strsignal.c: New file, from glibc with modifications.
41016         * lib/siglist.h: New file, from glibc with modifications.
41017         * lib/string.in.h (strsignal): New declaration.
41018         * m4/strsignal.m4: New file.
41019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41020         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
41021         * modules/strsignal: New file.
41022         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
41023         HAVE_DECL_STRSIGNAL.
41024
41025 2008-01-13  Bruno Haible  <bruno@clisp.org>
41026
41027         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
41028         locale encoding is not ASCII. Needed for OpenBSD 4.0.
41029         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41030         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41031
41032 2008-01-13  Bruno Haible  <bruno@clisp.org>
41033
41034         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
41035         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
41036         * lib/argp.h (__attribute__): Likewise.
41037         * lib/c-stack.c (__attribute__): Likewise.
41038         * lib/error.h (__attribute__): Likewise.
41039         * lib/fts.c (__attribute__): Likewise.
41040         * lib/openat.h (__attribute__): Likewise.
41041         * lib/stdio.in.h (__attribute__): Likewise.
41042         * lib/string.in.h (__attribute__): Likewise.
41043         * lib/utimens.c (__attribute__): Likewise.
41044         * lib/vasnprintf.h (__attribute__): Likewise.
41045         * lib/xalloc.h (__attribute__): Likewise.
41046         * lib/xprintf.h (__attribute__): Likewise.
41047         * lib/xstrtol.h (__attribute__): Likewise.
41048         * lib/xvasprintf.h (__attribute__): Likewise.
41049
41050 2008-01-12  Bruno Haible  <bruno@clisp.org>
41051
41052         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
41053         * doc/glibc-headers/a.out.texi: New file.
41054         * doc/glibc-headers/aliases.texi: New file.
41055         * doc/glibc-headers/alloca.texi: New file.
41056         * doc/glibc-headers/ar.texi: New file.
41057         * doc/glibc-headers/argp.texi: New file.
41058         * doc/glibc-headers/argz.texi: New file.
41059         * doc/glibc-headers/byteswap.texi: New file.
41060         * doc/glibc-headers/crypt.texi: New file.
41061         * doc/glibc-headers/endian.texi: New file.
41062         * doc/glibc-headers/envz.texi: New file.
41063         * doc/glibc-headers/err.texi: New file.
41064         * doc/glibc-headers/error.texi: New file.
41065         * doc/glibc-headers/execinfo.texi: New file.
41066         * doc/glibc-headers/fpu_control.texi: New file.
41067         * doc/glibc-headers/fstab.texi: New file.
41068         * doc/glibc-headers/fts.texi: New file.
41069         * doc/glibc-headers/getopt.texi: New file.
41070         * doc/glibc-headers/ieee754.texi: New file.
41071         * doc/glibc-headers/ifaddrs.texi: New file.
41072         * doc/glibc-headers/libintl.texi: New file.
41073         * doc/glibc-headers/mcheck.texi: New file.
41074         * doc/glibc-headers/mntent.texi: New file.
41075         * doc/glibc-headers/obstack.texi: New file.
41076         * doc/glibc-headers/paths.texi: New file.
41077         * doc/glibc-headers/printf.texi: New file.
41078         * doc/glibc-headers/pty.texi: New file.
41079         * doc/glibc-headers/resolv.texi: New file.
41080         * doc/glibc-headers/shadow.texi: New file.
41081         * doc/glibc-headers/sysexits.texi: New file.
41082         * doc/glibc-headers/ttyent.texi: New file.
41083
41084 2008-01-12  Jim Meyering  <meyering@redhat.com>
41085
41086         announce-gen: emit Gnulib's git-based version string.
41087         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
41088         New option --gnulib-version=V, where V is expected to be
41089         the output of running git describe in the gnulib directory.
41090         (get_tool_versions): Request feedback on xdelta.  I suspect it's
41091         not useful, and plan to stop publishing an xdelta file with each
41092         coreutils release.
41093
41094         * build-aux/announce-gen: Also check for lzma-compressed files.
41095
41096 2008-01-11  Bruno Haible  <bruno@clisp.org>
41097
41098         * tests/test-memmem.c (main): Increase maximum allowed time.
41099         * tests/test-strstr.c (main): Likewise.
41100
41101 2008-01-11  Bruno Haible  <bruno@clisp.org>
41102
41103         * doc/functions/memmem.texi: Add more precisions about platforms.
41104         * doc/functions/strstr.texi: Likewise.
41105
41106 2008-01-10  Eric Blake  <ebb9@byu.net>
41107
41108         * m4/strstr.m4: Delete cruft from copy-n-paste.
41109         Reported by Bruno Haible.
41110
41111 2008-01-10  Bruno Haible  <bruno@clisp.org>
41112
41113         Make c-strstr rely on strstr.
41114         * lib/c-strstr.c: Don't include str-kmp.h.
41115         (c_strstr): Define in terms of strstr.
41116         * modules/c-strstr (Files): Remove lib/str-kmp.h.
41117         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
41118
41119 2008-01-10  Bruno Haible  <bruno@clisp.org>
41120
41121         * doc/gnulib.texi (String Functions in C Locale): New section.
41122         * doc/c-ctype.texi: New file.
41123         * doc/c-strcase.texi: New file.
41124         * doc/c-strcaseeq.texi: New file.
41125         * doc/c-strcasestr.texi: New file.
41126         * doc/c-strstr.texi: New file.
41127         * doc/c-strtod.texi: New file.
41128         * doc/c-strtold.texi: New file.
41129
41130 2008-01-10  Eric Blake  <ebb9@byu.net>
41131
41132         * lib/relocatable.h: Fix a comment.
41133
41134 2008-01-10  Eric Blake  <ebb9@byu.net>
41135
41136         Share two-way algorithm.
41137         * lib/str-two-way.h: New file, merged from...
41138         * lib/memmem.c: ...here...
41139         * lib/strstr.c: ...and here.
41140         * modules/memmem (Files): Use it.
41141         * modules/strstr (Files): Likewise.
41142
41143         Avoid quadratic strstr implementations.
41144         * lib/strstr.c: New file.
41145         * m4/strstr.m4: Likewise.
41146         * modules/strstr: Likewise.
41147         * modules/strstr-tests: Likewise.
41148         * tests/test-strstr.c: Likewise.
41149         * lib/string.in.h (rpl_strstr): Declare.
41150         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
41151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
41152         * modules/string (Makefile.am): Likewise.
41153         * MODULES.html.sh (string handling): Mention new module.
41154         * doc/functions/strstr.texi (strstr): Document the bug.
41155
41156 2008-01-10  Bruno Haible  <bruno@clisp.org>
41157
41158         * lib/relocatable.h (relocate): State whether result is freshly
41159         allocated or not.
41160         * lib/relocatable.c (relocate): Return a freshly allocated string
41161         instead of a pointer to a privately held string.
41162         Reported by Sylvain Beucler <beuc@gnu.org>.
41163
41164 2008-01-10  Colin Watson  <cjwatson@debian.org>
41165
41166         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41167         s/S_ISNLK/S_ISLNK/.
41168
41169 2008-01-09  Bruno Haible  <bruno@clisp.org>
41170
41171         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41172         and other files.
41173         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41174         if it's only a guess.
41175         * modules/memmem: Simplify by depending on memmem-simple.
41176
41177 2008-01-09  Bruno Haible  <bruno@clisp.org>
41178
41179         Work around OpenBSD 4.0 tdelete() bug.
41180         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41181         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41182         macros and don't redefine the enum values.
41183         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41184         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41185         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41186
41187 2008-01-09  Bruno Haible  <bruno@clisp.org>
41188
41189         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41190         (main): Don't perform the tests if setlocale did not install a UTF-8
41191         locale. Needed on OpenBSD 4.0.
41192         * modules/wcwidth-tests (Depends-on): Add localcharset.
41193
41194 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41195
41196         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41197         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41198         * NEWS: announce this.
41199         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41200
41201 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41202         and Eric Blake  <ebb9@byu.net>
41203
41204         Add memmem-simple module.
41205         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41206         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41207         * modules/memmem-simple: New file.
41208         * modules/memmem (Description): Tweak.
41209         * MODULES.html.sh (string handling): Mention new module.
41210         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41211         addressed by memmem-simple.
41212         * NEWS: Document the difference.
41213
41214 2008-01-09  Eric Blake  <ebb9@byu.net>
41215
41216         Give gcc some memmem optimization hints.
41217         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41218         (strcasestr): Declare as pure.
41219         * modules/memmem (Maintainer): Claim my implementation.
41220
41221 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41222
41223         Support AIX 6.1 and higher.
41224         * build-aux/config.libpath: Likewise.
41225         * build-aux/config.rpath: Likewise.
41226
41227 2008-01-08  Jim Meyering  <meyering@redhat.com>
41228             Bruno Haible  <bruno@clisp.org>
41229
41230         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41231         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41232         Reported by Peter Fales in
41233         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41234
41235 2008-01-08  Bruno Haible  <bruno@clisp.org>
41236
41237         * modules/unictype/category-of (Depends-on): Add
41238         unictype/category-none.
41239         * modules/unictype/category-and-tests (Depends-on): Add
41240         unictype/category-{L,N,Lu,Nd}.
41241         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41242         * modules/unictype/category-or-tests (Depends-on): Add
41243         unictype/category-{L,N}.
41244         * modules/unictype/category-name-tests (Depends-on): Add
41245         unictype/category-{Z,Nl}.
41246         Reported by Simon Josefsson.
41247
41248 2008-01-08  Bruno Haible  <bruno@clisp.org>
41249
41250         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41251         convention better.
41252         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41253         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41254         Reported by Peter Miller <millerp@canb.auug.org.au>.
41255
41256 2008-01-08  Eric Blake  <ebb9@byu.net>
41257
41258         Rewrite memmem to guarantee linear complexity without malloc.
41259         * lib/memmem.c (memmem): Use Two-Way rather than
41260         Knuth-Morris-Pratt, to allow O(1) space usage.
41261         (critical_factorization, two_way_short_needle)
41262         (two_way_long_needle): New functions.
41263         (knuth_morris_pratt): Delete.
41264         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41265         Add stdint.
41266         * tests/test-memmem.c (main): Add tests for periodic needle and
41267         sublinear performance.
41268         * doc/functions/memmem.texi (memmem): Document other deficiencies
41269         in cygwin and older glibc.
41270
41271 2008-01-08  Bruno Haible  <bruno@clisp.org>
41272
41273         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41274         augmentation.
41275
41276 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41277
41278         Add a configure time option: --disable-acl.
41279         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41280         AC_ARG_ENABLE(acl).
41281
41282 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41283
41284         * tests/test-localename.c: Don't include obsolete "setenv.h".
41285
41286         * modules/localename-tests (Depends-on): Need unsetenv.
41287
41288 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41289
41290         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41291
41292 2008-01-06  Colin Watson  <cjwatson@debian.org>
41293
41294         * users.txt: Add man-db.
41295
41296 2008-01-07  Bruno Haible  <bruno@clisp.org>
41297
41298         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41299         previous section name.
41300
41301 2008-01-07  Bruno Haible  <bruno@clisp.org>
41302
41303         * lib/progname.c (set_program_name): Don't strip off a leading
41304         "lt-" prefix outside a .libs directory.
41305         Suggested by Paul Eggert.
41306
41307 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41308             Bruno Haible  <bruno@clisp.org>
41309
41310         Improve memory cleanup in 'relocatable' module.
41311         * lib/relocatable.h (compute_curr_prefix): Change return type to
41312         'char *'.
41313         * lib/relocatable.c (compute_curr_prefix): Change return type to
41314         'char *'. Free curr_installdir after use.
41315         (relocate): Free curr_prefix_better after use.
41316         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41317
41318 2008-01-01  Bruno Haible  <bruno@clisp.org>
41319
41320         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41321         failure on older glibc systems.
41322         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41323
41324 2008-01-05  Eric Blake  <ebb9@byu.net>
41325
41326         Avoid quadratic system memmem.
41327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41328         Reported by Ralf Wildenhues.
41329
41330         Fix memmem test for mingw.
41331         * modules/memmem-tests (configure.ac): Check for alarm.
41332         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41333         it.
41334         * doc/functions/memmem.texi: New file.
41335         * doc/gnulib.texi (Function Substitutes): Add memmem.
41336         Reported by Bruno Haible.
41337
41338 2008-01-04  Bruno Haible  <bruno@clisp.org>
41339
41340         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41341         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41342         gl_HEADER_STRING_H_DEFAULTS.
41343
41344 2008-01-04  Eric Blake  <ebb9@byu.net>
41345
41346         Shorten duration of memmem test.
41347         * tests/test-memmem.c (main): Use alarm to declare failure if test
41348         is taking too long.
41349         Reported by Ralf Wildenhues.
41350
41351 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41352
41353         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41354         string, needed by strerror.
41355
41356 2008-01-03  Colin Watson  <cjwatson@debian.org>
41357             Bruno Haible  <bruno@clisp.org>
41358
41359         * doc/gnulib-tool.texi (Localization): New section.
41360
41361 2008-01-02  Bruno Haible  <bruno@clisp.org>
41362
41363         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41364         variables to 'unsigned char *' type.
41365         Reported by Paul Eggert.
41366
41367 2008-01-02  Jim Meyering  <jim@meyering.net>
41368
41369         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41370
41371 2007-12-31  Jim Meyering  <jim@meyering.net>
41372
41373         Avoid use of private FTS type name.
41374         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41375
41376 2007-12-30  Karl Berry  <karl@gnu.org>
41377
41378         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41379         work around defect in Texinfo and/or the standalone Info browser.
41380
41381 2007-12-30  Bruno Haible  <bruno@clisp.org>
41382
41383         Unify 5 copies of the KMP code.
41384         * lib/str-kmp.h: New file.
41385         * lib/c-strcasestr.c: Include str-kmp.h.
41386         (knuth_morris_pratt): Remove function.
41387         (c_strcasestr): Update.
41388         * lib/c-strstr.c: Include str-kmp.h.
41389         (knuth_morris_pratt): Remove function.
41390         (c_strcasestr): Update.
41391         * lib/mbscasestr.c: Include str-kmp.h.
41392         (knuth_morris_pratt_unibyte): Remove function.
41393         * lib/mbsstr.c: Include str-kmp.h.
41394         (knuth_morris_pratt_unibyte): Remove function.
41395         * lib/strcasestr.c: Include str-kmp.h.
41396         (knuth_morris_pratt): Remove function.
41397         (strcasestr): Update.
41398         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41399         * modules/c-strstr (Files): Likewise.
41400         * modules/mbscasestr (Files): Likewise.
41401         * modules/mbsstr (Files): Likewise.
41402         * modules/strcasestr (Files): Likewise.
41403         Suggested by Paul Eggert.
41404
41405 2007-12-30  Bruno Haible  <bruno@clisp.org>
41406
41407         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41408         defined.
41409
41410 2007-12-30  Bruno Haible  <bruno@clisp.org>
41411
41412         * lib/xmalloca.h: Include xalloc.h.
41413         (xnmalloca): New macro.
41414
41415 2007-12-30  Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/malloca.h (nmalloca): New macro.
41418         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41419         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41420         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41421         knuth_morris_pratt_multibyte): Likewise.
41422         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41423         knuth_morris_pratt_multibyte): Likewise.
41424         * lib/memmem.c (knuth_morris_pratt): Likewise.
41425         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41426
41427 2007-12-25  Bruno Haible  <bruno@clisp.org>
41428
41429         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41430         * lib/glob.c: Don't include openat.h.
41431         (link_exists2_p): Add back the code that deals with the
41432         !GLOB_ALTDIRFUNC case.
41433         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41434         let it do the filename concatenation.
41435         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41436         * modules/glob (Depends-on): Remove openat.
41437
41438 2007-12-31  Bruno Haible  <bruno@clisp.org>
41439
41440         * modules/dirfd (License): Change to LGPLv2+.
41441         Approved by Jim Meyering.
41442
41443 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41444
41445         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41446         when multiplying M by sizeof (size_t).
41447
41448 2007-12-10  Martin Lambers  <marlam@marlam.de>
41449
41450         Override getpagesize on mingw.
41451         * lib/getpagesize.c: New file.
41452         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41453         * modules/getpagesize (Files): Add lib/getpagesize.c.
41454         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41456         REPLACE_GETPAGESIZE.
41457         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41458
41459 2007-12-25  Bruno Haible  <bruno@clisp.org>
41460
41461         * modules/localcharset (Notice): New field.
41462         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41463         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41464
41465 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41466             Bruno Haible  <bruno@clisp.org>
41467
41468         Avoid using the syntax symbol() in formatted documentation.
41469         * MODULES.html.sh (func_module): When replacing symbol() with a
41470         hyperlink, remove the parentheses. Show an error if some remain.
41471         Recognize and render the '...' syntax.
41472         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41473         Rework. Add paragraph about GCC's inlining.
41474         * doc/alloca.texi: Likewise.
41475         * doc/error.texi: Remove parentheses from symbol reference.
41476         * doc/gnulib-intro.texi: Likewise.
41477         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41478         * modules/fnmatch (Description): Reword to say "the ... function".
41479         * modules/full-read (Description): Likewise.
41480         * modules/full-write (Description): Likewise.
41481         * modules/safe-read (Description): Likewise.
41482         * modules/safe-write (Description): Likewise.
41483         * modules/strchrnul (Description): Likewise.
41484         * modules/trim (Description): Likewise.
41485         * modules/error (Description): Remove parentheses from symbol
41486         references.
41487         * modules/verror (Description): Likewise.
41488         Reported by Karl Berry.
41489
41490 2007-12-25  Bruno Haible  <bruno@clisp.org>
41491
41492         Fixup after 2007-10-16 commit.
41493         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41494
41495 2007-12-24  Bruno Haible  <bruno@clisp.org>
41496
41497         Make --enable-relocatable work with DESTDIR.
41498         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41499         to compute installdir from destprog.
41500         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41501         also set the RELOC_DESTDIR variable.
41502         Reported by Левашев Иван <octagram@bluebottle.com>.
41503
41504 2007-12-24  Bruno Haible  <bruno@clisp.org>
41505
41506         Fix link error due to xalloc_die().
41507         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41508         of xreadlink.
41509         * lib/relocwrapper.c: Update comments.
41510         * build-aux/install-reloc: Remove xreadlink.c from file list.
41511         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41512         xreadlink.c.
41513         Reported by Левашев Иван <octagram@bluebottle.com>.
41514
41515 2007-12-24  Bruno Haible  <bruno@clisp.org>
41516
41517         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41518         * lib/setenv.h: Remove file.
41519         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41520         lib/setenv.h.
41521         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41522         (Depends-on): Add stdlib.
41523         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41524         gl_FUNC_UNSETENV.
41525         (Include): Replace setenv.h with <stdlib.h>.
41526         * modules/unsetenv: New file.
41527         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41528         * lib/unsetenv.c: Include <stdlib.h> first.
41529         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
41530         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
41531         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
41532         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41533         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41534         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41536         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41537         * doc/functions/unsetenv.texi: Update.
41538         * modules/xsetenv (Depends-on): Add unsetenv.
41539         * modules/getdate (Depends-on): Likewise.
41540         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41541         * lib/xsetenv.c: Don't include setenv.h.
41542         * lib/getdate.y: Likewise.
41543         * lib/relocwrapper.c: Likewise.
41544         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41545         (Depends-on): Add stdlib.
41546         * NEWS: Mention the changes.
41547         Reported by Левашев Иван <octagram@bluebottle.com>.
41548
41549 2007-12-23  Bruno Haible  <bruno@clisp.org>
41550
41551         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41552         indentation.
41553
41554 2007-12-23  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/c-strcasestr.c: Add more comments.
41557         * lib/c-strstr.c: Likewise.
41558         * lib/mbscasestr.c: Likewise.
41559         * lib/mbsstr.c: Likewise.
41560         * lib/strcasestr.c: Likewise.
41561         * lib/memmem.c: Likewise.
41562
41563 2007-12-23  Bruno Haible  <bruno@clisp.org>
41564
41565         * tests/test-memmem.c: Include <string.h> first.
41566
41567 2007-12-22  Bruno Haible  <bruno@clisp.org>
41568
41569         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41570         the contents of $testsbase.
41571         Reported by Ralf Wildenhues.
41572
41573 2007-12-22  Bruno Haible  <bruno@clisp.org>
41574
41575         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41576         two variables local_ldadd_before, local_ldadd_last.
41577
41578 2007-12-20  Eric Blake  <ebb9@byu.net>
41579
41580         Work around circular library issue when cross-compiling.
41581         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41582         that progname.o does not need to pull in rpl_memcmp.
41583
41584 2007-12-19  Eric Blake  <ebb9@byu.net>
41585
41586         Fix memmem to avoid O(n^2) worst-case complexity.
41587         * lib/memmem.c (knuth_morris_pratt): New function.
41588         (memmem): Use it if first few naive iterations fail.
41589         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41590         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41591         * modules/memchr (License): Likewise.
41592         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41593         malloca.
41594         * tests/test-memmem.c: Rewrite, borrowing ideas from
41595         test-mbsstr1.c; the old version wouldn't even compile!
41596         * modules/memmem-tests: New file.
41597         * lib/string.in.h (rpl_memmem): Add declaration.
41598         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
41599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
41600         REPLACE_MEMMEM.
41601
41602 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41603
41604         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
41605         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
41606         before any system include files, and undef after them all.  This
41607         should fix a problem on VMS reported by John E. Malmberg in
41608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
41609
41610 2007-12-17  Eric Blake  <ebb9@byu.net>
41611
41612         Revert addition of verify, for BSD/OS.
41613         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
41614         can't handle large files, for the sake of obsolete platforms.
41615         * modules/fseeko (Depends-on): Remove verify.
41616         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
41617         * doc/functions/ftello.texi (ftello): Likewise.
41618         * doc/functions/fgetpos.texi (fgetpos): Likewise.
41619         Reported by Larry Jones.
41620
41621 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
41622
41623         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
41624         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
41625
41626 2007-12-17  Jim Meyering  <meyering@redhat.com>
41627
41628         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
41629         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
41630         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
41631         * modules/getcwd (Depends-on): Add openat.
41632         Reported by Petr Salinger.
41633
41634 2007-12-17  Bruno Haible  <bruno@clisp.org>
41635
41636         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
41637         avoid a segmentation fault of the configure test on x86_64 systems.
41638
41639 2007-12-15  Jim Meyering  <meyering@redhat.com>
41640
41641         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
41642
41643 2007-12-13  Eric Blake  <ebb9@byu.net>
41644
41645         Another fseek test.
41646         * tests/test-fseek.c (main): Also test ungetc handling.
41647         * tests/test-fseeko.c (main): Likewise.
41648         * modules/fseeko (Depends-on): Add verify.
41649         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
41650         large.
41651         Reported by Larry Jones.
41652
41653         Fix fseeko on mingw.
41654         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
41655         seek.
41656
41657         Beef up fseek tests.
41658         * tests/test-fseek.c (main): Also test eof handling.
41659         * tests/test-fseeko.c (main): Likewise.
41660         Reported by Larry Jones.
41661
41662 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
41663
41664         Fix fseeko on BSD-based platforms.
41665         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
41666         successful seek.
41667
41668 2007-12-12  Eric Blake  <ebb9@byu.net>
41669
41670         Allow circular dependency of separate libtests.a
41671         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
41672         when use_libtests.
41673
41674 2007-12-11  Eric Blake  <ebb9@byu.net>
41675
41676         Fix bug with -0.0L in previous patch.
41677         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
41678         * tests/test-isnan.c (main): Also test on zeroes.
41679         * tests/test-isnanf.c (main): Likewise.
41680         * tests/test-isnanl.h (main): Likewise.
41681
41682         Detect pseudo-denormals on x86 even when cross-compiling.
41683         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
41684         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
41685         invalid bit patterns that happen to satisfy ==.
41686
41687         Avoid link failures with separate libtests.a.
41688         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
41689         last, to satisfy circular dependencies.
41690
41691 2007-12-11  Eric Blake  <ebb9@byu.net>
41692         and Bruno Haible  <bruno@clisp.org>
41693
41694         Fix OpenBSD 4.0 <float.h> handling of long double.
41695         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
41696         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
41697         * doc/headers/float.texi (float.h): Document OpenBSD bug.
41698
41699 2007-12-11  Jim Meyering  <meyering@redhat.com>
41700
41701         * users.txt: Add libvirt.
41702
41703         Support versions of autoconf prior to 2.59c.
41704         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
41705         if it is not already defined.
41706
41707 2007-12-09  Bruno Haible  <bruno@clisp.org>
41708
41709         Let 'gnulib-tool --import' collect sources needed for the tests in
41710         tests/ rather than in lib/.
41711         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
41712         argument. If true, add rules to generate libtests.a, and put libtests.a
41713         into $(LDADD). Consider source files in subdirectories and set
41714         uses_subdirs.
41715         (func_emit_initmacro_start, func_emit_initmacro_end,
41716         func_emit_initmacro_done): Pass all arguments explicitly.
41717         (func_import): Determine two module lists main_modules,
41718         testsrelated_modules. Determine use_libtests. Determine two variables
41719         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
41720         instead of just sed_transform_lib_file. Determine two variables
41721         main_files and testsrelated_files. Compute 'files' as the union of
41722         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
41723         func_add_or_update. In the generated gnulib-comp.m4, collect the
41724         object files for tests/ in different variables than those for lib/.
41725         Substitute LIBTESTS_LIBDEPS.
41726         (func_create_testdir): Combine the uses_subdirs results from
41727         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
41728
41729 2007-12-09  Bruno Haible  <bruno@clisp.org>
41730
41731         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
41732         the build-aux directory.
41733
41734 2007-12-09  Bruno Haible  <bruno@clisp.org>
41735
41736         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
41737         introduced on 2006-09-09.
41738
41739 2007-12-07  Jim Meyering  <meyering@redhat.com>
41740
41741         Let these macros work also with autoconf-2.59.
41742         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
41743         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
41744         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41745
41746 2007-12-06  Jim Meyering  <meyering@redhat.com>
41747
41748         Avoid a configure-time syntax error in gl_FUNC_ACL.
41749         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
41750         function in each branch, before testing the cache variable.
41751
41752 2007-12-04  Eric Blake  <ebb9@byu.net>
41753
41754         Make scripts executable.
41755         * build-aux/config.guess: Add execute permissions.
41756         * build-aux/config.sub: Likewise.
41757         * build-aux/gendocs.sh: Likewise.
41758
41759         Fix frexp on mingw.
41760         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
41761         cross-compiling.
41762         * doc/functions/frexp.texi (frexp): Document the bug.
41763
41764         Make cygwin fseeko check more reliable.
41765         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
41766         version numbers, rather than unrelated feature check.
41767         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
41768         * doc/functions/ftello.texi (ftello): Likewise.
41769         Reported by Bruno Haible.
41770
41771         * m4/strerror.m4: Bump version number.
41772
41773 2007-12-03  Bruno Haible  <bruno@clisp.org>
41774
41775         * doc/functions/mprotect.texi: Mention the mingw problem.
41776
41777 2007-12-03  Eric Blake  <ebb9@byu.net>
41778
41779         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
41780         REPLACE_STRERROR is initialized before this macro.
41781
41782 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41783
41784         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
41785         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
41786         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
41787         put -lsec in even for programs other than 'ls'.  This fixes a problem
41788         for gettext reported by Bruno Haible in
41789         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
41790         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
41791         Add support for Solaris 10.  This isn't efficient, but should get the
41792         job done for now.
41793
41794 2007-12-03  James Youngman  <jay@gnu.org>
41795
41796         * doc/regexprops-generic.texi: change "an close-group" to "a
41797         close-group" and "illegal" to "not allowed".
41798
41799 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41800
41801         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
41802         pr_byname.h. Needed for the rare case when the maintainer has done
41803         "make maintainer-clean" in the source directory and then attempts a
41804         build outside the source directory.
41805         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
41806         scripts_byname.h.
41807
41808 2007-12-02  Martin Lambers <marlam@marlam.de>
41809             Bruno Haible  <bruno@clisp.org>
41810
41811         * lib/getpagesize.h: Remove file.
41812         * lib/unistd.in.h: Include declaration of getpagesize here.
41813         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
41814         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
41815         HAVE_SYS_PARAM_H.
41816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
41817         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41818         * modules/getpagesize (Files): Remove lib/getpagesize.h.
41819         (Depends-on): Add unistd.
41820         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41821         (Include): Use <unistd.h> instead of getpagesize.h.
41822         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
41823         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
41824         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
41825         gl_GETPAGESIZE invocation, already handled by module dependency.
41826         * lib/pagealign_alloc.c: Don't include getpagesize.h.
41827
41828 2007-12-02  Bruno Haible  <bruno@clisp.org>
41829
41830         * modules/strings-tests: New file.
41831         * tests/test-strings.c: New file.
41832
41833         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
41834         * lib/strings.in.h: New file.
41835         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
41836         * m4/strings_h.m4: New file.
41837         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
41838         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
41839         * modules/strings: New file.
41840         * modules/string (Makefile.am): Update.
41841         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
41842         Reported by Karl Berry.
41843
41844 2007-12-01  Eric Blake  <ebb9@byu.net>
41845
41846         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
41847         accomodate fix in cygwin 1.5.25.
41848
41849 2007-12-01  Jim Meyering  <meyering@redhat.com>
41850
41851         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
41852         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
41853         that would inhibit utf8-optimization of a regexp containing line-
41854         or buffer-anchors, e.g., `^', `$'.
41855
41856 2007-11-30  Bruno Haible  <bruno@clisp.org>
41857
41858         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
41859         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
41860         glthread_recursive_lock_init.
41861         * lib/lock.c (glthread_recursive_lock_init)
41862         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
41863         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41864
41865 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
41866
41867         New function qset_acl, like set_acl but with syscall semantics.
41868         * lib/acl.h (qset_acl): New decl.
41869         * lib/acl.c (qset_acl): New function.
41870         (set_acl): Use new function.  Use more-consistent diagnostics.
41871
41872 2007-11-28  Jim Meyering  <meyering@redhat.com>
41873
41874         * modules/physmem (License): Change from GPL to LGPLv2+.
41875
41876 2007-11-26  Bruno Haible  <bruno@clisp.org>
41877
41878         * lib/vasnprintf.c (decode_long_double): Don't abort if the
41879         'long double' type has excess precision.
41880         Reported by Jim Meyering in
41881         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
41882
41883 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41884
41885         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
41886         Sync from <http://gnu.org/licenses>.
41887         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
41888         with license text from same location.
41889         * doc/maintain.texi, doc/standards.texi:  Sync from
41890         <http://savannah.gnu.org/projects/gnustandards>.
41891
41892 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
41893         and Jim Meyering  <meyering@redhat.com>
41894
41895         Adjust getdate' grammar to accept a slightly more regular language.
41896         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
41897         Before, the former was rejected.
41898         * lib/getdate.y (digits_to_date_time): New function, factored
41899         out of ...
41900         (number): ...here.  Just call digits_to_date_time.
41901         (hybrid): New non-terminal to handle an <unsigned number,
41902         signed relative offset> sequence consistently.
41903
41904 2007-11-18  Jim Meyering  <meyering@redhat.com>
41905
41906         Pull my changes from coreutils:
41907         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
41908         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
41909         use of $gnulib_tool_option_extras, so that it's separated from the
41910         preceding argument.
41911
41912         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
41913         * build-aux/bootstrap (cp_mark_as_generated): Create any required
41914         parent destination directories before copying a file into place.
41915
41916 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41917
41918         bootstrap: work also with 4-argument variant of AC_INIT
41919         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
41920
41921 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41922
41923         Port test-getaddrinfo to Solaris.
41924         Problem reported by Bruno Haible in
41925         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
41926         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
41927         explanation of setting 'hints'.
41928         Don't reject an implementation merely because it returns EAI_SERVICE.
41929         (EAI_SERVICE): Define to 0 if not defined.
41930
41931 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41932
41933         The license of gnu-make and posix-shell is now "GPLed build tool".
41934         * modules/gnu-make (License): Likewise.
41935         * modules/posix-shell (License): Likewise.
41936
41937         New module posix-shell, for determining a POSIX shell
41938         or perhaps something that is close enough to a POSIX shell.
41939         * m4/posix-shell.m4: New file.
41940         * modules/posix-shell: New file.
41941
41942         * MODULES.html.sh: Mention new module.
41943
41944         New module gnu-make, for determining whether we're using GNU Make.
41945         * m4/gnu-make.m4: New file.
41946         * modules/gnu-make: New file.
41947         * MODULES.html.sh: Mention new module.
41948
41949 2007-11-14  Jim Meyering  <meyering@redhat.com>
41950
41951         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
41952         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
41953         use this macro to create a function _definition_.
41954         Remove useless "#undef ARGMATCH_DIE".
41955
41956 2007-11-14  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/config.charset: Update for OpenBSD 4.1.
41959         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
41960
41961 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
41962
41963         Document 64-bit #if problems in stdint.texi.
41964         * doc/headers/stdint.texi (stdint.h): Mention problems with
41965         64-bit-#if, and how to work around them.
41966
41967         Don't insist on 'long long int' support in the preprocessor.  It
41968         breaks too many things.  For example, PRIdMAX still uses a 'long
41969         long int' format with the latest Sun compiler, even though
41970         HAVE_LONG_LONG_INT isn't defined due to that compiler's
41971         preprocessor problem.  This causes the latest coreutils to dump
41972         core on Solaris 10 sparc with the Sun C compiler.
41973         Instead, fix the 2007-10-16 problem in a different way, by evaluating
41974         the troublesome expressions at configure-time, not at #if-time.
41975         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
41976         preprocessor.
41977         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
41978         compile-time C checks, done at 'configure'-time.
41979         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
41980         * modules/inttypes (Makefile): Substitute the new symbols that
41981         gl_INTTYPES_H now generates.
41982         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
41983
41984 2007-11-12  Bruno Haible  <bruno@clisp.org>
41985
41986         Tests for Unicode character classification functions.
41987
41988         * modules/unictype/bidicategory-byname-tests: New file.
41989         * modules/unictype/bidicategory-name-tests: New file.
41990         * modules/unictype/bidicategory-of-tests: New file.
41991         * modules/unictype/bidicategory-test-tests: New file.
41992         * modules/unictype/block-list-tests: New file.
41993         * modules/unictype/block-of-tests: New file.
41994         * modules/unictype/block-test-tests: New file.
41995         * modules/unictype/category-C-tests: New file.
41996         * modules/unictype/category-Cc-tests: New file.
41997         * modules/unictype/category-Cf-tests: New file.
41998         * modules/unictype/category-Cn-tests: New file.
41999         * modules/unictype/category-Co-tests: New file.
42000         * modules/unictype/category-Cs-tests: New file.
42001         * modules/unictype/category-L-tests: New file.
42002         * modules/unictype/category-Ll-tests: New file.
42003         * modules/unictype/category-Lm-tests: New file.
42004         * modules/unictype/category-Lo-tests: New file.
42005         * modules/unictype/category-Lt-tests: New file.
42006         * modules/unictype/category-Lu-tests: New file.
42007         * modules/unictype/category-M-tests: New file.
42008         * modules/unictype/category-Mc-tests: New file.
42009         * modules/unictype/category-Me-tests: New file.
42010         * modules/unictype/category-Mn-tests: New file.
42011         * modules/unictype/category-N-tests: New file.
42012         * modules/unictype/category-Nd-tests: New file.
42013         * modules/unictype/category-Nl-tests: New file.
42014         * modules/unictype/category-No-tests: New file.
42015         * modules/unictype/category-P-tests: New file.
42016         * modules/unictype/category-Pc-tests: New file.
42017         * modules/unictype/category-Pd-tests: New file.
42018         * modules/unictype/category-Pe-tests: New file.
42019         * modules/unictype/category-Pf-tests: New file.
42020         * modules/unictype/category-Pi-tests: New file.
42021         * modules/unictype/category-Po-tests: New file.
42022         * modules/unictype/category-Ps-tests: New file.
42023         * modules/unictype/category-S-tests: New file.
42024         * modules/unictype/category-Sc-tests: New file.
42025         * modules/unictype/category-Sk-tests: New file.
42026         * modules/unictype/category-Sm-tests: New file.
42027         * modules/unictype/category-So-tests: New file.
42028         * modules/unictype/category-Z-tests: New file.
42029         * modules/unictype/category-Zl-tests: New file.
42030         * modules/unictype/category-Zp-tests: New file.
42031         * modules/unictype/category-Zs-tests: New file.
42032         * modules/unictype/category-and-not-tests: New file.
42033         * modules/unictype/category-and-tests: New file.
42034         * modules/unictype/category-byname-tests: New file.
42035         * modules/unictype/category-name-tests: New file.
42036         * modules/unictype/category-none-tests: New file.
42037         * modules/unictype/category-of-tests: New file.
42038         * modules/unictype/category-or-tests: New file.
42039         * modules/unictype/category-test-withtable-tests: New file.
42040         * modules/unictype/combining-class-tests: New file.
42041         * modules/unictype/ctype-alnum-tests: New file.
42042         * modules/unictype/ctype-alpha-tests: New file.
42043         * modules/unictype/ctype-blank-tests: New file.
42044         * modules/unictype/ctype-cntrl-tests: New file.
42045         * modules/unictype/ctype-digit-tests: New file.
42046         * modules/unictype/ctype-graph-tests: New file.
42047         * modules/unictype/ctype-lower-tests: New file.
42048         * modules/unictype/ctype-print-tests: New file.
42049         * modules/unictype/ctype-punct-tests: New file.
42050         * modules/unictype/ctype-space-tests: New file.
42051         * modules/unictype/ctype-upper-tests: New file.
42052         * modules/unictype/ctype-xdigit-tests: New file.
42053         * modules/unictype/decimal-digit-tests: New file.
42054         * modules/unictype/digit-tests: New file.
42055         * modules/unictype/mirror-tests: New file.
42056         * modules/unictype/numeric-tests: New file.
42057         * modules/unictype/property-alphabetic-tests: New file.
42058         * modules/unictype/property-ascii-hex-digit-tests: New file.
42059         * modules/unictype/property-bidi-arabic-digit-tests: New file.
42060         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
42061         * modules/unictype/property-bidi-block-separator-tests: New file.
42062         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
42063         * modules/unictype/property-bidi-common-separator-tests: New file.
42064         * modules/unictype/property-bidi-control-tests: New file.
42065         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
42066         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
42067         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
42068         * modules/unictype/property-bidi-european-digit-tests: New file.
42069         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
42070         * modules/unictype/property-bidi-left-to-right-tests: New file.
42071         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
42072         * modules/unictype/property-bidi-other-neutral-tests: New file.
42073         * modules/unictype/property-bidi-pdf-tests: New file.
42074         * modules/unictype/property-bidi-segment-separator-tests: New file.
42075         * modules/unictype/property-bidi-whitespace-tests: New file.
42076         * modules/unictype/property-byname-tests: New file.
42077         * modules/unictype/property-combining-tests: New file.
42078         * modules/unictype/property-composite-tests: New file.
42079         * modules/unictype/property-currency-symbol-tests: New file.
42080         * modules/unictype/property-dash-tests: New file.
42081         * modules/unictype/property-decimal-digit-tests: New file.
42082         * modules/unictype/property-default-ignorable-code-point-tests: New file.
42083         * modules/unictype/property-deprecated-tests: New file.
42084         * modules/unictype/property-diacritic-tests: New file.
42085         * modules/unictype/property-extender-tests: New file.
42086         * modules/unictype/property-format-control-tests: New file.
42087         * modules/unictype/property-grapheme-base-tests: New file.
42088         * modules/unictype/property-grapheme-extend-tests: New file.
42089         * modules/unictype/property-grapheme-link-tests: New file.
42090         * modules/unictype/property-hex-digit-tests: New file.
42091         * modules/unictype/property-hyphen-tests: New file.
42092         * modules/unictype/property-id-continue-tests: New file.
42093         * modules/unictype/property-id-start-tests: New file.
42094         * modules/unictype/property-ideographic-tests: New file.
42095         * modules/unictype/property-ids-binary-operator-tests: New file.
42096         * modules/unictype/property-ids-trinary-operator-tests: New file.
42097         * modules/unictype/property-ignorable-control-tests: New file.
42098         * modules/unictype/property-iso-control-tests: New file.
42099         * modules/unictype/property-join-control-tests: New file.
42100         * modules/unictype/property-left-of-pair-tests: New file.
42101         * modules/unictype/property-line-separator-tests: New file.
42102         * modules/unictype/property-logical-order-exception-tests: New file.
42103         * modules/unictype/property-lowercase-tests: New file.
42104         * modules/unictype/property-math-tests: New file.
42105         * modules/unictype/property-non-break-tests: New file.
42106         * modules/unictype/property-not-a-character-tests: New file.
42107         * modules/unictype/property-numeric-tests: New file.
42108         * modules/unictype/property-other-alphabetic-tests: New file.
42109         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
42110         * modules/unictype/property-other-grapheme-extend-tests: New file.
42111         * modules/unictype/property-other-id-continue-tests: New file.
42112         * modules/unictype/property-other-id-start-tests: New file.
42113         * modules/unictype/property-other-lowercase-tests: New file.
42114         * modules/unictype/property-other-math-tests: New file.
42115         * modules/unictype/property-other-uppercase-tests: New file.
42116         * modules/unictype/property-paired-punctuation-tests: New file.
42117         * modules/unictype/property-paragraph-separator-tests: New file.
42118         * modules/unictype/property-pattern-syntax-tests: New file.
42119         * modules/unictype/property-pattern-white-space-tests: New file.
42120         * modules/unictype/property-private-use-tests: New file.
42121         * modules/unictype/property-punctuation-tests: New file.
42122         * modules/unictype/property-quotation-mark-tests: New file.
42123         * modules/unictype/property-radical-tests: New file.
42124         * modules/unictype/property-sentence-terminal-tests: New file.
42125         * modules/unictype/property-soft-dotted-tests: New file.
42126         * modules/unictype/property-space-tests: New file.
42127         * modules/unictype/property-terminal-punctuation-tests: New file.
42128         * modules/unictype/property-test-tests: New file.
42129         * modules/unictype/property-titlecase-tests: New file.
42130         * modules/unictype/property-unassigned-code-value-tests: New file.
42131         * modules/unictype/property-unified-ideograph-tests: New file.
42132         * modules/unictype/property-uppercase-tests: New file.
42133         * modules/unictype/property-variation-selector-tests: New file.
42134         * modules/unictype/property-white-space-tests: New file.
42135         * modules/unictype/property-xid-continue-tests: New file.
42136         * modules/unictype/property-xid-start-tests: New file.
42137         * modules/unictype/property-zero-width-tests: New file.
42138         * modules/unictype/scripts-tests: New file.
42139         * modules/unictype/syntax-c-ident-tests: New file.
42140         * modules/unictype/syntax-c-whitespace-tests: New file.
42141         * modules/unictype/syntax-java-ident-tests: New file.
42142         * modules/unictype/syntax-java-whitespace-tests: New file.
42143         * tests/unictype/test-bidi_byname.c: New file.
42144         * tests/unictype/test-bidi_name.c: New file.
42145         * tests/unictype/test-bidi_of.c: New file.
42146         * tests/unictype/test-bidi_test.c: New file.
42147         * tests/unictype/test-block_list.c: New file.
42148         * tests/unictype/test-block_of.c: New file.
42149         * tests/unictype/test-block_test.c: New file.
42150         * tests/unictype/test-categ_and.c: New file.
42151         * tests/unictype/test-categ_and_not.c: New file.
42152         * tests/unictype/test-categ_byname.c: New file.
42153         * tests/unictype/test-categ_name.c: New file.
42154         * tests/unictype/test-categ_none.c: New file.
42155         * tests/unictype/test-categ_of.c: New file.
42156         * tests/unictype/test-categ_or.c: New file.
42157         * tests/unictype/test-categ_test_withtable.c: New file.
42158         * tests/unictype/test-combining.c: New file.
42159         * tests/unictype/test-decdigit.c: New file.
42160         * tests/unictype/test-digit.c: New file.
42161         * tests/unictype/test-mirror.c: New file.
42162         * tests/unictype/test-numeric.c: New file.
42163         * tests/unictype/test-pr_byname.c: New file.
42164         * tests/unictype/test-pr_test.c: New file.
42165         * tests/unictype/test-predicate-part1.h: New file.
42166         * tests/unictype/test-predicate-part2.h: New file.
42167         * tests/unictype/test-scripts.c: New file.
42168         * tests/unictype/test-sy_c_ident.c: New file.
42169         * tests/unictype/test-sy_java_ident.c: New file.
42170
42171         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42172         for Unicode 5.0.0.
42173         * tests/unictype/test-categ_Cc.c: Likewise.
42174         * tests/unictype/test-categ_Cf.c: Likewise.
42175         * tests/unictype/test-categ_Cn.c: Likewise.
42176         * tests/unictype/test-categ_Co.c: Likewise.
42177         * tests/unictype/test-categ_Cs.c: Likewise.
42178         * tests/unictype/test-categ_L.c: Likewise.
42179         * tests/unictype/test-categ_Ll.c: Likewise.
42180         * tests/unictype/test-categ_Lm.c: Likewise.
42181         * tests/unictype/test-categ_Lo.c: Likewise.
42182         * tests/unictype/test-categ_Lt.c: Likewise.
42183         * tests/unictype/test-categ_Lu.c: Likewise.
42184         * tests/unictype/test-categ_M.c: Likewise.
42185         * tests/unictype/test-categ_Mc.c: Likewise.
42186         * tests/unictype/test-categ_Me.c: Likewise.
42187         * tests/unictype/test-categ_Mn.c: Likewise.
42188         * tests/unictype/test-categ_N.c: Likewise.
42189         * tests/unictype/test-categ_Nd.c: Likewise.
42190         * tests/unictype/test-categ_Nl.c: Likewise.
42191         * tests/unictype/test-categ_No.c: Likewise.
42192         * tests/unictype/test-categ_P.c: Likewise.
42193         * tests/unictype/test-categ_Pc.c: Likewise.
42194         * tests/unictype/test-categ_Pd.c: Likewise.
42195         * tests/unictype/test-categ_Pe.c: Likewise.
42196         * tests/unictype/test-categ_Pf.c: Likewise.
42197         * tests/unictype/test-categ_Pi.c: Likewise.
42198         * tests/unictype/test-categ_Po.c: Likewise.
42199         * tests/unictype/test-categ_Ps.c: Likewise.
42200         * tests/unictype/test-categ_S.c: Likewise.
42201         * tests/unictype/test-categ_Sc.c: Likewise.
42202         * tests/unictype/test-categ_Sk.c: Likewise.
42203         * tests/unictype/test-categ_Sm.c: Likewise.
42204         * tests/unictype/test-categ_So.c: Likewise.
42205         * tests/unictype/test-categ_Z.c: Likewise.
42206         * tests/unictype/test-categ_Zl.c: Likewise.
42207         * tests/unictype/test-categ_Zp.c: Likewise.
42208         * tests/unictype/test-categ_Zs.c: Likewise.
42209         * tests/unictype/test-ctype_alnum.c: Likewise.
42210         * tests/unictype/test-ctype_alpha.c: Likewise.
42211         * tests/unictype/test-ctype_blank.c: Likewise.
42212         * tests/unictype/test-ctype_cntrl.c: Likewise.
42213         * tests/unictype/test-ctype_digit.c: Likewise.
42214         * tests/unictype/test-ctype_graph.c: Likewise.
42215         * tests/unictype/test-ctype_lower.c: Likewise.
42216         * tests/unictype/test-ctype_print.c: Likewise.
42217         * tests/unictype/test-ctype_punct.c: Likewise.
42218         * tests/unictype/test-ctype_space.c: Likewise.
42219         * tests/unictype/test-ctype_upper.c: Likewise.
42220         * tests/unictype/test-ctype_xdigit.c: Likewise.
42221         * tests/unictype/test-decdigit.h: Likewise.
42222         * tests/unictype/test-digit.h: Likewise.
42223         * tests/unictype/test-numeric.h: Likewise.
42224         * tests/unictype/test-pr_alphabetic.c: Likewise.
42225         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42226         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42227         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42228         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42229         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42230         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42231         * tests/unictype/test-pr_bidi_control.c: Likewise.
42232         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42233         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42234         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42235         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42236         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42237         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42238         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42239         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42240         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42241         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42242         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42243         * tests/unictype/test-pr_combining.c: Likewise.
42244         * tests/unictype/test-pr_composite.c: Likewise.
42245         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42246         * tests/unictype/test-pr_dash.c: Likewise.
42247         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42248         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42249         * tests/unictype/test-pr_deprecated.c: Likewise.
42250         * tests/unictype/test-pr_diacritic.c: Likewise.
42251         * tests/unictype/test-pr_extender.c: Likewise.
42252         * tests/unictype/test-pr_format_control.c: Likewise.
42253         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42254         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42255         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42256         * tests/unictype/test-pr_hex_digit.c: Likewise.
42257         * tests/unictype/test-pr_hyphen.c: Likewise.
42258         * tests/unictype/test-pr_id_continue.c: Likewise.
42259         * tests/unictype/test-pr_id_start.c: Likewise.
42260         * tests/unictype/test-pr_ideographic.c: Likewise.
42261         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42262         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42263         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42264         * tests/unictype/test-pr_iso_control.c: Likewise.
42265         * tests/unictype/test-pr_join_control.c: Likewise.
42266         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42267         * tests/unictype/test-pr_line_separator.c: Likewise.
42268         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42269         * tests/unictype/test-pr_lowercase.c: Likewise.
42270         * tests/unictype/test-pr_math.c: Likewise.
42271         * tests/unictype/test-pr_non_break.c: Likewise.
42272         * tests/unictype/test-pr_not_a_character.c: Likewise.
42273         * tests/unictype/test-pr_numeric.c: Likewise.
42274         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42275         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42276         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42277         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42278         * tests/unictype/test-pr_other_id_start.c: Likewise.
42279         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42280         * tests/unictype/test-pr_other_math.c: Likewise.
42281         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42282         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42283         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42284         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42285         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42286         * tests/unictype/test-pr_private_use.c: Likewise.
42287         * tests/unictype/test-pr_punctuation.c: Likewise.
42288         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42289         * tests/unictype/test-pr_radical.c: Likewise.
42290         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42291         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42292         * tests/unictype/test-pr_space.c: Likewise.
42293         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42294         * tests/unictype/test-pr_titlecase.c: Likewise.
42295         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42296         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42297         * tests/unictype/test-pr_uppercase.c: Likewise.
42298         * tests/unictype/test-pr_variation_selector.c: Likewise.
42299         * tests/unictype/test-pr_white_space.c: Likewise.
42300         * tests/unictype/test-pr_xid_continue.c: Likewise.
42301         * tests/unictype/test-pr_xid_start.c: Likewise.
42302         * tests/unictype/test-pr_zero_width.c: Likewise.
42303         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42304         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42305
42306 2007-11-12  Bruno Haible  <bruno@clisp.org>
42307
42308         Unicode character classification functions.
42309         * lib/unictype.h: New file.
42310         * modules/unictype/base: New file.
42311         * modules/unictype/category-L: New file.
42312         * modules/unictype/category-Lu: New file.
42313         * modules/unictype/category-Ll: New file.
42314         * modules/unictype/category-Lt: New file.
42315         * modules/unictype/category-Lm: New file.
42316         * modules/unictype/category-Lo: New file.
42317         * modules/unictype/category-M: New file.
42318         * modules/unictype/category-Mn: New file.
42319         * modules/unictype/category-Mc: New file.
42320         * modules/unictype/category-Me: New file.
42321         * modules/unictype/category-N: New file.
42322         * modules/unictype/category-Nd: New file.
42323         * modules/unictype/category-Nl: New file.
42324         * modules/unictype/category-No: New file.
42325         * modules/unictype/category-P: New file.
42326         * modules/unictype/category-Pc: New file.
42327         * modules/unictype/category-Pd: New file.
42328         * modules/unictype/category-Ps: New file.
42329         * modules/unictype/category-Pe: New file.
42330         * modules/unictype/category-Pi: New file.
42331         * modules/unictype/category-Pf: New file.
42332         * modules/unictype/category-Po: New file.
42333         * modules/unictype/category-S: New file.
42334         * modules/unictype/category-Sm: New file.
42335         * modules/unictype/category-Sc: New file.
42336         * modules/unictype/category-Sk: New file.
42337         * modules/unictype/category-So: New file.
42338         * modules/unictype/category-Z: New file.
42339         * modules/unictype/category-Zs: New file.
42340         * modules/unictype/category-Zl: New file.
42341         * modules/unictype/category-Zp: New file.
42342         * modules/unictype/category-C: New file.
42343         * modules/unictype/category-Cc: New file.
42344         * modules/unictype/category-Cf: New file.
42345         * modules/unictype/category-Cs: New file.
42346         * modules/unictype/category-Co: New file.
42347         * modules/unictype/category-Cn: New file.
42348         * modules/unictype/category-or: New file.
42349         * modules/unictype/category-of: New file.
42350         * modules/unictype/category-test: New file.
42351         * modules/unictype/category-test-withtable: New file.
42352         * modules/unictype/category-byname: New file.
42353         * modules/unictype/category-none: New file.
42354         * modules/unictype/category-and: New file.
42355         * modules/unictype/category-and-not: New file.
42356         * modules/unictype/category-name: New file.
42357         * modules/unictype/combining-class: New file.
42358         * modules/unictype/category-all: New file.
42359         * modules/unictype/bidicategory-all: New file.
42360         * modules/unictype/bidicategory-byname: New file.
42361         * modules/unictype/bidicategory-name: New file.
42362         * modules/unictype/bidicategory-of: New file.
42363         * modules/unictype/bidicategory-test: New file.
42364         * modules/unictype/decimal-digit: New file.
42365         * modules/unictype/digit: New file.
42366         * modules/unictype/numeric: New file.
42367         * modules/unictype/mirror: New file.
42368         * modules/unictype/property-white-space: New file.
42369         * modules/unictype/property-alphabetic: New file.
42370         * modules/unictype/property-other-alphabetic: New file.
42371         * modules/unictype/property-not-a-character: New file.
42372         * modules/unictype/property-default-ignorable-code-point: New file.
42373         * modules/unictype/property-other-default-ignorable-code-point: New
42374         file.
42375         * modules/unictype/property-deprecated: New file.
42376         * modules/unictype/property-logical-order-exception: New file.
42377         * modules/unictype/property-variation-selector: New file.
42378         * modules/unictype/property-private-use: New file.
42379         * modules/unictype/property-unassigned-code-value: New file.
42380         * modules/unictype/property-uppercase: New file.
42381         * modules/unictype/property-other-uppercase: New file.
42382         * modules/unictype/property-lowercase: New file.
42383         * modules/unictype/property-other-lowercase: New file.
42384         * modules/unictype/property-titlecase: New file.
42385         * modules/unictype/property-soft-dotted: New file.
42386         * modules/unictype/property-id-start: New file.
42387         * modules/unictype/property-other-id-start: New file.
42388         * modules/unictype/property-id-continue: New file.
42389         * modules/unictype/property-other-id-continue: New file.
42390         * modules/unictype/property-xid-start: New file.
42391         * modules/unictype/property-xid-continue: New file.
42392         * modules/unictype/property-pattern-white-space: New file.
42393         * modules/unictype/property-pattern-syntax: New file.
42394         * modules/unictype/property-join-control: New file.
42395         * modules/unictype/property-grapheme-base: New file.
42396         * modules/unictype/property-grapheme-extend: New file.
42397         * modules/unictype/property-other-grapheme-extend: New file.
42398         * modules/unictype/property-grapheme-link: New file.
42399         * modules/unictype/property-bidi-control: New file.
42400         * modules/unictype/property-bidi-left-to-right: New file.
42401         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42402         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42403         * modules/unictype/property-bidi-european-digit: New file.
42404         * modules/unictype/property-bidi-eur-num-separator: New file.
42405         * modules/unictype/property-bidi-eur-num-terminator: New file.
42406         * modules/unictype/property-bidi-arabic-digit: New file.
42407         * modules/unictype/property-bidi-common-separator: New file.
42408         * modules/unictype/property-bidi-block-separator: New file.
42409         * modules/unictype/property-bidi-segment-separator: New file.
42410         * modules/unictype/property-bidi-whitespace: New file.
42411         * modules/unictype/property-bidi-non-spacing-mark: New file.
42412         * modules/unictype/property-bidi-boundary-neutral: New file.
42413         * modules/unictype/property-bidi-pdf: New file.
42414         * modules/unictype/property-bidi-embedding-or-override: New file.
42415         * modules/unictype/property-bidi-other-neutral: New file.
42416         * modules/unictype/property-hex-digit: New file.
42417         * modules/unictype/property-ascii-hex-digit: New file.
42418         * modules/unictype/property-ideographic: New file.
42419         * modules/unictype/property-unified-ideograph: New file.
42420         * modules/unictype/property-radical: New file.
42421         * modules/unictype/property-ids-binary-operator: New file.
42422         * modules/unictype/property-ids-trinary-operator: New file.
42423         * modules/unictype/property-zero-width: New file.
42424         * modules/unictype/property-space: New file.
42425         * modules/unictype/property-non-break: New file.
42426         * modules/unictype/property-iso-control: New file.
42427         * modules/unictype/property-format-control: New file.
42428         * modules/unictype/property-dash: New file.
42429         * modules/unictype/property-hyphen: New file.
42430         * modules/unictype/property-punctuation: New file.
42431         * modules/unictype/property-line-separator: New file.
42432         * modules/unictype/property-paragraph-separator: New file.
42433         * modules/unictype/property-quotation-mark: New file.
42434         * modules/unictype/property-sentence-terminal: New file.
42435         * modules/unictype/property-terminal-punctuation: New file.
42436         * modules/unictype/property-currency-symbol: New file.
42437         * modules/unictype/property-math: New file.
42438         * modules/unictype/property-other-math: New file.
42439         * modules/unictype/property-paired-punctuation: New file.
42440         * modules/unictype/property-left-of-pair: New file.
42441         * modules/unictype/property-combining: New file.
42442         * modules/unictype/property-composite: New file.
42443         * modules/unictype/property-decimal-digit: New file.
42444         * modules/unictype/property-numeric: New file.
42445         * modules/unictype/property-diacritic: New file.
42446         * modules/unictype/property-extender: New file.
42447         * modules/unictype/property-ignorable-control: New file.
42448         * modules/unictype/property-test: New file.
42449         * modules/unictype/property-byname: New file.
42450         * modules/unictype/property-all: New file.
42451         * modules/unictype/scripts: New file.
42452         * modules/unictype/scripts-all: New file.
42453         * modules/unictype/block-of: New file.
42454         * modules/unictype/block-test: New file.
42455         * modules/unictype/block-list: New file.
42456         * modules/unictype/block-all: New file.
42457         * modules/unictype/syntax-c-whitespace: New file.
42458         * modules/unictype/syntax-java-whitespace: New file.
42459         * modules/unictype/syntax-c-ident: New file.
42460         * modules/unictype/syntax-java-ident: New file.
42461         * modules/unictype/ctype-alnum: New file.
42462         * modules/unictype/ctype-alpha: New file.
42463         * modules/unictype/ctype-cntrl: New file.
42464         * modules/unictype/ctype-digit: New file.
42465         * modules/unictype/ctype-graph: New file.
42466         * modules/unictype/ctype-lower: New file.
42467         * modules/unictype/ctype-print: New file.
42468         * modules/unictype/ctype-punct: New file.
42469         * modules/unictype/ctype-space: New file.
42470         * modules/unictype/ctype-upper: New file.
42471         * modules/unictype/ctype-xdigit: New file.
42472         * modules/unictype/ctype-blank: New file.
42473         * lib/unictype/bidi_byname.c: New file.
42474         * lib/unictype/bidi_name.c: New file.
42475         * lib/unictype/bidi_of.c: New file.
42476         * lib/unictype/bidi_test.c: New file.
42477         * lib/unictype/bitmap.h: New file.
42478         * lib/unictype/block_test.c: New file.
42479         * lib/unictype/blocks.c: New file.
42480         * lib/unictype/categ_C.c: New file.
42481         * lib/unictype/categ_Cc.c: New file.
42482         * lib/unictype/categ_Cf.c: New file.
42483         * lib/unictype/categ_Cn.c: New file.
42484         * lib/unictype/categ_Co.c: New file.
42485         * lib/unictype/categ_Cs.c: New file.
42486         * lib/unictype/categ_L.c: New file.
42487         * lib/unictype/categ_Ll.c: New file.
42488         * lib/unictype/categ_Lm.c: New file.
42489         * lib/unictype/categ_Lo.c: New file.
42490         * lib/unictype/categ_Lt.c: New file.
42491         * lib/unictype/categ_Lu.c: New file.
42492         * lib/unictype/categ_M.c: New file.
42493         * lib/unictype/categ_Mc.c: New file.
42494         * lib/unictype/categ_Me.c: New file.
42495         * lib/unictype/categ_Mn.c: New file.
42496         * lib/unictype/categ_N.c: New file.
42497         * lib/unictype/categ_Nd.c: New file.
42498         * lib/unictype/categ_Nl.c: New file.
42499         * lib/unictype/categ_No.c: New file.
42500         * lib/unictype/categ_P.c: New file.
42501         * lib/unictype/categ_Pc.c: New file.
42502         * lib/unictype/categ_Pd.c: New file.
42503         * lib/unictype/categ_Pe.c: New file.
42504         * lib/unictype/categ_Pf.c: New file.
42505         * lib/unictype/categ_Pi.c: New file.
42506         * lib/unictype/categ_Po.c: New file.
42507         * lib/unictype/categ_Ps.c: New file.
42508         * lib/unictype/categ_S.c: New file.
42509         * lib/unictype/categ_Sc.c: New file.
42510         * lib/unictype/categ_Sk.c: New file.
42511         * lib/unictype/categ_Sm.c: New file.
42512         * lib/unictype/categ_So.c: New file.
42513         * lib/unictype/categ_Z.c: New file.
42514         * lib/unictype/categ_Zl.c: New file.
42515         * lib/unictype/categ_Zp.c: New file.
42516         * lib/unictype/categ_Zs.c: New file.
42517         * lib/unictype/categ_and.c: New file.
42518         * lib/unictype/categ_and_not.c: New file.
42519         * lib/unictype/categ_byname.c: New file.
42520         * lib/unictype/categ_name.c: New file.
42521         * lib/unictype/categ_none.c: New file.
42522         * lib/unictype/categ_of.c: New file.
42523         * lib/unictype/categ_or.c: New file.
42524         * lib/unictype/categ_test.c: New file.
42525         * lib/unictype/combining.c: New file.
42526         * lib/unictype/ctype_alnum.c: New file.
42527         * lib/unictype/ctype_alpha.c: New file.
42528         * lib/unictype/ctype_blank.c: New file.
42529         * lib/unictype/ctype_cntrl.c: New file.
42530         * lib/unictype/ctype_digit.c: New file.
42531         * lib/unictype/ctype_graph.c: New file.
42532         * lib/unictype/ctype_lower.c: New file.
42533         * lib/unictype/ctype_print.c: New file.
42534         * lib/unictype/ctype_punct.c: New file.
42535         * lib/unictype/ctype_space.c: New file.
42536         * lib/unictype/ctype_upper.c: New file.
42537         * lib/unictype/ctype_xdigit.c: New file.
42538         * lib/unictype/decdigit.c: New file.
42539         * lib/unictype/digit.c: New file.
42540         * lib/unictype/identsyntaxmap.h: New file.
42541         * lib/unictype/mirror.c: New file.
42542         * lib/unictype/numeric.c: New file.
42543         * lib/unictype/pr_alphabetic.c: New file.
42544         * lib/unictype/pr_ascii_hex_digit.c: New file.
42545         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42546         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42547         * lib/unictype/pr_bidi_block_separator.c: New file.
42548         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42549         * lib/unictype/pr_bidi_common_separator.c: New file.
42550         * lib/unictype/pr_bidi_control.c: New file.
42551         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42552         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42553         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42554         * lib/unictype/pr_bidi_european_digit.c: New file.
42555         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42556         * lib/unictype/pr_bidi_left_to_right.c: New file.
42557         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42558         * lib/unictype/pr_bidi_other_neutral.c: New file.
42559         * lib/unictype/pr_bidi_pdf.c: New file.
42560         * lib/unictype/pr_bidi_segment_separator.c: New file.
42561         * lib/unictype/pr_bidi_whitespace.c: New file.
42562         * lib/unictype/pr_byname.c: New file.
42563         * lib/unictype/pr_byname.gperf: New file.
42564         * lib/unictype/pr_combining.c: New file.
42565         * lib/unictype/pr_composite.c: New file.
42566         * lib/unictype/pr_currency_symbol.c: New file.
42567         * lib/unictype/pr_dash.c: New file.
42568         * lib/unictype/pr_decimal_digit.c: New file.
42569         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42570         * lib/unictype/pr_deprecated.c: New file.
42571         * lib/unictype/pr_diacritic.c: New file.
42572         * lib/unictype/pr_extender.c: New file.
42573         * lib/unictype/pr_format_control.c: New file.
42574         * lib/unictype/pr_grapheme_base.c: New file.
42575         * lib/unictype/pr_grapheme_extend.c: New file.
42576         * lib/unictype/pr_grapheme_link.c: New file.
42577         * lib/unictype/pr_hex_digit.c: New file.
42578         * lib/unictype/pr_hyphen.c: New file.
42579         * lib/unictype/pr_id_continue.c: New file.
42580         * lib/unictype/pr_id_start.c: New file.
42581         * lib/unictype/pr_ideographic.c: New file.
42582         * lib/unictype/pr_ids_binary_operator.c: New file.
42583         * lib/unictype/pr_ids_trinary_operator.c: New file.
42584         * lib/unictype/pr_ignorable_control.c: New file.
42585         * lib/unictype/pr_iso_control.c: New file.
42586         * lib/unictype/pr_join_control.c: New file.
42587         * lib/unictype/pr_left_of_pair.c: New file.
42588         * lib/unictype/pr_line_separator.c: New file.
42589         * lib/unictype/pr_logical_order_exception.c: New file.
42590         * lib/unictype/pr_lowercase.c: New file.
42591         * lib/unictype/pr_math.c: New file.
42592         * lib/unictype/pr_non_break.c: New file.
42593         * lib/unictype/pr_not_a_character.c: New file.
42594         * lib/unictype/pr_numeric.c: New file.
42595         * lib/unictype/pr_other_alphabetic.c: New file.
42596         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
42597         * lib/unictype/pr_other_grapheme_extend.c: New file.
42598         * lib/unictype/pr_other_id_continue.c: New file.
42599         * lib/unictype/pr_other_id_start.c: New file.
42600         * lib/unictype/pr_other_lowercase.c: New file.
42601         * lib/unictype/pr_other_math.c: New file.
42602         * lib/unictype/pr_other_uppercase.c: New file.
42603         * lib/unictype/pr_paired_punctuation.c: New file.
42604         * lib/unictype/pr_paragraph_separator.c: New file.
42605         * lib/unictype/pr_pattern_syntax.c: New file.
42606         * lib/unictype/pr_pattern_white_space.c: New file.
42607         * lib/unictype/pr_private_use.c: New file.
42608         * lib/unictype/pr_punctuation.c: New file.
42609         * lib/unictype/pr_quotation_mark.c: New file.
42610         * lib/unictype/pr_radical.c: New file.
42611         * lib/unictype/pr_sentence_terminal.c: New file.
42612         * lib/unictype/pr_soft_dotted.c: New file.
42613         * lib/unictype/pr_space.c: New file.
42614         * lib/unictype/pr_terminal_punctuation.c: New file.
42615         * lib/unictype/pr_test.c: New file.
42616         * lib/unictype/pr_titlecase.c: New file.
42617         * lib/unictype/pr_unassigned_code_value.c: New file.
42618         * lib/unictype/pr_unified_ideograph.c: New file.
42619         * lib/unictype/pr_uppercase.c: New file.
42620         * lib/unictype/pr_variation_selector.c: New file.
42621         * lib/unictype/pr_white_space.c: New file.
42622         * lib/unictype/pr_xid_continue.c: New file.
42623         * lib/unictype/pr_xid_start.c: New file.
42624         * lib/unictype/pr_zero_width.c: New file.
42625         * lib/unictype/scripts.c: New file.
42626         * lib/unictype/sy_c_ident.c: New file.
42627         * lib/unictype/sy_c_whitespace.c: New file.
42628         * lib/unictype/sy_java_ident.c: New file.
42629         * lib/unictype/sy_java_whitespace.c: New file.
42630
42631         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
42632         Unicode 5.0.0.
42633         * lib/unictype/blocks.h: Likewise.
42634         * lib/unictype/categ_C.h: Likewise.
42635         * lib/unictype/categ_Cc.h: Likewise.
42636         * lib/unictype/categ_Cf.h: Likewise.
42637         * lib/unictype/categ_Cn.h: Likewise.
42638         * lib/unictype/categ_Co.h: Likewise.
42639         * lib/unictype/categ_Cs.h: Likewise.
42640         * lib/unictype/categ_L.h: Likewise.
42641         * lib/unictype/categ_Ll.h: Likewise.
42642         * lib/unictype/categ_Lm.h: Likewise.
42643         * lib/unictype/categ_Lo.h: Likewise.
42644         * lib/unictype/categ_Lt.h: Likewise.
42645         * lib/unictype/categ_Lu.h: Likewise.
42646         * lib/unictype/categ_M.h: Likewise.
42647         * lib/unictype/categ_Mc.h: Likewise.
42648         * lib/unictype/categ_Me.h: Likewise.
42649         * lib/unictype/categ_Mn.h: Likewise.
42650         * lib/unictype/categ_N.h: Likewise.
42651         * lib/unictype/categ_Nd.h: Likewise.
42652         * lib/unictype/categ_Nl.h: Likewise.
42653         * lib/unictype/categ_No.h: Likewise.
42654         * lib/unictype/categ_P.h: Likewise.
42655         * lib/unictype/categ_Pc.h: Likewise.
42656         * lib/unictype/categ_Pd.h: Likewise.
42657         * lib/unictype/categ_Pe.h: Likewise.
42658         * lib/unictype/categ_Pf.h: Likewise.
42659         * lib/unictype/categ_Pi.h: Likewise.
42660         * lib/unictype/categ_Po.h: Likewise.
42661         * lib/unictype/categ_Ps.h: Likewise.
42662         * lib/unictype/categ_S.h: Likewise.
42663         * lib/unictype/categ_Sc.h: Likewise.
42664         * lib/unictype/categ_Sk.h: Likewise.
42665         * lib/unictype/categ_Sm.h: Likewise.
42666         * lib/unictype/categ_So.h: Likewise.
42667         * lib/unictype/categ_Z.h: Likewise.
42668         * lib/unictype/categ_Zl.h: Likewise.
42669         * lib/unictype/categ_Zp.h: Likewise.
42670         * lib/unictype/categ_Zs.h: Likewise.
42671         * lib/unictype/categ_of.h: Likewise.
42672         * lib/unictype/combining.h: Likewise.
42673         * lib/unictype/ctype_alnum.h: Likewise.
42674         * lib/unictype/ctype_alpha.h: Likewise.
42675         * lib/unictype/ctype_blank.h: Likewise.
42676         * lib/unictype/ctype_cntrl.h: Likewise.
42677         * lib/unictype/ctype_digit.h: Likewise.
42678         * lib/unictype/ctype_graph.h: Likewise.
42679         * lib/unictype/ctype_lower.h: Likewise.
42680         * lib/unictype/ctype_print.h: Likewise.
42681         * lib/unictype/ctype_punct.h: Likewise.
42682         * lib/unictype/ctype_space.h: Likewise.
42683         * lib/unictype/ctype_upper.h: Likewise.
42684         * lib/unictype/ctype_xdigit.h: Likewise.
42685         * lib/unictype/decdigit.h: Likewise.
42686         * lib/unictype/digit.h: Likewise.
42687         * lib/unictype/mirror.h: Likewise.
42688         * lib/unictype/numeric.h: Likewise.
42689         * lib/unictype/pr_alphabetic.h: Likewise.
42690         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42691         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42692         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42693         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42694         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42695         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42696         * lib/unictype/pr_bidi_control.h: Likewise.
42697         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42698         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42699         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42700         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42701         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42702         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42703         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42704         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42705         * lib/unictype/pr_bidi_pdf.h: Likewise.
42706         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42707         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42708         * lib/unictype/pr_combining.h: Likewise.
42709         * lib/unictype/pr_composite.h: Likewise.
42710         * lib/unictype/pr_currency_symbol.h: Likewise.
42711         * lib/unictype/pr_dash.h: Likewise.
42712         * lib/unictype/pr_decimal_digit.h: Likewise.
42713         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42714         * lib/unictype/pr_deprecated.h: Likewise.
42715         * lib/unictype/pr_diacritic.h: Likewise.
42716         * lib/unictype/pr_extender.h: Likewise.
42717         * lib/unictype/pr_format_control.h: Likewise.
42718         * lib/unictype/pr_grapheme_base.h: Likewise.
42719         * lib/unictype/pr_grapheme_extend.h: Likewise.
42720         * lib/unictype/pr_grapheme_link.h: Likewise.
42721         * lib/unictype/pr_hex_digit.h: Likewise.
42722         * lib/unictype/pr_hyphen.h: Likewise.
42723         * lib/unictype/pr_id_continue.h: Likewise.
42724         * lib/unictype/pr_id_start.h: Likewise.
42725         * lib/unictype/pr_ideographic.h: Likewise.
42726         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42727         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42728         * lib/unictype/pr_ignorable_control.h: Likewise.
42729         * lib/unictype/pr_iso_control.h: Likewise.
42730         * lib/unictype/pr_join_control.h: Likewise.
42731         * lib/unictype/pr_left_of_pair.h: Likewise.
42732         * lib/unictype/pr_line_separator.h: Likewise.
42733         * lib/unictype/pr_logical_order_exception.h: Likewise.
42734         * lib/unictype/pr_lowercase.h: Likewise.
42735         * lib/unictype/pr_math.h: Likewise.
42736         * lib/unictype/pr_non_break.h: Likewise.
42737         * lib/unictype/pr_not_a_character.h: Likewise.
42738         * lib/unictype/pr_numeric.h: Likewise.
42739         * lib/unictype/pr_other_alphabetic.h: Likewise.
42740         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42741         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42742         * lib/unictype/pr_other_id_continue.h: Likewise.
42743         * lib/unictype/pr_other_id_start.h: Likewise.
42744         * lib/unictype/pr_other_lowercase.h: Likewise.
42745         * lib/unictype/pr_other_math.h: Likewise.
42746         * lib/unictype/pr_other_uppercase.h: Likewise.
42747         * lib/unictype/pr_paired_punctuation.h: Likewise.
42748         * lib/unictype/pr_paragraph_separator.h: Likewise.
42749         * lib/unictype/pr_pattern_syntax.h: Likewise.
42750         * lib/unictype/pr_pattern_white_space.h: Likewise.
42751         * lib/unictype/pr_private_use.h: Likewise.
42752         * lib/unictype/pr_punctuation.h: Likewise.
42753         * lib/unictype/pr_quotation_mark.h: Likewise.
42754         * lib/unictype/pr_radical.h: Likewise.
42755         * lib/unictype/pr_sentence_terminal.h: Likewise.
42756         * lib/unictype/pr_soft_dotted.h: Likewise.
42757         * lib/unictype/pr_space.h: Likewise.
42758         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42759         * lib/unictype/pr_titlecase.h: Likewise.
42760         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42761         * lib/unictype/pr_unified_ideograph.h: Likewise.
42762         * lib/unictype/pr_uppercase.h: Likewise.
42763         * lib/unictype/pr_variation_selector.h: Likewise.
42764         * lib/unictype/pr_white_space.h: Likewise.
42765         * lib/unictype/pr_xid_continue.h: Likewise.
42766         * lib/unictype/pr_xid_start.h: Likewise.
42767         * lib/unictype/pr_zero_width.h: Likewise.
42768         * lib/unictype/scripts.h: Likewise.
42769         * lib/unictype/scripts_byname.gperf: Likewise.
42770         * lib/unictype/sy_c_ident.h: Likewise.
42771         * lib/unictype/sy_c_whitespace.h: Likewise.
42772         * lib/unictype/sy_java_ident.h: Likewise.
42773         * lib/unictype/sy_java_whitespace.h: Likewise.
42774
42775         * lib/unictype/Makefile: New file.
42776         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
42777         glibc.
42778         * lib/unictype/3level.h: New file, copied from glibc.
42779         * lib/unictype/3levelbit.h: New file.
42780
42781 2007-11-11  Bruno Haible  <bruno@clisp.org>
42782
42783         * modules/gperf: New file.
42784         * modules/iconv_open (Depends-on): Add it.
42785         (Makefile.am): Remove the GPERF definition.
42786
42787 2007-11-11  Bruno Haible  <bruno@clisp.org>
42788
42789         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
42790         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
42791
42792 2007-11-11  Bruno Haible  <bruno@clisp.org>
42793
42794         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
42795         (usage): Remove function.
42796
42797 2007-11-11  Bruno Haible  <bruno@clisp.org>
42798
42799         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
42800         gl_FUNC_CEILF_LIBS.
42801         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
42802         gl_FUNC_CEIL_LIBS.
42803         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
42804         gl_FUNC_CEILL_LIBS.
42805         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
42806         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
42807         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
42808
42809 2007-11-11  Bruno Haible  <bruno@clisp.org>
42810
42811         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
42812         roundf were declared but do not exist on functions.
42813         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
42814         roundl were declared but do not exist on functions.
42815         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
42816         HAVE_FLOORL_AND_CEILL, respectively.
42817         Needed for Sun C on Solaris 10.
42818
42819 2007-11-11  Bruno Haible  <bruno@clisp.org>
42820
42821         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
42822         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
42823         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
42824         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
42825         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
42826         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
42827         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
42828         HAVE_DECL_ROUNDF.
42829         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
42830         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
42831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
42832         of HAVE_DECL_ROUND*.
42833         * modules/math (Makefile.am): Update.
42834
42835 2007-11-10  Bruno Haible  <bruno@clisp.org>
42836
42837         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
42838         ptrdiff_t as m4/intl.m4.
42839
42840 2007-11-10  Jim Meyering  <meyering@redhat.com>
42841
42842         Avoid link failure for the argmatch test.
42843         * tests/test-argmatch.c (usage): Define function to avoid a link
42844         failure: argmatch_die requires a usage function.
42845
42846 2007-11-09  Bruno Haible  <bruno@clisp.org>
42847
42848         * doc/functions/snprintf.texi: Mention BeOS deficiency.
42849         * doc/functions/vsnprintf.texi: Likewise.
42850         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
42851         with a size argument < 2.
42852
42853 2007-11-09  Bruno Haible  <bruno@clisp.org>
42854
42855         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
42856         buffer. Fixes an inefficiency introduced on 2007-11-03.
42857
42858 2007-11-09  Bruno Haible  <bruno@clisp.org>
42859
42860         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
42861         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
42862
42863 2007-11-08  Jim Meyering  <meyering@redhat.com>
42864
42865         Change cache variable name prefix "jm_" to "gl_" everywhere.
42866         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
42867         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
42868         * m4/uptime.m4: s/gl_/jm_/
42869
42870 2007-11-07  Bruno Haible  <bruno@clisp.org>
42871
42872         Update to GNU gettext 0.17.
42873         * m4/intl.m4: Update to GNU gettext 0.17.
42874         * m4/po.m4: Likewise.
42875         * modules/gettext (Files): Remove m4/ulonglong.m4.
42876         (configure.ac): Require gettext infrastructure from version 0.17.
42877
42878 2007-11-06  Bruno Haible  <bruno@clisp.org>
42879
42880         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
42881         symbolic values are not defined in a public header.
42882         * lib/freadable.c (freadable) [QNX]: Likewise.
42883         * lib/freadahead.c (freadahead) [QNX]: Likewise.
42884         * lib/freading.c (freading) [QNX]: Likewise.
42885         * lib/fseterr.c (fseterr) [QNX]: Likewise.
42886         * lib/fwritable.c (fwritable) [QNX]: Likewise.
42887         * lib/fwriting.c (fwriting) [QNX]: Likewise.
42888         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
42889         Reported by Alain Magloire.
42890
42891         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
42892
42893 2007-11-05  Bruno Haible  <bruno@clisp.org>
42894
42895         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
42896         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
42897         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
42898         Reported by Eric Blake.
42899
42900 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42901             Bruno Haible  <bruno@clisp.org>
42902
42903         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
42904         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
42905         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
42906         (malloc): Undefine also before including <stdlib.h>.
42907         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
42908         Needed on OSF/1 4.0.
42909
42910 2007-11-05  Jim Meyering  <meyering@redhat.com>
42911
42912         git-version-gen: sync from coreutils.
42913         * build-aux/git-version-gen: Add comments.
42914         Change the first '-' to '.' in the snapshot version string,
42915         e.g., 6.9-377-08144 -> 6.9.377-08144
42916         Remove first parameter.
42917         Don't declare a version "-dirty" merely because a time
42918         stamp has changed.
42919
42920 2007-11-04  Bruno Haible  <bruno@clisp.org>
42921
42922         * lib/lock.h: Protect all macro definitions containing an 'if'
42923         statement through a "do { ... } while (0)".
42924         * lib/tls.h: Likewise.
42925
42926 2007-11-04  Bruno Haible  <bruno@clisp.org>
42927
42928         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
42929
42930 2007-11-04  Bruno Haible  <bruno@clisp.org>
42931
42932         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
42933         * modules/fprintf-posix (Depends-on): Add nocrash.
42934         * modules/snprintf-posix (Depends-on): Likewise.
42935         * modules/sprintf-posix (Depends-on): Likewise.
42936         * modules/vasnprintf-posix (Depends-on): Likewise.
42937         * modules/vasprintf-posix (Depends-on): Likewise.
42938         * modules/vfprintf-posix (Depends-on): Likewise.
42939         * modules/vsnprintf-posix (Depends-on): Likewise.
42940         * modules/vsprintf-posix (Depends-on): Likewise.
42941         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42942         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42943         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42944         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42945         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42946         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42947         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42948
42949 2007-11-04  Bruno Haible  <bruno@clisp.org>
42950
42951         * modules/nocrash: New file.
42952         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
42953         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
42954
42955 2007-11-04  Bruno Haible  <bruno@clisp.org>
42956
42957         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
42958         precision handling.
42959         * tests/test-vasprintf-posix.c (test_function): Likewise.
42960         * tests/test-snprintf-posix.h (test_function): Likewise.
42961         * tests/test-sprintf-posix.h (test_function): Likewise.
42962
42963         Fix *printf behaviour for large precisions on mingw and BeOS.
42964         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
42965         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
42966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
42967         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42968         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42969         gl_PRINTF_PRECISION and test its result. Invoke
42970         gl_PREREQ_VASNPRINTF_PRECISION.
42971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42974         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42975         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42976         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42977         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42978         * doc/functions/fprintf.texi: Update.
42979         * doc/functions/printf.texi: Update.
42980         * doc/functions/snprintf.texi: Update.
42981         * doc/functions/sprintf.texi: Update.
42982         * doc/functions/vfprintf.texi: Update.
42983         * doc/functions/vprintf.texi: Update.
42984         * doc/functions/vsnprintf.texi: Update.
42985         * doc/functions/vsprintf.texi: Update.
42986
42987 2007-11-04  Bruno Haible  <bruno@clisp.org>
42988
42989         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
42990
42991 2007-11-04  Bruno Haible  <bruno@clisp.org>
42992
42993         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
42994         Reported by Sylvain Beucler <beuc@gnu.org>.
42995
42996 2007-11-03  Bruno Haible  <bruno@clisp.org>
42997
42998         * tests/test-fprintf-posix2.sh: New file.
42999         * tests/test-fprintf-posix2.c: New file.
43000         * modules/fprintf-posix-tests (Files): Add them.
43001         (TESTS): Add test-fprintf-posix2.sh.
43002         (configure.ac): Check for getrlimit and setrlimit.
43003         (check_PROGRAMS): Add test-fprintf-posix2.
43004
43005         * tests/test-printf-posix2.sh: New file.
43006         * tests/test-printf-posix2.c: New file.
43007         * modules/printf-posix-tests (Files): Add them.
43008         (TESTS): Add test-printf-posix2.sh.
43009         (configure.ac): Check for getrlimit and setrlimit.
43010         (check_PROGRAMS): Add test-printf-posix2.
43011
43012         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
43013         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
43014         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
43015         (decode_double): New function, copied from decode_long_double.
43016         (scale10_round_decimal_decoded): New function, extracted from
43017         scale10_round_decimal_long_double.
43018         (scale10_round_decimal_long_double): Use it.
43019         (scale10_round_decimal_double): New function.
43020         (floorlog10): New function.
43021         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
43022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
43023         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43024         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43025         gl_PRINTF_ENOMEM and test its result. Invoke
43026         gl_PREREQ_VASNPRINTF_ENOMEM.
43027         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43028         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43029         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43030         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43031         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43032         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43033         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43034         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
43035         * modules/snprintf-posix (Depends-on): Likewise.
43036         * modules/sprintf-posix (Depends-on): Likewise.
43037         * modules/vasnprintf-posix (Depends-on): Likewise.
43038         * modules/vasprintf-posix (Depends-on): Likewise.
43039         * modules/vfprintf-posix (Depends-on): Likewise.
43040         * modules/vsnprintf-posix (Depends-on): Likewise.
43041         * modules/vsprintf-posix (Depends-on): Likewise.
43042         * doc/functions/fprintf.texi: Update.
43043         * doc/functions/printf.texi: Update.
43044         * doc/functions/snprintf.texi: Update.
43045         * doc/functions/sprintf.texi: Update.
43046         * doc/functions/vfprintf.texi: Update.
43047         * doc/functions/vprintf.texi: Update.
43048         * doc/functions/vsnprintf.texi: Update.
43049         * doc/functions/vsprintf.texi: Update.
43050
43051 2007-11-03  Bruno Haible  <bruno@clisp.org>
43052
43053         * modules/frexp-nolibm-tests: New file.
43054
43055         * modules/frexp-nolibm: New file.
43056         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
43057
43058 2007-11-03  Bruno Haible  <bruno@clisp.org>
43059
43060         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
43061         value is C99 compliant.
43062         Needed for OSF/1 5.1.
43063
43064 2007-11-03  Bruno Haible  <bruno@clisp.org>
43065
43066         Fix out-of-memory handling of vasnprintf.
43067         * lib/printf-parse.c: Include <errno.h>.
43068         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
43069         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
43070         is already set.
43071
43072 2007-11-02  Eric Blake  <ebb9@byu.net>
43073
43074         Fix tests on cygwin.
43075         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
43076
43077 2007-11-01  Bruno Haible  <bruno@clisp.org>
43078
43079         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
43080         warning.
43081         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
43082         needed for POSIX compatibility.
43083
43084 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43085
43086         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
43087         for compatibility with GNU.
43088
43089 2007-11-01  Bruno Haible  <bruno@clisp.org>
43090
43091         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
43092         (putenv): Renamed from rpl_putenv. Change argument type from
43093         'const char *' to 'char *'.
43094         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
43095         of defining putenv in config.h, just set REPLACE_PUTENV.
43096         * modules/putenv (Depends-on): Add stdlib.
43097         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43098         (Include): Use <stdlib.h>.
43099         * lib/stdlib.in.h (putenv): New declaration.
43100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
43101         REPLACE_PUTENV.
43102         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
43103         REPLACE_PUTENV.
43104         Needed for MacOS X 10.5.0.
43105         Reported by Peter O'Gorman <peter@pogma.com>.
43106
43107 2007-11-01  Jim Meyering  <meyering@redhat.com>
43108
43109         Treat an empty date string exactly like "0".
43110         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
43111         if the remaining date string (to be parsed) is empty, use "0".
43112         Reported by Mischa Molhoek and discussed in this thread:
43113         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
43114
43115 2007-10-31  Bruno Haible  <bruno@clisp.org>
43116
43117         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
43118         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
43119         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
43120         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
43121         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
43122         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
43123
43124 2007-10-31  Bruno Haible  <bruno@clisp.org>
43125
43126         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
43127         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
43128         (AC_TYPE_LONG_LONG_INT): Use it.
43129         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
43130         it as well.
43131         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
43132         to m4/longlong.m4.
43133         * modules/stdint (Files): Remove m4/ulonglong.m4.
43134         * modules/strtoull (Files): Use m4/longlong.m4 instead of
43135         m4/ulonglong.m4.
43136         * modules/strtoumax (Files): Likewise.
43137
43138 2007-10-30  Bruno Haible  <bruno@clisp.org>
43139
43140         * modules/xvasprintf-posix: New file.
43141         Suggested by Eric Blake.
43142
43143 2007-10-30  Bruno Haible  <bruno@clisp.org>
43144
43145         * modules/xprintf-posix-tests: New file.
43146         * tests/test-xprintf-posix.sh: New file.
43147         * tests/test-xprintf-posix.c: New file.
43148         * tests/test-xfprintf-posix.c: New file.
43149
43150         * modules/xprintf-posix: New file.
43151
43152 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43153
43154         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43155         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43156         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43157
43158 2007-10-29  Bruno Haible  <bruno@clisp.org>
43159
43160         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43161         contain the special marker '_cv_'.
43162         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43163         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43164         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43165         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43166         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43167         Reported by Ralf Wildenhues.
43168
43169 2007-10-29  Bruno Haible  <bruno@clisp.org>
43170
43171         * gnulib-tool (func_import): When --lgpl is not specified, set
43172         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43173         GPLv3.
43174         Reported by Simon Josefsson.
43175
43176 2007-10-28  Bruno Haible  <bruno@clisp.org>
43177
43178         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43179         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43180         HAVE_DECL_ISFINITE.
43181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43182         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43183         HAVE_DECL_ISFINITE.
43184
43185 2007-10-28  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43188         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43189
43190 2007-10-28  Bruno Haible  <bruno@clisp.org>
43191
43192         Fix link errors with Sun C 5.0 on Solaris 10.
43193         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43194         function is declared but not present in the compiler's libm.
43195         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43196         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43197         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43198         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43199         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43200         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43201         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43203         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43204         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43205         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43206         HAVE_DECL_FLOORL.
43207
43208 2007-10-28  Bruno Haible  <bruno@clisp.org>
43209
43210         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43211         gl_FUNC_FLOORL. Cache the result.
43212         (gl_FUNC_FLOORL): Use it.
43213         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43214         gl_FUNC_CEILL. Cache the result.
43215         (gl_FUNC_CEILL): Use it.
43216
43217         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43218         gl_FUNC_FLOOR. Cache the result.
43219         (gl_FUNC_FLOOR): Use it.
43220         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43221         gl_FUNC_CEIL. Cache the result.
43222         (gl_FUNC_CEIL): Use it.
43223
43224         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43225         gl_FUNC_FLOORF. Cache the result.
43226         (gl_FUNC_FLOORF): Use it.
43227         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43228         gl_FUNC_CEILF. Cache the result.
43229         (gl_FUNC_CEILF): Use it.
43230
43231 2007-10-28  Bruno Haible  <bruno@clisp.org>
43232
43233         * gnulib-tool: Allow specifying the LGPL version number through
43234         --lgpl=2 or --lgpl=3.
43235         (func_usage): Document --lgpl with argument.
43236         Handle --lgpl=... arguments.
43237         (func_import): Recognize also gl_LGPL calls with an argument. When
43238         --lgpl=2 is used and the module's license is just LGPL, report an
43239         error. Set sed_transform_lib_file according to the lgpl variable. In
43240         the generated files, use --lgpl or gl_LGPL invocations with argument,
43241         if necessary.
43242         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43243         an LGPv2+ license.
43244         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43245         gl_LGPL macro.
43246
43247 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43248             Bruno Haible  <bruno@clisp.org>
43249
43250         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43251         (u16_uctomb_aux): Likewise.
43252         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43253         !HAVE_INLINE.
43254         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43255
43256 2007-10-28  Bruno Haible  <bruno@clisp.org>
43257
43258         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43259         Invoke AM_GETTEXT_OPTION if it exists.
43260         * modules/vasprintf: Likewise.
43261         * modules/verror: Likewise.
43262         * modules/xprintf: Likewise.
43263         * modules/xvasprintf: Likewise.
43264
43265 2007-10-27  Ben Pfaff  <blp@gnu.org>
43266
43267         * lib/math.in.h: Define isfinite macro and prototypes for
43268         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43269         implementations.
43270         * m4/math_h.m4: New substitutions for isfinite module.
43271         * lib/isfinite.c: New file.
43272         * m4/isfinite.m4: New file.
43273         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43274         * modules/isfinite: New file.
43275         * modules/isfinite-tests: New file.
43276         * tests/tests-isfinite.c: New file.
43277         * doc/functions/isfinite.texi: Mention isfinite module.
43278         * MODULES.html.sh: Mention new module.
43279
43280 2007-10-27  Ben Pfaff  <blp@gnu.org>
43281
43282         Ralf Wildenhues reported that Tru64 4.0D declares the round
43283         functions but does not have definitions.
43284         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43285         cannot be found in any library, set the output variable to
43286         "missing" instead of "".
43287         * m4/round.m4: Also use our substitute if we cannot find round in
43288         any library, even if it is declared.
43289         * m4/roundf.m4: Likewise for roundf.
43290         * m4/roundl.m4: Likewise for roundl.
43291         * lib/math.in.h: Undefine roundf, round, roundl before defining
43292         their replacements, to allow for hypothetical systems where these
43293         may be defined as macros but not available in libraries.
43294
43295 2007-10-27  Bruno Haible  <bruno@clisp.org>
43296
43297         * doc/gnulib.texi: Invoke @firstparagraphindent.
43298         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43299         changes in gnulib.
43300         (Source changes): New section.
43301
43302 2007-10-26  Bruno Haible  <bruno@clisp.org>
43303
43304         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43305         borrowed from autoconf.
43306
43307 2007-10-26  Bruno Haible  <bruno@clisp.org>
43308
43309         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43310         strerror returned the empty string. Needed on HP-UX 11.00.
43311
43312 2007-10-24  Micah Cowan  <micah@cowan.name>
43313
43314         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43315         * build-aux/bootstrap: Remove support for now-unnecessary option,
43316         --cvs-user, and envvars CVS_USER, CVS_RSH.
43317
43318 2007-10-24  Jim Meyering  <meyering@redhat.com>
43319
43320         Avoid diagnostics from sha1sum when there is no cached checksum.
43321         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43322         if the po.s1 file hasn't been created yet.
43323
43324         * build-aux/bootstrap: Sync from coreutils:
43325         2007-10-24  Jim Meyering  <meyering@redhat.com>
43326         Get gnulib from the git repository, not from an obsolete cvs one.
43327         * build-aux/bootstrap: Suggestion from Micah Cowan.
43328         2007-10-04  Jim Meyering  <jim@meyering.net>
43329         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43330         (update_po_files): Work also when there are no .po files in po/.
43331
43332 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43333
43334         * README: Append ".git" to git and cg examples.
43335         Problem reported by Benoit Sigoure.
43336
43337 2007-10-23  Micah Cowan  <micah@cowan.name>
43338
43339         * users.txt: Add wget.
43340
43341 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43342
43343         Fix linking of some unistdio tests on FreeBSD.
43344         * modules/unistdio/u16-vsnprintf-tests
43345         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43346         * modules/unistdio/u16-vsprintf-tests
43347         (test_u16_vsnprintf1_LDADD): Likewise.
43348         * modules/unistdio/u32-vsnprintf-tests
43349         (test_u32_vsnprintf1_LDADD): Likewise.
43350         * modules/unistdio/u32-vsprintf-tests
43351         (test_u32_vsprintf1_LDADD): Likewise.
43352         * modules/unistdio/u8-vsnprintf-tests
43353         (test_u8_vsnprintf1_LDADD): Likewise.
43354         * modules/unistdio/u8-vsprintf-tests
43355         (test_u8_vsprintf1_LDADD): Likewise.
43356         * modules/unistdio/ulc-vsnprintf-tests
43357         (test_ulc_vsnprintf1_LDADD): Likewise.
43358         * modules/unistdio/ulc-vsprintf-tests
43359         (test_ulc_vsprintf1_LDADD): Likewise.
43360
43361         Fix linking of some uniconv tests on FreeBSD.
43362         * modules/uniconv/u16-conv-from-enc-tests
43363         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43364         * modules/uniconv/u16-conv-to-enc-tests
43365         (test_u16_conv_to_enc_LDADD): Likewise.
43366         * modules/uniconv/u16-strconv-from-enc-tests
43367         (test_u16_strconv_from_enc_LDADD): Likewise.
43368         * modules/uniconv/u16-strconv-to-enc-tests
43369         (test_u16_strconv_to_enc_LDADD): Likewise.
43370         * modules/uniconv/u32-conv-from-enc-tests
43371         (test_u32_conv_from_enc_LDADD): Likewise.
43372         * modules/uniconv/u32-conv-to-enc-tests
43373         (test_u32_conv_to_enc_LDADD): Likewise.
43374         * modules/uniconv/u32-strconv-from-enc-tests
43375         (test_u32_strconv_from_enc_LDADD): Likewise.
43376         * modules/uniconv/u32-strconv-to-enc-tests
43377         (test_u32_strconv_to_enc_LDADD): Likewise.
43378         * modules/uniconv/u8-conv-from-enc-tests
43379         (test_u8_conv_from_enc_LDADD): Likewise.
43380         * modules/uniconv/u8-conv-to-enc-tests
43381         (test_u8_conv_to_enc_LDADD): Likewise.
43382         * modules/uniconv/u8-strconv-from-enc-tests
43383         (test_u8_strconv_from_enc_LDADD): Likewise.
43384         * modules/uniconv/u8-strconv-to-enc-tests
43385         (test_u8_strconv_to_enc_LDADD): Likewise.
43386
43387 2007-10-22  Bruno Haible  <bruno@clisp.org>
43388
43389         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43390         size.
43391
43392 2007-10-22  Eric Blake  <ebb9@byu.net>
43393
43394         Tweak x*printf documentation.
43395         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43396         variable name and comments.
43397         Suggested by Bruno Haible.
43398
43399 2007-10-22  Bruno Haible  <bruno@clisp.org>
43400
43401         * lib/acl.c (copy_acl): Fix file name in comment.
43402
43403 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43404
43405         Fix Tru64 problem with stdbool.h.
43406         * lib/stdbool.in.h (false, true):
43407         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43408         Don't declare as an enum in this situation; it runs afoul of Tru64.
43409         Problem reported by Steven M. Schweda in
43410         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43411
43412 2007-10-22  Eric Blake  <ebb9@byu.net>
43413
43414         Also wrap vf?printf.
43415         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43416         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43417         (xvprintf, xvfprintf): New functions.
43418
43419 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43420
43421         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43422         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43423
43424         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43425         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43426
43427 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43428
43429         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43430         by Bruno Haible.
43431
43432 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43433
43434         * lib/getloadavg.c
43435         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43436         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43437
43438         * tests/test-i-ring.c: Work for C89.
43439
43440 2007-10-22  Bruno Haible  <bruno@clisp.org>
43441
43442         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43443         -1u, in preprocessor expression, so that we don't test for the bug
43444         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43445         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43446
43447 2007-10-22  Eric Blake  <ebb9@byu.net>
43448
43449         * tests/test-yesno.sh: Silence stderr during test.
43450
43451 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43452
43453         * modules/crypto/gc-camellia: New file.
43454
43455         * m4/gc-camellia.m4: New file.
43456
43457         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43458
43459         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43460
43461 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43462
43463         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43464         --help to stdout.  Reported by sms@antinode.org (Steven
43465         M. Schweda).
43466
43467 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43468
43469         * users.txt: Fix link to libksba.
43470
43471 2007-10-21  Ben Pfaff  <blp@gnu.org>
43472
43473         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43474         round.c roundf implementation that depends on floorf and ceilf to
43475         be tested unconditionally.
43476
43477 2007-10-21  Ben Pfaff  <blp@gnu.org>
43478
43479         * m4/check-libm-func.m4: Removed.
43480         * m4/check-math-lib.m4: New file.
43481         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43482         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43483         definition and lack of AC_LIBOBJ([roundf]).
43484         * m4/roundl.m4: Ditto, and similarly for roundl.
43485         * modules/round: Reference new m4 file.
43486         * modules/roundf: Ditto.
43487         * modules/roundl: Ditto.
43488         * tests/test-round2.c (main): Use ROUND instead of round.
43489         Bug report from Bruno Haible.
43490
43491 2007-10-21  Bruno Haible  <bruno@clisp.org>
43492
43493         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43494         context.
43495
43496 2007-10-21  Bruno Haible  <bruno@clisp.org>
43497
43498         * tests/test-wcwidth.c (main): Allow negative result for some control
43499         characters.
43500
43501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43502         Needed on OSF/1 5.1.
43503
43504 2007-10-21  Bruno Haible  <bruno@clisp.org>
43505
43506         * tests/test-floorf1.c: Include isnanf.h.
43507         (main): Use isnanf() instead of isnan().
43508         * tests/test-ceilf1.c: Include isnanf.h.
43509         (main): Use isnanf() instead of isnan().
43510         * tests/test-truncf1.c: Include isnanf.h.
43511         (main): Use isnanf() instead of isnan().
43512         * tests/test-roundf1.c: Include isnanf.h.
43513         (main): Use isnanf() instead of isnan().
43514
43515 2007-10-21  Eric Blake  <ebb9@byu.net>
43516
43517         * users.txt: Update URL for m4.
43518
43519 2007-10-21  Bruno Haible  <bruno@clisp.org>
43520
43521         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43522
43523 2007-10-21  Bruno Haible  <bruno@clisp.org>
43524
43525         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43526         Git's management files if the CVS files are not present.
43527
43528 2007-10-20  Bruno Haible  <bruno@clisp.org>
43529
43530         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
43531         gcc-3.4.x.
43532
43533 2007-10-20  Ben Pfaff  <blp@gnu.org>
43534
43535         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43536         implementations.
43537         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43538         * lib/round.c: New file.
43539         * lib/roundf.c: New file.
43540         * lib/roundl.c: New file.
43541         * m4/round.m4: New file.
43542         * m4/roundf.m4: New file.
43543         * m4/roundl.m4: New file.
43544         * m4/check-libm-func-m4: New file.
43545         * modules/math: Replace round, roundf, roundl related @VARS@ in
43546         math.in.h.
43547         * modules/round: New file.
43548         * modules/round-tests: New file.
43549         * modules/roundf: New file.
43550         * modules/roundf-tests: New file.
43551         * modules/roundl: New file.
43552         * modules/roundl-tests: New file.
43553         * tests/test-round1.c: New file.
43554         * tests/test-round2.c: New file.
43555         * tests/test-roundf1.c: New file.
43556         * tests/test-roundf2.c: New file.
43557         * tests/test-roundl.c: New file.
43558         * doc/functions/round.texi: Mention round module.
43559         * doc/functions/roundf.texi: Mention roundf module.
43560         * doc/functions/roundl.texi: Mention roundl module.
43561         * MODULES.html.sh: Mention new modules.
43562         Thanks to Bruno Haible for suggestions.
43563
43564 2007-10-20  Jim Meyering  <meyering@redhat.com>
43565
43566         * lib/xprintf.c: Include <config.h> unconditionally.
43567
43568         Change xprintf's license to GPL.
43569         * modules/xprintf (License): s/LGPL/GPL/, since this module
43570         depends on modules (exit and exitfail) which are GPL.
43571         Suggestion from Bruno Haible.
43572
43573         xprintf fixes.
43574         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43575         Use a clearer diagnostic.
43576         Patch from Bruno Haible.
43577
43578 2007-10-20  Bruno Haible  <bruno@clisp.org>
43579
43580         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43581         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43582         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43583
43584 2007-10-20  Bruno Haible  <bruno@clisp.org>
43585
43586         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43587         precision in the comparison result > x - 1 or similar.
43588         * tests/test-ceilf2.c (correct_result_p): Likewise.
43589         * tests/test-truncf2.c (correct_result_p): Likewise.
43590         * tests/test-trunc2.c (correct_result_p): Likewise.
43591         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43592
43593 2007-10-20  Bruno Haible  <bruno@clisp.org>
43594
43595         * modules/ceil: New file.
43596         * m4/ceil.m4: New file.
43597         * doc/functions/ceil.texi: Mention the 'ceil' module.
43598
43599 2007-10-20  Bruno Haible  <bruno@clisp.org>
43600
43601         * modules/floor: New file.
43602         * m4/floor.m4: New file.
43603         * doc/functions/floor.texi: Mention the 'floor' module.
43604
43605 2007-10-20  Bruno Haible  <bruno@clisp.org>
43606
43607         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
43608         of %a.
43609         * modules/floorf-tests (Depends-on): Likewise.
43610         * modules/truncf-tests (Depends-on): Likewise.
43611         * modules/trunc-tests (Depends-on): Likewise.
43612         Reported by Ben Pfaff.
43613
43614 2007-10-19  Jim Meyering  <meyering@redhat.com>
43615
43616         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
43617         Don't bother testing specific errno values.  Just test ferror.
43618
43619         New module: xprintf
43620         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
43621
43622 2007-10-19  Bruno Haible  <bruno@clisp.org>
43623
43624         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
43625         syntax.
43626         * modules/javaexec (Makefile.am): Likewise.
43627         * modules/relocatable-prog (Makefile.am): Likewise.
43628         Suggested by Jim Meyering.
43629
43630 2007-10-18  Bruno Haible  <bruno@clisp.org>
43631
43632         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
43633         Reported by Jim Meyering.
43634
43635 2007-10-18  Eric Blake  <ebb9@byu.net>
43636
43637         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
43638
43639 2007-10-18  Bruno Haible  <bruno@clisp.org>
43640
43641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
43642         the format string into writable memory. Needed in Fortify conditions.
43643
43644 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
43645             Bruno Haible  <bruno@clisp.org>
43646
43647         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
43648         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
43649         * modules/trim (Depends-on): Add mbchar.
43650         (configure.ac): Add gl_FUNC_MBRTOWC.
43651         (Makefile.am): Augment lib_SOURCES.
43652
43653 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43654
43655         Modify glob.c to use fstatat and dirfd, to simplify it.
43656         Suggested by Eric Blake.
43657         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
43658         Don't include <stdbool.h>; not used.
43659         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
43660         (link_exists_p): Simplify implementation, since we can now assume
43661         dirfd and fstatat.
43662         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
43663
43664 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43665
43666         * gnulib-tool (func_get_dependencies): Fix sed script to
43667         match only tests.
43668
43669 2007-10-17  Bruno Haible  <bruno@clisp.org>
43670
43671         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
43672         allow locale names without encoding suffix.
43673         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43674         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43675
43676 2007-10-16  Bruno Haible  <bruno@clisp.org>
43677
43678         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
43679         * lib/getgroups.c (getgroups): Likewise.
43680         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
43681
43682 2007-10-16  Bruno Haible  <bruno@clisp.org>
43683
43684         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
43685         * modules/malloc-posix (License): Likewise.
43686         * modules/realloc-posix (License): Likewise.
43687         * modules/calloc-posix (License): Likewise.
43688         * modules/intprops (License): Change from GPL to LGPL, with
43689         Paul Eggert's approval.
43690
43691 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43692
43693         Merge glibc changes into lib/glob.c.
43694
43695         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
43696         2007-10-15 04:59:03 UTC.  Here are the changes:
43697
43698         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
43699
43700         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
43701
43702         * lib/glob.c: Add some branch prediction throughout.
43703
43704         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
43705
43706         [BZ #5103]
43707         * lib/glob.c (glob): Recognize patterns starting \/.
43708
43709         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
43710
43711         [BZ #3996]
43712         * lib/glob.c (attribute_hidden): Define if not defined.
43713         (glob): Unescape dirname, filename or username when needed and not
43714         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
43715         is NULL.  Handle unescaped [ in pattern without closing ].
43716         Don't pass GLOB_CHECK down to recursive glob for directories.
43717         (__glob_pattern_type): New function.
43718         (__glob_pattern_p): Implement using __glob_pattern_type.
43719         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
43720         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
43721         Remove unreachable code.
43722
43723         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
43724
43725         * lib/glob.c (glob_in_dir): Add some comments and asserts to
43726         explain why there are no leaks.
43727
43728         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
43729
43730         [BZ #3253]
43731         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
43732         time, rather allocate increasingly bigger arrays of pointers, if
43733         possible with alloca, if too large with malloc.
43734
43735 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43736
43737         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
43738         Problem reported by H.Merijn Brand in
43739         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
43740         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
43741         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
43742
43743 2007-10-15  Bruno Haible  <bruno@clisp.org>
43744
43745         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
43746         with explicit rpl_ prefix.
43747         * lib/fopen.c (fopen): Likewise.
43748         * lib/freopen.c (freopen): Likewise.
43749         * lib/iconv.c (iconv): Likewise.
43750         * lib/iconv_close.c (iconv_close): Likewise.
43751
43752 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43753
43754         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
43755
43756 2007-10-15  Bruno Haible  <bruno@clisp.org>
43757
43758         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
43759         <stddef.h> instead of <stdlib.h> since we only need NULL.
43760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43761
43762 2007-10-15  Bruno Haible  <bruno@clisp.org>
43763
43764         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
43765         Replace paragraph talking about LIBOBJS.
43766         Reported by Colin Watson <cjwatson@debian.org>.
43767
43768 2007-10-15  Bruno Haible  <bruno@clisp.org>
43769
43770         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
43771         <stdlib.h> before using NULL.
43772
43773 2007-10-15  Simon Josefsson  <simon@josefsson.org>
43774
43775         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
43776         Reported by Albert Chin <china@thewrittenword.com>.
43777
43778 2007-10-14  Bruno Haible  <bruno@clisp.org>
43779
43780         * modules/iconv_open-utf-tests: New file.
43781         * tests/test-iconv-utf.c: New file.
43782
43783         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
43784         * modules/iconv_open-utf: New file.
43785         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
43786         (iconv, iconv_close): New declarations.
43787         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
43788         be defined.
43789         (iconv_open): Add special handling of conversion between UTF-8 and
43790         UTF-{16,32}{BE,LE}.
43791         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
43792         * lib/iconv_close.c: New file.
43793         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
43794         gl_FUNC_ICONV_OPEN.
43795         (gl_FUNC_ICONV_OPEN): Use it.
43796         (gl_FUNC_ICONV_OPEN_UTF): New macro.
43797         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
43798         and REPLACE_ICONV_UTF.
43799         * modules/iconv_open (Depends-on): Add c-strcase.
43800         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
43801         ICONV_CONST.
43802         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
43803
43804 2007-10-13  Albert Chin  <china@thewrittenword.com>
43805             Bruno Haible  <bruno@clisp.org>
43806
43807         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
43808         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
43809
43810 2007-10-13  Bruno Haible  <bruno@clisp.org>
43811
43812         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
43813         defined, use the ISO C99 inline semantics.
43814         * lib/argp.h (ARGP_EI): Likewise.
43815
43816 2007-10-13  Bruno Haible  <bruno@clisp.org>
43817
43818         Handle 'inline' change in gcc 4.3.0.
43819         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
43820         argp_fmtstream_write, argp_fmtstream_set_lmargin,
43821         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
43822         argp_fmtstream_point): Disable 'extern' declaration if the function
43823         definition is going to be provided inline.
43824         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
43825         semantics, not the ISO C99 inline semantics.
43826         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
43827         'extern' declaration if the function definition is going to be provided
43828         inline.
43829         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
43830         the GNU C inline semantics, not the ISO C99 inline semantics. With
43831         GCC 4.2, avoid a warning.
43832
43833 2007-10-13  Bruno Haible  <bruno@clisp.org>
43834
43835         * lib/freading.h (freading): Enable the use of __freading for
43836         glibc >= 2.7.
43837         * lib/freading.c (freading): Likewise.
43838
43839 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43840
43841         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
43842         "warning: C99 inline functions are not supported; using GNU89".
43843
43844 2007-10-12  Bruno Haible  <bruno@clisp.org>
43845
43846         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
43847         of 2.
43848         * tests/test-ceilf2.c: New file.
43849         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
43850
43851         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
43852         * modules/ceilf-tests: Update.
43853
43854 2007-10-12  Bruno Haible  <bruno@clisp.org>
43855
43856         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
43857         of 2.
43858         * tests/test-floorf2.c: New file.
43859         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
43860
43861         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
43862         * modules/floorf-tests: Update.
43863
43864 2007-10-12  Bruno Haible  <bruno@clisp.org>
43865
43866         * tests/test-trunc2.c: New file.
43867         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
43868
43869         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
43870         * modules/trunc-tests: Update.
43871
43872 2007-10-12  Bruno Haible  <bruno@clisp.org>
43873
43874         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
43875         of 2.
43876         * tests/test-truncf2.c: New file.
43877         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
43878
43879         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
43880         * modules/truncf-tests: Update.
43881
43882 2007-10-11  Eric Blake  <ebb9@byu.net>
43883
43884         Don't claim strerror is broken on Interix.
43885         * doc/functions/strerror.texi (strerror): Known broken systems are
43886         now Solaris 8, and not Interix.
43887         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
43888         Interix on cross-compile.
43889         Reported by Martin Koeppe in
43890         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
43891
43892 2007-10-11  Bruno Haible  <bruno@clisp.org>
43893
43894         * modules/i-ring-tests: New file.
43895         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
43896         instead of assert.
43897
43898 2007-10-11  Bruno Haible  <bruno@clisp.org>
43899
43900         * modules/filenamecat-tests: New file.
43901         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
43902         * lib/filenamecat.c: Remove test code.
43903
43904 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43905
43906         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
43907
43908         * lib/strerror.c: Include <string.h> always, to test interface,
43909         and to remove the need for the dummy.
43910         Include intprops.h to compute width instead of doing it ourselves
43911         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
43912         (strerror): Define it to return NULL if there's no system strerror.
43913         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
43914         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
43915         ancient pre-strerror Unix systems well any more.  Saying "unknown
43916         system error" is enough.
43917         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
43918         simpler strerror.c implementation.
43919         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
43920         Simplify the tests to reflect the simpler strerror implementation.
43921         * modules/strerror (Depends-on): Add intprops.
43922
43923 2007-10-09  Eric Blake  <ebb9@byu.net>
43924
43925         Silence test-fpending.
43926         * modules/fpending-tests (Files): Add wrapper script.
43927         * tests/test-fpending.sh: New file.
43928
43929 2007-10-09  Bruno Haible  <bruno@clisp.org>
43930
43931         * MODULES.html.sh (func_module): Don't create a hyperlink for
43932         function names like 'printf_frexp'.
43933         (Misc): Add crc, memxor.
43934         (Characteristics of floating types): New section.
43935         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
43936         isnanf-nolibm, signbit, trunc, truncf, truncl.
43937         (Enhancements for ISO C 99 functions): New subsection Input/output.
43938         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
43939         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
43940         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
43941         (Compatibility checks for POSIX:2001 functions): Add clock-time.
43942         (Enhancements for POSIX:2001 functions): Add chdir-long.
43943         (File system functions): Add areadlink, chdir-safer, read-file.
43944         Remove cycle-check.
43945         (File system as inode set): New section.
43946         (Date and time): Add gethrxtime.
43947         (Multithreading): Add openmp.
43948         (Internationalization functions): Add localename.
43949         (Unicode string functions): Add unistr/u*-mbsnlen.
43950         (Support for maintaining and releasing projects): Add git-version-gen.
43951         (Lone files): Remove directories.
43952
43953 2007-10-08  Ben Pfaff  <blp@gnu.org>
43954
43955         * lib/xmalloca.h: Fix typo in comment.
43956
43957 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43958
43959         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
43960         when avoiding problems with integer overflow.  Use a portable test
43961         instead.
43962
43963 2007-10-08  Simon Josefsson  <simon@josefsson.org>
43964
43965         * modules/dummy (License): Change to LGPLv2+.
43966         * modules/float (License): Likewise
43967         * modules/realloc (License): Likewise
43968         * modules/stdlib (License): Likewise
43969
43970 2007-10-07  Bruno Haible  <bruno@clisp.org>
43971
43972         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
43973         * floor.c (TWO_MANT_DIG): Likewise.
43974         * ceil.c (TWO_MANT_DIG): Likewise.
43975         Reported by Ben Pfaff.
43976
43977 2007-10-07  Bruno Haible  <bruno@clisp.org>
43978
43979         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
43980         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
43981         * lib/frexp.c (FUNC): Likewise.
43982         * lib/printf-frexp.h (printf_frexp): Likewise.
43983         * lib/printf-frexpl.h (printf_frexpl): Likewise.
43984         * lib/printf-frexp.c (FUNC): Likewise.
43985         Suggested by Jim Meyering.
43986
43987 2007-10-07  Jim Meyering  <meyering@redhat.com>
43988
43989         Make xnanosleep's integer overflow test more robust.
43990         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
43991         so that gcc-4.3.0 doesn't optimize away this test for overflow.
43992
43993 2007-10-07  Bruno Haible  <bruno@clisp.org>
43994
43995         * NEWS: Mention the license change.
43996
43997         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
43998         abbreviations in the modules files.
43999
44000         Change copyright notice from GPLv2+ to GPLv3+.
44001         * README: Change copyright notice.
44002         * MODULES.html.sh: Likewise.
44003         * build-aux/bootstrap.conf: Likewise.
44004         * build-aux/config.libpath: Likewise.
44005         * build-aux/csharpcomp.sh.in: Likewise.
44006         * build-aux/csharpexec.sh.in: Likewise.
44007         * build-aux/install-reloc: Likewise.
44008         * build-aux/javacomp.sh.in: Likewise.
44009         * build-aux/javaexec.sh.in: Likewise.
44010         * build-aux/ldd.sh.in: Likewise.
44011         * build-aux/reloc-ldflags: Likewise.
44012         * build-aux/relocatable.sh.in: Likewise.
44013         * build-aux/x-to-1.in: Likewise.
44014         * check-module: Likewise.
44015         * config/srclistvars.sh: Likewise.
44016         * gnulib-tool: Likewise.
44017         * lib/acl-internal.h: Likewise.
44018         * lib/acl.c: Likewise.
44019         * lib/acl.h: Likewise.
44020         * lib/acl_entries.c: Likewise.
44021         * lib/areadlink-with-size.c: Likewise.
44022         * lib/areadlink.c: Likewise.
44023         * lib/areadlink.h: Likewise.
44024         * lib/argmatch.c: Likewise.
44025         * lib/argmatch.h: Likewise.
44026         * lib/argp-ba.c: Likewise.
44027         * lib/argp-eexst.c: Likewise.
44028         * lib/argp-fmtstream.c: Likewise.
44029         * lib/argp-fmtstream.h: Likewise.
44030         * lib/argp-fs-xinl.c: Likewise.
44031         * lib/argp-help.c: Likewise.
44032         * lib/argp-namefrob.h: Likewise.
44033         * lib/argp-parse.c: Likewise.
44034         * lib/argp-pin.c: Likewise.
44035         * lib/argp-pv.c: Likewise.
44036         * lib/argp-pvh.c: Likewise.
44037         * lib/argp-xinl.c: Likewise.
44038         * lib/argp.h: Likewise.
44039         * lib/at-func.c: Likewise.
44040         * lib/atanl.c: Likewise.
44041         * lib/backupfile.c: Likewise.
44042         * lib/backupfile.h: Likewise.
44043         * lib/basename.c: Likewise.
44044         * lib/binary-io.h: Likewise.
44045         * lib/byteswap.in.h: Likewise.
44046         * lib/c-stack.c: Likewise.
44047         * lib/c-stack.h: Likewise.
44048         * lib/c-strcasestr.c: Likewise.
44049         * lib/c-strcasestr.h: Likewise.
44050         * lib/c-strstr.c: Likewise.
44051         * lib/c-strstr.h: Likewise.
44052         * lib/c-strtod.c: Likewise.
44053         * lib/calloc.c: Likewise.
44054         * lib/canon-host.c: Likewise.
44055         * lib/canon-host.h: Likewise.
44056         * lib/canonicalize-lgpl.c: Likewise.
44057         * lib/canonicalize.c: Likewise.
44058         * lib/canonicalize.h: Likewise.
44059         * lib/ceil.c: Likewise.
44060         * lib/ceilf.c: Likewise.
44061         * lib/ceill.c: Likewise.
44062         * lib/chdir-long.c: Likewise.
44063         * lib/chdir-long.h: Likewise.
44064         * lib/chdir-safer.c: Likewise.
44065         * lib/chdir-safer.h: Likewise.
44066         * lib/chown.c: Likewise.
44067         * lib/classpath.c: Likewise.
44068         * lib/classpath.h: Likewise.
44069         * lib/clean-temp.c: Likewise.
44070         * lib/clean-temp.h: Likewise.
44071         * lib/cloexec.c: Likewise.
44072         * lib/close-stream.c: Likewise.
44073         * lib/closein.c: Likewise.
44074         * lib/closein.h: Likewise.
44075         * lib/closeout.c: Likewise.
44076         * lib/closeout.h: Likewise.
44077         * lib/concat-filename.c: Likewise.
44078         * lib/copy-file.c: Likewise.
44079         * lib/copy-file.h: Likewise.
44080         * lib/count-one-bits.h: Likewise.
44081         * lib/crc.c: Likewise.
44082         * lib/crc.h: Likewise.
44083         * lib/creat-safer.c: Likewise.
44084         * lib/csharpcomp.c: Likewise.
44085         * lib/csharpcomp.h: Likewise.
44086         * lib/csharpexec.c: Likewise.
44087         * lib/csharpexec.h: Likewise.
44088         * lib/cycle-check.c: Likewise.
44089         * lib/cycle-check.h: Likewise.
44090         * lib/diacrit.c: Likewise.
44091         * lib/diacrit.h: Likewise.
44092         * lib/diffseq.h: Likewise.
44093         * lib/dirchownmod.c: Likewise.
44094         * lib/dirent.in.h: Likewise.
44095         * lib/dirfd.c: Likewise.
44096         * lib/dirfd.h: Likewise.
44097         * lib/dirname.c: Likewise.
44098         * lib/dirname.h: Likewise.
44099         * lib/dummy.c: Likewise.
44100         * lib/dup-safer.c: Likewise.
44101         * lib/dup2.c: Likewise.
44102         * lib/eealloc.h: Likewise.
44103         * lib/error.c: Likewise.
44104         * lib/error.h: Likewise.
44105         * lib/euidaccess.c: Likewise.
44106         * lib/exclude.c: Likewise.
44107         * lib/exclude.h: Likewise.
44108         * lib/execute.c: Likewise.
44109         * lib/execute.h: Likewise.
44110         * lib/exitfail.c: Likewise.
44111         * lib/exitfail.h: Likewise.
44112         * lib/expl.c: Likewise.
44113         * lib/fatal-signal.c: Likewise.
44114         * lib/fatal-signal.h: Likewise.
44115         * lib/fbufmode.c: Likewise.
44116         * lib/fbufmode.h: Likewise.
44117         * lib/fchdir.c: Likewise.
44118         * lib/fchmodat.c: Likewise.
44119         * lib/fchownat.c: Likewise.
44120         * lib/fcntl--.h: Likewise.
44121         * lib/fcntl-safer.h: Likewise.
44122         * lib/fcntl.in.h: Likewise.
44123         * lib/fd-safer.c: Likewise.
44124         * lib/fflush.c: Likewise.
44125         * lib/file-has-acl.c: Likewise.
44126         * lib/file-set.c: Likewise.
44127         * lib/file-type.c: Likewise.
44128         * lib/file-type.h: Likewise.
44129         * lib/fileblocks.c: Likewise.
44130         * lib/filemode.c: Likewise.
44131         * lib/filemode.h: Likewise.
44132         * lib/filename.h: Likewise.
44133         * lib/filenamecat.c: Likewise.
44134         * lib/filenamecat.h: Likewise.
44135         * lib/findprog.c: Likewise.
44136         * lib/findprog.h: Likewise.
44137         * lib/float.in.h: Likewise.
44138         * lib/floor.c: Likewise.
44139         * lib/floorf.c: Likewise.
44140         * lib/floorl.c: Likewise.
44141         * lib/fopen-safer.c: Likewise.
44142         * lib/fopen.c: Likewise.
44143         * lib/fpending.c: Likewise.
44144         * lib/fpending.h: Likewise.
44145         * lib/fprintf.c: Likewise.
44146         * lib/fprintftime.h: Likewise.
44147         * lib/fpucw.h: Likewise.
44148         * lib/fpurge.c: Likewise.
44149         * lib/fpurge.h: Likewise.
44150         * lib/freadable.c: Likewise.
44151         * lib/freadable.h: Likewise.
44152         * lib/freadahead.c: Likewise.
44153         * lib/freadahead.h: Likewise.
44154         * lib/freading.c: Likewise.
44155         * lib/freading.h: Likewise.
44156         * lib/free.c: Likewise.
44157         * lib/freopen.c: Likewise.
44158         * lib/frexp.c: Likewise.
44159         * lib/frexpl.c: Likewise.
44160         * lib/fseek.c: Likewise.
44161         * lib/fseterr.c: Likewise.
44162         * lib/fseterr.h: Likewise.
44163         * lib/fstatat.c: Likewise.
44164         * lib/fstrcmp.c: Likewise.
44165         * lib/fstrcmp.h: Likewise.
44166         * lib/fsusage.c: Likewise.
44167         * lib/fsusage.h: Likewise.
44168         * lib/ftell.c: Likewise.
44169         * lib/ftello.c: Likewise.
44170         * lib/fts-cycle.c: Likewise.
44171         * lib/fts.c: Likewise.
44172         * lib/fts_.h: Likewise.
44173         * lib/full-read.c: Likewise.
44174         * lib/full-read.h: Likewise.
44175         * lib/full-write.c: Likewise.
44176         * lib/full-write.h: Likewise.
44177         * lib/fwritable.c: Likewise.
44178         * lib/fwritable.h: Likewise.
44179         * lib/fwriteerror.c: Likewise.
44180         * lib/fwriteerror.h: Likewise.
44181         * lib/fwriting.c: Likewise.
44182         * lib/fwriting.h: Likewise.
44183         * lib/gcd.c: Likewise.
44184         * lib/gcd.h: Likewise.
44185         * lib/getcwd.c: Likewise.
44186         * lib/getdate.h: Likewise.
44187         * lib/getdate.y: Likewise.
44188         * lib/getdomainname.c: Likewise.
44189         * lib/getdomainname.h: Likewise.
44190         * lib/getgroups.c: Likewise.
44191         * lib/gethostname.c: Likewise.
44192         * lib/gethrxtime.c: Likewise.
44193         * lib/gethrxtime.h: Likewise.
44194         * lib/getloadavg.c: Likewise.
44195         * lib/getndelim2.c: Likewise.
44196         * lib/getndelim2.h: Likewise.
44197         * lib/getnline.c: Likewise.
44198         * lib/getnline.h: Likewise.
44199         * lib/getopt.c: Likewise.
44200         * lib/getopt.in.h: Likewise.
44201         * lib/getopt1.c: Likewise.
44202         * lib/getopt_int.h: Likewise.
44203         * lib/getpagesize.h: Likewise.
44204         * lib/getsubopt.c: Likewise.
44205         * lib/gettime.c: Likewise.
44206         * lib/getugroups.c: Likewise.
44207         * lib/getugroups.h: Likewise.
44208         * lib/getusershell.c: Likewise.
44209         * lib/gl_anyavltree_list1.h: Likewise.
44210         * lib/gl_anyavltree_list2.h: Likewise.
44211         * lib/gl_anyhash_list1.h: Likewise.
44212         * lib/gl_anyhash_list2.h: Likewise.
44213         * lib/gl_anylinked_list1.h: Likewise.
44214         * lib/gl_anylinked_list2.h: Likewise.
44215         * lib/gl_anyrbtree_list1.h: Likewise.
44216         * lib/gl_anyrbtree_list2.h: Likewise.
44217         * lib/gl_anytree_list1.h: Likewise.
44218         * lib/gl_anytree_list2.h: Likewise.
44219         * lib/gl_anytree_oset.h: Likewise.
44220         * lib/gl_anytreehash_list1.h: Likewise.
44221         * lib/gl_anytreehash_list2.h: Likewise.
44222         * lib/gl_array_list.c: Likewise.
44223         * lib/gl_array_list.h: Likewise.
44224         * lib/gl_array_oset.c: Likewise.
44225         * lib/gl_array_oset.h: Likewise.
44226         * lib/gl_avltree_list.c: Likewise.
44227         * lib/gl_avltree_list.h: Likewise.
44228         * lib/gl_avltree_oset.c: Likewise.
44229         * lib/gl_avltree_oset.h: Likewise.
44230         * lib/gl_avltreehash_list.c: Likewise.
44231         * lib/gl_avltreehash_list.h: Likewise.
44232         * lib/gl_carray_list.c: Likewise.
44233         * lib/gl_carray_list.h: Likewise.
44234         * lib/gl_linked_list.c: Likewise.
44235         * lib/gl_linked_list.h: Likewise.
44236         * lib/gl_linkedhash_list.c: Likewise.
44237         * lib/gl_linkedhash_list.h: Likewise.
44238         * lib/gl_list.c: Likewise.
44239         * lib/gl_list.h: Likewise.
44240         * lib/gl_oset.c: Likewise.
44241         * lib/gl_oset.h: Likewise.
44242         * lib/gl_rbtree_list.c: Likewise.
44243         * lib/gl_rbtree_list.h: Likewise.
44244         * lib/gl_rbtree_oset.c: Likewise.
44245         * lib/gl_rbtree_oset.h: Likewise.
44246         * lib/gl_rbtreehash_list.c: Likewise.
44247         * lib/gl_rbtreehash_list.h: Likewise.
44248         * lib/gl_sublist.c: Likewise.
44249         * lib/gl_sublist.h: Likewise.
44250         * lib/group-member.c: Likewise.
44251         * lib/group-member.h: Likewise.
44252         * lib/hard-locale.c: Likewise.
44253         * lib/hard-locale.h: Likewise.
44254         * lib/hash-pjw.c: Likewise.
44255         * lib/hash-pjw.h: Likewise.
44256         * lib/hash-triple.c: Likewise.
44257         * lib/hash.c: Likewise.
44258         * lib/hash.h: Likewise.
44259         * lib/human.c: Likewise.
44260         * lib/human.h: Likewise.
44261         * lib/i-ring.c: Likewise.
44262         * lib/i-ring.h: Likewise.
44263         * lib/idcache.c: Likewise.
44264         * lib/imaxabs.c: Likewise.
44265         * lib/imaxdiv.c: Likewise.
44266         * lib/inet_pton.c: Likewise.
44267         * lib/inet_pton.h: Likewise.
44268         * lib/intprops.h: Likewise.
44269         * lib/inttostr.c: Likewise.
44270         * lib/inttostr.h: Likewise.
44271         * lib/inttypes.in.h: Likewise.
44272         * lib/isapipe.c: Likewise.
44273         * lib/isdir.c: Likewise.
44274         * lib/isnan.c: Likewise.
44275         * lib/isnan.h: Likewise.
44276         * lib/isnanf.c: Likewise.
44277         * lib/isnanf.h: Likewise.
44278         * lib/isnanl-nolibm.h: Likewise.
44279         * lib/isnanl.c: Likewise.
44280         * lib/isnanl.h: Likewise.
44281         * lib/javacomp.c: Likewise.
44282         * lib/javacomp.h: Likewise.
44283         * lib/javaexec.c: Likewise.
44284         * lib/javaexec.h: Likewise.
44285         * lib/javaversion.c: Likewise.
44286         * lib/javaversion.h: Likewise.
44287         * lib/javaversion.java: Likewise.
44288         * lib/lbrkprop.h: Likewise.
44289         * lib/lchmod.h: Likewise.
44290         * lib/lchown.c: Likewise.
44291         * lib/ldexpl.c: Likewise.
44292         * lib/linebreak.c: Likewise.
44293         * lib/linebreak.h: Likewise.
44294         * lib/linebuffer.c: Likewise.
44295         * lib/linebuffer.h: Likewise.
44296         * lib/locale.in.h: Likewise.
44297         * lib/logl.c: Likewise.
44298         * lib/long-options.c: Likewise.
44299         * lib/long-options.h: Likewise.
44300         * lib/lstat.c: Likewise.
44301         * lib/lstat.h: Likewise.
44302         * lib/math.in.h: Likewise.
44303         * lib/mbchar.c: Likewise.
44304         * lib/mbchar.h: Likewise.
44305         * lib/mbfile.h: Likewise.
44306         * lib/mbiter.h: Likewise.
44307         * lib/mbscasecmp.c: Likewise.
44308         * lib/mbscasestr.c: Likewise.
44309         * lib/mbschr.c: Likewise.
44310         * lib/mbscspn.c: Likewise.
44311         * lib/mbslen.c: Likewise.
44312         * lib/mbsncasecmp.c: Likewise.
44313         * lib/mbsnlen.c: Likewise.
44314         * lib/mbspbrk.c: Likewise.
44315         * lib/mbspcasecmp.c: Likewise.
44316         * lib/mbsrchr.c: Likewise.
44317         * lib/mbssep.c: Likewise.
44318         * lib/mbsspn.c: Likewise.
44319         * lib/mbsstr.c: Likewise.
44320         * lib/mbstok_r.c: Likewise.
44321         * lib/mbswidth.c: Likewise.
44322         * lib/mbswidth.h: Likewise.
44323         * lib/mbuiter.h: Likewise.
44324         * lib/memcasecmp.c: Likewise.
44325         * lib/memcasecmp.h: Likewise.
44326         * lib/memchr.c: Likewise.
44327         * lib/memcmp.c: Likewise.
44328         * lib/memcoll.c: Likewise.
44329         * lib/memcoll.h: Likewise.
44330         * lib/memcpy.c: Likewise.
44331         * lib/memrchr.c: Likewise.
44332         * lib/mkancesdirs.c: Likewise.
44333         * lib/mkdir-p.c: Likewise.
44334         * lib/mkdir-p.h: Likewise.
44335         * lib/mkdir.c: Likewise.
44336         * lib/mkdirat.c: Likewise.
44337         * lib/mkdtemp.c: Likewise.
44338         * lib/mkstemp-safer.c: Likewise.
44339         * lib/mkstemp.c: Likewise.
44340         * lib/modechange.c: Likewise.
44341         * lib/modechange.h: Likewise.
44342         * lib/mountlist.c: Likewise.
44343         * lib/mountlist.h: Likewise.
44344         * lib/mpsort.c: Likewise.
44345         * lib/nanosleep.c: Likewise.
44346         * lib/obstack.c: Likewise.
44347         * lib/obstack.h: Likewise.
44348         * lib/open-safer.c: Likewise.
44349         * lib/open.c: Likewise.
44350         * lib/openat-die.c: Likewise.
44351         * lib/openat-priv.h: Likewise.
44352         * lib/openat-proc.c: Likewise.
44353         * lib/openat.c: Likewise.
44354         * lib/openat.h: Likewise.
44355         * lib/pagealign_alloc.c: Likewise.
44356         * lib/pagealign_alloc.h: Likewise.
44357         * lib/physmem.c: Likewise.
44358         * lib/physmem.h: Likewise.
44359         * lib/pipe-safer.c: Likewise.
44360         * lib/pipe.c: Likewise.
44361         * lib/pipe.h: Likewise.
44362         * lib/posixtm.c: Likewise.
44363         * lib/posixtm.h: Likewise.
44364         * lib/posixver.c: Likewise.
44365         * lib/printf-frexp.c: Likewise.
44366         * lib/printf-frexp.h: Likewise.
44367         * lib/printf-frexpl.c: Likewise.
44368         * lib/printf-frexpl.h: Likewise.
44369         * lib/printf.c: Likewise.
44370         * lib/progname.c: Likewise.
44371         * lib/progname.h: Likewise.
44372         * lib/progreloc.c: Likewise.
44373         * lib/putenv.c: Likewise.
44374         * lib/quote.c: Likewise.
44375         * lib/quote.h: Likewise.
44376         * lib/quotearg.c: Likewise.
44377         * lib/quotearg.h: Likewise.
44378         * lib/raise.c: Likewise.
44379         * lib/readline.c: Likewise.
44380         * lib/readline.h: Likewise.
44381         * lib/readlink.c: Likewise.
44382         * lib/readtokens.c: Likewise.
44383         * lib/readtokens.h: Likewise.
44384         * lib/readtokens0.c: Likewise.
44385         * lib/readtokens0.h: Likewise.
44386         * lib/readutmp.c: Likewise.
44387         * lib/readutmp.h: Likewise.
44388         * lib/realloc.c: Likewise.
44389         * lib/relocwrapper.c: Likewise.
44390         * lib/rename-dest-slash.c: Likewise.
44391         * lib/rename.c: Likewise.
44392         * lib/rmdir.c: Likewise.
44393         * lib/rpmatch.c: Likewise.
44394         * lib/safe-read.c: Likewise.
44395         * lib/safe-read.h: Likewise.
44396         * lib/safe-write.c: Likewise.
44397         * lib/safe-write.h: Likewise.
44398         * lib/same-inode.h: Likewise.
44399         * lib/same.c: Likewise.
44400         * lib/same.h: Likewise.
44401         * lib/save-cwd.c: Likewise.
44402         * lib/save-cwd.h: Likewise.
44403         * lib/savedir.c: Likewise.
44404         * lib/savedir.h: Likewise.
44405         * lib/savewd.c: Likewise.
44406         * lib/savewd.h: Likewise.
44407         * lib/search.in.h: Likewise.
44408         * lib/setenv.c: Likewise.
44409         * lib/setenv.h: Likewise.
44410         * lib/settime.c: Likewise.
44411         * lib/sh-quote.c: Likewise.
44412         * lib/sh-quote.h: Likewise.
44413         * lib/sig2str.c: Likewise.
44414         * lib/sig2str.h: Likewise.
44415         * lib/signal.in.h: Likewise.
44416         * lib/signbitd.c: Likewise.
44417         * lib/signbitf.c: Likewise.
44418         * lib/signbitl.c: Likewise.
44419         * lib/sigprocmask.c: Likewise.
44420         * lib/sincosl.c: Likewise.
44421         * lib/sleep.c: Likewise.
44422         * lib/sprintf.c: Likewise.
44423         * lib/sqrtl.c: Likewise.
44424         * lib/stat-time.h: Likewise.
44425         * lib/stdio--.h: Likewise.
44426         * lib/stdio-safer.h: Likewise.
44427         * lib/stdlib--.h: Likewise.
44428         * lib/stdlib-safer.h: Likewise.
44429         * lib/stdlib.in.h: Likewise.
44430         * lib/stpcpy.c: Likewise.
44431         * lib/stpncpy.c: Likewise.
44432         * lib/strchrnul.c: Likewise.
44433         * lib/strcspn.c: Likewise.
44434         * lib/strerror.c: Likewise.
44435         * lib/strftime.c: Likewise.
44436         * lib/strftime.h: Likewise.
44437         * lib/striconveh.c: Likewise.
44438         * lib/striconveh.h: Likewise.
44439         * lib/striconveha.c: Likewise.
44440         * lib/striconveha.h: Likewise.
44441         * lib/stripslash.c: Likewise.
44442         * lib/strnlen1.c: Likewise.
44443         * lib/strnlen1.h: Likewise.
44444         * lib/strtod.c: Likewise.
44445         * lib/strtoimax.c: Likewise.
44446         * lib/strtok_r.c: Likewise.
44447         * lib/strtol.c: Likewise.
44448         * lib/strtoll.c: Likewise.
44449         * lib/strtoul.c: Likewise.
44450         * lib/strtoull.c: Likewise.
44451         * lib/sysexits.in.h: Likewise.
44452         * lib/tempname.c: Likewise.
44453         * lib/tempname.h: Likewise.
44454         * lib/timespec.h: Likewise.
44455         * lib/tls.c: Likewise.
44456         * lib/tls.h: Likewise.
44457         * lib/tmpdir.c: Likewise.
44458         * lib/tmpdir.h: Likewise.
44459         * lib/tmpfile-safer.c: Likewise.
44460         * lib/tmpfile.c: Likewise.
44461         * lib/trigl.c: Likewise.
44462         * lib/trigl.h: Likewise.
44463         * lib/trim.c: Likewise.
44464         * lib/trim.h: Likewise.
44465         * lib/trunc.c: Likewise.
44466         * lib/truncf.c: Likewise.
44467         * lib/truncl.c: Likewise.
44468         * lib/tsearch.c: Likewise.
44469         * lib/unicodeio.c: Likewise.
44470         * lib/unicodeio.h: Likewise.
44471         * lib/unistd--.h: Likewise.
44472         * lib/unistd-safer.h: Likewise.
44473         * lib/unistdio/ulc-fprintf.c: Likewise.
44474         * lib/unistdio/ulc-vfprintf.c: Likewise.
44475         * lib/unlinkdir.c: Likewise.
44476         * lib/unlinkdir.h: Likewise.
44477         * lib/unlocked-io.h: Likewise.
44478         * lib/unsetenv.c: Likewise.
44479         * lib/userspec.c: Likewise.
44480         * lib/utime.c: Likewise.
44481         * lib/utimecmp.c: Likewise.
44482         * lib/utimecmp.h: Likewise.
44483         * lib/utimens.c: Likewise.
44484         * lib/verify.h: Likewise.
44485         * lib/verror.c: Likewise.
44486         * lib/verror.h: Likewise.
44487         * lib/version-etc-fsf.c: Likewise.
44488         * lib/version-etc.c: Likewise.
44489         * lib/version-etc.h: Likewise.
44490         * lib/vfprintf.c: Likewise.
44491         * lib/vprintf.c: Likewise.
44492         * lib/vsprintf.c: Likewise.
44493         * lib/w32spawn.h: Likewise.
44494         * lib/wait-process.c: Likewise.
44495         * lib/wait-process.h: Likewise.
44496         * lib/wcwidth.c: Likewise.
44497         * lib/write-any-file.c: Likewise.
44498         * lib/xalloc-die.c: Likewise.
44499         * lib/xalloc.h: Likewise.
44500         * lib/xasprintf.c: Likewise.
44501         * lib/xgetcwd.c: Likewise.
44502         * lib/xgetcwd.h: Likewise.
44503         * lib/xgetdomainname.c: Likewise.
44504         * lib/xgetdomainname.h: Likewise.
44505         * lib/xgethostname.c: Likewise.
44506         * lib/xmalloc.c: Likewise.
44507         * lib/xmalloca.c: Likewise.
44508         * lib/xmalloca.h: Likewise.
44509         * lib/xmemcoll.c: Likewise.
44510         * lib/xnanosleep.c: Likewise.
44511         * lib/xreadlink.c: Likewise.
44512         * lib/xreadlink.h: Likewise.
44513         * lib/xsetenv.c: Likewise.
44514         * lib/xsetenv.h: Likewise.
44515         * lib/xstriconv.c: Likewise.
44516         * lib/xstriconv.h: Likewise.
44517         * lib/xstrndup.c: Likewise.
44518         * lib/xstrndup.h: Likewise.
44519         * lib/xstrtod.c: Likewise.
44520         * lib/xstrtod.h: Likewise.
44521         * lib/xstrtol-error.c: Likewise.
44522         * lib/xstrtol.c: Likewise.
44523         * lib/xstrtol.h: Likewise.
44524         * lib/xtime.h: Likewise.
44525         * lib/xvasprintf.c: Likewise.
44526         * lib/xvasprintf.h: Likewise.
44527         * lib/yesno.c: Likewise.
44528         * lib/yesno.h: Likewise.
44529         * posix-modules: Likewise.
44530         * tests/test-alloca-opt.c: Likewise.
44531         * tests/test-arcfour.c: Likewise.
44532         * tests/test-arctwo.c: Likewise.
44533         * tests/test-argmatch.c: Likewise.
44534         * tests/test-argp-2.sh: Likewise.
44535         * tests/test-argp.c: Likewise.
44536         * tests/test-arpa_inet.c: Likewise.
44537         * tests/test-array_list.c: Likewise.
44538         * tests/test-array_oset.c: Likewise.
44539         * tests/test-atexit.c: Likewise.
44540         * tests/test-avltree_list.c: Likewise.
44541         * tests/test-avltree_oset.c: Likewise.
44542         * tests/test-avltreehash_list.c: Likewise.
44543         * tests/test-base64.c: Likewise.
44544         * tests/test-binary-io.c: Likewise.
44545         * tests/test-byteswap.c: Likewise.
44546         * tests/test-c-ctype.c: Likewise.
44547         * tests/test-c-strcasecmp.c: Likewise.
44548         * tests/test-c-strcasestr.c: Likewise.
44549         * tests/test-c-strncasecmp.c: Likewise.
44550         * tests/test-c-strstr.c: Likewise.
44551         * tests/test-canonicalize-lgpl.c: Likewise.
44552         * tests/test-canonicalize.c: Likewise.
44553         * tests/test-carray_list.c: Likewise.
44554         * tests/test-ceilf.c: Likewise.
44555         * tests/test-ceill.c: Likewise.
44556         * tests/test-count-one-bits.c: Likewise.
44557         * tests/test-crc.c: Likewise.
44558         * tests/test-dirname.c: Likewise.
44559         * tests/test-fbufmode.c: Likewise.
44560         * tests/test-fcntl.c: Likewise.
44561         * tests/test-fflush.c: Likewise.
44562         * tests/test-floorf.c: Likewise.
44563         * tests/test-floorl.c: Likewise.
44564         * tests/test-fopen.c: Likewise.
44565         * tests/test-fprintf-posix.c: Likewise.
44566         * tests/test-fprintf-posix.h: Likewise.
44567         * tests/test-fpurge.c: Likewise.
44568         * tests/test-freadable.c: Likewise.
44569         * tests/test-freadahead.c: Likewise.
44570         * tests/test-freading.c: Likewise.
44571         * tests/test-freopen.c: Likewise.
44572         * tests/test-frexp.c: Likewise.
44573         * tests/test-frexpl.c: Likewise.
44574         * tests/test-fseek.c: Likewise.
44575         * tests/test-fseeko.c: Likewise.
44576         * tests/test-fseterr.c: Likewise.
44577         * tests/test-fstrcmp.c: Likewise.
44578         * tests/test-ftell.c: Likewise.
44579         * tests/test-ftello.c: Likewise.
44580         * tests/test-fwritable.c: Likewise.
44581         * tests/test-fwriting.c: Likewise.
44582         * tests/test-getaddrinfo.c: Likewise.
44583         * tests/test-getpass.c: Likewise.
44584         * tests/test-gettimeofday.c: Likewise.
44585         * tests/test-hmac-md5.c: Likewise.
44586         * tests/test-hmac-sha1.c: Likewise.
44587         * tests/test-iconv.c: Likewise.
44588         * tests/test-iconvme.c: Likewise.
44589         * tests/test-inttypes.c: Likewise.
44590         * tests/test-isnan.c: Likewise.
44591         * tests/test-isnanf.c: Likewise.
44592         * tests/test-isnanl-nolibm.c: Likewise.
44593         * tests/test-isnanl.c: Likewise.
44594         * tests/test-isnanl.h: Likewise.
44595         * tests/test-ldexpl.c: Likewise.
44596         * tests/test-linked_list.c: Likewise.
44597         * tests/test-linkedhash_list.c: Likewise.
44598         * tests/test-locale.c: Likewise.
44599         * tests/test-localename.c: Likewise.
44600         * tests/test-lock.c: Likewise.
44601         * tests/test-lseek.c: Likewise.
44602         * tests/test-malloca.c: Likewise.
44603         * tests/test-math.c: Likewise.
44604         * tests/test-mbscasecmp.c: Likewise.
44605         * tests/test-mbscasestr1.c: Likewise.
44606         * tests/test-mbscasestr2.c: Likewise.
44607         * tests/test-mbscasestr3.c: Likewise.
44608         * tests/test-mbscasestr4.c: Likewise.
44609         * tests/test-mbschr.c: Likewise.
44610         * tests/test-mbscspn.c: Likewise.
44611         * tests/test-mbsncasecmp.c: Likewise.
44612         * tests/test-mbspbrk.c: Likewise.
44613         * tests/test-mbspcasecmp.c: Likewise.
44614         * tests/test-mbsrchr.c: Likewise.
44615         * tests/test-mbsspn.c: Likewise.
44616         * tests/test-mbsstr1.c: Likewise.
44617         * tests/test-mbsstr2.c: Likewise.
44618         * tests/test-mbsstr3.c: Likewise.
44619         * tests/test-md5.c: Likewise.
44620         * tests/test-memmem.c: Likewise.
44621         * tests/test-netinet_in.c: Likewise.
44622         * tests/test-open.c: Likewise.
44623         * tests/test-printf-frexp.c: Likewise.
44624         * tests/test-printf-frexpl.c: Likewise.
44625         * tests/test-printf-posix.c: Likewise.
44626         * tests/test-printf-posix.h: Likewise.
44627         * tests/test-rbtree_list.c: Likewise.
44628         * tests/test-rbtree_oset.c: Likewise.
44629         * tests/test-rbtreehash_list.c: Likewise.
44630         * tests/test-read-file.c: Likewise.
44631         * tests/test-rijndael.c: Likewise.
44632         * tests/test-search.c: Likewise.
44633         * tests/test-signbit.c: Likewise.
44634         * tests/test-sleep.c: Likewise.
44635         * tests/test-snprintf-posix.c: Likewise.
44636         * tests/test-snprintf-posix.h: Likewise.
44637         * tests/test-snprintf.c: Likewise.
44638         * tests/test-sprintf-posix.c: Likewise.
44639         * tests/test-sprintf-posix.h: Likewise.
44640         * tests/test-stat-time.c: Likewise.
44641         * tests/test-stdbool.c: Likewise.
44642         * tests/test-stdint.c: Likewise.
44643         * tests/test-stdio.c: Likewise.
44644         * tests/test-stdlib.c: Likewise.
44645         * tests/test-stpncpy.c: Likewise.
44646         * tests/test-strcasestr.c: Likewise.
44647         * tests/test-striconv.c: Likewise.
44648         * tests/test-striconveh.c: Likewise.
44649         * tests/test-striconveha.c: Likewise.
44650         * tests/test-string.c: Likewise.
44651         * tests/test-sys_select.c: Likewise.
44652         * tests/test-sys_socket.c: Likewise.
44653         * tests/test-sys_stat.c: Likewise.
44654         * tests/test-sys_time.c: Likewise.
44655         * tests/test-sysexits.c: Likewise.
44656         * tests/test-time.c: Likewise.
44657         * tests/test-tls.c: Likewise.
44658         * tests/test-trunc.c: Likewise.
44659         * tests/test-truncf.c: Likewise.
44660         * tests/test-truncl.c: Likewise.
44661         * tests/test-unistd.c: Likewise.
44662         * tests/test-vasnprintf-posix.c: Likewise.
44663         * tests/test-vasnprintf-posix2.c: Likewise.
44664         * tests/test-vasnprintf.c: Likewise.
44665         * tests/test-vasprintf-posix.c: Likewise.
44666         * tests/test-vasprintf.c: Likewise.
44667         * tests/test-verify.c: Likewise.
44668         * tests/test-vfprintf-posix.c: Likewise.
44669         * tests/test-vprintf-posix.c: Likewise.
44670         * tests/test-vsnprintf-posix.c: Likewise.
44671         * tests/test-vsnprintf.c: Likewise.
44672         * tests/test-vsprintf-posix.c: Likewise.
44673         * tests/test-wchar.c: Likewise.
44674         * tests/test-wctype.c: Likewise.
44675         * tests/test-wcwidth.c: Likewise.
44676         * tests/test-xstrtol.c: Likewise.
44677         * tests/test-xvasprintf.c: Likewise.
44678         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
44679         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
44680         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
44681         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
44682         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
44683         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
44684         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
44685         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
44686         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
44687         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
44688         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
44689         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
44690         * tests/uniname/test-uninames.c: Likewise.
44691         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
44692         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
44693         * tests/unistdio/test-u16-printf1.h: Likewise.
44694         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
44695         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
44696         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
44697         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
44698         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
44699         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
44700         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
44701         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
44702         * tests/unistdio/test-u32-printf1.h: Likewise.
44703         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
44704         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
44705         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
44706         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
44707         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
44708         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
44709         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
44710         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
44711         * tests/unistdio/test-u8-printf1.h: Likewise.
44712         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
44713         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
44714         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
44715         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
44716         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
44717         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
44718         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
44719         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
44720         * tests/unistdio/test-ulc-printf1.h: Likewise.
44721         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
44722         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
44723         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
44724         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
44725         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
44726         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
44727         * tests/uniwidth/test-u16-strwidth.c: Likewise.
44728         * tests/uniwidth/test-u16-width.c: Likewise.
44729         * tests/uniwidth/test-u32-strwidth.c: Likewise.
44730         * tests/uniwidth/test-u32-width.c: Likewise.
44731         * tests/uniwidth/test-u8-strwidth.c: Likewise.
44732         * tests/uniwidth/test-u8-width.c: Likewise.
44733         * tests/uniwidth/test-uc_width.c: Likewise.
44734         * config/srclist-update: Likewise.
44735         (fixlicense): Update to GPLv3+.
44736
44737         Change copyright notice from LGPLv2.1+ to LGPLv3+.
44738         * tests/test-tsearch.c: Change copyright notice.
44739
44740         Change copyright notice from LGPLv2.0+ to LGPLv3+.
44741         * lib/c-strcaseeq.h: Change copyright notice.
44742         * lib/streq.h: Likewise.
44743         * lib/uniconv.h: Likewise.
44744         * lib/uniconv/u-conv-from-enc.h: Likewise.
44745         * lib/uniconv/u-conv-to-enc.h: Likewise.
44746         * lib/uniconv/u-strconv-from-enc.h: Likewise.
44747         * lib/uniconv/u-strconv-to-enc.h: Likewise.
44748         * lib/uniconv/u16-conv-from-enc.c: Likewise.
44749         * lib/uniconv/u16-conv-to-enc.c: Likewise.
44750         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
44751         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
44752         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
44753         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
44754         * lib/uniconv/u32-conv-from-enc.c: Likewise.
44755         * lib/uniconv/u32-conv-to-enc.c: Likewise.
44756         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
44757         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
44758         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
44759         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
44760         * lib/uniconv/u8-conv-from-enc.c: Likewise.
44761         * lib/uniconv/u8-conv-to-enc.c: Likewise.
44762         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
44763         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
44764         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
44765         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
44766         * lib/uniname.h: Likewise.
44767         * lib/uniname/uniname.c: Likewise.
44768         * lib/unistdio.h: Likewise.
44769         * lib/unistdio/u-asnprintf.h: Likewise.
44770         * lib/unistdio/u-asprintf.h: Likewise.
44771         * lib/unistdio/u-printf-args.c: Likewise.
44772         * lib/unistdio/u-printf-args.h: Likewise.
44773         * lib/unistdio/u-printf-parse.h: Likewise.
44774         * lib/unistdio/u-snprintf.h: Likewise.
44775         * lib/unistdio/u-sprintf.h: Likewise.
44776         * lib/unistdio/u-vasprintf.h: Likewise.
44777         * lib/unistdio/u-vsnprintf.h: Likewise.
44778         * lib/unistdio/u-vsprintf.h: Likewise.
44779         * lib/unistdio/u16-asnprintf.c: Likewise.
44780         * lib/unistdio/u16-asprintf.c: Likewise.
44781         * lib/unistdio/u16-printf-parse.c: Likewise.
44782         * lib/unistdio/u16-snprintf.c: Likewise.
44783         * lib/unistdio/u16-sprintf.c: Likewise.
44784         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
44785         * lib/unistdio/u16-u16-asprintf.c: Likewise.
44786         * lib/unistdio/u16-u16-snprintf.c: Likewise.
44787         * lib/unistdio/u16-u16-sprintf.c: Likewise.
44788         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
44789         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
44790         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
44791         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
44792         * lib/unistdio/u16-vasnprintf.c: Likewise.
44793         * lib/unistdio/u16-vasprintf.c: Likewise.
44794         * lib/unistdio/u16-vsnprintf.c: Likewise.
44795         * lib/unistdio/u16-vsprintf.c: Likewise.
44796         * lib/unistdio/u32-asnprintf.c: Likewise.
44797         * lib/unistdio/u32-asprintf.c: Likewise.
44798         * lib/unistdio/u32-printf-parse.c: Likewise.
44799         * lib/unistdio/u32-snprintf.c: Likewise.
44800         * lib/unistdio/u32-sprintf.c: Likewise.
44801         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
44802         * lib/unistdio/u32-u32-asprintf.c: Likewise.
44803         * lib/unistdio/u32-u32-snprintf.c: Likewise.
44804         * lib/unistdio/u32-u32-sprintf.c: Likewise.
44805         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
44806         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
44807         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
44808         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
44809         * lib/unistdio/u32-vasnprintf.c: Likewise.
44810         * lib/unistdio/u32-vasprintf.c: Likewise.
44811         * lib/unistdio/u32-vsnprintf.c: Likewise.
44812         * lib/unistdio/u32-vsprintf.c: Likewise.
44813         * lib/unistdio/u8-asnprintf.c: Likewise.
44814         * lib/unistdio/u8-asprintf.c: Likewise.
44815         * lib/unistdio/u8-printf-parse.c: Likewise.
44816         * lib/unistdio/u8-snprintf.c: Likewise.
44817         * lib/unistdio/u8-sprintf.c: Likewise.
44818         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
44819         * lib/unistdio/u8-u8-asprintf.c: Likewise.
44820         * lib/unistdio/u8-u8-snprintf.c: Likewise.
44821         * lib/unistdio/u8-u8-sprintf.c: Likewise.
44822         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
44823         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
44824         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
44825         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
44826         * lib/unistdio/u8-vasnprintf.c: Likewise.
44827         * lib/unistdio/u8-vasprintf.c: Likewise.
44828         * lib/unistdio/u8-vsnprintf.c: Likewise.
44829         * lib/unistdio/u8-vsprintf.c: Likewise.
44830         * lib/unistdio/ulc-asnprintf.c: Likewise.
44831         * lib/unistdio/ulc-asprintf.c: Likewise.
44832         * lib/unistdio/ulc-printf-parse.c: Likewise.
44833         * lib/unistdio/ulc-snprintf.c: Likewise.
44834         * lib/unistdio/ulc-sprintf.c: Likewise.
44835         * lib/unistdio/ulc-vasnprintf.c: Likewise.
44836         * lib/unistdio/ulc-vasprintf.c: Likewise.
44837         * lib/unistdio/ulc-vsnprintf.c: Likewise.
44838         * lib/unistdio/ulc-vsprintf.c: Likewise.
44839         * lib/unistr.h: Likewise.
44840         * lib/unistr/u-cpy-alloc.h: Likewise.
44841         * lib/unistr/u-cpy.h: Likewise.
44842         * lib/unistr/u-endswith.h: Likewise.
44843         * lib/unistr/u-move.h: Likewise.
44844         * lib/unistr/u-set.h: Likewise.
44845         * lib/unistr/u-startswith.h: Likewise.
44846         * lib/unistr/u-stpcpy.h: Likewise.
44847         * lib/unistr/u-stpncpy.h: Likewise.
44848         * lib/unistr/u-strcat.h: Likewise.
44849         * lib/unistr/u-strcpy.h: Likewise.
44850         * lib/unistr/u-strcspn.h: Likewise.
44851         * lib/unistr/u-strdup.h: Likewise.
44852         * lib/unistr/u-strlen.h: Likewise.
44853         * lib/unistr/u-strncat.h: Likewise.
44854         * lib/unistr/u-strncpy.h: Likewise.
44855         * lib/unistr/u-strnlen.h: Likewise.
44856         * lib/unistr/u-strpbrk.h: Likewise.
44857         * lib/unistr/u-strspn.h: Likewise.
44858         * lib/unistr/u-strstr.h: Likewise.
44859         * lib/unistr/u-strtok.h: Likewise.
44860         * lib/unistr/u16-check.c: Likewise.
44861         * lib/unistr/u16-chr.c: Likewise.
44862         * lib/unistr/u16-cmp.c: Likewise.
44863         * lib/unistr/u16-cpy-alloc.c: Likewise.
44864         * lib/unistr/u16-cpy.c: Likewise.
44865         * lib/unistr/u16-endswith.c: Likewise.
44866         * lib/unistr/u16-mblen.c: Likewise.
44867         * lib/unistr/u16-mbsnlen.c: Likewise.
44868         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44869         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44870         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44871         * lib/unistr/u16-mbtouc.c: Likewise.
44872         * lib/unistr/u16-mbtoucr.c: Likewise.
44873         * lib/unistr/u16-move.c: Likewise.
44874         * lib/unistr/u16-next.c: Likewise.
44875         * lib/unistr/u16-prev.c: Likewise.
44876         * lib/unistr/u16-set.c: Likewise.
44877         * lib/unistr/u16-startswith.c: Likewise.
44878         * lib/unistr/u16-stpcpy.c: Likewise.
44879         * lib/unistr/u16-stpncpy.c: Likewise.
44880         * lib/unistr/u16-strcat.c: Likewise.
44881         * lib/unistr/u16-strchr.c: Likewise.
44882         * lib/unistr/u16-strcmp.c: Likewise.
44883         * lib/unistr/u16-strcpy.c: Likewise.
44884         * lib/unistr/u16-strcspn.c: Likewise.
44885         * lib/unistr/u16-strdup.c: Likewise.
44886         * lib/unistr/u16-strlen.c: Likewise.
44887         * lib/unistr/u16-strmblen.c: Likewise.
44888         * lib/unistr/u16-strmbtouc.c: Likewise.
44889         * lib/unistr/u16-strncat.c: Likewise.
44890         * lib/unistr/u16-strncmp.c: Likewise.
44891         * lib/unistr/u16-strncpy.c: Likewise.
44892         * lib/unistr/u16-strnlen.c: Likewise.
44893         * lib/unistr/u16-strpbrk.c: Likewise.
44894         * lib/unistr/u16-strrchr.c: Likewise.
44895         * lib/unistr/u16-strspn.c: Likewise.
44896         * lib/unistr/u16-strstr.c: Likewise.
44897         * lib/unistr/u16-strtok.c: Likewise.
44898         * lib/unistr/u16-to-u32.c: Likewise.
44899         * lib/unistr/u16-to-u8.c: Likewise.
44900         * lib/unistr/u16-uctomb-aux.c: Likewise.
44901         * lib/unistr/u16-uctomb.c: Likewise.
44902         * lib/unistr/u32-check.c: Likewise.
44903         * lib/unistr/u32-chr.c: Likewise.
44904         * lib/unistr/u32-cmp.c: Likewise.
44905         * lib/unistr/u32-cpy-alloc.c: Likewise.
44906         * lib/unistr/u32-cpy.c: Likewise.
44907         * lib/unistr/u32-endswith.c: Likewise.
44908         * lib/unistr/u32-mblen.c: Likewise.
44909         * lib/unistr/u32-mbsnlen.c: Likewise.
44910         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44911         * lib/unistr/u32-mbtouc.c: Likewise.
44912         * lib/unistr/u32-mbtoucr.c: Likewise.
44913         * lib/unistr/u32-move.c: Likewise.
44914         * lib/unistr/u32-next.c: Likewise.
44915         * lib/unistr/u32-prev.c: Likewise.
44916         * lib/unistr/u32-set.c: Likewise.
44917         * lib/unistr/u32-startswith.c: Likewise.
44918         * lib/unistr/u32-stpcpy.c: Likewise.
44919         * lib/unistr/u32-stpncpy.c: Likewise.
44920         * lib/unistr/u32-strcat.c: Likewise.
44921         * lib/unistr/u32-strchr.c: Likewise.
44922         * lib/unistr/u32-strcmp.c: Likewise.
44923         * lib/unistr/u32-strcpy.c: Likewise.
44924         * lib/unistr/u32-strcspn.c: Likewise.
44925         * lib/unistr/u32-strdup.c: Likewise.
44926         * lib/unistr/u32-strlen.c: Likewise.
44927         * lib/unistr/u32-strmblen.c: Likewise.
44928         * lib/unistr/u32-strmbtouc.c: Likewise.
44929         * lib/unistr/u32-strncat.c: Likewise.
44930         * lib/unistr/u32-strncmp.c: Likewise.
44931         * lib/unistr/u32-strncpy.c: Likewise.
44932         * lib/unistr/u32-strnlen.c: Likewise.
44933         * lib/unistr/u32-strpbrk.c: Likewise.
44934         * lib/unistr/u32-strrchr.c: Likewise.
44935         * lib/unistr/u32-strspn.c: Likewise.
44936         * lib/unistr/u32-strstr.c: Likewise.
44937         * lib/unistr/u32-strtok.c: Likewise.
44938         * lib/unistr/u32-to-u16.c: Likewise.
44939         * lib/unistr/u32-to-u8.c: Likewise.
44940         * lib/unistr/u32-uctomb.c: Likewise.
44941         * lib/unistr/u8-check.c: Likewise.
44942         * lib/unistr/u8-chr.c: Likewise.
44943         * lib/unistr/u8-cmp.c: Likewise.
44944         * lib/unistr/u8-cpy-alloc.c: Likewise.
44945         * lib/unistr/u8-cpy.c: Likewise.
44946         * lib/unistr/u8-endswith.c: Likewise.
44947         * lib/unistr/u8-mblen.c: Likewise.
44948         * lib/unistr/u8-mbsnlen.c: Likewise.
44949         * lib/unistr/u8-mbtouc-aux.c: Likewise.
44950         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44951         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44952         * lib/unistr/u8-mbtouc.c: Likewise.
44953         * lib/unistr/u8-mbtoucr.c: Likewise.
44954         * lib/unistr/u8-move.c: Likewise.
44955         * lib/unistr/u8-next.c: Likewise.
44956         * lib/unistr/u8-prev.c: Likewise.
44957         * lib/unistr/u8-set.c: Likewise.
44958         * lib/unistr/u8-startswith.c: Likewise.
44959         * lib/unistr/u8-stpcpy.c: Likewise.
44960         * lib/unistr/u8-stpncpy.c: Likewise.
44961         * lib/unistr/u8-strcat.c: Likewise.
44962         * lib/unistr/u8-strchr.c: Likewise.
44963         * lib/unistr/u8-strcmp.c: Likewise.
44964         * lib/unistr/u8-strcpy.c: Likewise.
44965         * lib/unistr/u8-strcspn.c: Likewise.
44966         * lib/unistr/u8-strdup.c: Likewise.
44967         * lib/unistr/u8-strlen.c: Likewise.
44968         * lib/unistr/u8-strmblen.c: Likewise.
44969         * lib/unistr/u8-strmbtouc.c: Likewise.
44970         * lib/unistr/u8-strncat.c: Likewise.
44971         * lib/unistr/u8-strncmp.c: Likewise.
44972         * lib/unistr/u8-strncpy.c: Likewise.
44973         * lib/unistr/u8-strnlen.c: Likewise.
44974         * lib/unistr/u8-strpbrk.c: Likewise.
44975         * lib/unistr/u8-strrchr.c: Likewise.
44976         * lib/unistr/u8-strspn.c: Likewise.
44977         * lib/unistr/u8-strstr.c: Likewise.
44978         * lib/unistr/u8-strtok.c: Likewise.
44979         * lib/unistr/u8-to-u16.c: Likewise.
44980         * lib/unistr/u8-to-u32.c: Likewise.
44981         * lib/unistr/u8-uctomb-aux.c: Likewise.
44982         * lib/unistr/u8-uctomb.c: Likewise.
44983         * lib/unitypes.h: Likewise.
44984         * lib/uniwidth.h: Likewise.
44985         * lib/uniwidth/cjk.h: Likewise.
44986         * lib/uniwidth/u16-strwidth.c: Likewise.
44987         * lib/uniwidth/u16-width.c: Likewise.
44988         * lib/uniwidth/u32-strwidth.c: Likewise.
44989         * lib/uniwidth/u32-width.c: Likewise.
44990         * lib/uniwidth/u8-strwidth.c: Likewise.
44991         * lib/uniwidth/u8-width.c: Likewise.
44992         * lib/uniwidth/width.c: Likewise.
44993
44994 2007-10-07  Bruno Haible  <bruno@clisp.org>
44995
44996         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
44997         The file is still under LGPL (see modules/inttypes).
44998
44999 2007-10-06  Bruno Haible  <bruno@clisp.org>
45000
45001         * modules/trunc (Dependencies): Add 'extensions'.
45002         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
45003         Reported by Ben Pfaff <blp@gnu.org>.
45004
45005 2007-10-06  Bruno Haible  <bruno@clisp.org>
45006
45007         * modules/freopen-tests: New file.
45008         * tests/test-freopen.c: New file.
45009
45010         * modules/fopen-tests: New file.
45011         * tests/test-fopen.c: New file.
45012
45013         * modules/fopen: New file.
45014         * lib/fopen.c: New file.
45015         * m4/fopen.m4: New file.
45016         * modules/freopen: New file.
45017         * lib/freopen.c: New file.
45018         * m4/freopen.m4: New file.
45019         * lib/stdio.in.h (fopen, freopen): New declarations.
45020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
45021         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45022         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
45023         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45024         * doc/functions/fopen.texi: Mention the 'fopen' module.
45025         * doc/functions/freopen.texi: Mention the 'freopen' module.
45026
45027 2007-10-06  Bruno Haible  <bruno@clisp.org>
45028
45029         * modules/open-tests: New file.
45030         * tests/test-open.c: New file.
45031
45032         * modules/open: New file.
45033         * lib/open.c: New file.
45034         * m4/open.m4: New file.
45035         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
45036         lib/open.c does.
45037         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
45038         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
45039         macros.
45040         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
45041         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
45042         REPLACE_OPEN.
45043         * doc/functions/open.texi: Mention the 'open' module.
45044
45045 2007-10-04  Bruno Haible  <bruno@clisp.org>
45046
45047         * modules/ceill-tests: New file.
45048         * tests/test-ceill.c: New file.
45049
45050         * modules/ceill: New file.
45051         * lib/ceill.c: Replace entire file.
45052         * m4/ceill.m4: New file.
45053         * lib/math.in.h (ceill): Replace declaration.
45054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
45055         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
45056         * doc/functions/ceill.texi: Mention the 'ceill' module.
45057         * modules/mathl (Files): Remove lib/ceill.c.
45058         (Depends-on): Add ceill.
45059
45060 2007-10-04  Bruno Haible  <bruno@clisp.org>
45061
45062         * modules/ceilf-tests: New file.
45063         * tests/test-ceilf.c: New file.
45064
45065         * modules/ceilf: New file.
45066         * lib/ceil.c: New file.
45067         * lib/ceilf.c: New file.
45068         * m4/ceilf.m4: New file.
45069         * lib/math.in.h (ceilf): New declaration.
45070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
45071         HAVE_DECL_CEILF.
45072         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
45073         HAVE_DECL_CEILF.
45074         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
45075
45076 2007-10-04  Bruno Haible  <bruno@clisp.org>
45077
45078         * modules/floorl-tests: New file.
45079         * tests/test-floorl.c: New file.
45080
45081         * modules/floorl: New file.
45082         * lib/floorl.c: Replace entire file.
45083         * m4/floorl.m4: New file.
45084         * lib/math.in.h (floorl): Replace declaration.
45085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
45086         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
45087         * doc/functions/floorl.texi: Mention the 'floorl' module.
45088         * modules/mathl (Files): Remove lib/floorl.c.
45089         (Depends-on): Add floorl.
45090
45091 2007-10-04  Bruno Haible  <bruno@clisp.org>
45092
45093         * modules/floorf-tests: New file.
45094         * tests/test-floorf.c: New file.
45095
45096         * modules/floorf: New file.
45097         * lib/floor.c: New file.
45098         * lib/floorf.c: New file.
45099         * m4/floorf.m4: New file.
45100         * lib/math.in.h (floorf): New declaration.
45101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
45102         HAVE_DECL_FLOORF.
45103         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
45104         HAVE_DECL_FLOORF.
45105         * doc/functions/floorf.texi: Mention the 'floorf' module.
45106
45107 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
45108             Bruno Haible  <bruno@clisp.org>
45109
45110         Advertise for the Git server instead of the CVS server.
45111         * doc/gnulib-intro.texi (Steady Development): Mention the Git
45112         repository instead of the CVS one.
45113         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
45114         about all VCS systems generically.
45115         * doc/gnulib.texi (Introduction): Capitalize `Git'.
45116
45117 2007-10-04  Bruno Haible  <bruno@clisp.org>
45118
45119         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
45120         means.
45121         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
45122
45123 2007-10-04  Bruno Haible  <bruno@clisp.org>
45124
45125         * modules/truncl-tests: New file.
45126         * tests/test-truncl.c: New file.
45127
45128         * modules/truncl: New file.
45129         * lib/truncl.c: New file.
45130         * m4/truncl.m4: New file.
45131         * lib/math.in.h (truncl): New declaration.
45132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
45133         HAVE_DECL_TRUNCL.
45134         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
45135         HAVE_DECL_TRUNCL.
45136         * doc/functions/truncl.texi: Mention the 'truncl' module.
45137
45138 2007-10-04  Bruno Haible  <bruno@clisp.org>
45139
45140         * modules/truncf-tests: New file.
45141         * tests/test-truncf.c: New file.
45142
45143         * modules/truncf: New file.
45144         * lib/trunc.c: Make paramerizable through USE_* macros.
45145         * lib/truncf.c: New file.
45146         * m4/truncf.m4: New file.
45147         * lib/math.in.h (truncf): New declaration.
45148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
45149         HAVE_DECL_TRUNCF.
45150         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
45151         HAVE_DECL_TRUNCF.
45152         * doc/functions/truncf.texi: Mention the 'truncf' module.
45153
45154 2007-10-03  Bruno Haible  <bruno@clisp.org>
45155
45156         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45157         augmentation also for tests modules.
45158         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45159         * modules/atexit-tests (Makefile.am): Likewise.
45160         * modules/binary-io-tests (Makefile.am): Likewise.
45161         * modules/c-strcase-tests (Makefile.am): Likewise.
45162         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45163         * modules/canonicalize-tests (Makefile.am): Likewise.
45164         * modules/closein-tests (Makefile.am): Likewise.
45165         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45166         * modules/freadahead-tests (Makefile.am): Likewise.
45167         * modules/fseek-tests (Makefile.am): Likewise.
45168         * modules/fseeko-tests (Makefile.am): Likewise.
45169         * modules/ftell-tests (Makefile.am): Likewise.
45170         * modules/ftello-tests (Makefile.am): Likewise.
45171         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45172         * modules/isnanl-tests (Makefile.am): Likewise.
45173         * modules/lseek-tests (Makefile.am): Likewise.
45174         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45175         * modules/mbscasestr-tests (Makefile.am): Likewise.
45176         * modules/mbschr-tests (Makefile.am): Likewise.
45177         * modules/mbscspn-tests (Makefile.am): Likewise.
45178         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45179         * modules/mbspbrk-tests (Makefile.am): Likewise.
45180         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45181         * modules/mbsrchr-tests (Makefile.am): Likewise.
45182         * modules/mbsspn-tests (Makefile.am): Likewise.
45183         * modules/mbsstr-tests (Makefile.am): Likewise.
45184         * modules/printf-posix-tests (Makefile.am): Likewise.
45185         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45186         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45187         * modules/tsearch-tests (Makefile.am): Likewise.
45188         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45189         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45190         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45191         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45192         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45193         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45194         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45195         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45196         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45197         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45198         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45199         * modules/xstrtol-tests (Makefile.am): Likewise.
45200         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45201         * modules/yesno-tests (Makefile.am): Likewise.
45202
45203 2007-10-03  Bruno Haible  <bruno@clisp.org>
45204
45205         * modules/trunc-tests: New file.
45206         * tests/test-trunc.c: New file.
45207
45208         * modules/trunc: New file.
45209         * lib/trunc.c: New file.
45210         * m4/trunc.m4: New file.
45211         * lib/math.in.h (trunc): New declaration.
45212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45213         HAVE_DECL_TRUNC.
45214         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45215         HAVE_DECL_TRUNC.
45216         * doc/functions/trunc.texi: Mention the 'trunc' module.
45217
45218 2007-10-03  Bruno Haible  <bruno@clisp.org>
45219
45220         * tests/test-fpending.c: New file, mostly copied
45221         from coreutils/lib/t-fpending.c.
45222         * modules/fpending-tests: New file.
45223
45224 2007-10-03  Bruno Haible  <bruno@clisp.org>
45225
45226         Port the stdio extensions to QNX (untested).
45227         * lib/fseterr.c (fseterr): Add support for QNX.
45228         * lib/fbufmode.c (fbufmode): Likewise.
45229         * lib/freadable.c (freadable): Likewise.
45230         * lib/fwritable.c (fwritable): Likewise.
45231         * lib/freading.c (freading): Likewise.
45232         * lib/fwriting.c (fwriting): Likewise.
45233         * lib/freadahead.c (freadahed): Likewise.
45234         * lib/fpurge.c (fpurge): Likewise.
45235         * lib/fseeko.c (rpl_fseeko): Likewise.
45236
45237 2007-10-03  Bruno Haible  <bruno@clisp.org>
45238             Jim Meyering  <jim@meyering.net>
45239             Eric Blake  <ebb9@byu.net>
45240
45241         * doc/relocatable.texi: Use @command instead of @program.
45242
45243 2007-10-02  Jim Meyering  <jim@meyering.net>
45244
45245         Perform one more "_.h" -> ".in.h" substitution.
45246         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45247         instead of unistd_.h here, too.
45248
45249 2007-10-01  Bruno Haible  <bruno@clisp.org>
45250
45251         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45252         Needed for the alloca-opt module.
45253
45254 2007-09-30  Bruno Haible  <bruno@clisp.org>
45255
45256         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45257         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45258         alloca_.h.
45259         * lib/argz.in.h: Renamed from lib/argz_.h.
45260         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45261         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45262         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45263         byteswap_.h.
45264         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45265         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45266         dirent_.h.
45267         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45268         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45269         fcntl_.h.
45270         * lib/float.in.h: Renamed from lib/float_.h.
45271         * modules/float (Files, Makefile.am): Use float.in.h instead of
45272         float_.h.
45273         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45274         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45275         fnmatch_.h.
45276         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45277         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45278         getopt_.h.
45279         * lib/glob.in.h: Renamed from lib/glob_.h.
45280         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45281         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45282         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45283         iconv_.h.
45284         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45285         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45286         inttypes_.h.
45287         * lib/locale.in.h: Renamed from lib/locale_.h.
45288         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45289         locale_.h.
45290         * lib/math.in.h: Renamed from lib/math_.h.
45291         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45292         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45293         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45294         of netinet_in_.h. Add dependency.
45295         * lib/poll.in.h: Renamed from lib/poll_.h.
45296         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45297         * lib/search.in.h: Renamed from lib/search_.h.
45298         * modules/search (Files, Makefile.am): Use search.in.h instead of
45299         search_.h.
45300         * lib/signal.in.h: Renamed from lib/signal_.h.
45301         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45302         _signal.h.
45303         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45304         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45305         stdbool_.h.
45306         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45307         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45308         stdint_.h.
45309         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45310         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45311         stdio_.h.
45312         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45313         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45314         stdlib_.h.
45315         * lib/string.in.h: Renamed from lib/string_.h.
45316         * modules/string (Files, Makefile.am): Use string.in.h instead of
45317         string_.h.
45318         * doc/gnulib-tool.texi (Initial import): Update.
45319         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45320         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45321         of sys_select_.h. Add dependency.
45322         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45323         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45324         of sys_socket_.h.
45325         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45326         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45327         sys_stat_.h.
45328         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45329         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45330         sys_time_.h.
45331         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45332         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45333         sysexits_.h.
45334         * lib/time.in.h: Renamed from lib/time_.h.
45335         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45336         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45337         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45338         unistd_.h.
45339         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45340         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45341         wchar_.h.
45342         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45343         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45344         wctype_.h.
45345         * build-aux/bootstrap (slurp): Update.
45346         * lib/.cppi-disable: Update.
45347
45348 2007-09-30  Bruno Haible  <bruno@clisp.org>
45349
45350         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45351         Needed on BeOS.
45352
45353 2007-09-30  Bruno Haible  <bruno@clisp.org>
45354
45355         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45356
45357 2007-09-29  Bruno Haible  <bruno@clisp.org>
45358
45359         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45360
45361 2007-09-29  Bruno Haible  <bruno@clisp.org>
45362
45363         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45364         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45365         * build-aux/install-reloc: Compile also areadlink.c.
45366         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45367
45368 2007-09-29  Bruno Haible  <bruno@clisp.org>
45369
45370         * gnulib-tool (func_emit_initmacro_done): Indentation.
45371
45372 2007-09-29  Bruno Haible  <bruno@clisp.org>
45373
45374         * README: Add CVS checkout update instructions.
45375         Info from Bob Proulx <bob@proulx.com>.
45376
45377 2007-09-28  Eric Blake  <ebb9@byu.net>
45378
45379         Provide move-if-change.
45380         * build-aux/move-if-change: New file, based on best practice
45381         rather than any canonical upstream location.
45382
45383 2007-09-28  Jim Meyering  <jim@meyering.net>
45384
45385         Fix canonicalize loop-detection corner case.
45386         Do not attempt to stat the symlink values stored via seen_triple.
45387         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45388         on linux-2.6.18, (but not 2.6.22).
45389         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45390         triple_compare.  The former compares dev,ino,filename, while the latter
45391         would actually stat dirname(filename) when dev and ino were equal.
45392         * lib/hash-triple.c: Install <string.h>.
45393         (STREQ): Define.
45394         (triple_compare_ino_str): New function.
45395         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45396
45397 2007-09-28  Eric Blake  <ebb9@byu.net>
45398
45399         Enforce that AC_REPLACE_FUNCS files exist.
45400         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45401         override check for typos.
45402
45403         Fix test-closein on Solaris 10.
45404         * tests/test-closein.c (main): Don't assume stdin can be inherited
45405         closed on all systems.
45406         * tests/test-closein.sh: Likewise.
45407         Reported by Piotr Tarnowski.
45408
45409 2007-09-28  Jim Meyering  <jim@meyering.net>
45410
45411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45412
45413 2007-09-27  Jim Meyering  <jim@meyering.net>
45414
45415         canonicalize: Avoid a false-positive cycle failure.
45416         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45417         Sort.  Remove cycle-check.
45418         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45419         not cycle-check.h.
45420         (seen_triple): New function.
45421         (canonicalize_filename_mode): Use it instead of cycle-check.
45422         * tests/test-canonicalize.c: Add a test for this bug.
45423         * tests/test-canonicalize.sh: Set up and run the test.
45424
45425         New module, file-set, from coreutils.
45426         * modules/file-set: Define it.
45427         * lib/file-set.c, lib/file-set.h: Implement.
45428
45429         New module, hash-triple, from coreutils.
45430         * modules/hash-triple: Define it.
45431         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45432
45433 2007-09-25  Eric Blake  <ebb9@byu.net>
45434
45435         Fix strerror on Interix.
45436         * lib/string_.h (strerror): Declare replacement.
45437         * doc/functions/strerror.texi (strerror): Document the Interix
45438         shortcoming.
45439         * modules/string (Makefile.am): Support new hooks.
45440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45441         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45442         gl_FUNC_STRERROR_SEPARATE.
45443         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45444         * lib/strerror.c (rpl_strerror): Provide replacement.
45445         * modules/strerror (Depends-on): Add string.
45446         (configure.ac): Detect use of module.
45447         * tests/test-strerror.c: New file.
45448         * modules/strerror-tests: New test module.
45449         * modules/argp (Depends-on): Add strerror.
45450         * modules/error (Depends-on): Likewise.
45451         Reported by Martin Koeppe.
45452
45453 2007-09-24  Bruno Haible  <bruno@clisp.org>
45454
45455         * README: Update git instructions.
45456
45457 2007-09-24  Eric Blake  <ebb9@byu.net>
45458
45459         Revert fpending breakage from 2007-09-08.
45460         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45461         __fpending.c.
45462
45463 2007-09-24  Jim Meyering  <jim@meyering.net>
45464
45465         filenamecat.c: Add a test.
45466         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45467         showing how the function works when DIR is the empty string.
45468
45469 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45470
45471         * tests/test-canonicalize.sh: Turn on executable bit.
45472
45473 2007-09-19  Eric Blake  <ebb9@byu.net>
45474
45475         * README: Update CVS instructions.
45476
45477 2007-09-18  Bruno Haible  <bruno@clisp.org>
45478
45479         * modules/areadlink: New file.
45480         * lib/areadlink.h (areadlink): New declaration.
45481         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45482
45483 2007-09-17  Jim Meyering  <jim@meyering.net>
45484
45485         * lib/savewd.c (ESTALE) [!defined]: Define.
45486         Reported to be required on Interix by Martin Koeppe.
45487
45488 2007-09-17  Bruno Haible  <bruno@clisp.org>
45489
45490         * gnulib-tool (func_version): Use $version.
45491
45492 2007-09-16  Bruno Haible  <bruno@clisp.org>
45493
45494         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45495         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45496         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45497         Reported by Greg Schafer <gschafer@zip.com.au>.
45498
45499 2007-09-15  Bruno Haible  <bruno@clisp.org>
45500
45501         * gnulib-tool (sed): Try a little harder to make bash understand the
45502         alias.
45503         Reported by Bruce Korb <bruce.korb@gmail.com>.
45504
45505 2007-09-13  Eric Blake  <ebb9@byu.net>
45506
45507         * ChangeLog: Remove conflict markers.
45508
45509 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45510
45511         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45512         Reported by Bruno Haible <bruno@clisp.org>.
45513
45514 2007-09-12  Bruno Haible  <bruno@clisp.org>
45515
45516         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45517         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45518         is not defined.
45519
45520 2007-09-12  Eric Blake  <ebb9@byu.net>
45521
45522         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45523         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45524         Autoconf definition.
45525         * modules/euidaccess (Depends-on): Add extensions, for
45526         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45527         * modules/fnmatch (Depends-on): Likewise.
45528         * modules/getaddrinfo (Depends-on): Likewise.
45529         * modules/getdelim (Depends-on): Likewise.
45530         * modules/getline (Depends-on): Likewise.
45531         * modules/getsubopt (Depends-on): Likewise.
45532         * modules/gettext (Depends-on): Likewise.
45533         * modules/group-member (Depends-on): Likewise.
45534         * modules/mbchar (Depends-on): Likewise.
45535         * modules/memmem (Depends-on): Likewise.
45536         * modules/mempcpy (Depends-on): Likewise.
45537         * modules/memrchr (Depends-on): Likewise.
45538         * modules/pagealign_alloc (Depends-on): Likewise.
45539         * modules/readutmp (Depends-on): Likewise.
45540         * modules/stpcpy (Depends-on): Likewise.
45541         * modules/stpncpy (Depends-on): Likewise.
45542         * modules/strchrnul (Depends-on): Likewise.
45543         * modules/strndup (Depends-on): Likewise.
45544         * modules/strsep (Depends-on): Likewise.
45545         * modules/strverscmp (Depends-on): Likewise.
45546         * modules/vasprintf (Depends-on): Likewise.
45547         * modules/wcwidth (Depends-on): Likewise.
45548         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45549         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45550         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45551         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45552         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45553         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45554         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45555         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45556         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45557         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45558         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45559         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45560         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45561         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45562         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45563         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45564         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45565         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45566         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45567         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45568         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45569         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45570         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45571         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45572         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45574         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45575         so that lock.m4 can be used in gettext without extensions module.
45576
45577 2007-09-11  Bruno Haible  <bruno@clisp.org>
45578
45579         * m4/isc-posix.m4: Remove file.
45580         Suggested by Eric Blake.
45581
45582 2007-09-11  Eric Blake  <ebb9@byu.net>
45583
45584         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45585
45586 2007-09-10  Bruno Haible  <bruno@clisp.org>
45587
45588         * posix-modules: Fix typo in error message.
45589         Reported by Matt <mkraai@beckman.com>.
45590
45591 2007-09-09  Bruno Haible  <bruno@clisp.org>
45592
45593         * doc/functions/getdelim.texi: Update list of platforms lacking the
45594         function.
45595         * doc/functions/getline.texi: Likewise.
45596
45597 2007-09-09  Jim Meyering  <jim@meyering.net>
45598
45599         * lib/hash.c (hash_initialize): Detect calloc failure.
45600         Reported by Bruno Haible.
45601
45602 2007-09-09  Bruno Haible  <bruno@clisp.org>
45603
45604         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
45605         malloc or realloc fails.
45606
45607 2007-09-09  Bruno Haible  <bruno@clisp.org>
45608
45609         * modules/getcwd (Depends-on): Add malloc-posix.
45610         * modules/glob (Depends-on): Likewise.
45611         * modules/putenv (Depends-on): Likewise.
45612         * modules/strdup (Depends-on): Likewise.
45613         * modules/getdelim (Depends-on): Add realloc-posix.
45614         * modules/read-file (Depends-on): Likewise.
45615
45616 2007-09-09  Bruno Haible  <bruno@clisp.org>
45617
45618         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
45619         (gl_FUNC_MALLOC_POSIX): Require it.
45620         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
45621         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
45622         * modules/realloc (Files): Add m4/malloc.m4.
45623         * modules/calloc (Files): Likewise.
45624
45625 2007-09-09  Bruno Haible  <bruno@clisp.org>
45626
45627         * modules/malloc-posix: New file.
45628         * modules/malloc (Depends-on): Add malloc-posix.
45629         * lib/malloc.c: Include errno.h.
45630         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
45631         and a POSIX-compatible malloc into a single function. Set ENOMEM
45632         when returning NULL.
45633         * m4/malloc.m4: New file.
45634         * doc/functions/malloc.texi: Mention the malloc-posix module.
45635         * lib/stdlib_.h (malloc): New declaration.
45636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45637         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
45638         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
45639         and HAVE_MALLOC_POSIX.
45640
45641 2007-09-09  Bruno Haible  <bruno@clisp.org>
45642
45643         * modules/realloc-posix: New file.
45644         * modules/realloc (Depends-on): Add realloc-posix.
45645         * lib/realloc.c: Include errno.h.
45646         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
45647         and a POSIX-compatible realloc into a single function. Set ENOMEM
45648         when returning NULL.
45649         * m4/realloc.m4: New file.
45650         * doc/functions/realloc.texi: Mention the realloc-posix module.
45651         * lib/stdlib_.h (realloc): New declaration.
45652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45653         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
45654         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
45655         and HAVE_REALLOC_POSIX.
45656
45657 2007-09-09  Bruno Haible  <bruno@clisp.org>
45658
45659         * modules/calloc-posix: New file.
45660         * modules/calloc (Depends-on): Add calloc-posix.
45661         * lib/calloc.c: Include errno.h.
45662         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
45663         and a POSIX-compatible calloc into a single function. Set ENOMEM
45664         when returning NULL.
45665         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
45666         * doc/functions/calloc.texi: Mention the calloc-posix module.
45667         * lib/stdlib_.h (calloc): New declaration.
45668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45669         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
45670         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
45671         and HAVE_CALLOC_POSIX.
45672
45673 2007-09-09  Bruno Haible  <bruno@clisp.org>
45674
45675         Allow for modules to show an arbitrary notice.
45676         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
45677         * gnulib-tool: New option --extract-notice.
45678         (func_usage): Document it.
45679         (sed_extract_prog): Update.
45680         (func_get_notice): New function.
45681         (func_modules_notice): New function.
45682         (func_import, func_create_testdir): Invoke it.
45683         Suggested by Jim Meyering.
45684
45685 2007-09-09  Bruno Haible  <bruno@clisp.org>
45686
45687         * gnulib-tool: New options --verbose, --quiet.
45688         (func_usage): Document them.
45689         (verbose): New variable.
45690         (func_execute_command): New function.
45691         (func_import): Don't show the module list and the file list if
45692         $verbose < 0.
45693         (func_create_testdir): Likewise. Use func_execute_command.
45694         (func_create_megatestdir): Use func_execute_command.
45695
45696 2007-09-08  Bruno Haible  <bruno@clisp.org>
45697
45698         * gnulib-tool (func_import): Prefer rsync over wget when available,
45699         for fetching the PO files.
45700
45701 2007-09-08  Bruno Haible  <bruno@clisp.org>
45702
45703         * posix-modules: New file. Portions copied from gnulib-tool.
45704         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
45705
45706 2007-09-08  Jim Meyering  <jim@meyering.net>
45707
45708         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
45709         * lib/fpending.h: Rename from __fpending.h.
45710         * lib/fpending.c: Rename from __fpending.c.
45711         Include "fpending.h", not "__fpending.h".
45712         * lib/__fpending.h, lib/__fpending.c: Remove files.
45713         * modules/fpending (Files): Reflect new file names.
45714         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
45715
45716 2007-09-08  Bruno Haible  <bruno@clisp.org>
45717
45718         * m4/inttypes-h.m4: Remove stub file.
45719
45720 2007-09-07  Simon Josefsson  <simon@josefsson.org>
45721
45722         * doc/headers/stdint.texi: Discuss #include_next issue.
45723
45724 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45725
45726         * build-aux/bootstrap: Remove obsolete comment about wget --help.
45727
45728 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45729
45730         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
45731         in variable name.
45732
45733 2007-09-03  Jim Meyering  <jim@meyering.net>
45734
45735         New module: git-version-gen.
45736         * modules/git-version-gen: New file.
45737
45738         Import changes from coreutils for bootstrap script.
45739
45740         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
45741
45742         bootstrap: uses rsync to download the .po files
45743         * build-aux/bootstrap (po_download_command_format): New global.
45744         (download_po_files): Use rsync.
45745         (update_po_files): Don't remove .po files after download,
45746         so future rsync runs can take advantage of the copies.
45747
45748         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
45749
45750         Solve the unnecessary-.po-file-regeneration problem once and for all.
45751         * build-aux/bootstrap (download_po_files): New function, renamed from
45752         get_translations.  Now, downloads, but doesn't update LINGUAS.
45753         (update_po_files): New function.
45754
45755         bootstrap: Ignore more.
45756         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
45757         uniwidth to e.g., lib/.gitignore.
45758         (slurp): Handle the sys_stat_.h -> sys mapping, too.
45759
45760         * build-aux/bootstrap: New setting: vc_ignore.
45761         (insert_sorted_if_absent): Create $file if absent.
45762         Adapt to new, possibly empty, list: $vc_ignore.
45763
45764         bootstrap: generate more ignorable names
45765         * build-aux/bootstrap (slurp): When generating ignorable names,
45766         also map .sin to .sed, .gperf to .c, and .y to .c.
45767
45768 2007-09-03  Jim Meyering  <jim@meyering.net>
45769
45770         * build-aux/git-version-gen: New file, from coreutils.  For details, see
45771         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
45772
45773 2007-09-02  Bruno Haible  <bruno@clisp.org>
45774
45775         Fix mis-recognition of 'mcs' on QNX 6.
45776         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
45777         output contains the string "Mono".
45778         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
45779         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
45780
45781 2007-09-01  Bruno Haible  <bruno@clisp.org>
45782
45783         Fix collision between uniwidth/* and linebreak modules.
45784         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
45785         u32_width): Remove declarations.
45786         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
45787         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
45788         streq3, streq2, streq1, streq0): Remove functions.
45789         (STREQ): Remove macro.
45790         (is_cjk_encoding): Remove function.
45791         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
45792         (uc_width, u8_width, u16_width, u32_width): Remove functions.
45793         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
45794         * NEWS: Document the change.
45795
45796 2007-09-01  Bruno Haible  <bruno@clisp.org>
45797
45798         * lib/streq.h: Add double-inclusion guard.
45799
45800 2007-09-01  Karl Berry  <karl@gnu.org>
45801
45802         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
45803
45804 2007-08-28  Jim Meyering  <jim@meyering.net>
45805
45806         Rename mreadlink_with_size to areadlink_with_size.
45807         * NEWS: Document the change.
45808         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
45809         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
45810         * lib/mreadlink.h: Rename this to...
45811         * lib/areadlink.h: ...this.
45812         * modules/mreadlink-with-size: Rename this to...
45813         * modules/areadlink-with-size: ...this.
45814         * lib/canonicalize.c: Reflect the renaming.
45815         * modules/canonicalize: Likewise.
45816
45817 2007-08-26  Bruno Haible  <bruno@clisp.org>
45818
45819         * gnulib-tool (func_import): When deciding which files to remove,
45820         consider also dangling symbolic links.
45821         Reported by Eric Blake.
45822
45823 2007-08-26  Bruno Haible  <bruno@clisp.org>
45824
45825         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
45826
45827 2007-08-23  Simon Josefsson  <simon@josefsson.org>
45828
45829         * lib/readline.c: Don't include getline.h, the prototype is now
45830         found in stdio.h.
45831
45832 2007-08-23  Jim Meyering  <jim@meyering.net>
45833
45834         Getdelim touchup.
45835         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
45836         around the funlockfile call, since funlockfile never sets errno.
45837         Don't set errno upon failed realloc.
45838
45839 2007-08-22  Eric Blake  <ebb9@byu.net>
45840
45841         Getline touchups.
45842         * lib/getdelim.c (getdelim): Revert regression that required *n to
45843         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
45844         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
45845         getdelim, rather than whether implementation is missing.
45846         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
45847         * lib/stdio_.h (getline): Also declare if replacement is
45848         required.
45849         * doc/functions/getdelim.texi: New file.
45850         * doc/functions/getline.texi: Likewise.
45851         * doc/gnulib.texi (Function Substitutes): Add new files.
45852         Reported by Bruno Haible.
45853
45854 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
45855
45856         * users.txt: Add Guile.
45857
45858 2007-08-22  Eric Blake  <ebb9@byu.net>
45859
45860         * tests/test-getdelim.c (main): Use remove, not unlink.
45861         * tests/test-getline.c (main): Likewise.
45862
45863         Move getline and getdelim into stdio.h, per POSIX 200x.
45864         * modules/getline (Files): Remove getline.h.
45865         (Depends-on): Add stdio.
45866         (configure.ac): Add module indicator.
45867         * modules/getdelim (Files): Remove getdelim.h.
45868         (Depends-on): Add stdio.
45869         (configure.ac): Add module indicator.
45870         * modules/stdio (Makefile.am): Work with new indicators.
45871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45872         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
45873         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45874         * lib/getdelim.h: Delete.
45875         * lib/getline.h: Delete.
45876         * lib/stdio_.h (getdelim, getline): Declare.
45877         * modules/getdelim-tests: New module.
45878         * modules/getline-tests: Likewise.
45879         * tests/test-getdelim.c: New file.
45880         * tests/test-getline.c: Likewise.
45881         * NEWS: Document the change.
45882         * lib/getline.c: Update choice of header.
45883         * lib/csharpcomp.c: Likewise.
45884         * lib/getpass.c: Likewise.
45885         * lib/javacomp.c: Likewise.
45886         * lib/javaversion.c: Likewise.
45887         * lib/yesno.c: Likewise.
45888         * lib/getdelim.c: Likewise.
45889         (getdelim): Set errno on failure, and avoid memory leak.
45890
45891 2007-08-19  Bruno Haible  <bruno@clisp.org>
45892
45893         * modules/closein (Depends-on): Add freadahead.
45894         * lib/closein.c: Include freadahead.h.
45895         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
45896         is zero.
45897
45898 2007-08-19  Bruno Haible  <bruno@clisp.org>
45899
45900         * modules/freadahead-tests: New file.
45901         * tests/test-freadahead.sh: New file.
45902         * tests/test-freadahead.c: New file.
45903
45904         * modules/freadahead: New file.
45905         * lib/freadahead.h: New file.
45906         * lib/freadahead.c: New file.
45907         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
45908         fbufmode, fpurge, freadable, fwritable.
45909
45910 2007-08-19  Eric Blake  <ebb9@byu.net>
45911
45912         Test yesno in combination with closein.
45913         * lib/yesno.c (yesno): Document use of stdin.
45914         * modules/yesno-tests (Files): New module.
45915         * tests/test-yesno.c (main): New file.
45916         * tests/test-yesno.sh: Likewise.
45917
45918 2007-08-19  Bruno Haible  <bruno@clisp.org>
45919
45920         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
45921         * lib/fseeko.c (rpl_fseeko): Likewise.
45922         * lib/fseterr.c (fseterr): Likewise.
45923
45924 2007-08-19  Bruno Haible  <bruno@clisp.org>
45925
45926         * tests/test-lseek.c (main): Disable a test for BeOS.
45927         * doc/functions/lseek.texi: Document the BeOS bug.
45928
45929 2007-08-19  Bruno Haible  <bruno@clisp.org>
45930             Eric Blake  <ebb9@byu.net>
45931
45932         * lib/lseek.c: Include <sys/stat.h>.
45933         (rpl_lseek): Add workaround code also for Unix platforms.
45934         Needed for BeOS.
45935         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
45936         * doc/functions/lseek.texi: Document BeOS definiency.
45937
45938 2007-08-18  Bruno Haible  <bruno@clisp.org>
45939
45940         * modules/fstrcmp-tests: New file.
45941         * tests/test-fstrcmp.c: New file.
45942
45943 2007-08-18  Bruno Haible  <bruno@clisp.org>
45944
45945         * modules/fstrcmp: New file, from GNU gettext with modifications.
45946         * lib/fstrcmp.h: New file, from GNU gettext.
45947         * lib/fstrcmp.c: New file, from GNU gettext.
45948         * MODULES.html.sh (String handling): Add fstrcmp.
45949
45950 2007-08-18  Bruno Haible  <bruno@clisp.org>
45951
45952         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
45953         'bool'.
45954         (diag, compareseq): Remove const from the ctxt argument.
45955         (USE_HEURISTIC): Undefine at the end.
45956
45957 2007-08-18  Jim Meyering  <jim@meyering.net>
45958
45959         New file: lib/idcache.h
45960         * NEWS: Mention the addition.
45961         * modules/idcache (Files): Add lib/idcache.h
45962         * lib/idcache.c: Include "idcache.h".
45963         Don't include <sys/types.h>.
45964         Add a FIXME comment.
45965         Move file-scoped "static" declarations to the top.
45966         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
45967
45968 2007-08-17  Bruno Haible  <bruno@clisp.org>
45969         and Paul Eggert  <eggert@cs.ucla.edu>
45970
45971         * MODULES.html.sh: Add diffseq.
45972         * modules/diffseq: New file.
45973         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
45974         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
45975
45976 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45977
45978         Import changes from coreutils for bootstrap script.
45979
45980         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
45981
45982         * build-aux/bootstrap (slurp): Work even in environments where
45983         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
45984         current code does not slurp files whose names start with ".", and
45985         this looks like it might be a troublesome area.
45986
45987         2007-07-11  Jim Meyering  <jim@meyering.net>
45988
45989         If there's a GPL vN copyright comment, require that N == 3.
45990
45991         2007-07-08  Jim Meyering  <jim@meyering.net>
45992
45993         Run the coreutils-specific code only if tests/Makefile.am.in exists.
45994         * build-aux/bootstrap (mam_template): Move definition out of loop.
45995
45996         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
45997
45998         * build-aux/bootstrap (symlink_to_dir): Rename function from
45999         symlink_to_gnulib.  Add a directory parameter.  Update all
46000         callers.
46001         (cp_mark_as_generated): Also check for -- and link to -- files in
46002         gl/.
46003
46004         2007-07-08  Jim Meyering  <jim@meyering.net>
46005
46006         Adapt to deeper hierarchy in gnulib.
46007         * build-aux/bootstrap (symlink_to_dir): If the destination
46008         directory doesn't exist, create it. This is required at least for
46009         "lib/uniwidth/cjk.h".
46010
46011         2007-05-15  Jim Meyering  <jim@meyering.net>
46012
46013         * build-aux/bootstrap: Now that generated Makefile.am files
46014         are no longer under version control, they must be created at
46015         bootstrap time.
46016
46017 2007-08-14  Ben Pfaff  <blp@gnu.org>
46018
46019         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
46020
46021 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46022
46023         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
46024         given the changes below.
46025         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
46026         even on hosts that have padding bits beyond the supported 64.
46027
46028 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46029
46030         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
46031         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
46032         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
46033         depends on it.
46034         (xstrtol_error): Remove.
46035         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
46036         but with a different signature.
46037         (ATTRIBUTE_NORETURN, __attribute__): New macros.
46038         * lib/xstrtol-error.c: Include exitfail.h.
46039         (xstrtol_fatal): New function, with a different signature from the
46040         old xstrtol_error, so that the caller need not worry about passing
46041         in an exit status, or about storage management of the option argument.
46042         (xstrtol_error): Now a static function.  Redo signature to
46043         implement xstrtol_fatal.  Output the correct number of hyphens in
46044         front of the option so that the caller need not worry about
46045         storage management.
46046         (N_): New macro.
46047         (_): Remove; not used now.
46048         * modules/xstrtol: Depend on getopt.
46049         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
46050         of old STRTOL_FATAL_ERROR macro.
46051         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
46052         of test program.
46053         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
46054         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
46055
46056 2007-08-08  Eric Blake  <ebb9@byu.net>
46057
46058         * lib/xstrtol-error.c: Add missing include.
46059
46060         Move xstrtol messages into gnulib domain, when --pobase is used.
46061         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
46062         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
46063         * modules/xstrtol (Files): Distribute new file.
46064         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
46065         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
46066         * tests/test-xstrtol.c: ...into new file.
46067         * tests/test-xstrtoul.c: Also test xstrtoul.
46068         * tests/test-xstrtoimax.c: Also test xstrtoimax.
46069         * tests/test-xstrtoumax.c: Also test xstrtoumax.
46070         * tests/test-xstrtol.sh: Drive the tests.
46071         * tests/test-xstrtoimax.sh: Likewise.
46072         * tests/test-xstrtoumax.sh: Likewise.
46073         * modules/xstrtol-tests: New module.
46074         * modules/xstrtoimax-tests: Likewise.
46075         * modules/xstrtoumax-tests: Likewise.
46076
46077 2007-08-08  Jim Meyering  <jim@meyering.net>
46078
46079         New function: mfile_name_concat.
46080         * lib/filenamecat.c (mfile_name_concat): New function, just like
46081         file_name_concat, but return NULL upon failure rather than exiting
46082         with a diagnostic.
46083         * lib/filenamecat.h: Declare it.
46084
46085 2007-08-07  Bruno Haible  <bruno@clisp.org>
46086
46087         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
46088         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
46089         warning from gcc.
46090         Reported by Eric Blake.
46091
46092 2007-08-07  Simon Josefsson  <simon@josefsson.org>
46093
46094         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
46095         * modules/crypto/arcfour (License): Likewise.
46096         * modules/crypto/des-tests (License): Likewise.
46097         * modules/crypto/gc-arctwo-tests (License): Likewise.
46098         * modules/crypto/gc-des-tests (License): Likewise.
46099         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
46100         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
46101         * modules/crypto/gc-md2-tests (License): Likewise.
46102         * modules/crypto/gc-md4-tests (License): Likewise.
46103         * modules/crypto/gc-md5-tests (License): Likewise.
46104         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
46105         * modules/crypto/gc-rijndael-tests (License): Likewise.
46106         * modules/crypto/gc-sha1-tests (License): Likewise.
46107         * modules/crypto/gc-tests (License): Likewise.
46108         * modules/crypto/hmac-md5 (License): Likewise.
46109         * modules/crypto/hmac-sha1 (License): Likewise.
46110         * modules/crypto/md2-tests (License): Likewise.
46111         * modules/crypto/md4-tests (License): Likewise.
46112         * modules/crypto/md5 (License): Likewise.
46113         * modules/crypto/rijndael (License): Likewise.
46114         * modules/crypto/sha1 (License): Likewise.
46115         * modules/memxor (License): Likewise.
46116
46117 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46118         and Bruno Haible  <bruno@clisp.org>
46119
46120         * NEWS: Describe interface changes to human, xstrtol.
46121         * lib/human.h: Include <xstrtol.h>.
46122         (human_options): Return enum strtol_error, not int.  Remove
46123         bool arg; take int * instead.
46124         * lib/human.c: Don't include "gettext.h".
46125         (_): Remove; no longer used.
46126         Don't include <xstrtol.h>, since human.h does it.
46127         (human_options): Adjust to abovementioned interface changes.
46128         Do not report error to stderr; that's now the caller's
46129         responsibility.
46130         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
46131         interface change.
46132         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
46133         Str, Argument_type_string.  All uses changed.  Put " argument"
46134         in diagnostics to make them clearer.  Change wording of suffix
46135         message for clarity.
46136         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
46137         Argument_type_string.
46138         (STRTOL_FATAL_WARN): Remove; no longer used.
46139         * modules/human (Depends-on): Remove gettext-h.
46140
46141 2007-08-06  Simon Josefsson  <simon@josefsson.org>
46142
46143         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
46144
46145 2007-07-31  Bruno Haible  <bruno@clisp.org>
46146
46147         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
46148         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
46149         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
46150
46151 2007-07-31  Bruno Haible  <bruno@clisp.org>
46152
46153         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46154         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46155
46156 2007-07-30  Bruno Haible  <bruno@clisp.org>
46157
46158         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46159         * modules/c-ctype (License): Likewise.
46160         * modules/c-strcase (License): Likewise.
46161         * modules/check-version (License): Likewise.
46162         * modules/iconv (License): Likewise.
46163         * modules/iconv_open (License): Likewise.
46164         * modules/read-file (License): Likewise.
46165         * modules/striconv (License): Likewise.
46166         * modules/strverscmp (License): Likewise.
46167         * modules/vasprintf (License): Likewise.
46168         * modules/crypto/des (License): Likewise.
46169         * modules/crypto/gc (License): Likewise.
46170         * modules/crypto/gc-arcfour (License): Likewise.
46171         * modules/crypto/gc-arctwo (License): Likewise.
46172         * modules/crypto/gc-des (License): Likewise.
46173         * modules/crypto/gc-hmac-md5 (License): Likewise.
46174         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46175         * modules/crypto/gc-md2 (License): Likewise.
46176         * modules/crypto/gc-md4 (License): Likewise.
46177         * modules/crypto/gc-md5 (License): Likewise.
46178         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46179         * modules/crypto/gc-random (License): Likewise.
46180         * modules/crypto/gc-rijndael (License): Likewise.
46181         * modules/crypto/gc-sha1 (License): Likewise.
46182         * modules/crypto/md2 (License): Likewise.
46183         * modules/crypto/md4 (License): Likewise.
46184
46185 2007-07-30  Jim Meyering  <jim@meyering.net>
46186
46187         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46188         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46189         it has valid stat data.  This bug would cause du not to count the
46190         sizes of inaccessible directories.
46191         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46192         in <http://bugzilla.redhat.com/250077>.
46193
46194 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46195             Bruno Haible  <bruno@clisp.org>
46196
46197         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46198         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46199         #include_next, gives a diagnostic about it, but reports no error in
46200         the exit code.
46201         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46202
46203 2007-07-24  Ben Pfaff  <blp@gnu.org>
46204
46205         Improve name: "count-one-bits" is better than "popcount".
46206         * MODULES.html.sh: Update name.
46207         * lib/popcount.h: Renamed lib/count-one-bits.h.
46208         (popcount): Renamed count_one_bits.
46209         (popcountl): Renamed count_one_bits_l.
46210         (popcountll): Renamed count_one_bits_ll.
46211         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46212         * modules/popcount: Renamed module/count-one-bits.
46213         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46214         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46215
46216 2007-07-23  Ben Pfaff  <blp@gnu.org>
46217
46218         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46219         better code generation, and add U to large constants to avoid
46220         warnings, in non-GCC case.
46221         Suggested by Bruno Haible.
46222
46223 2007-07-23  Ben Pfaff  <blp@gnu.org>
46224
46225         * lib/popcount.h: Use verify_true instead of if...abort.
46226         * modules/popcount: Depend on verify module.
46227         Suggested by Jim Meyering.
46228
46229 2007-07-23  Bruno Haible  <bruno@clisp.org>
46230
46231         * gnulib-tool (func_import): Create a .cvsignore file also when the
46232         directory is not yet in CVS but the toplevel directory is. When
46233         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46234         Reported by Karl Berry.
46235
46236 2007-07-22  Ben Pfaff  <blp@gnu.org>
46237
46238         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46239         case.
46240         Suggested by Eric Blake.
46241
46242 2007-07-22  Ben Pfaff  <blp@gnu.org>
46243
46244         New module: popcount.
46245         * MODULES.html.sh: Add popcount.
46246         * modules/popcount: New file.
46247         * modules/popcount-tests: New file.
46248         * tests/test-popcount.c: New file.
46249         * lib/popcount.h: New file.
46250         * m4/popcount.m4: New file.
46251
46252 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46253
46254         * build-aux/announce-gen: Update to GPLv3.
46255
46256         * build-aux/config.guess: Update from config.
46257
46258 2007-07-21  Bruno Haible  <bruno@clisp.org>
46259
46260         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46261         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46262
46263 2007-07-20  Jim Meyering  <jim@meyering.net>
46264
46265         * check-module: Diagnose a self-dependency.
46266
46267 2007-07-19  Bruno Haible  <bruno@clisp.org>
46268
46269         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46270         empty.
46271         Reported by Eric Blake.
46272
46273 2007-07-18  Bruno Haible  <bruno@clisp.org>
46274
46275         * gnulib-tool: New options --po-base, --po-domain.
46276         (func_usage): Document them.
46277         (pobase, po_domain): New variables.
46278         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46279         DEFAULT_TEXT_DOMAIN.
46280         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46281         (func_import): Consider pobase and po_domain. Create a po/ directory.
46282         (func_create_testdir): Set pobase and po_domain to empty.
46283         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46284         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46285
46286 2007-07-18  Bruno Haible  <bruno@clisp.org>
46287
46288         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46289         EXTRA_DIST augmentation for files in build-aux/.
46290
46291 2007-07-16  Bruno Haible  <bruno@clisp.org>
46292
46293         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46294         * modules/getdelim (License): Likewise.
46295
46296 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46297
46298         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46299         * modules/d-type (License): Likewise.
46300         * modules/extensions (License): Likewise.
46301         * modules/fnmatch (License): Likewise.
46302         * modules/fseeko (License): Likewise.
46303         * modules/getaddrinfo (License): Likewise.
46304         * modules/getline (License): Likewise.
46305         * modules/getlogin_r (License): Likewise.
46306         * modules/getpass (License): Likewise.
46307         * modules/gettimeofday (License): Likewise.
46308         * modules/glob (License): Likewise.
46309         * modules/inet_ntop (License): Likewise.
46310         * modules/malloc (License): Likewise.
46311         * modules/malloca (License): Likewise.
46312         * modules/memmem (License): Likewise.
46313         * modules/mempcpy (License): Likewise.
46314         * modules/memset (License): Likewise.
46315         * modules/minmax (License): Likewise.
46316         * modules/mktime (License): Likewise.
46317         * modules/netinet_in (License): Likewise.
46318         * modules/pathmax (License): Likewise.
46319         * modules/poll (License): Likewise.
46320         * modules/regex (License): Likewise.
46321         * modules/snprintf (License): Likewise.
46322         * modules/stdbool (License): Likewise.
46323         * modules/stdint (License): Likewise.
46324         * modules/stdio (License): Likewise.
46325         * modules/strcase (License): Likewise.
46326         * modules/strcasestr (License): Likewise.
46327         * modules/strdup (License): Likewise.
46328         * modules/string (License): Likewise.
46329         * modules/strndup (License): Likewise.
46330         * modules/strnlen (License): Likewise.
46331         * modules/strpbrk (License): Likewise.
46332         * modules/strptime (License): Likewise.
46333         * modules/strsep (License): Likewise.
46334         * modules/sys_select (License): Likewise.
46335         * modules/sys_socket (License): Likewise.
46336         * modules/sys_stat (License): Likewise.
46337         * modules/sys_time (License): Likewise.
46338         * modules/time (License): Likewise.
46339         * modules/time_r (License): Likewise.
46340         * modules/timegm (License): Likewise.
46341         * modules/unistd (License): Likewise.
46342         * modules/vsnprintf (License): Likewise.
46343         * modules/wctype (License): Likewise.
46344
46345 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46346
46347         * modules/argz (License): LGPLv2+.
46348
46349 2007-07-15  Karl Berry  <karl@gnu.org>
46350
46351         * doc/gnulib.texi: revise node structure per new fdl.texi.
46352
46353 2007-07-14  Bruno Haible  <bruno@clisp.org>
46354
46355         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46356         the output file.
46357         * lib/uniname/uninames.h: Regenerated.
46358
46359 2007-07-14  Karl Berry  <karl@gnu.org>
46360
46361         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46362         omitting sectioning and index commands.
46363
46364 2007-07-13  Bruno Haible  <bruno@clisp.org>
46365
46366         New gnulib-tool option --more-symlinks.
46367         * gnulib-tool (func_usage): Document --more-symlinks.
46368         (do_copyrights): New variable.
46369         Recognize option --more-symlinks.
46370         (func_import): Don't add a copyright notice transform to
46371         sed_transform_lib_file if do_copyrights is empty.
46372
46373 2007-07-13  Bruno Haible  <bruno@clisp.org>
46374
46375         * lib/vasnprintf.c (decimal_point_char): Define also if
46376         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46377         && !NEED_PRINTF_DIRECTIVE_A.
46378         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46379         Gary V. Vaughan <gary@gnu.org>.
46380
46381 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46382
46383         * lib/inttypes_.h: Undo previous change, since it was fixed
46384         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46385
46386 2007-07-13  Bruno Haible  <bruno@clisp.org>
46387
46388         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46389         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46390
46391 2007-07-13  Jim Meyering  <jim@meyering.net>
46392
46393         df: Don't fail for Tru64's "file-on-file mount".
46394         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46395         so we fall through and use statfs instead.  Details here:
46396         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46397         Reported by Albert Chin.
46398
46399 2007-07-13  Bruno Haible  <bruno@clisp.org>
46400
46401         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46402         * modules/configmake (License): Likewise.
46403         * modules/gettext (License): Likewise.
46404         * modules/gettext-h (License): Likewise.
46405         * modules/include_next (License): Likewise.
46406         * modules/link-warning (License): Likewise.
46407         * modules/localcharset (License): Likewise.
46408         * modules/localename (License): Likewise.
46409         * modules/lock (License): Likewise.
46410         * modules/relocatable-lib-lgpl (License): Likewise.
46411         * modules/size_max (License): Likewise.
46412         * modules/vasnprintf (License): Likewise.
46413         * modules/wchar (License): Likewise.
46414         * modules/xsize (License): Likewise.
46415
46416 2007-07-13  Bruno Haible  <bruno@clisp.org>
46417
46418         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46419         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46420
46421 2007-07-12  Bruno Haible  <bruno@clisp.org>
46422
46423         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46424         in the modules files.
46425
46426 2007-07-11  Karl Berry  <karl@gnu.org>
46427
46428         * MODULES.html.sh (func_module): use
46429          sed -e '\|^'"${includefile}"'$|d'
46430          instead of /.../d, to avoid errors on $includefile's containing /.
46431
46432 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46433
46434         * gnulib-tool (func_import): Avoid duplication of --avoid
46435         statements
46436         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46437         names to `_' in variable names.
46438
46439 2007-07-10  Eric Blake  <ebb9@byu.net>
46440
46441         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46442         * NEWS: Document this change.
46443
46444 2007-07-08  Bruno Haible  <bruno@clisp.org>
46445
46446         Update to Unicode 5.0.
46447         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46448         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46449         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46450         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46451         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46452         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46453         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46454         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46455         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46456         U+10A3F, U+1D242..U+1D244.
46457         (nonspacing_table_ind): Update.
46458         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46459         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46460
46461 2007-07-08  Bruno Haible  <bruno@clisp.org>
46462
46463         Update to Unicode 5.0.
46464         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46465         code transform. Extend the name index field of unicode_name_to_code and
46466         unicode_code_to_name from 16 to 24 bits.
46467         * lib/uniname/uniname.c (unicode_character_name,
46468         unicode_name_character): Add the range 0x12xxx to the code transform.
46469         * lib/uniname/uninames.h: Regenerated.
46470         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46471
46472 2007-07-07  Bruno Haible  <bruno@clisp.org>
46473
46474         * modules/wcwidth-tests: New file.
46475         * tests/test-wcwidth.c: New file.
46476
46477         Work around MacOS X wcwidth() bug.
46478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46479         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46480         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46481         original wcwidth in non-UTF-8 locales.
46482         * modules/wcwidth (Depends-on): Add localcharset, streq,
46483         uniwidth/width.
46484         * doc/functions/wcwidth.texi: Update.
46485
46486 2007-07-07  Bruno Haible  <bruno@clisp.org>
46487
46488         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46489         (wcwidth): New declaration.
46490         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46491         macros.
46492         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46493         here. Prepare for creating <wchar.h> unconditionally.
46494         * modules/wchar (Depends-on): Add link-warning.
46495         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46496         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46497         * lib/wcwidth.h: Remove file.
46498         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46499         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46500         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46501         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46502         (Include): Replace wcwidth.h with <wchar.h>.
46503         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46504         * lib/mbchar.h: Don't include wcwidth.h.
46505         * lib/mbswidth.c: Likewise.
46506         * NEWS: Mention the change.
46507
46508 2007-07-07  Bruno Haible  <bruno@clisp.org>
46509
46510         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46511         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46512         definition with an external declaration.
46513         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46514         defined as a function. Remove AC_C_INLINE requirement.
46515         * modules/wcwidth (Files): Add lib/wcwidth.c.
46516         (Makefile.am): Remove redundant statement.
46517
46518 2007-07-07  Bruno Haible  <bruno@clisp.org>
46519
46520         * MODULES.html.sh (Unicode string functions): Add the new modules.
46521
46522         * tests/uniwidth/test-u32-strwidth.c: New file.
46523         * modules/uniwidth/u32-strwidth-tests: New file.
46524
46525         * lib/uniwidth/u32-strwidth.c: New file.
46526         * modules/uniwidth/u32-strwidth: New file.
46527
46528         * tests/uniwidth/test-u16-strwidth.c: New file.
46529         * modules/uniwidth/u16-strwidth-tests: New file.
46530
46531         * lib/uniwidth/u16-strwidth.c: New file.
46532         * modules/uniwidth/u16-strwidth: New file.
46533
46534         * tests/uniwidth/test-u8-strwidth.c: New file.
46535         * modules/uniwidth/u8-strwidth-tests: New file.
46536
46537         * lib/uniwidth/u8-strwidth.c: New file.
46538         * modules/uniwidth/u8-strwidth: New file.
46539
46540         * tests/uniwidth/test-u32-width.c: New file.
46541         * modules/uniwidth/u32-width-tests: New file.
46542
46543         * lib/uniwidth/u32-width.c: New file.
46544         * modules/uniwidth/u32-width: New file.
46545
46546         * tests/uniwidth/test-u16-width.c: New file.
46547         * modules/uniwidth/u16-width-tests: New file.
46548
46549         * lib/uniwidth/u16-width.c: New file.
46550         * modules/uniwidth/u16-width: New file.
46551
46552         * tests/uniwidth/test-u8-width.c: New file.
46553         * modules/uniwidth/u8-width-tests: New file.
46554
46555         * lib/uniwidth/u8-width.c: New file.
46556         * modules/uniwidth/u8-width: New file.
46557
46558         * tests/uniwidth/test-uc_width.c: New file.
46559         * modules/uniwidth/width-tests: New file.
46560
46561         * lib/uniwidth/width.c: New file, from GNU libiconv.
46562         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46563         * modules/uniwidth/width: New file.
46564
46565         * lib/uniwidth.h: New file, from GNU libiconv.
46566         * modules/uniwidth/base: New file.
46567
46568 2007-07-07  Bruno Haible  <bruno@clisp.org>
46569
46570         * lib/uniname.h: New file, from GNU gettext.
46571         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46572         * lib/uniname/uninames.h: New file, from GNU gettext.
46573         * lib/uniname/uniname.c: New file, from GNU gettext.
46574         * tests/uniname/test-uninames.sh: New file.
46575         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46576         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46577         * modules/uniname/base: New file.
46578         * modules/uniname/uniname: New file.
46579         * modules/uniname/uniname-tests: New file.
46580         * MODULES.html.sh (Unicode string functions): Add the new modules.
46581
46582 2007-07-06  Bruno Haible  <bruno@clisp.org>
46583
46584         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46585
46586 2007-07-06  Bruno Haible  <bruno@clisp.org>
46587
46588         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46589         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46590         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46591         include <sys/time.h>.
46592         Reported by Eric Blake.
46593
46594 2007-07-06  Eric Blake  <ebb9@byu.net>
46595
46596         Fix testing canonicalize on cygwin.
46597         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46598         Revert patch from 2007-06-19.
46599         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
46600         canonicalize module is also in use.
46601         * tests/test-canonicalize.c: New file.
46602         * tests/test-canonicalize.sh: Likewise.
46603         * modules/canonicalize-tests: Likewise.
46604
46605 2007-07-06  Jim Meyering  <jim@meyering.net>
46606
46607         * lib/getugroups.c (getugroups): Detect getgrent failure.
46608         Adjust comment to reflect reality: this function may return -1.
46609
46610 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46611
46612         * build-aux/bootstrap (TP_URL,get_translations): Update to use
46613         the new TP address.
46614         (usage): Fix typo
46615         (gnulib_mk): New variable.
46616
46617 2007-07-05  Jim Meyering  <jim@meyering.net>
46618
46619         Don't let endgrent clobber errno, no matter how improbable.
46620         * lib/getugroups.c (getugroups): Save and restore errno around
46621         endgrent call.
46622
46623         Close the group DB even when failing with 2^31 or more members.
46624         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
46625
46626 2007-07-04  Jim Meyering  <jim@meyering.net>
46627
46628         * lib/getugroups.h: New file.
46629         * lib/getugroups.c: Include "getugroups.h".
46630         Remove uses of "register" keyword.
46631         Move local variable, "cp", down into scope where used.
46632         Give "username" parameter the "const" attribute.
46633         * modules/getugroups (Files): Add lib/getugroups.h
46634
46635 2007-07-04  Karl Berry  <karl@gnu.org>
46636
46637         * MODULES.html.sh (func_all_modules): Complete rename of
46638         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
46639
46640 2007-07-02  Bruno Haible  <bruno@clisp.org>
46641
46642         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
46643         mode, when inttypes.h comes from gnulib.
46644         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46645
46646 2007-07-02  Simon Josefsson  <simon@josefsson.org>
46647
46648         * NEWS: Mention lgpl module name change.
46649
46650         * modules/lgpl-2.1: Renamed from lgpl.
46651
46652         * NEWS: Mention gpl module name change.
46653
46654         * modules/gpl-3.0: New file, based on gpl-2.0.
46655
46656         * modules/gpl-2.0: Renamed from gpl.
46657
46658         * modules/gpl: Fix filename, doc/gpl.texi is now found at
46659         doc/gpl-2.0.texi.
46660
46661 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46662
46663         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
46664         #define __STDC_LIMIT_MACROS temporarily while including
46665         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
46666         Problem reported by Joel E. Denny in
46667         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
46668
46669 2007-07-01  Bruno Haible  <bruno@clisp.org>
46670
46671         * lib/unistdio.h: New file.
46672         * lib/unistdio/u-asnprintf.h: New file.
46673         * lib/unistdio/u-asprintf.h: New file.
46674         * lib/unistdio/u-printf-args.c: New file.
46675         * lib/unistdio/u-printf-args.h: New file.
46676         * lib/unistdio/u-printf-parse.h: New file.
46677         * lib/unistdio/u-snprintf.h: New file.
46678         * lib/unistdio/u-sprintf.h: New file.
46679         * lib/unistdio/u-vasprintf.h: New file.
46680         * lib/unistdio/u-vsnprintf.h: New file.
46681         * lib/unistdio/u-vsprintf.h: New file.
46682         * lib/unistdio/ulc-asnprintf.c: New file.
46683         * lib/unistdio/ulc-asprintf.c: New file.
46684         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
46685         * lib/unistdio/ulc-printf-parse.c: New file.
46686         * lib/unistdio/ulc-snprintf.c: New file.
46687         * lib/unistdio/ulc-sprintf.c: New file.
46688         * lib/unistdio/ulc-vasnprintf.c: New file.
46689         * lib/unistdio/ulc-vasprintf.c: New file.
46690         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
46691         * lib/unistdio/ulc-vsnprintf.c: New file.
46692         * lib/unistdio/ulc-vsprintf.c: New file.
46693         * lib/unistdio/u8-asnprintf.c: New file.
46694         * lib/unistdio/u8-asprintf.c: New file.
46695         * lib/unistdio/u8-printf-parse.c: New file.
46696         * lib/unistdio/u8-snprintf.c: New file.
46697         * lib/unistdio/u8-sprintf.c: New file.
46698         * lib/unistdio/u8-vasnprintf.c: New file.
46699         * lib/unistdio/u8-vasprintf.c: New file.
46700         * lib/unistdio/u8-vsnprintf.c: New file.
46701         * lib/unistdio/u8-vsprintf.c: New file.
46702         * lib/unistdio/u8-u8-asnprintf.c: New file.
46703         * lib/unistdio/u8-u8-asprintf.c: New file.
46704         * lib/unistdio/u8-u8-snprintf.c: New file.
46705         * lib/unistdio/u8-u8-sprintf.c: New file.
46706         * lib/unistdio/u8-u8-vasnprintf.c: New file.
46707         * lib/unistdio/u8-u8-vasprintf.c: New file.
46708         * lib/unistdio/u8-u8-vsnprintf.c: New file.
46709         * lib/unistdio/u8-u8-vsprintf.c: New file.
46710         * lib/unistdio/u16-asnprintf.c: New file.
46711         * lib/unistdio/u16-asprintf.c: New file.
46712         * lib/unistdio/u16-printf-parse.c: New file.
46713         * lib/unistdio/u16-snprintf.c: New file.
46714         * lib/unistdio/u16-sprintf.c: New file.
46715         * lib/unistdio/u16-vasnprintf.c: New file.
46716         * lib/unistdio/u16-vasprintf.c: New file.
46717         * lib/unistdio/u16-vsnprintf.c: New file.
46718         * lib/unistdio/u16-vsprintf.c: New file.
46719         * lib/unistdio/u16-u16-asnprintf.c: New file.
46720         * lib/unistdio/u16-u16-asprintf.c: New file.
46721         * lib/unistdio/u16-u16-snprintf.c: New file.
46722         * lib/unistdio/u16-u16-sprintf.c: New file.
46723         * lib/unistdio/u16-u16-vasnprintf.c: New file.
46724         * lib/unistdio/u16-u16-vasprintf.c: New file.
46725         * lib/unistdio/u16-u16-vsnprintf.c: New file.
46726         * lib/unistdio/u16-u16-vsprintf.c: New file.
46727         * lib/unistdio/u32-asnprintf.c: New file.
46728         * lib/unistdio/u32-asprintf.c: New file.
46729         * lib/unistdio/u32-printf-parse.c: New file.
46730         * lib/unistdio/u32-snprintf.c: New file.
46731         * lib/unistdio/u32-sprintf.c: New file.
46732         * lib/unistdio/u32-vasnprintf.c: New file.
46733         * lib/unistdio/u32-vasprintf.c: New file.
46734         * lib/unistdio/u32-vsnprintf.c: New file.
46735         * lib/unistdio/u32-vsprintf.c: New file.
46736         * lib/unistdio/u32-u32-asnprintf.c: New file.
46737         * lib/unistdio/u32-u32-asprintf.c: New file.
46738         * lib/unistdio/u32-u32-snprintf.c: New file.
46739         * lib/unistdio/u32-u32-sprintf.c: New file.
46740         * lib/unistdio/u32-u32-vasnprintf.c: New file.
46741         * lib/unistdio/u32-u32-vasprintf.c: New file.
46742         * lib/unistdio/u32-u32-vsnprintf.c: New file.
46743         * lib/unistdio/u32-u32-vsprintf.c: New file.
46744         * tests/unistdio/test-ulc-asnprintf1.c: New file.
46745         * tests/unistdio/test-ulc-asnprintf1.h: New file.
46746         * tests/unistdio/test-ulc-printf1.h: New file.
46747         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
46748         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
46749         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
46750         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
46751         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
46752         * tests/unistdio/test-ulc-vasprintf1.c: New file.
46753         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
46754         * tests/unistdio/test-ulc-vsprintf1.c: New file.
46755         * tests/unistdio/test-u8-asnprintf1.c: New file.
46756         * tests/unistdio/test-u8-asnprintf1.h: New file.
46757         * tests/unistdio/test-u8-printf1.h: New file.
46758         * tests/unistdio/test-u8-vasnprintf1.c: New file.
46759         * tests/unistdio/test-u8-vasnprintf2.c: New file.
46760         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
46761         * tests/unistdio/test-u8-vasnprintf3.c: New file.
46762         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
46763         * tests/unistdio/test-u8-vasprintf1.c: New file.
46764         * tests/unistdio/test-u8-vsnprintf1.c: New file.
46765         * tests/unistdio/test-u8-vsprintf1.c: New file.
46766         * tests/unistdio/test-u16-asnprintf1.c: New file.
46767         * tests/unistdio/test-u16-asnprintf1.h: New file.
46768         * tests/unistdio/test-u16-printf1.h: New file.
46769         * tests/unistdio/test-u16-vasnprintf1.c: New file.
46770         * tests/unistdio/test-u16-vasnprintf2.c: New file.
46771         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
46772         * tests/unistdio/test-u16-vasnprintf3.c: New file.
46773         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
46774         * tests/unistdio/test-u16-vasprintf1.c: New file.
46775         * tests/unistdio/test-u16-vsnprintf1.c: New file.
46776         * tests/unistdio/test-u16-vsprintf1.c: New file.
46777         * tests/unistdio/test-u32-asnprintf1.c: New file.
46778         * tests/unistdio/test-u32-asnprintf1.h: New file.
46779         * tests/unistdio/test-u32-printf1.h: New file.
46780         * tests/unistdio/test-u32-vasnprintf1.c: New file.
46781         * tests/unistdio/test-u32-vasnprintf2.c: New file.
46782         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
46783         * tests/unistdio/test-u32-vasnprintf3.c: New file.
46784         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
46785         * tests/unistdio/test-u32-vasprintf1.c: New file.
46786         * tests/unistdio/test-u32-vsnprintf1.c: New file.
46787         * tests/unistdio/test-u32-vsprintf1.c: New file.
46788         * modules/unistdio/base: New file.
46789         * modules/unistdio/u-printf-args: New file.
46790         * modules/unistdio/ulc-asnprintf: New file.
46791         * modules/unistdio/ulc-asprintf: New file.
46792         * modules/unistdio/ulc-fprintf: New file.
46793         * modules/unistdio/ulc-printf-parse: New file.
46794         * modules/unistdio/ulc-snprintf: New file.
46795         * modules/unistdio/ulc-sprintf: New file.
46796         * modules/unistdio/ulc-vasnprintf: New file.
46797         * modules/unistdio/ulc-vasprintf: New file.
46798         * modules/unistdio/ulc-vfprintf: New file.
46799         * modules/unistdio/ulc-vsnprintf: New file.
46800         * modules/unistdio/ulc-vsprintf: New file.
46801         * modules/unistdio/u8-asnprintf: New file.
46802         * modules/unistdio/u8-asprintf: New file.
46803         * modules/unistdio/u8-printf-parse: New file.
46804         * modules/unistdio/u8-snprintf: New file.
46805         * modules/unistdio/u8-sprintf: New file.
46806         * modules/unistdio/u8-vasnprintf: New file.
46807         * modules/unistdio/u8-vasprintf: New file.
46808         * modules/unistdio/u8-vsnprintf: New file.
46809         * modules/unistdio/u8-vsprintf: New file.
46810         * modules/unistdio/u8-u8-asnprintf: New file.
46811         * modules/unistdio/u8-u8-asprintf: New file.
46812         * modules/unistdio/u8-u8-snprintf: New file.
46813         * modules/unistdio/u8-u8-sprintf: New file.
46814         * modules/unistdio/u8-u8-vasnprintf: New file.
46815         * modules/unistdio/u8-u8-vasprintf: New file.
46816         * modules/unistdio/u8-u8-vsnprintf: New file.
46817         * modules/unistdio/u8-u8-vsprintf: New file.
46818         * modules/unistdio/u16-asnprintf: New file.
46819         * modules/unistdio/u16-asprintf: New file.
46820         * modules/unistdio/u16-printf-parse: New file.
46821         * modules/unistdio/u16-snprintf: New file.
46822         * modules/unistdio/u16-sprintf: New file.
46823         * modules/unistdio/u16-vasnprintf: New file.
46824         * modules/unistdio/u16-vasprintf: New file.
46825         * modules/unistdio/u16-vsnprintf: New file.
46826         * modules/unistdio/u16-vsprintf: New file.
46827         * modules/unistdio/u16-u16-asnprintf: New file.
46828         * modules/unistdio/u16-u16-asprintf: New file.
46829         * modules/unistdio/u16-u16-snprintf: New file.
46830         * modules/unistdio/u16-u16-sprintf: New file.
46831         * modules/unistdio/u16-u16-vasnprintf: New file.
46832         * modules/unistdio/u16-u16-vasprintf: New file.
46833         * modules/unistdio/u16-u16-vsnprintf: New file.
46834         * modules/unistdio/u16-u16-vsprintf: New file.
46835         * modules/unistdio/u32-asnprintf: New file.
46836         * modules/unistdio/u32-asprintf: New file.
46837         * modules/unistdio/u32-printf-parse: New file.
46838         * modules/unistdio/u32-snprintf: New file.
46839         * modules/unistdio/u32-sprintf: New file.
46840         * modules/unistdio/u32-vasnprintf: New file.
46841         * modules/unistdio/u32-vasprintf: New file.
46842         * modules/unistdio/u32-vsnprintf: New file.
46843         * modules/unistdio/u32-vsprintf: New file.
46844         * modules/unistdio/u32-u32-asnprintf: New file.
46845         * modules/unistdio/u32-u32-asprintf: New file.
46846         * modules/unistdio/u32-u32-snprintf: New file.
46847         * modules/unistdio/u32-u32-sprintf: New file.
46848         * modules/unistdio/u32-u32-vasnprintf: New file.
46849         * modules/unistdio/u32-u32-vasprintf: New file.
46850         * modules/unistdio/u32-u32-vsnprintf: New file.
46851         * modules/unistdio/u32-u32-vsprintf: New file.
46852         * modules/unistdio/ulc-asnprintf-tests: New file.
46853         * modules/unistdio/ulc-vasnprintf-tests: New file.
46854         * modules/unistdio/ulc-vasprintf-tests: New file.
46855         * modules/unistdio/ulc-vsnprintf-tests: New file.
46856         * modules/unistdio/ulc-vsprintf-tests: New file.
46857         * modules/unistdio/u8-asnprintf-tests: New file.
46858         * modules/unistdio/u8-vasnprintf-tests: New file.
46859         * modules/unistdio/u8-vasprintf-tests: New file.
46860         * modules/unistdio/u8-vsnprintf-tests: New file.
46861         * modules/unistdio/u8-vsprintf-tests: New file.
46862         * modules/unistdio/u16-asnprintf-tests: New file.
46863         * modules/unistdio/u16-vasnprintf-tests: New file.
46864         * modules/unistdio/u16-vasprintf-tests: New file.
46865         * modules/unistdio/u16-vsnprintf-tests: New file.
46866         * modules/unistdio/u16-vsprintf-tests: New file.
46867         * modules/unistdio/u32-asnprintf-tests: New file.
46868         * modules/unistdio/u32-vasnprintf-tests: New file.
46869         * modules/unistdio/u32-vasprintf-tests: New file.
46870         * modules/unistdio/u32-vsnprintf-tests: New file.
46871         * modules/unistdio/u32-vsprintf-tests: New file.
46872         * MODULES.html.sh (Unicode string functions): Add the new modules.
46873
46874 2007-07-01  Bruno Haible  <bruno@clisp.org>
46875
46876         * lib/sprintf.c (sprintf): Limit the available length estimation,
46877         to avoid address wraparound.
46878         * lib/vsprintf.c (vsprintf): Likewise.
46879         * modules/sprintf-posix (Dependencies): Add stdint.
46880         * modules/vsprintf-posix (Dependencies): Likewise.
46881
46882 2007-07-01  Bruno Haible  <bruno@clisp.org>
46883
46884         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
46885         Windows PATH as well. Conservative double-quoting. Comments.
46886
46887 2007-07-01  Bruno Haible  <bruno@clisp.org>
46888             Eric Blake  <ebb9@byu.net>
46889             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46890
46891         * gnulib-tool (self_abspathname): Fix algorithm to cope with
46892         empty components in $PATH, denoting '.'.
46893
46894 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46895
46896         * gnulib-tool: Fix indentation.
46897         (func_create_megatestdir): Likewise.
46898         Report by Bruno Haible.
46899
46900 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46901
46902         Sync from Automake.
46903         * build-aux/gnupload: Fix shell portability issues with for loops.
46904         Report by Karl Berry.
46905
46906 2007-06-29  Simon Josefsson  <simon@josefsson.org>
46907
46908         * build-aux/maint.mk (POURL): Use translationproject.org.
46909
46910 2007-06-27  Simon Josefsson  <simon@josefsson.org>
46911             Bruno Haible  <bruno@clisp.org>
46912
46913         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
46914         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
46915         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
46916         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
46917         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
46918
46919 2007-06-27  Bruno Haible  <bruno@clisp.org>
46920
46921         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
46922         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
46923
46924 2007-06-26  Karl Berry  <karl@gnu.org>
46925
46926         * MODULES.html.sh: remove xreadlink-with-size.
46927
46928 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46929
46930         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
46931         method that I hope also handles the double-include problem noted
46932         by Bruno Haible in
46933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
46934
46935 2007-06-23  Bruno Haible  <bruno@clisp.org>
46936
46937         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46938         Don't let the 'mostlyclean' target fail if the last subdirectory could
46939         not be removed.
46940         Reported by Karl Berry.
46941
46942 2007-06-23  Bruno Haible  <bruno@clisp.org>
46943
46944         * gnulib-tool (echo): Add a speedier workaround for ksh.
46945         * tests/test-echo.sh: Likewise.
46946
46947 2007-06-23  Bruno Haible  <bruno@clisp.org>
46948
46949         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
46950         * tests/test-echo.sh: Likewise.
46951
46952 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46953
46954         * gnulib-tool (IFS): Initialize early, so we don't set it to
46955         empty later.
46956         (self_abspathname): Rewrite algorithm to set it, reindent.
46957         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
46958         (func_create_megatestdir): Merge some sed scripts.
46959
46960 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
46961
46962         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
46963         exposed by Sun Studio 11 cc on Solaris 8.
46964
46965 2007-06-22  Bruno Haible  <bruno@clisp.org>
46966
46967         * gnulib-tool (echo): Ensure the echo primitive does not interpret
46968         backslashes.
46969         * tests/test-echo.sh: New file.
46970
46971 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46972
46973         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
46974         simplify `sed_replace_build_aux' scripts, they are portable but
46975         echoing them with `echo' is not.
46976         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
46977
46978 2007-06-21  Karl Berry  <karl@gnu.org>
46979
46980         * config/srclist.txt: guess we can't handle the licenses via
46981         srclist at the moment.
46982
46983 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46984
46985         * MODULES.html.sh: Add include_next.
46986         * modules/include_next: New file.
46987
46988 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46989
46990         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
46991         INCLUDE_NEXT.
46992         (gl_CHECK_NEXT_HEADERS): New macro.
46993         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
46994         the obsolescent gl_ABSOLUTE_HEADER.
46995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
46996         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
46997         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
46998         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46999         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47000         * m4/math_h.m4 (gl_MATH_H): Likewise.
47001         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47002         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47003         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47004         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47005         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47006         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47007         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47008         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47009         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47010         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47011         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
47012         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
47013         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47014         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47015         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47016         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47017         * m4/inttypes.m4 (gl_INTTYPES_H): Define
47018         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
47019         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
47020         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
47021         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
47022         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
47023         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
47024         * lib/float_.h: Likewise.
47025         * lib/inttypes_.h: Likewise.
47026         * lib/math_.h: Likewise.
47027         * lib/search_.h: Likewise.
47028         * lib/signal_.h: Likewise.
47029         * lib/stdint_.h: Likewise.
47030         * lib/stdio_.h: Likewise.
47031         * lib/stdlib_.h: Likewise.
47032         * lib/string_.h: Likewise.
47033         * lib/sys_stat_.h: Likewise.
47034         * lib/sys_time_.h: Likewise.
47035         * lib/time_.h: Likewise.
47036         * lib/unistd_.h: Likewise.
47037         * lib/wchar_.h: Likewise.
47038         * lib/wctype_.h: Likewise.
47039         * lib/dirent_.h: Likewise.
47040         * lib/iconv_.h: Likewise.
47041         * lib/locale_.h: Likewise.
47042         * lib/netinet_in_.h: Likewise.
47043         * lib/sys_select_.h: Likewise.
47044         * lib/sys_socket_.h: Likewise.
47045         * lib/sysexits_.h: Likewise.
47046         * modules/fcntl (Depends-on): Depend on include_next, not
47047         absolute_header.
47048         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
47049         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
47050         * modules/fchdir: Likewise.
47051         * modules/float: Likewise.
47052         * modules/iconv_open: Likewise.
47053         * modules/inttypes: Likewise.
47054         * modules/locale: Likewise.
47055         * modules/math: Likewise.
47056         * modules/netinet_in: Likewise.
47057         * modules/search: Likewise.
47058         * modules/signal: Likewise.
47059         * modules/stdint: Likewise.
47060         * modules/stdio: Likewise.
47061         * modules/stdlib: Likewise.
47062         * modules/string: Likewise.
47063         * modules/sys_select: Likewise.
47064         * modules/sys_socket: Likewise.
47065         * modules/sys_stat: Likewise.
47066         * modules/sys_time: Likewise.
47067         * modules/sysexits: Likewise.
47068         * modules/time: Likewise.
47069         * modules/unistd: Likewise.
47070         * modules/wchar: Likewise.
47071         * modules/wctype: Likewise.
47072         * modules/sys_stat: Change maintainer to "all".
47073         * modules/unistd: Likewise.
47074
47075 2007-06-20  Karl Berry  <karl@gnu.org>
47076
47077         * config/srclist.txt: track www changes in license files.
47078
47079 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
47080
47081         * build-aux/bootstrap: Remove stray dot.
47082         Make sure build_aux settings are honored when linking
47083         gnulib_extra_files.
47084
47085 2007-06-19  Eric Blake  <ebb9@byu.net>
47086
47087         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47088         Allow compilation on cygwin.
47089
47090 2007-06-19  Jim Meyering  <jim@meyering.net>
47091
47092         xreadlink-with-size: Remove module.  No longer used.
47093         Ex-callers now use xreadlink or mreadlink-with-size.
47094         * modules/xreadlink-with-size: Remove module.
47095         * lib/xreadlink-with-size.c: Remove file.
47096         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
47097         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
47098         just before the function definition *is* accurate.
47099
47100         Eliminate one way canonicalize_filename_mode could exit.
47101         * lib/canonicalize.c (canonicalize_filename_mode):
47102         Use mreadlink_with_size, not xreadlink_with_size.
47103
47104 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
47105
47106         Detect porting problems to FreeBSD/arm, which has time_t wider than
47107         long int.  Original problem reported for GNU diff by Xin Li in
47108         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
47109         * modules/getdate (Depends-on): Add intprops, verify.
47110         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
47111         is an integer type no wider than long int.
47112
47113 2007-06-18  Jim Meyering  <jim@meyering.net>
47114
47115         New module: mreadlink-with-size.
47116         * MODULES.html.sh: Add mreadlink-with-size.
47117         * modules/mreadlink-with-size: New module
47118         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
47119         not xreadlink-with-size.
47120         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
47121
47122 2007-06-16  Bruno Haible  <bruno@clisp.org>
47123
47124         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47125         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
47126         Reported by Gary V. Vaughan <gary@gnu.org>.
47127
47128 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
47129
47130         Revamp lchown so that it lives in unistd.h where it belongs.
47131         * lib/lchown.h: Remove.
47132         * lib/dirchownmod.c: Don't include lib/lchown.h.
47133         * lib/fchownat.c: Likewise.
47134         * lib/openat.c: Likewise.
47135         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
47136         does not follow symlinks.
47137         (EOPNOTSUPP): Define if not defined.
47138         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
47139         is defined to 0.
47140         (lchown): New decl.
47141         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
47142         Do not check for lchown decl.
47143         Set REPLACE_LCHOWN.
47144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
47145         REPLACE_LCHOWN.
47146         * modules/chown: Make it clear it follows symlinks.
47147         * modules/lchown: Make it clear it doesn't follow symlinks.
47148         (Files): Remove lib/lchown.h
47149         (Depends-on): Add unistd.
47150         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
47151         (Include): Include <unistd.h>, not "lchown.h".
47152         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47153         REPLACE_LCHOWN.
47154
47155 2007-06-15  Jim Meyering  <jim@meyering.net>
47156
47157         Change license (GPL to LGPL) of fsusage and dependents.
47158         * modules/fsusage (License): Change to LGPL.
47159         * modules/full-read (License): Likewise.
47160         * modules/full-write (License): Likewise.
47161         * modules/safe-read (License): Likewise.
47162         * modules/safe-write (License): Likewise.
47163
47164 2007-06-14  Ben Pfaff  <blp@gnu.org>
47165
47166         Missing part of allocsa -> malloca transition.
47167         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47168         gl_MALLOCA.
47169
47170 2007-06-12  Bruno Haible  <bruno@clisp.org>
47171
47172         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47173         to ia64, x86_64, i386.
47174         Reported by Eric Blake.
47175
47176 2007-06-12  Bruno Haible  <bruno@clisp.org>
47177
47178         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47179         cross-compiling to x86_64.
47180
47181 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47182
47183         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47184         glitch reported by Ralf Wildenhues in
47185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47186
47187         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47188         Vin Shelton.
47189
47190 2007-06-11  Bruno Haible  <bruno@clisp.org>
47191
47192         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47193         replacement string.
47194         Reported by Eric Blake.
47195
47196 2007-06-10  Bruno Haible  <bruno@clisp.org>
47197
47198         Prepare vasnprintf code for use with Unicode strings.
47199         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47200         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47201         TYPE_U32_STRING.
47202         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47203         a_u32_string variants.
47204         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47205         * lib/printf-args.c: Don't include config.h and the specification
47206         header if PRINTF_FETCHARGS is already defined.
47207         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47208         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47209         TYPE_U16_STRING, TYPE_U32_STRING.
47210         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47211         u16_directive, u16_directives, u32_directive, u32_directives): New
47212         types.
47213         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47214         New declarations.
47215         * lib/printf-parse.c: Don't include config.h and the specification
47216         header if PRINTF_PARSE is already defined. Eliminate the set of
47217         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47218         them now. Include c-ctype.h.
47219         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47220         directive and CHAR_T_ONLY_ASCII.
47221         * lib/vasnprintf.c: Don't include config.h and the specification header
47222         if VASNPRINTF is already defined.
47223         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47224         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47225         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47226         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47227         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47228         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47229         code accordingly.
47230         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47231         pad_ourselves also in this case, with the 'c' and 's' directives, and
47232         with a different notion of "width".
47233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47234
47235 2007-06-10  Bruno Haible  <bruno@clisp.org>
47236
47237         * modules/unistr/u32-mbsnlen: New file.
47238         * lib/unistr/u32-mbsnlen.c: New file.
47239
47240         * modules/unistr/u16-mbsnlen: New file.
47241         * lib/unistr/u16-mbsnlen.c: New file.
47242
47243         * modules/unistr/u8-mbsnlen: New file.
47244         * lib/unistr/u8-mbsnlen.c: New file.
47245
47246         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47247         declarations.
47248
47249 2007-06-10  Bruno Haible  <bruno@clisp.org>
47250
47251         * lib/string_.h (mbsnlen): New declaration.
47252         * lib/mbsnlen.c: New file.
47253         * m4/mbsnlen.m4: New file.
47254         * modules/mbsnlen: New file.
47255         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47256         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47257         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47258
47259 2007-06-10  Bruno Haible  <bruno@clisp.org>
47260
47261         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47262
47263 2007-06-10  Bruno Haible  <bruno@clisp.org>
47264
47265         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47266         * lib/mbuiter.h: Likewise.
47267
47268 2007-06-10  Bruno Haible  <bruno@clisp.org>
47269
47270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47271         declaration.
47272
47273 2007-06-10  Karl Berry  <karl@gnu.org>
47274
47275         * config/srclist.txt: remove gettext entries, Bruno prefers
47276         to update individually.
47277
47278 2007-06-10  Bruno Haible  <bruno@clisp.org>
47279
47280         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47281         'maxlen'. Ensure only length + width bytes are allocated, not
47282         length + 1 + width.
47283
47284 2007-06-09  Bruno Haible  <bruno@clisp.org>
47285
47286         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47287         (CHAR_T): Remove macro.
47288         (VASNPRINTF): Update.
47289
47290 2007-06-09  Bruno Haible  <bruno@clisp.org>
47291
47292         * MODULES.html.sh (Unicode string functions): Add the new modules.
47293
47294         * modules/uniconv/u32-conv-to-enc: New file.
47295         * lib/uniconv/u32-conv-to-enc.c: New file.
47296         * modules/uniconv/u32-conv-to-enc-tests: New file.
47297         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47298
47299         * modules/uniconv/u16-conv-to-enc: New file.
47300         * lib/uniconv/u16-conv-to-enc.c: New file.
47301         * lib/uniconv/u-conv-to-enc.h: New file.
47302         * modules/uniconv/u16-conv-to-enc-tests: New file.
47303         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47304
47305         * modules/uniconv/u8-conv-to-enc: New file.
47306         * lib/uniconv/u8-conv-to-enc.c: New file.
47307         * modules/uniconv/u8-conv-to-enc-tests: New file.
47308         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47309
47310         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47311         u32_conv_to_encoding): New declarations.
47312
47313 2007-06-09  Bruno Haible  <bruno@clisp.org>
47314
47315         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47316
47317 2007-06-09  Bruno Haible  <bruno@clisp.org>
47318
47319         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47320         * modules/malloca: Renamed from modules/allocsa, updated.
47321         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47322         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47323         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47324         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47325         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47326         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47327         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47328         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47329         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47330         * modules/c-strcasestr (Depends-on): Update.
47331         * lib/c-strcasestr.c: Update.
47332         * modules/c-strstr (Depends-on): Update.
47333         * lib/c-strstr.c: Update.
47334         * modules/canonicalize-lgpl (Depends-on): Update.
47335         * lib/canonicalize-lgpl.c: Update.
47336         * modules/clean-temp (Depends-on): Update.
47337         * lib/clean-temp.c: Update.
47338         * modules/csharpcomp (Depends-on): Update.
47339         * lib/csharpcomp.c: Update.
47340         * modules/csharpexec (Depends-on): Update.
47341         * lib/csharpexec.c: Update.
47342         * modules/javacomp (Depends-on): Update.
47343         * lib/javacomp.c: Update.
47344         * modules/javaexec (Depends-on): Update.
47345         * lib/javaexec.c: Update.
47346         * modules/mbscasestr (Depends-on): Update.
47347         * lib/mbscasestr.c: Update.
47348         * modules/mbsstr (Depends-on): Update.
47349         * lib/mbsstr.c: Update.
47350         * modules/setenv (Depends-on): Update.
47351         * lib/setenv.c: Update.
47352         * modules/strcasestr (Depends-on): Update.
47353         * lib/strcasestr.c: Update.
47354         * modules/striconveha (Depends-on): Update.
47355         * lib/striconveha.c: Update.
47356         * modules/relocatable-prog-wrapper (Files): Update.
47357         * lib/relocwrapper.c: Update.
47358         * build-aux/install-reloc: Update.
47359         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47360
47361 2007-06-08  Bruno Haible  <bruno@clisp.org>
47362
47363         Port to uClibc.
47364         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47365         * lib/fpurge.c (fpurge): Likewise.
47366         * lib/freading.c (freading): Likewise.
47367         * lib/fseeko.c (rpl_fseeko): Likewise.
47368         * lib/fseterr.c (fseterr): Likewise.
47369         * lib/fwriting.c (fwriting): Likewise.
47370         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47371
47372 2007-06-08  Bruno Haible  <bruno@clisp.org>
47373
47374         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47375         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47376         * modules/gettext (Files): Add m4/intlmacosx.m4.
47377
47378 2007-06-07  Bruno Haible  <bruno@clisp.org>
47379
47380         * modules/localename-tests: New file.
47381         * tests/test-localename.c: New file.
47382
47383         New module 'localename'.
47384         * lib/localename.h: New file.
47385         * lib/localename.c: New file, from GNU gettext.
47386         * m4/localename.m4: New file.
47387         * modules/localename: New file.
47388
47389 2007-06-07  Bruno Haible  <bruno@clisp.org>
47390
47391         Work around the lack of <wchar.h> on some builds of uClibc.
47392         * doc/headers/wchar.texi: Update.
47393         * lib/wchar_.h: Include <wchar.h> only if it exists.
47394         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47395         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47396         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47397         doesn't exist.
47398         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47399         * modules/mbfile (Depends-on): Add wchar.
47400         * modules/mbiter (Depends-on): Likewise.
47401         * modules/mbuiter (Depends-on): Likewise.
47402         Reported by Simon Josefsson.
47403
47404 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47405
47406         Work around problem reported by Steven M. Schweda in
47407         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47408         Tru64 5.1B with the Compaq compiler environment installed declares
47409         an 'isblank' function but does not define it in the C library.
47410         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47411         * lib/regex_internal.h (isblank): Likewise.
47412         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47413         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47414
47415 2007-06-05  Bruno Haible  <bruno@clisp.org>
47416
47417         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47418         ia64.
47419         * modules/printf-safe: New file.
47420         * modules/fprintf-posix (Depends-on): Add printf-safe.
47421         * modules/printf-posix (Depends-on): Likewise.
47422         * modules/snprintf-posix (Depends-on): Likewise.
47423         * modules/sprintf-posix (Depends-on): Likewise.
47424         * modules/vasnprintf-posix (Depends-on): Likewise.
47425         * modules/vasprintf-posix (Depends-on): Likewise.
47426         * modules/vfprintf-posix (Depends-on): Likewise.
47427         * modules/vprintf-posix (Depends-on): Likewise.
47428         * modules/vsnprintf-posix (Depends-on): Likewise.
47429         * modules/vsprintf-posix (Depends-on): Likewise.
47430         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47431         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47432         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47433         "no" on i386, x86_64, ia64.
47434         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47435         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47436         on i386, x86_64, ia64.
47437         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47438         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47439         on i386, x86_64, ia64.
47440         * tests/test-vasnprintf-posix.c: Include float.h.
47441         (LDBL80_WORDS): New macro.
47442         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47443         on i386, x86_64, ia64.
47444         * tests/test-vasprintf-posix.c: Include float.h.
47445         (LDBL80_WORDS): New macro.
47446         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47447         on i386, x86_64, ia64.
47448         * tests/test-snprintf-posix.c: Include float.h.
47449         * tests/test-sprintf-posix.c: Likewise.
47450         * tests/test-vsnprintf-posix.c: Likewise.
47451         * tests/test-vsprintf-posix.c: Likewise.
47452
47453 2007-06-05  Bruno Haible  <bruno@clisp.org>
47454
47455         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47456         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47457         non-IEEE numbers on i386, x86_64, ia64.
47458         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47459         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47460         * tests/test-isnanl.h: Include float.h.
47461         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47462
47463 2007-06-05  Bruno Haible  <bruno@clisp.org>
47464
47465         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47466         also the %a / %A. Handle the %a / %A code before this extra handling.
47467
47468 2007-06-05  Bruno Haible  <bruno@clisp.org>
47469
47470         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47471         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47472
47473 2007-06-05  Bruno Haible  <bruno@clisp.org>
47474
47475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47476         typo in variable name.
47477
47478 2007-06-05  Eric Blake  <ebb9@byu.net>
47479
47480         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47481         Reported by Simon Josefsson.
47482
47483 2007-06-04  Bruno Haible  <bruno@clisp.org>
47484
47485         Avoid test failures on some PowerPC platforms.
47486         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47487         Define differently for PowerPC.
47488         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47489         Reported by Gary V. Vaughan <gary@gnu.org>.
47490
47491 2007-06-02  Bruno Haible  <bruno@clisp.org>
47492
47493         Fix test-stdint failure on FreeBSD/ia64.
47494         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47495         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47496         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47497         * doc/headers/stdint.texi: Update.
47498
47499 2007-06-01  Bruno Haible  <bruno@clisp.org>
47500
47501         * tests/test-binary-io.c (main): Pass a third argument to open().
47502         Reported by Gary V. Vaughan <gary@gnu.org>.
47503
47504 2007-06-01  Bruno Haible  <bruno@clisp.org>
47505
47506         * doc/functions/frexpl.texi: Update for mingw.
47507
47508 2007-06-01  Bruno Haible  <bruno@clisp.org>
47509
47510         * tests/test-lseek.c (main): Disable test of errno for invalid third
47511         argument.
47512         * doc/functions/lseek.texi: Update.
47513         Reported by Gary V. Vaughan <gary@gnu.org>.
47514
47515 2007-05-28  Bruno Haible  <bruno@clisp.org>
47516
47517         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47518
47519 2007-05-31  Eric Blake  <ebb9@byu.net>
47520
47521         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47522         cross compiling.
47523
47524 2007-05-30  Eric Blake  <ebb9@byu.net>
47525         and Bruno Haible  <bruno@clisp.org>
47526
47527         Work around mingw test failures exposed by m4-1.4.9b.
47528         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47529         * tests/test-unistd.c: Disable uid_t and git_t tests for the
47530         moment.
47531
47532 2007-05-30  Bruno Haible  <bruno@clisp.org>
47533
47534         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47535         assuming that they are closed. Needed on HP-UX 11.
47536
47537 2007-05-29  Bruno Haible  <bruno@clisp.org>
47538
47539         Fix a problem with #include_next.
47540         * lib/dirent_.h: Split the double-inclusion guard.
47541         * lib/fcntl_.h: Likewise.
47542         * lib/float_.h: Likewise.
47543         * lib/iconv_.h: Likewise.
47544         * lib/inttypes_.h: Likewise.
47545         * lib/locale_.h: Likewise.
47546         * lib/math_.h: Likewise.
47547         * lib/netinet_in_.h: Likewise.
47548         * lib/search_.h: Likewise.
47549         * lib/signal_.h: Likewise.
47550         * lib/stdint_.h: Likewise.
47551         * lib/stdio_.h: Likewise.
47552         * lib/stdlib_.h: Likewise.
47553         * lib/string_.h: Likewise.
47554         * lib/sys_select_.h: Likewise.
47555         * lib/sys_socket_.h: Likewise.
47556         * lib/sys_stat_.h: Likewise.
47557         * lib/sys_time_.h: Likewise.
47558         * lib/sysexits_.h: Likewise.
47559         * lib/time_.h: Likewise.
47560         * lib/unistd_.h: Likewise.
47561         * lib/wchar_.h: Likewise.
47562         * lib/wctype_.h: Likewise.
47563
47564 2007-05-29  Bruno Haible  <bruno@clisp.org>
47565
47566         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47567         for the moment.
47568
47569 2007-05-29  Bruno Haible  <bruno@clisp.org>
47570
47571         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47572         invocation.
47573         Reported by Eric Blake.
47574
47575 2007-05-29  Bruno Haible  <bruno@clisp.org>
47576
47577         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47578         compiling case.
47579
47580 2007-05-29  Eric Blake  <ebb9@byu.net>
47581             Bruno Haible  <bruno@clisp.org>
47582
47583         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47584         cross compiles.
47585
47586 2007-05-28  Eric Blake  <ebb9@byu.net>
47587
47588         * modules/closein-tests (test_closein_LDADD): Support test on
47589         cygwin with libtool.
47590
47591 2007-05-28  Bruno Haible  <bruno@clisp.org>
47592
47593         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47594         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47595         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47596         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47597         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47598         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47599         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47600         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47601         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47602
47603 2007-05-28  Eric Blake  <ebb9@byu.net>
47604
47605         Unconditionally include <config.h> in unit tests.
47606         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
47607         * tests/test-allocsa.c, tests/test-arcfour.c,
47608         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
47609         tests/test-array_list.c, tests/test-array_oset.c,
47610         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
47611         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
47612         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
47613         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
47614         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
47615         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
47616         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
47617         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
47618         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
47619         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
47620         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
47621         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
47622         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
47623         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
47624         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
47625         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
47626         test-md5.c, test-memmem.c, test-printf-posix.c,
47627         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
47628         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
47629         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
47630         test-strcasestr.c, test-striconv.c, test-striconveh.c,
47631         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
47632         test-vasnprintf-posix2.c, test-vasnprintf.c,
47633         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
47634         test-vfprintf-posix.c, test-vprintf-posix.c,
47635         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
47636         test-xvasprintf.c: Likewise.
47637
47638 2007-05-28  Bruno Haible  <bruno@clisp.org>
47639
47640         * gnulib-tool (func_import): Remember the --with-tests command-line
47641         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
47642         Reported by Eric Blake.
47643
47644 2007-05-28  Bruno Haible  <bruno@clisp.org>
47645
47646         * modules/ftell-tests: New file.
47647         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
47648         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
47649
47650         * lib/ftell.c: New file.
47651         * modules/ftell: New file.
47652         * m4/ftell.m4: New file.
47653         * doc/functions/ftell.texi: Update.
47654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
47655         REPLACE_FTELL.
47656         * lib/stdio_.h (rpl_ftell): New declaration.
47657         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
47658         REPLACE_FTELL.
47659
47660 2007-05-28  Eric Blake  <ebb9@byu.net>
47661
47662         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
47663
47664 2007-05-28  Bruno Haible  <bruno@clisp.org>
47665
47666         * modules/fseek-tests: New file.
47667         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
47668         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
47669
47670         * lib/fseek.c: New file.
47671         * modules/fseek: New file.
47672         * m4/fseek.m4: New file.
47673         * doc/functions/fseek.texi: Update.
47674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
47675         REPLACE_FSEEK.
47676         * lib/stdio_.h (rpl_fseek): New declaration.
47677         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
47678         REPLACE_FSEEK.
47679
47680 2007-05-28  Bruno Haible  <bruno@clisp.org>
47681
47682         * lib/stdio_.h (fflush): More comments.
47683
47684 2007-05-28  Bruno Haible  <bruno@clisp.org>
47685
47686         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
47687         runtime test.
47688
47689 2007-05-28  Eric Blake  <ebb9@byu.net>
47690
47691         Improve lseek module.
47692         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
47693         * lib/unistd_.h (lseek): Scale back link warning message.
47694         * tests/test-lseek.c: Beef up test.
47695         * tests/test-lseek.sh: Exercise more facets of lseek.
47696         Reported by Bruno Haible.
47697
47698 2007-05-28  Bruno Haible  <bruno@clisp.org>
47699
47700         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
47701         to define.
47702
47703 2007-05-27  Bruno Haible  <bruno@clisp.org>
47704
47705         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
47706
47707 2007-05-27  Bruno Haible  <bruno@clisp.org>
47708
47709         * modules/openmp: New file.
47710         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
47711         Noah Misch.
47712
47713 2007-05-26  Bruno Haible  <bruno@clisp.org>
47714
47715         * modules/chdir-long (Depends-on): Add fchdir.
47716         * modules/chdir-safer (Depends-on): Likewise.
47717         * modules/fts (Depends-on): Likewise.
47718         * modules/fts-lgpl (Depends-on): Likewise.
47719         * modules/openat (Depends-on): Likewise.
47720         * modules/savewd (Depends-on): Likewise.
47721
47722 2007-05-24  Eric Blake  <ebb9@byu.net>
47723
47724         Fix lseek on mingw.
47725         * modules/lseek: New module.
47726         * m4/lseek.m4: New file.
47727         * lib/lseek.c: New file.
47728         * modules/lseek-tests: New file.
47729         * tests/test-lseek.c: New file.
47730         * tests/test-lseek.sh: New file.
47731         * MODULES.html.sh: Document lseek module.
47732         * modules/fflush (Depends-on): Add lseek, fseeko.
47733         * modules/fseeko (Depends-on): Likewise.
47734         * modules/ftello (Depends-on): Likewise.
47735         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
47736         broken.
47737         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
47738         broken.
47739         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
47740         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
47741         * lib/ftello.c (rpl_ftello): Likewise.
47742         * tests/test-fseeko.c (main): Test this.
47743         * tests/test-fseeko.sh: Likewise.
47744         * tests/test-ftello.c (main): Likewise.
47745         * tests/test-ftello.sh: Likewise.
47746         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
47747         implies replacing fseek.
47748         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
47749         HAVE_FTELLO.
47750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
47751         * modules/unistd (Makefile.am): Likewise.
47752         * lib/unistd_.h (lseek): Declare a replacement.
47753         * doc/functions/lseek.texi (lseek): Document this fix.
47754         * doc/functions/fseek.texi (fseek): Likewise.
47755         * doc/functions/ftell.texi (ftell): Likewise.
47756
47757 2007-05-24  Bruno Haible  <bruno@clisp.org>
47758
47759         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
47760         in the printed representation of a NaN.
47761         * tests/test-vasprintf-posix.c (test_function): Likewise.
47762         * tests/test-snprintf-posix.h (test_function): Likewise.
47763         * tests/test-sprintf-posix.h (test_function): Likewise.
47764         Reported by Eric Blake.
47765
47766 2007-05-23  Eric Blake  <ebb9@byu.net>
47767
47768         Fix fseeko/ftello on cygwin 1.5.24.
47769         * doc/functions/fseeko.texi (fseeko): Document the fix.
47770         * doc/functions/ftello.texi (ftello): Document the fix.
47771         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
47772         * doc/functions/stdout.text (stdout): New file.
47773         * doc/functions/stderr.text (stderr): New file.
47774         * doc/gnulib.texi (Function Substitutes): Use new files.
47775         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
47776         prior to 1.7.0.
47777         * tests/test-ftello.c (main): Likewise for ftello.
47778         * tests/test-fseeko.sh: New file.
47779         * tests/test-ftello.sh: New file.
47780         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
47781         with seekable stdin.
47782         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
47783         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
47784         (gl_REPLACE_FSEEKO): New macro.
47785         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
47786         * modules/fseeko (Files): Distribute fseeko.c.
47787         * modules/ftello (Files): Distribute ftello.c.
47788         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
47789         mode.
47790         * lib/ftello.c (rpl_ftello): New file.
47791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
47792         fseeko, ftello.
47793         (gl_STDIN_LARGE_OFFSET): New macro.
47794         * modules/stdio (Makefile.am): Perform the replacement.
47795         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
47796
47797 2007-05-23  Bruno Haible  <bruno@clisp.org>
47798
47799         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
47800         GNULIB_POSIXCHECK is defined.
47801
47802 2007-05-21  Bruno Haible  <bruno@clisp.org>
47803
47804         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
47805         Check also the output for NaN arguments. When cross-compiling, guess
47806         no on IRIX.
47807         * lib/vasnprintf.c: Update comments.
47808         * tests/test-vasnprintf-posix.c (strisnan): New function.
47809         (test_function): Use it.
47810         * tests/test-vasprintf-posix.c (strisnan): New function.
47811         (test_function): Use it.
47812         * tests/test-snprintf-posix.h (strisnan): New function.
47813         (test_function): Use it.
47814         * tests/test-sprintf-posix.h (strisnan): New function.
47815         (test_function): Use it.
47816         Reported by Eric Blake.
47817
47818 2007-05-20  Bruno Haible  <bruno@clisp.org>
47819
47820         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
47821         numbers that fails on BeOS.
47822         * doc/functions/frexpl.texi: Update.
47823
47824 2007-05-20  Jim Meyering  <jim@meyering.net>
47825
47826         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
47827         forced upon us by glibc-2.6.
47828
47829 2007-05-20  Bruno Haible  <bruno@clisp.org>
47830
47831         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
47832         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
47833         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
47834         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
47835         NEED_PRINTF_INFINITE.
47836         (is_infinitel): New function.
47837         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
47838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
47839         gl_PREREQ_VASNPRINTF_INFINITE.
47840         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
47841         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47842         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
47843         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
47844         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
47845         gl_PREREQ_VASNPRINTF_INFINITE.
47846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47853         * doc/functions/fprintf.texi: Update.
47854         * doc/functions/printf.texi: Update.
47855         * doc/functions/snprintf.texi: Update.
47856         * doc/functions/sprintf.texi: Update.
47857         * doc/functions/vfprintf.texi: Update.
47858         * doc/functions/vprintf.texi: Update.
47859         * doc/functions/vsnprintf.texi: Update.
47860         * doc/functions/vsprintf.texi: Update.
47861
47862 2007-05-20  Bruno Haible  <bruno@clisp.org>
47863
47864         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
47865         was not found in libc.
47866         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47867
47868 2007-05-20  Bruno Haible  <bruno@clisp.org>
47869
47870         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47871         printed as "-nan" instead of "nan".
47872         * tests/test-vasprintf-posix.c (test_function): Likewise.
47873         * tests/test-snprintf-posix.h (test_function): Likewise.
47874         * tests/test-sprintf-posix.h (test_function): Likewise.
47875         Needed for HP-UX 11.
47876
47877 2007-05-20  Jim Meyering  <jim@meyering.net>
47878
47879         Fix buggy test for the fchownat-deref bug.
47880         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
47881         symlink required for the run-test.  Without it, this test would
47882         always declare that fchownat doesn't work, and client code would
47883         unnecessarily use the replacement function with fixed libc.
47884         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
47885         Reported by Greg Schafer.
47886
47887 2007-05-19  Bruno Haible  <bruno@clisp.org>
47888
47889         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
47890         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
47891         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
47892         Needed for IRIX 6.5 and Solaris 2.5.1.
47893
47894 2007-05-19  Bruno Haible  <bruno@clisp.org>
47895
47896         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
47897         (test_function): Skip tests involving -0.0 on platforms where
47898         -0.0 = 0.0.
47899         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
47900         (test_function): Skip tests involving -0.0 on platforms where
47901         -0.0 = 0.0.
47902         * tests/test-snprintf-posix.h (have_minus_zero): New function.
47903         (test_function): Skip tests involving -0.0 on platforms where
47904         -0.0 = 0.0.
47905         * tests/test-sprintf-posix.h (have_minus_zero): New function.
47906         (test_function): Skip tests involving -0.0 on platforms where
47907         -0.0 = 0.0.
47908         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
47909         tests.
47910         * tests/test-printf-posix.h (test_function): Likewise.
47911         * tests/test-printf-posix.output: Remove all -0.0 related results.
47912         Needed for IRIX 6.5.
47913
47914 2007-05-19  Bruno Haible  <bruno@clisp.org>
47915
47916         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
47917         printed as "nan0x7fffffff" instead of "nan".
47918         * tests/test-vasprintf-posix.c (test_function): Likewise.
47919         * tests/test-snprintf-posix.h (test_function): Likewise.
47920         * tests/test-sprintf-posix.h (test_function): Likewise.
47921         * tests/test-fprintf-posix.h (NaN): Remove macro.
47922         (test_function): Remove all NaN related tests.
47923         * tests/test-printf-posix.h (NaN): Remove macro.
47924         (test_function): Remove all NaN related tests.
47925         * tests/test-printf-posix.output: Remove all NaN related results.
47926         Needed for IRIX 6.5.
47927
47928 2007-05-19  Bruno Haible  <bruno@clisp.org>
47929
47930         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
47931         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47932
47933 2007-05-19  Bruno Haible  <bruno@clisp.org>
47934
47935         * lib/float_.h: New file.
47936         * m4/float_h.m4: New file.
47937         * modules/float: New file.
47938         * modules/isnanl (Dependencies): Add float.
47939         * modules/isnanl-nolibm (Dependencies): Likewise.
47940         * modules/mathl (Dependencies): Likewise.
47941         * modules/printf-frexpl (Dependencies): Likewise.
47942         * modules/signbit (Dependencies): Likewise.
47943         * modules/vasnprintf (Dependencies): Likewise.
47944         * doc/headers/float.texi: Update.
47945
47946 2007-05-19  Jim Meyering  <jim@meyering.net>
47947
47948         * lib/utimens.c (gl_futimens): Rename from futimens,
47949         now that glibc-2.6 declares futimens.
47950         * lib/utimens.h: Likewise.
47951
47952 2007-05-19  Bruno Haible  <bruno@clisp.org>
47953
47954         Avoid test failures on mingw.
47955         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
47956         * tests/test-printf-posix.sh: Likewise.
47957         * tests/test-vfprintf-posix.sh: Likewise.
47958         * tests/test-vprintf-posix.sh: Likewise.
47959
47960 2007-05-19  Bruno Haible  <bruno@clisp.org>
47961
47962         Fix *printf result for NaN, Inf, -0.0 on mingw.
47963         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
47964         * lib/vasnprintf.c: Include math.h and isnan.h.
47965         (is_infinite_or_zero): New function.
47966         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
47967         values in the %f, %F, %e, %E, %g, %G directives.
47968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
47969         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47970         gl_PRINTF_INFINITE and test its result. Invoke
47971         gl_PREREQ_VASNPRINTF_INFINITE.
47972         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47973         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47976         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47979         * doc/functions/fprintf.texi: Update.
47980         * doc/functions/printf.texi: Update.
47981         * doc/functions/snprintf.texi: Update.
47982         * doc/functions/sprintf.texi: Update.
47983         * doc/functions/vfprintf.texi: Update.
47984         * doc/functions/vprintf.texi: Update.
47985         * doc/functions/vsnprintf.texi: Update.
47986         * doc/functions/vsprintf.texi: Update.
47987
47988 2007-05-19  Bruno Haible  <bruno@clisp.org>
47989
47990         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
47991         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
47992         Instead of multiplying with 10^k, set extra_zeroes to k.
47993         (scale10_round_long_double): Remove function.
47994
47995 2007-05-18  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
47998         introduced on 2007-05-06.
47999
48000 2007-05-18  Bruno Haible  <bruno@clisp.org>
48001
48002         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
48003         %g directives.
48004         * tests/test-vasprintf-posix.c (test_function): Likewise.
48005         * tests/test-snprintf-posix.h (test_function): Likewise.
48006         * tests/test-sprintf-posix.h (test_function): Likewise.
48007
48008 2007-05-18  Bruno Haible  <bruno@clisp.org>
48009
48010         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
48011         (strmatch): New function.
48012         (test_function): Test the %f directive on numbers of various exponents.
48013         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
48014         (strmatch): New function.
48015         (test_function): Test the %f directive on numbers of various exponents.
48016         * tests/test-snprintf-posix.h (strmatch): New function.
48017         (test_function): Test the %f directive on numbers of various exponents.
48018         * tests/test-sprintf-posix.h (strmatch): New function.
48019         (test_function): Test the %f directive on numbers of various exponents.
48020         * tests/test-snprintf-posix.c (SIZEOF): New macro.
48021         * tests/test-sprintf-posix.c (SIZEOF): New macro.
48022         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
48023         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
48024
48025 2007-05-18  Bruno Haible  <bruno@clisp.org>
48026
48027         Add support for 'long double' number output.
48028         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
48029         * lib/vasnprintf.c: Include math.h and float+.h.
48030         (mp_limb_t): New type.
48031         (GMP_LIMB_BITS): New macro.
48032         (mp_twolimb_t): New type.
48033         (GMP_TWOLIMB_BITS): New macro.
48034         (mpn_t): New type.
48035         (multiply, divide, convert_to_decimal, decode_long_double,
48036         scale10_round_long_double, scale10_round_decimal_long_double,
48037         floorlog10l): New functions.
48038         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
48039         for the %f, %F, %e, %E, %g, %G directives.
48040         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
48041         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48042         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
48043         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
48044         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48046         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48047         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48048         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48050         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48051         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
48052         * modules/snprintf-posix (Depends-on): Likewise.
48053         * modules/sprintf-posix (Depends-on): Likewise.
48054         * modules/vasnprintf-posix (Depends-on): Likewise.
48055         * modules/vasprintf-posix (Depends-on): Likewise.
48056         * modules/vfprintf-posix (Depends-on): Likewise.
48057         * modules/vsnprintf-posix (Depends-on): Likewise.
48058         * modules/vsprintf-posix (Depends-on): Likewise.
48059         * modules/vasnprintf (Files): Add lib/float+.h.
48060         * doc/functions/fprintf.texi: Update.
48061         * doc/functions/printf.texi: Update.
48062         * doc/functions/snprintf.texi: Update.
48063         * doc/functions/sprintf.texi: Update.
48064         * doc/functions/vfprintf.texi: Update.
48065         * doc/functions/vprintf.texi: Update.
48066         * doc/functions/vsnprintf.texi: Update.
48067         * doc/functions/vsprintf.texi: Update.
48068
48069 2007-05-18  Bruno Haible  <bruno@clisp.org>
48070
48071         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
48072
48073 2007-05-18  Bruno Haible  <bruno@clisp.org>
48074
48075         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
48076         for printing 64-bit integers. Needed for mingw.
48077
48078 2007-05-18  Bruno Haible  <bruno@clisp.org>
48079
48080         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48081         gl_FUNC_FREXPL_WORKS.
48082         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
48083
48084 2007-05-18  Bruno Haible  <bruno@clisp.org>
48085
48086         * modules/frexpl-nolibm-tests: New file.
48087
48088         * modules/frexpl-nolibm: New file.
48089         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
48090
48091 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48092
48093         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
48094         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48095         GCC 4.2, which otherwise issues a lot of warnings.
48096         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
48097         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
48098         Likewise.
48099         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
48100         * modules/iconv_open (iconv.h): Likewise.
48101         * modules/locale (locale.h): Likewise.
48102         * modules/netinet_in (netinet/in.h): Likewise.
48103         * modules/sys_select (sys_select.h): Likewise.
48104         * modules/sys_socket (sys/socket.h): Likewise.
48105         * modules/sys_stat (sys/stat.h): Likewise.
48106         * modules/sysexits (sysexits.h): Likewise.
48107         * modules/unistd (unistd.h): Likewise.
48108
48109 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48110
48111         * modules/closein-tests (Makefile.am): Distribute
48112         `test-closein.sh'.
48113
48114 2007-05-17  Bruno Haible  <bruno@clisp.org>
48115
48116         * tests/test-printf-posix.output: Renamed from
48117         tests/test-fprintf-posix.out.
48118         * modules/fprintf-posix-tests: Update.
48119         * modules/printf-posix-tests: Update.
48120         * modules/vfprintf-posix-tests: Update.
48121         * modules/vprintf-posix-tests: Update.
48122         * tests/test-fprintf-posix.sh: Update.
48123         * tests/test-printf-posix.sh: Update.
48124         * tests/test-vfprintf-posix.sh: Update.
48125         * tests/test-vprintf-posix.sh: Update.
48126         Reported by Ralf Wildenhues.
48127
48128 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48129
48130         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
48131         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48132         GCC 4.2, which otherwise issues a lot of warnings.
48133         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
48134         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
48135         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
48136         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
48137         it should no longer be needed.
48138         * lib/string_.h: Likewise.
48139         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
48140         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
48141         * modules/inttypes (inttypes.h): Likewise.
48142         * modules/math (math.h): Likewise.
48143         * modules/search (search.h): Likewise.
48144         * modules/signal (signal.h): Likewise.
48145         * modules/stdint (stdint.h): Likewise.
48146         * modules/stdio (stdio.h): Likewise.
48147         * modules/stdlib (stdlib.h): Likewise.
48148         * modules/string (string.h): Likewise.
48149         * modules/sys_time (sys/time.h): Likewise.
48150         * modules/time (time.h): Likewise.
48151         * modules/wchar (wchar.h): Likewise.
48152         * modules/wctype (wtype.h): Likewise.
48153
48154 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48155
48156         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48157
48158 2007-05-13  Bruno Haible  <bruno@clisp.org>
48159
48160         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48161         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48162         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48163         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48164         (gl_PREREQ_STRTOK_R): Don't require it here.
48165
48166 2007-05-13  Bruno Haible  <bruno@clisp.org>
48167
48168         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48169         when used in C++ mode.
48170
48171 2007-05-12  Bruno Haible  <bruno@clisp.org>
48172
48173         * lib/linebuffer.h: Tweak doc.
48174         * lib/linebuffer.c: Likewise.
48175
48176 2007-05-12  James Youngman  <jay@gnu.org>
48177
48178         * lib/linebuffer.c (readlinebuffer_delim): New function,
48179         like readlinebuffer, but use a caller-specified delimiter.
48180         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48181         as the delimiter.
48182         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48183
48184 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48185
48186         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48187         * modules/openat (Files): Remove openat-die.c.
48188         (Depends-on): Add openat-die.
48189         * modules/openat-die: New module.
48190
48191 2007-05-06  Bruno Haible  <bruno@clisp.org>
48192
48193         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48194         Update with info about Cygwin.
48195         * doc/functions/fprintf.texi: Update.
48196         * doc/functions/printf.texi: Update.
48197         * doc/functions/snprintf.texi: Update.
48198         * doc/functions/sprintf.texi: Update.
48199         * doc/functions/vfprintf.texi: Update.
48200         * doc/functions/vprintf.texi: Update.
48201         * doc/functions/vsnprintf.texi: Update.
48202         * doc/functions/vsprintf.texi: Update.
48203         Reported by Eric Blake.
48204
48205 2007-05-06  Bruno Haible  <bruno@clisp.org>
48206
48207         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48208         padding ourselves for the floating-point directives.
48209         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48212         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48213         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48217         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48218         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48221         * tests/test-snprintf-posix.h (test_function): Also check the width
48222         and some flags in the %f directive.
48223         * tests/test-sprintf-posix.h (test_function): Likewise.
48224         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48225         * tests/test-vasprintf-posix.c (test_function): Likewise.
48226         * doc/functions/fprintf.texi: Update.
48227         * doc/functions/printf.texi: Update.
48228         * doc/functions/snprintf.texi: Update.
48229         * doc/functions/sprintf.texi: Update.
48230         * doc/functions/vfprintf.texi: Update.
48231         * doc/functions/vprintf.texi: Update.
48232         * doc/functions/vsnprintf.texi: Update.
48233         * doc/functions/vsprintf.texi: Update.
48234
48235 2007-05-06  Bruno Haible  <bruno@clisp.org>
48236
48237         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48238         pass the ' flag character to sprintf or snprintf.
48239         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48240         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48241         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48242         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48243         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48245         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48251         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48252         flag.
48253         * tests/test-sprintf-posix.h (test_function): Likewise.
48254         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48255         * tests/test-vasprintf-posix.c (test_function): Likewise.
48256         * doc/functions/fprintf.texi: Update.
48257         * doc/functions/printf.texi: Update.
48258         * doc/functions/snprintf.texi: Update.
48259         * doc/functions/sprintf.texi: Update.
48260         * doc/functions/vfprintf.texi: Update.
48261         * doc/functions/vprintf.texi: Update.
48262         * doc/functions/vsnprintf.texi: Update.
48263         * doc/functions/vsprintf.texi: Update.
48264
48265 2007-05-01  Bruno Haible  <bruno@clisp.org>
48266
48267         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48268
48269 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48270
48271         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48272         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48273
48274 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48275
48276         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48277         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48278         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48279
48280 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48281
48282         * lib/argp-help.c (struct hol_entry): New member `ord'.
48283         (HOL_ENTRY_PTRCMP): Use ord for comparison
48284         (hol_sort): Initialize ord.
48285
48286 2007-05-01  Bruno Haible  <bruno@clisp.org>
48287
48288         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48289         Reported by Eric Blake.
48290         * doc/gnulib.texi (Function Substitutes): Update.
48291
48292 2007-05-01  Bruno Haible  <bruno@clisp.org>
48293
48294         * doc/functions.texi: Remove file, now redundant through
48295         doc/functions/*.texi.
48296
48297 2007-05-01  Bruno Haible  <bruno@clisp.org>
48298
48299         * modules/argp (Depends-on): Add sleep.
48300
48301 2007-05-01  Bruno Haible  <bruno@clisp.org>
48302
48303         * modules/sleep-tests: New file.
48304         * tests/test-sleep.c: New file.
48305
48306         * modules/sleep: New file.
48307         * lib/sleep.c: New file.
48308         * m4/sleep.m4: New file.
48309         * lib/unistd_.h (sleep): New declaration.
48310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48311         HAVE_SLEEP.
48312         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48313         * doc/functions/sleep.texi: Document the sleep module.
48314
48315 2007-05-01  Bruno Haible  <bruno@clisp.org>
48316
48317         * lib/sigprocmask.h: Remove file.
48318         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48319         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48320         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48321         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48322         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48323         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48324         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48325         HAVE_SIGSET_T as a shell variable.
48326         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48327         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48328         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48329         (Depends-on): Add signal. Remove verify.
48330         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48331         (Include): Mention <signal.h> instead of sigprocmask.h.
48332         * NEWS: Mention the change.
48333         * lib/fatal-signal.c: Don't include sigprocmask.h.
48334
48335 2007-05-01  Bruno Haible  <bruno@clisp.org>
48336
48337         * modules/signal: New file.
48338         * lib/signal_.h: New file.
48339         * m4/signal_h.m4: New file.
48340
48341 2007-05-01  Bruno Haible  <bruno@clisp.org>
48342
48343         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48344         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48345         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48346         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48347
48348 2007-05-01  Bruno Haible  <bruno@clisp.org>
48349
48350         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48351         configure time.
48352         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48353         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48354         * modules/sys_stat (Makefile.am): Substitute their values into
48355         sys/stat.h.
48356
48357 2007-05-01  Bruno Haible  <bruno@clisp.org>
48358
48359         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48360         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48361         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48362
48363 2007-05-01  Bruno Haible  <bruno@clisp.org>
48364
48365         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48366         'assert' module here.
48367
48368 2007-05-01  Bruno Haible  <bruno@clisp.org>
48369
48370         * doc/functions/*.texi: New files.
48371         * doc/functions/google-ranking.txt: New file.
48372         * doc/gnulib.texi (Function Substitutes): New chapter.
48373         (ctime, inet_ntoa): Remove sections.
48374         * doc/ctime.texi: Remove file.
48375         * doc/inet_ntoa.texi: Remove file.
48376         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48377         dependencies.
48378         (%.info): New rule, specifying a --reference-limit.
48379
48380 2007-05-01  Bruno Haible  <bruno@clisp.org>
48381
48382         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48383
48384 2007-05-01  Bruno Haible  <bruno@clisp.org>
48385
48386         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48387         the portability of 'mkdir' to mingw systems.
48388
48389 2007-05-01  Bruno Haible  <bruno@clisp.org>
48390
48391         * doc/headers/google-ranking.txt: New file.
48392
48393 2007-04-30  Eric Blake  <ebb9@byu.net>
48394
48395         Prefer fseeko to fseek.
48396         * modules/getpass (Depends-on): Add fseeko.
48397         * lib/getpass.c (getpass): Use fseeko, not fseek.
48398
48399 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48400
48401         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48402         assumes the sorting is stable, while most qsort implementations
48403         are not.  Use argument addresses to ensure they never compare as
48404         equal.
48405
48406         * tests/test-argp-2.sh (usage-indent test): Fix output
48407         (func_compare): Restore diff options
48408         * tests/test-argp.c: Restore #include "progname.h"
48409
48410 2007-04-29  Bruno Haible  <bruno@clisp.org>
48411
48412         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48413         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48414         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48415         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48416         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48417         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48418         (TESTS, check_PROGRAMS): Add test-snprintf.
48419         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48420         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48421         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48422         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48423         assertions that fail on HP-UX, OSF/1, or IRIX.
48424         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48425
48426 2007-04-29  Bruno Haible  <bruno@clisp.org>
48427
48428         * MODULES.html.sh (posix_functions): Remove 'contents'.
48429
48430 2007-04-29  Karl Berry  <karl@gnu.org>
48431
48432         * config/srclist.txt (gendocs_template_min): new entry.
48433
48434 2007-04-29  Bruno Haible  <bruno@clisp.org>
48435
48436         Work around fpurge bug on BSD systems.
48437         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48438         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48439         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48440         fpurge to rpl_fpurge if the system already has this function.
48441         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48442         the case where the system already has this function. Correct invariants
48443         on BSD systems.
48444         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48445         BSD systems.
48446
48447 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48448
48449         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48450         proposed by Sven Verdoolaege.
48451
48452         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48453         options.
48454         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48455         (usage and help tests): Update
48456
48457 2007-04-29  Bruno Haible  <bruno@clisp.org>
48458
48459         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48460         Print more information in case of failure. Disable a test on BeOS.
48461
48462 2007-04-29  Bruno Haible  <bruno@clisp.org>
48463
48464         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48465         This helps debugging on systems on which no gdb is available.
48466
48467 2007-04-29  Bruno Haible  <bruno@clisp.org>
48468
48469         * lib/freading.h: Improve comments.
48470         * lib/fwriting.h: Likewise.
48471         * tests/test-freading.c (main): Don't check freading immediately after
48472         repositioning. Needed for glibc.
48473
48474 2007-04-29  Bruno Haible  <bruno@clisp.org>
48475
48476         * lib/freading.c (freading): Trivial simplification.
48477
48478 2007-04-28  Bruno Haible  <bruno@clisp.org>
48479
48480         * tests/test-fwriting.c (main): Also test the interaction between
48481         fflush and fwriting.
48482         * modules/fwriting-tests (Depends-on): Add fflush.
48483
48484         * tests/test-freading.c (main): Also test the interaction between
48485         fflush and freading.
48486         * modules/freading-tests (Depends-on): Add fflush.
48487
48488 2007-04-28  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48491         fseeko and ftello.
48492         Suggested by Eric Blake.
48493
48494 2007-04-28  Jim Meyering  <jim@meyering.net>
48495
48496         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48497         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48498         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48499
48500 2007-04-27  Eric Blake  <ebb9@byu.net>
48501
48502         * doc/headers/assert.texi (assert.h): Document assert module use.
48503
48504 2007-04-27  Bruno Haible  <bruno@clisp.org>
48505
48506         * doc/headers/*.texi: New files.
48507         * doc/gnulib.texi (Header File Substitutes): New chapter.
48508         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48509         dependencies.
48510         (standards.info ,standards.html, standards.dvi): Update dependencies.
48511         (mostlyclean, clean): New targets.
48512
48513 2007-04-27  Bruno Haible  <bruno@clisp.org>
48514
48515         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48516         * modules/sysexits (Files, Makefile.am): Update.
48517
48518         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48519         * modules/sys_socket (Files, Makefile.am): Update.
48520
48521         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48522         * modules/sys_stat (Files, Makefile.am): Update.
48523
48524 2007-04-27  Eric Blake  <ebb9@byu.net>
48525
48526         * lib/freading.h: Improve comments.
48527         * lib/fwriting.h: Likewise.
48528         * lib/fflush.c: Likewise.
48529
48530         Fix closein for mingw.
48531         * modules/closein-tests: Add tests for closein.
48532         * tests/test-closein.c: New file.
48533         * tests/test-closein.sh: Likewise.
48534         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48535         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48536
48537 2007-04-27  Bruno Haible  <bruno@clisp.org>
48538
48539         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48540         version is < 6.
48541         * lib/math_.h [__DECC]: Likewise.
48542         * lib/stdio_.h [__DECC]: Likewise.
48543         * lib/stdlib_.h [__DECC]: Likewise.
48544         * lib/string_.h [__DECC]: Likewise.
48545         * lib/time_.h [__DECC]: Likewise.
48546         * lib/wchar_.h [__DECC]: Likewise.
48547         * lib/wctype_.h [__DECC]: Likewise.
48548
48549 2007-04-27  Bruno Haible  <bruno@clisp.org>
48550
48551         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48552
48553 2007-04-27  Bruno Haible  <bruno@clisp.org>
48554
48555         * lib/fflush.c: Add comments.
48556         * modules/fpurge-tests (Depends-on): Add fflush.
48557         * modules/freadable-tests (Depends-on): Likewise.
48558         * modules/fwritable-tests (Depends-on): Likewise.
48559
48560 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48561
48562         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48563         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48564         Report by Bruno Haible <bruno@clisp.org>.
48565
48566 2007-04-26  Eric Blake  <ebb9@byu.net>
48567
48568         Fix fflush on mingw.
48569         * modules/fflush (Depends-on): Add freading.
48570         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48571         but unread data.
48572
48573 2007-04-26  Eric Blake  <ebb9@byu.net>
48574         and Bruno Haible  <bruno@clisp.org>
48575
48576         Implement freading and fwriting.
48577         * lib/freading.c: New file.
48578         * lib/freading.h: Likewise.
48579         * m4/freading.m4: Likewise.
48580         * modules/freading: Likewise.
48581         * modules/freading-tests: Likewise.
48582         * tests/test-freading.c: Likewise.
48583         * lib/fwriting.c: New file.
48584         * lib/fwriting.h: Likewise.
48585         * m4/fwriting.m4: Likewise.
48586         * modules/fwriting: Likewise.
48587         * modules/fwriting-tests: Likewise.
48588         * tests/test-fwriting.c: Likewise.
48589         * MODULES.html.sh (File stream based Input/Output): Mention them.
48590
48591 2007-04-26  Bruno Haible  <bruno@clisp.org>
48592
48593         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48594         'long' when we assume it.
48595         Suggested by Eric Blake.
48596
48597 2007-04-26  Bruno Haible  <bruno@clisp.org>
48598
48599         Ensure fseeko, ftello are declared on glibc systems.
48600         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
48601         * modules/fseeko (configure.ac-early): Likewise.
48602         * modules/ftello (configure.ac-early): Likewise.
48603         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
48604         AC_FUNC_FSEEKO for this.
48605         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
48606         (gl_CHECK_FSEEKO): Remove macro.
48607
48608 2007-04-26  Bruno Haible  <bruno@clisp.org>
48609
48610         * tests/test-fflush.c (main): Also check the ftell result after
48611         fflush and fseek/fseeko.
48612         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
48613         file descriptor position cache in the stream.
48614         * lib/fseeko.c (rpl_fseeko): Likewise.
48615
48616 2007-04-26  Bruno Haible  <bruno@clisp.org>
48617
48618         * modules/fflush-tests (Depends-on): Add fseeko.
48619
48620 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
48621             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48622
48623         * lib/argz_.h: ensure error_t definition is obtained in same
48624         mechanism system argz.h would have.
48625         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
48626         argz facilities are known bad.  Err on the side of caution if
48627         cross-compiling.
48628
48629 2007-04-25  Eric Blake  <ebb9@byu.net>
48630
48631         * lib/fpurge.c (includes): Use stdlib.h for free.
48632         * tests/test-fflush.c (main): Also test fflush-fseeko.
48633
48634 2007-04-25  Bruno Haible  <bruno@clisp.org>
48635
48636         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
48637         * lib/fseeko.c: New file.
48638         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
48639         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
48640         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
48641         gl_FUNC_FSEEKO.
48642         (gl_FUNC_FSEEKO): Invoke it.
48643         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
48644         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
48645         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
48646
48647 2007-04-25  Bruno Haible  <bruno@clisp.org>
48648
48649         * modules/fflush (Depends-on): Add ftello.
48650
48651 2007-04-25  Bruno Haible  <bruno@clisp.org>
48652
48653         * modules/ftello-tests: New file.
48654         * tests/test-ftello.c: New file.
48655
48656         * modules/ftello: New file.
48657         * m4/ftello.m4: New file.
48658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
48659         HAVE_FTELLO.
48660         * lib/stdio_.h (ftello): New declaration.
48661         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
48662         HAVE_FTELLO.
48663
48664 2007-04-25  Bruno Haible  <bruno@clisp.org>
48665
48666         * modules/fseeko-tests: New file.
48667         * tests/test-fseeko.c: New file.
48668
48669         * modules/fseeko: New file.
48670         * m4/fseeko.m4: New file.
48671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
48672         HAVE_FSEEKO.
48673         * lib/stdio_.h (fseeko): New declaration.
48674         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
48675         HAVE_FSEEKO.
48676
48677 2007-04-25  Bruno Haible  <bruno@clisp.org>
48678
48679         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
48680
48681 2007-04-25  Bruno Haible  <bruno@clisp.org>
48682
48683         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
48684         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
48685         * tests/test-unistd.c: Likewise.
48686         * tests/test-fcntl.c: Likewise.
48687
48688 2007-04-23  Eric Blake  <ebb9@byu.net>
48689
48690         * lib/fflush.c: Fix missing include.
48691         Reported by Bruno Haible.
48692
48693 2007-04-23  Bruno Haible  <bruno@clisp.org>
48694
48695         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
48696         Reported by Eric Blake.
48697
48698 2007-04-23  Bruno Haible  <bruno@clisp.org>
48699
48700         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
48701
48702 2007-04-23  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
48705
48706 2007-04-23  Bruno Haible  <bruno@clisp.org>
48707
48708         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
48709         Needed on HP-UX 11.
48710
48711 2007-04-16  Eric Blake  <ebb9@byu.net>
48712
48713         Make fflush rely on fpurge.
48714         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
48715         open coding all variants.
48716         * modules/fflush (Depends-on): Add fpurge and unistd.
48717         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
48718         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
48719
48720         Fix --with-tests compilation on cygwin.
48721         * modules/argmatch-tests (Makefile.am): List gnulib library first
48722         in LDADD.
48723         * modules/argp-tests (Makefile.am): Likewise.
48724         * modules/array-list-tests (Makefile.am): Likewise.
48725         * modules/array-oset-tests (Makefile.am): Likewise.
48726         * modules/avltree-list-tests (Makefile.am): Likewise.
48727         * modules/avltree-oset-tests (Makefile.am): Likewise.
48728         * modules/avltreehash-list-tests (Makefile.am): Likewise.
48729         * modules/carray-list-tests (Makefile.am): Likewise.
48730         * modules/dirname-tests (Makefile.am): Likewise.
48731         * modules/frexp-tests (Makefile.am): Likewise.
48732         * modules/isnanl-tests (Makefile.am): Likewise.
48733         * modules/linked-list-tests (Makefile.am): Likewise.
48734         * modules/linkedhash-list-tests (Makefile.am): Likewise.
48735         * modules/lock-tests (Makefile.am): Likewise.
48736         * modules/rbtree-list-tests (Makefile.am): Likewise.
48737         * modules/rbtree-oset-tests (Makefile.am): Likewise.
48738         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
48739         * modules/tls-tests (Makefile.am): Likewise.
48740         * modules/tsearch-tests (Makefile.am): Likewise.
48741         * modules/xvasprintf-tests (Makefile.am): Likewise.
48742
48743         Fix fpurge for cygwin.
48744         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
48745         value.
48746         * modules/fpurge-tests (Depends-on): Clean up trash.
48747
48748 2007-04-16  Simon Josefsson  <simon@josefsson.org>
48749
48750         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
48751
48752         * m4/autobuild.m4: Re-indent.
48753
48754 2007-04-13  Bruno Haible  <bruno@clisp.org>
48755
48756         * modules/fpurge-tests: New file.
48757         * tests/test-fpurge.c: New file.
48758
48759         * modules/fpurge: New file.
48760         * lib/fpurge.h: New file.
48761         * lib/fpurge.c: New file.
48762         * m4/fpurge.m4: New file.
48763
48764 2007-04-13  Bruno Haible  <bruno@clisp.org>
48765
48766         * modules/fbufmode-tests: New file.
48767         * tests/test-fbufmode.c: New file.
48768
48769         * modules/fbufmode: New file.
48770         * lib/fbufmode.h: New file.
48771         * lib/fbufmode.c: New file.
48772         * m4/fbufmode.m4: New file.
48773
48774 2007-04-13  Bruno Haible  <bruno@clisp.org>
48775
48776         * modules/fwritable-tests: New file.
48777         * tests/test-fwritable.c: New file.
48778
48779         * modules/fwritable: New file.
48780         * lib/fwritable.h: New file.
48781         * lib/fwritable.c: New file.
48782         * m4/fwritable.m4: New file.
48783
48784 2007-04-13  Bruno Haible  <bruno@clisp.org>
48785
48786         * modules/freadable-tests: New file.
48787         * tests/test-freadable.c: New file.
48788
48789         * modules/freadable: New file.
48790         * lib/freadable.h: New file.
48791         * lib/freadable.c: New file.
48792         * m4/freadable.m4: New file.
48793
48794 2007-04-13  Bruno Haible  <bruno@clisp.org>
48795
48796         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
48797         MOSTLYCLEANFILES.
48798
48799 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48800
48801         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
48802         gzip bootstrap.conf to avoid dragging in i18n machinery.
48803         (gnulib_tool_option): Use it.
48804
48805 2007-04-13  Bruno Haible  <bruno@clisp.org>
48806
48807         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
48808         %F directives.
48809         * tests/test-vasprintf-posix.c (test_function): Likewise.
48810         * tests/test-snprintf-posix.h (test_function): Likewise.
48811         * tests/test-sprintf-posix.h (test_function): Likewise.
48812         * tests/test-fprintf-posix.h (test_function): Likewise.
48813         * tests/test-printf-posix.h (test_function): Likewise.
48814         * tests/test-fprintf-posix.out: Likewise.
48815
48816 2007-04-13  Bruno Haible  <bruno@clisp.org>
48817
48818         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
48819         * modules/tls-tests (configure.ac): Likewise.
48820         Reported by Arto C. Nirkko <anirkko@insel.ch>.
48821
48822 2007-04-13  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/tls.c (glthread_tls_get): Fix return type.
48825         Patch by Arto C. Nirkko <anirkko@insel.ch>.
48826
48827 2007-04-12  Eric Blake  <ebb9@byu.net>
48828
48829         * modules/gettime (Depends-on): Remove gettime.
48830         Reported by Dmitry V. Levin.
48831
48832 2007-04-12  Bruno Haible  <bruno@clisp.org>
48833
48834         * modules/fflush (Include): Mention <stdio.h>.
48835         * modules/strtoimax (Include): Mention <inttypes.h>.
48836         * modules/strtoumax (Include): Likewise.
48837
48838 2007-04-12  Eric Blake  <ebb9@byu.net>
48839
48840         * .cvsignore: New file.
48841         * .gitignore: Likewise.
48842
48843 2007-04-12  Bruno Haible  <bruno@clisp.org>
48844
48845         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
48846         not before, since $(LDADD) often contains libgnu.a.
48847         * modules/striconv-tests (test_striconv_LDADD): Likewise.
48848         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
48849         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
48850         Needed on Cygwin.
48851
48852 2007-04-12  Eric Blake  <ebb9@byu.net>
48853
48854         Work around glibc's failure to flush stdin on fclose.
48855         * lib/closein.c (close_stdin): Flush stdin before closing.
48856
48857         Work around glibc's failure to reset seekable stdin on exit.
48858         * modules/closein: New module.
48859         * lib/closein.c: New file.
48860         * lib/closein.h: Likewise.
48861         * m4/closein.m4: Likewise.
48862         * MODULES.html.sh (File stream based Input/Output): Document it.
48863
48864 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48865
48866         * gnulib-tool: Rename generated 'autobuild' script to
48867         'do-autobuild' in --create-megatestdir output.
48868
48869         * doc/gnulib.texi (Build robot for gnulib): Fix.
48870
48871 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48872
48873         * modules/sysexits (Depends-on): Add absolute-header.
48874
48875 2007-04-12  Eric Blake  <ebb9@byu.net>
48876
48877         No need to preserve errno on success.
48878         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
48879         Reported by Bruno Haible.
48880
48881 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48882
48883         * MODULES.html.sh (Support for maintaining and releasing
48884         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
48885
48886 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48887
48888         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
48889
48890 2007-04-12  Simon Josefsson  <simon@josefsson.org>
48891
48892         * modules/autobuild: New module.
48893
48894         * m4/autobuild.m4: New file.
48895
48896 2007-04-11  Bruno Haible  <bruno@clisp.org>
48897
48898         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
48899         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
48900         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
48901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
48902         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48903         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48904         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48906         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48907         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48908         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
48909         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48910         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48911         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
48912         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48913         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
48915         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48916         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
48918         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48919         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48920         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
48921         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48922         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
48924         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
48925         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
48926         Reported by Eric Blake.
48927
48928 2007-04-11  Bruno Haible  <bruno@clisp.org>
48929
48930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
48931
48932 2007-04-10  Bruno Haible  <bruno@clisp.org>
48933
48934         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
48935         for NaN and Infinity. Needed on FreeBSD 6.1.
48936         * tests/test-vasnprintf-posix.c (test_function): Undo last change
48937         regarding results for "%010a" of Infinity and NaN.
48938         * tests/test-vasprintf-posix.c (test_function): Likewise.
48939         * tests/test-snprintf-posix.h (test_function): Likewise.
48940         * tests/test-sprintf-posix.h (test_function): Likewise.
48941         * tests/test-fprintf-posix.h (test_function): Likewise.
48942         * tests/test-printf-posix.h (test_function): Likewise.
48943         * tests/test-fprintf-posix.out: Likewise.
48944
48945 2007-04-10  Bruno Haible  <bruno@clisp.org>
48946
48947         * modules/locale-tests: New file.
48948         * tests/test-locale.c: New file.
48949
48950         * modules/locale: New file.
48951         * lib/locale_.h: New file.
48952         * m4/locale_h.m4: New file.
48953
48954 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
48955             Bruno Haible  <bruno@clisp.org>
48956
48957         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
48958         be determined, test for availability of the copysignf, copysign,
48959         copysignl functions.
48960         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
48961         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
48962         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
48963
48964 2007-04-09  Eric Blake  <ebb9@byu.net>
48965
48966         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
48967         * modules/stdio (Makefile.am): Support fflush.
48968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48969         * modules/fflush: New file.
48970         * lib/fflush.c: Likewise.
48971         * m4/fflush.m4: Likewise.
48972         * modules/fflush-tests: New test.
48973         * tests/test-fflush.c: Likewise.
48974         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
48975
48976 2007-04-06  Bruno Haible  <bruno@clisp.org>
48977
48978         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
48979         (VASNPRINTF): Use signbit for faster determination whether to print a
48980         minus sign.
48981         * modules/vasnprintf (Files): Remove lib/float+.h.
48982         * modules/fprintf-posix (Depends-on): Add signbit.
48983         * modules/snprintf-posix (Depends-on): Likewise.
48984         * modules/sprintf-posix (Depends-on): Likewise.
48985         * modules/vasnprintf-posix (Depends-on): Likewise.
48986         * modules/vasprintf-posix (Depends-on): Likewise.
48987         * modules/vfprintf-posix (Depends-on): Likewise.
48988         * modules/vsnprintf-posix (Depends-on): Likewise.
48989         * modules/vsprintf-posix (Depends-on): Likewise.
48990
48991 2007-04-06  Bruno Haible  <bruno@clisp.org>
48992
48993         * tests/test-frexp.c (main): Test also the sign bit of zero results.
48994         * tests/test-frexpl.c (main): Likewise.
48995         * tests/test-ldexpl.c (main): Likewise.
48996         * modules/frexp-tests (Depends-on): Add signbit.
48997         * modules/frexpl-tests (Depdends-on): Likewise.
48998         * modules/ldexpl-tests (Depdends-on): Likewise.
48999
49000 2007-04-06  Bruno Haible  <bruno@clisp.org>
49001
49002         * modules/signbit-tests: New file.
49003         * tests/test-signbit.c: New file.
49004
49005         * modules/signbit: New file.
49006         * lib/signbitf.c: New file.
49007         * lib/signbitd.c: New file.
49008         * lib/signbitl.c: New file.
49009         * m4/signbit.m4: New file.
49010         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
49011         (signbit): New macro.
49012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
49013         REPLACE_SIGNBIT.
49014         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
49015         REPLACE_FREXPL into math.h.
49016
49017 2007-04-06  Bruno Haible  <bruno@clisp.org>
49018
49019         * modules/isnanf-nolibm-tests: New file.
49020         * tests/test-isnanf.c: New file.
49021
49022         * modules/isnanf-nolibm: New file.
49023         * lib/isnanf.h: New file.
49024         * lib/isnanf.c: New file.
49025         * lib/isnan.c: Consider the USE_FLOAT macro.
49026         * m4/isnanf.m4: New file.
49027
49028 2007-04-06  Bruno Haible  <bruno@clisp.org>
49029
49030         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
49031         (Link): New section.
49032
49033         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
49034
49035 2007-04-06  Bruno Haible  <bruno@clisp.org>
49036
49037         Assume the 'long double' type.
49038         * m4/longdouble.m4: Remove file.
49039         * config/srclist.txt: Don't mention longdouble.m4.
49040         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
49041         * lib/float+.h: Likewise.
49042         * lib/frexp.c: Likewise.
49043         * lib/printf-args.h: Likewise.
49044         * lib/printf-args.c: Likewise.
49045         * lib/printf-frexp.c: Likewise.
49046         * lib/printf-parse.c: Likewise.
49047         * lib/vasnprintf.c: Likewise.
49048         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
49049         * m4/intl.m4: Likewise.
49050         * m4/isnanl.m4: Likewise.
49051         * m4/printf.m4: Likewise.
49052         * m4/printf-frexpl.m4: Likewise.
49053         * m4/vasnprintf.m4: Likewise.
49054         * modules/allocsa (Files): Remove m4/longdouble.m4.
49055         * modules/gettext (Files): Likewise.
49056         * modules/relocatable-prog-wrapper (Files): Likewise.
49057         * modules/vasnprintf (Files): Likewise.
49058         * modules/isnanl (Files): Likewise.
49059         (Include): Simplify.
49060         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
49061         (Include): Simplify.
49062         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
49063         (Include): Simplify.
49064         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
49065         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49066         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
49067         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49068         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49069         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49070         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
49071         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49072         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49073         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49074         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
49075         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49076         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
49077         * tests/test-isnanl.c: Likewise.
49078         * tests/test-snprintf-posix.h: Likewise.
49079         * tests/test-sprintf-posix.h: Likewise.
49080         * tests/test-vasnprintf-posix.c: Likewise.
49081         * tests/test-vasnprintf-posix2.c: Likewise.
49082         * tests/test-vasprintf-posix.c: Likewise.
49083
49084 2007-04-06  Bruno Haible  <bruno@clisp.org>
49085
49086         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
49087         * lib/math_.h [__DECC]: Include the overridden include file through
49088         #include_next, outside the double-inclusion guard.
49089         * lib/stdio_.h [__DECC]: Likewise.
49090         * lib/stdlib_.h [__DECC]: Likewise.
49091         * lib/string_.h [__DECC]: Likewise.
49092         * lib/time_.h [__DECC]: Likewise.
49093         * lib/wchar_.h [__DECC]: Likewise.
49094         * lib/wctype_.h [__DECC]: Likewise.
49095         * lib/inttypes_.h [__DECC]: Likewise.
49096         Reported by Albert Chin <china@thewrittenword.com> in
49097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
49098
49099 2007-04-04  Eric Blake  <ebb9@byu.net>
49100
49101         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
49102         1.5.x.
49103
49104 2007-04-04  Bruno Haible  <bruno@clisp.org>
49105
49106         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
49107         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
49108
49109 2007-04-04  Bruno Haible  <bruno@clisp.org>
49110
49111         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
49112         results for "%010a" of Infinity and NaN.
49113         * tests/test-vasprintf-posix.c (test_function): Likewise.
49114         * tests/test-snprintf-posix.h (test_function): Likewise.
49115         * tests/test-sprintf-posix.h (test_function): Likewise.
49116         * tests/test-fprintf-posix.h (test_function): Remove these tests.
49117         * tests/test-printf-posix.h (test_function): Likewise.
49118         * tests/test-fprintf-posix.out: Update.
49119         Needed for FreeBSD 6.1.
49120
49121 2007-04-04  Bruno Haible  <bruno@clisp.org>
49122
49123         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
49124         directly used by the gnulib modules nor by gnulib-tool.
49125
49126 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49127
49128         * DEPENDENCIES: Give overall description of version dependency
49129         desirability.  Use more-typical names for apps.
49130         Add shell, coreutils, diffutils, grep, tar, gzip.
49131
49132 2007-04-04  Simon Josefsson  <simon@josefsson.org>
49133
49134         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
49135
49136 2007-04-04  Karl Berry  <karl@gnu.org>
49137
49138         * MODULES.html.sh (func_module): missing '.
49139
49140 2007-04-03  Bruno Haible  <bruno@clisp.org>
49141
49142         * modules/argmatch-tests (Makefile.am): New variable
49143         test_argmatch_LDADD.
49144         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
49145         * modules/array-list-tests (Makefile.am): New variable
49146         test_array_list_LDADD.
49147         * modules/array-oset-tests (Makefile.am): New variable
49148         test_array_oset_LDADD.
49149         * modules/avltree-list-tests (Makefile.am): New variable
49150         test_avltree_list_LDADD.
49151         * modules/avltree-oset-tests (Makefile.am): New variable
49152         test_avltree_oset_LDADD.
49153         * modules/avltreehash-list-tests (Makefile.am): New variable
49154         test_avltreehash_list_LDADD.
49155         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49156         test_canonicalize_lgpl_LDADD.
49157         * modules/carray-list-tests (Makefile.am): New variable
49158         test_carray_list_LDADD.
49159         * modules/dirname-tests (Makefile.am): New variable
49160         test_dirname_LDADD.
49161         * modules/linked-list-tests (Makefile.am): New variable
49162         test_linked_list_LDADD.
49163         * modules/linkedhash-list-tests (Makefile.am): New variable
49164         test_linkedhash_list_LDADD.
49165         * modules/rbtree-list-tests (Makefile.am): New variable
49166         test_rbtree_list_LDADD.
49167         * modules/rbtree-oset-tests (Makefile.am): New variable
49168         test_rbtree_oset_LDADD.
49169         * modules/rbtreehash-list-tests (Makefile.am): New variable
49170         test_rbtreehash_list_LDADD.
49171         * modules/xvasprintf-tests (Makefile.am): New variable
49172         test_xvasprintf_LDADD.
49173         Reported by Eric Blake.
49174
49175 2007-04-03  Eric Blake  <ebb9@byu.net>
49176
49177         * DEPENDENCIES: Weaken m4 requirements.
49178
49179 2007-04-03  Bruno Haible  <bruno@clisp.org>
49180
49181         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49182         * modules/isnanl-tests (configure.ac): Likewise.
49183
49184 2007-04-03  Ben Pfaff  <blp@gnu.org>
49185
49186         * modules/iconv_open: Add $(srcdir)/ to source directory
49187         references in Makefile fragments that call gperf, to fix VPATH
49188         builds.
49189
49190 2007-04-03  Bruno Haible  <bruno@clisp.org>
49191
49192         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49193         * lib/ldexpl.c: Undo last change.
49194
49195 2007-04-03  Bruno Haible  <bruno@clisp.org>
49196
49197         * modules/printf-frexpl (Depends-on): Undo last change.
49198         (Files): Add m4/ldexpl.m4.
49199
49200 2007-04-03  Bruno Haible  <bruno@clisp.org>
49201
49202         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49203         * modules/isnanl (Link): New section.
49204
49205         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49206         * modules/frexp (Link): New section.
49207
49208         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49209         * modules/frexpl (Link): New section.
49210
49211         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49212         * modules/ldexpl (Link): New section.
49213
49214 2007-04-03  Bruno Haible  <bruno@clisp.org>
49215
49216         * modules/TEMPLATE-EXTENDED: New file.
49217         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49218
49219 2007-04-03  Bruno Haible  <bruno@clisp.org>
49220
49221         * DEPENDENCIES: New file.
49222         Suggested by Simon Josefsson.
49223
49224 2007-04-03  Bruno Haible  <bruno@clisp.org>
49225
49226         * doc/gnulib.texi: Escape @.
49227
49228 2007-04-03  James Youngman  <jay@gnu.org>
49229         and Paul Eggert  <eggert@cs.ucla.edu>
49230
49231         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49232         birthtime on all systems that have birthtime, not just those which
49233         use st_birthtimensec rather than st_birthtim.  Putting zero in
49234         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49235         that the birth time is not available for files on an NFS mount.
49236
49237 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49238
49239         * modules/memxor: Move back from crypto/, suggested by Bruno.
49240         * modules/crypto/hmac-sha1: Fix memxor dependency.
49241
49242         * modules/crypto/gc: Moved from ../.
49243
49244 2007-04-02  Eric Blake  <ebb9@byu.net>
49245
49246         * lib/ldexpl.c (includes): Avoid libm.
49247
49248         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49249
49250 2007-04-02  Bruno Haible  <bruno@clisp.org>
49251
49252         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49253         on IRIX.
49254
49255 2007-04-02  Bruno Haible  <bruno@clisp.org>
49256
49257         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49258         x86 or x86_64 platforms running MacOS X.
49259         Reported by Ryan Schmidt <@ryandesign.com>.
49260
49261 2007-04-02  Bruno Haible  <bruno@clisp.org>
49262
49263         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49264         i386.
49265
49266 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49267
49268         * modules/crypto/arcfour: Moved from ../.
49269         * modules/crypto/arcfour-tests: Moved from ../.
49270         * modules/crypto/arctwo: Moved from ../.
49271         * modules/crypto/arctwo-tests: Moved from ../.
49272         * modules/crypto/des: Moved from ../.
49273         * modules/crypto/des-tests: Moved from ../.
49274         * modules/crypto/gc-arcfour: Moved from ../.
49275         * modules/crypto/gc-arcfour-tests: Moved from ../.
49276         * modules/crypto/gc-arctwo: Moved from ../.
49277         * modules/crypto/gc-arctwo-tests: Moved from ../.
49278         * modules/crypto/gc-des: Moved from ../.
49279         * modules/crypto/gc-des-tests: Moved from ../.
49280         * modules/crypto/gc-hmac-md5: Moved from ../.
49281         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49282         * modules/crypto/gc-hmac-sha1: Moved from ../.
49283         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49284         * modules/crypto/gc-md2: Moved from ../.
49285         * modules/crypto/gc-md2-tests: Moved from ../.
49286         * modules/crypto/gc-md4: Moved from ../.
49287         * modules/crypto/gc-md4-tests: Moved from ../.
49288         * modules/crypto/gc-md5: Moved from ../.
49289         * modules/crypto/gc-md5-tests: Moved from ../.
49290         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49291         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49292         * modules/crypto/gc-random: Moved from ../.
49293         * modules/crypto/gc-rijndael: Moved from ../.
49294         * modules/crypto/gc-rijndael-tests: Moved from ../.
49295         * modules/crypto/gc-sha1: Moved from ../.
49296         * modules/crypto/gc-sha1-tests: Moved from ../.
49297         * modules/crypto/gc-tests: Moved from ../.
49298         * modules/crypto/hmac-md5: Moved from ../.
49299         * modules/crypto/hmac-md5-tests: Moved from ../.
49300         * modules/crypto/hmac-sha1: Moved from ../.
49301         * modules/crypto/hmac-sha1-tests: Moved from ../.
49302         * modules/crypto/md2: Moved from ../.
49303         * modules/crypto/md2-tests: Moved from ../.
49304         * modules/crypto/md4: Moved from ../.
49305         * modules/crypto/md4-tests: Moved from ../.
49306         * modules/crypto/md5: Moved from ../.
49307         * modules/crypto/md5-tests: Moved from ../.
49308         * modules/crypto/memxor: Moved from ../.
49309         * modules/crypto/rijndael: Moved from ../.
49310         * modules/crypto/rijndael-tests: Moved from ../.
49311         * modules/crypto/sha1: Moved from ../.
49312
49313 2007-03-30  James Youngman  <jay@gnu.org>
49314
49315         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49316         rename() to change the ctime of a file (because ctime is unaffected
49317         by rename on jfs2 on AIX 5.1).
49318         (main): Start by doing cleanup, in case a previous run failed leaving
49319         test files behind.
49320
49321 2007-03-31  Bruno Haible  <bruno@clisp.org>
49322
49323         Support old proprietary implementations of iconv.
49324         * modules/iconv_open: New file.
49325         * lib/iconv_.h: New file.
49326         * m4/iconv_h.m4: New file.
49327         * lib/iconv_open.c: New file.
49328         * lib/iconv_open-aix.gperf: New file.
49329         * lib/iconv_open-hpux.gperf: New file.
49330         * lib/iconv_open-irix.gperf: New file.
49331         * lib/iconv_open-osf.gperf: New file.
49332         * m4/iconv_open.m4: New file.
49333         * modules/linebreak (Depends-on): Add iconv_open.
49334         * modules/striconv (Depends-on): Likewise.
49335         * modules/striconveh (Depends-on): Likewise.
49336         * modules/unicodeio (Depends-on): Likewise.
49337         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49338         (iconv_t)(-1).
49339         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49340         conversion if cd is (iconv_t)(-1).
49341         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49342         is not possible.
49343
49344 2007-03-31  Bruno Haible  <bruno@clisp.org>
49345
49346         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49347         work on Solaris either. Protect also second use of "autodetect_jp".
49348
49349 2007-03-31  Bruno Haible  <bruno@clisp.org>
49350
49351         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49352         the function is not present.
49353
49354 2007-03-31  Bruno Haible  <bruno@clisp.org>
49355
49356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49357         the function is not present.
49358
49359 2007-03-31  Bruno Haible  <bruno@clisp.org>
49360
49361         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49362         a bug in HP-UX iconv_open().
49363
49364 2007-03-31  Bruno Haible  <bruno@clisp.org>
49365
49366         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49367         (Mathematics <math.h>): New section, add fpieee.
49368         (Input/output <stdio.h>): Add fseterr.
49369         (Mathematics <math.h>): New section, add printf-frexp.
49370         (Container data structures): Add sublist.
49371         (Core language properties): Add fpucw, inline.
49372         (Functions for greatest-width integer types <inttypes.h>): Add
49373         imaxabs, imaxdiv, inttypes.
49374         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49375         isnanl-nolibm, ldexp.
49376         (Mathematics <math.h>): New section, add printf-frexpl.
49377         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49378         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49379         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49380         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49381         (Unicode string functions): Add unistr/u*-mbtoucr.
49382         (Java): Add javacomp-script, javaexec-script.
49383         (C#): Add csharpcomp-script, csharpexec-script.
49384         (Support for building libraries and executables): Add havelib,
49385         relocatable-*.
49386         (Support for maintaining and releasing projects): Renamed from
49387         'Support for maintaining and release projects'. Add announce-gen.
49388
49389 2007-03-31  Bruno Haible  <bruno@clisp.org>
49390
49391         * README: Talk primarily about git.
49392         (git and CVS): Renamed from CVS.
49393         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49394         gnulib is available through git.
49395         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49396
49397 2007-03-30  Bruno Haible  <bruno@clisp.org>
49398
49399         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49400         * lib/poll_.h: Likewise.
49401         * lib/stat_.h: Likewise.
49402         * lib/sys_time_.h: Likewise.
49403         * lib/sysexit_.h: Likewise.
49404         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49405         * lib/stdbool_.h: Likewise.
49406         * lib/byteswap_.h: Add double-inclusion guard.
49407
49408 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49409
49410         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49411
49412 2007-03-30  Karl Berry  <karl@gnu.org>
49413
49414         * config/srclist-update: double space after USA in the license
49415         substitution, since that's how it's usually (?) written.
49416
49417 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49418
49419         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49420         reported by Bruno Haible.
49421
49422 2007-03-29  Bruno Haible  <bruno@clisp.org>
49423
49424         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49425         a bug in AIX iconv().
49426
49427 2007-03-29  Bruno Haible  <bruno@clisp.org>
49428
49429         * modules/ldexpl-tests: New file.
49430         * tests/test-ldexpl.c: New file.
49431
49432 2007-03-29  Bruno Haible  <bruno@clisp.org>
49433
49434         * lib/ldexpl.c: Include fpucw.h.
49435         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49436         multiplication.
49437         * modules/ldexpl (Depends-on): Add fpucw.
49438
49439 2007-03-29  Bruno Haible  <bruno@clisp.org>
49440
49441         * modules/ldexpl: New file.
49442         * m4/ldexpl.m4: New file.
49443         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49444         set.
49445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49446         REPLACE_LDEXPL.
49447         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49448         REPLACE_LDEXPL.
49449         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49450         gl_FUNC_LDEXPL_WORKS.
49451         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49452         * modules/mathl (Files): Remove lib/ldexpl.c.
49453         (Depends-on): Add ldexpl.
49454
49455 2007-03-29  Bruno Haible  <bruno@clisp.org>
49456
49457         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49458
49459 2007-03-29  Bruno Haible  <bruno@clisp.org>
49460
49461         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49462         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49463         and possibly also HP-UX.
49464         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49465         work on AIX, IRIX, HP-UX, OSF/1.
49466         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49467         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49468         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49469         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49470         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49471         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49472
49473 2007-03-29  Bruno Haible  <bruno@clisp.org>
49474
49475         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49476
49477 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49478
49479         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49480         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49481
49482 2007-03-29  Eric Blake  <ebb9@byu.net>
49483
49484         * lib/acl-internal.h: Remove redundant include.
49485         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49486         Cygwin when a file is locked.
49487
49488 2007-03-29  Bruno Haible  <bruno@clisp.org>
49489
49490         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49491         file.
49492         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49493
49494 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49495
49496         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49497         try to remove a parent directory if the child couldn't be removed
49498         (except for the first rmdir, which could fail because the child
49499         doesn't exist).  Problem reported by Jeff Blaine in
49500         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49501
49502 2007-03-28  Bruno Haible  <bruno@clisp.org>
49503
49504         * lib/striconveh.c (utf8conv_carefully): New function.
49505         (mem_cd_iconveh_internal): Invoke it.
49506
49507 2007-03-28  Bruno Haible  <bruno@clisp.org>
49508
49509         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49510         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49511         input.
49512         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49513         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49514         unistr/u8-uctomb.
49515
49516 2007-03-28  Bruno Haible  <bruno@clisp.org>
49517
49518         * modules/unistr/u8-mbtoucr: New file.
49519         * lib/unistr/u8-mbtoucr.c: New file.
49520         * modules/unistr/u16-mbtoucr: New file.
49521         * lib/unistr/u16-mbtoucr.c: New file.
49522         * modules/unistr/u16-mbtoucr: New file.
49523         * lib/unistr/u16-mbtoucr.c: New file.
49524         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49525
49526 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49527             Bruno Haible  <bruno@clisp.org>
49528
49529         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
49530         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
49531         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
49532
49533         * m4/stdio_h.m4: Add stubs for vasprintf too.
49534
49535         * modules/stdio: Support vasprintf in sed command.
49536
49537         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49538         vasprintf.h.  Add stdio module indicator.
49539
49540         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49541         vasprintf.h.
49542
49543         * lib/vasprintf.h: File removed.
49544
49545         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49546         * lib/vasprintf.c: Ditto.
49547         * lib/xvasprintf.c: Ditto.
49548         * tests/test-vasprintf-posix.c: Ditto.
49549         * tests/test-vasprintf.c: Ditto.
49550
49551 2007-03-27  Bruno Haible  <bruno@clisp.org>
49552
49553         Make vasnprintf multithread-safe.
49554         * lib/vasnprintf.c (decimal_point_char): New function.
49555         (VASNPRINTF): Use it.
49556         Suggested by Simon Josefsson.
49557
49558 2007-03-27  Eric Blake  <ebb9@byu.net>
49559
49560         Support sub-second birthtime on cygwin.
49561         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49562         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49563         (get_stat_birthtime): Also work with st_birthtim.
49564
49565 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49566
49567         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49568         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49569         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49570         (get_stat_birthtime_ns): Simplify compile-time tests.
49571         (get_stat_birthtime): Change the API to look like
49572         get_stat_mtime etc., except return a negative tv_nsec on error.
49573         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49574         Don't check for "spare" fields.
49575         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49576         or for struct stat.st_birthtime, as these tests aren't used.
49577         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49578
49579 2007-03-27  Bruno Haible  <bruno@clisp.org>
49580
49581         * lib/stat-time.h: Include <sys/stat.h>.
49582
49583 2007-03-27  James Youngman  <jay@gnu.org>
49584
49585         * lib/stat-time.h (get_stat_birthtime): New function for
49586           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49587         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49588           and its variants.
49589         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49590         * modules/stat-time-test: New file.
49591         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49592
49593 2007-03-26  Bruno Haible  <bruno@clisp.org>
49594
49595         Better support of signalling NaNs.
49596         * lib/atanl.c: Include isnanl.h.
49597         (atanl): Perform test for NaN at the beginning of the function and
49598         through a call to isnanl.
49599         * lib/cosl.c: Include isnanl.h.
49600         (cosl): Perform test for NaN at the beginning of the function and
49601         through a call to isnanl.
49602         * lib/ldexpl.c: Include isnanl.h.
49603         (ldexpl): Perform test for NaN through a call to isnanl.
49604         * lib/logl.c: Include isnanl.h.
49605         (logl): Perform test for NaN at the beginning of the function and
49606         through a call to isnanl.
49607         * lib/sinl.c: Include isnanl.h.
49608         (sinl): Perform test for NaN at the beginning of the function and
49609         through a call to isnanl.
49610         * lib/sqrtl.c: Include isnanl.h.
49611         (sqrtl): Perform test for NaN at the beginning of the function and
49612         through a call to isnanl.
49613         * lib/tanl.c: Include isnanl.h.
49614         (tanl): Perform test for NaN at the beginning of the function and
49615         through a call to isnanl.
49616         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
49617         * modules/mathl (Depends-on): Add isnanl.
49618
49619 2007-03-26  Eric Blake  <ebb9@byu.net>
49620
49621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
49622         regression in logic sense of previous patch.
49623
49624 2007-03-26  Bruno Haible  <bruno@clisp.org>
49625
49626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
49627         unportable shell command "if ! ...".
49628         Reported by Ralf Wildenhues.
49629
49630 2007-03-25  Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
49633         <sysexits.h> file, and only add EX_CONFIG.
49634         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
49635         absolute file name and whether it is sufficient. Substitute also
49636         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
49637         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
49638         ABSOLUTE_SYSEXITS_H into sysexits.h.
49639
49640 2007-03-25  Bruno Haible  <bruno@clisp.org>
49641
49642         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
49643         hints is NULL.
49644
49645 2007-03-25  Bruno Haible  <bruno@clisp.org>
49646
49647         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
49648         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
49649
49650 2007-03-25  Bruno Haible  <bruno@clisp.org>
49651
49652         * lib/vasnprintf.c: Include langinfo.h.
49653         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
49654         multithread-safe.
49655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
49656         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
49657         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49658         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49659         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49660         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49661         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49662         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
49663         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49664         Reported by Simon Josefsson.
49665
49666 2007-03-25  Bruno Haible  <bruno@clisp.org>
49667
49668         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
49669         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
49670         * modules/vasnprintf (Depends-on): Add stdint.
49671
49672 2007-03-25  Bruno Haible  <bruno@clisp.org>
49673
49674         * modules/fpieee: New file.
49675         * m4/fpieee.m4: New file.
49676         * modules/isnan-nolibm (Depends-on): Add fpieee.
49677         * modules/isnanl-nolibm (Depends-on): Add fpieee.
49678         * modules/isnanl (Depends-on): Add fpieee.
49679
49680 2007-03-25  Bruno Haible  <bruno@clisp.org>
49681
49682         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
49683
49684 2007-03-25  Bruno Haible  <bruno@clisp.org>
49685
49686         Avoid test failures on IRIX 6.5.
49687         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
49688         (main): Use it.
49689         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
49690         macros.
49691         (main): Use them.
49692
49693 2007-03-25  Bruno Haible  <bruno@clisp.org>
49694
49695         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
49696         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
49697         exists but doesn't work.
49698         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
49699         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
49700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
49701         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
49702
49703 2007-03-25  Bruno Haible  <bruno@clisp.org>
49704
49705         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
49706         returns inf. Needed on IRIX 6.5.
49707
49708 2007-03-25  Bruno Haible  <bruno@clisp.org>
49709
49710         * tests/test-frexpl.c: Include isnanl-nolibm.h.
49711         (main): Use isnanl instead of x != x idiom.
49712         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
49713
49714         * tests/test-frexp.c: Include isnan.h.
49715         (main): Use isnan instead of x != x idiom.
49716         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
49717
49718 2007-03-25  Bruno Haible  <bruno@clisp.org>
49719
49720         * tests/test-frexp.c (NaN): New function/macro.
49721         (main): Use it instead of 0.0 / 0.0.
49722         * tests/test-isnan.c (NaN): New function/macro.
49723         (main): Use it instead of 0.0 / 0.0.
49724         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
49725         (test_function): Use it instead of 0.0 / 0.0.
49726         * tests/test-vasprintf-posix.c (NaN): New function/macro.
49727         (test_function): Use it instead of 0.0 / 0.0.
49728         * tests/test-snprintf-posix.h (NaN): New function/macro.
49729         (test_function): Use it instead of 0.0 / 0.0.
49730         * tests/test-sprintf-posix.h (NaN): New function/macro.
49731         (test_function): Use it instead of 0.0 / 0.0.
49732         * tests/test-fprintf-posix.h (NaN): New function/macro.
49733         (test_function): Use it instead of 0.0 / 0.0.
49734         * tests/test-printf-posix.h (NaN): New function/macro.
49735         (test_function): Use it instead of 0.0 / 0.0.
49736
49737         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
49738
49739 2007-03-25  Bruno Haible  <bruno@clisp.org>
49740
49741         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
49742
49743 2007-03-25  Bruno Haible  <bruno@clisp.org>
49744
49745         * lib/regexec.c (merge_state_with_log): Make static.
49746
49747 2007-03-25  Bruno Haible  <bruno@clisp.org>
49748
49749         * lib/trigl.c (kernel_rem_pio2): Make static.
49750
49751 2007-03-25  Bruno Haible  <bruno@clisp.org>
49752
49753         * lib/sincosl.c (sincosl_table): Make static.
49754
49755 2007-03-25  Bruno Haible  <bruno@clisp.org>
49756
49757         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
49758         if the compiler does not support C99.
49759
49760 2007-03-25  Bruno Haible  <bruno@clisp.org>
49761
49762         * modules/time (Makefile.am): Ensure all rule action lines start with a
49763         tab.
49764
49765 2007-03-24  Bruno Haible  <bruno@clisp.org>
49766
49767         * modules/tsearch-tests: New file.
49768         * tests/test-tsearch.sh: New file.
49769         * tests/test-tsearch.c: New file, mostly copied from glibc.
49770
49771         * modules/search-tests: New file.
49772         * tests/test-search.c: New file.
49773
49774         * modules/search: New file.
49775         * lib/search_.h: New file, incorporating lib/tsearch.h.
49776         * m4/search_h.m4: New file.
49777         * lib/tsearch.h: Remove file.
49778         * lib/tsearch.c: Include search.h instead of tsearch.h.
49779         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
49780         HAVE_TSEARCH.
49781         * modules/tsearch (Files): Remove lib/tsearch.h.
49782         (Depends-on): Add search.
49783         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
49784         (Include): Change tsearch.h into search.h.
49785
49786 2007-03-24  Bruno Haible  <bruno@clisp.org>
49787
49788         * modules/fpucw: New file.
49789         * lib/fpucw.h: New file.
49790         * lib/frexp.c: Include fpucw.h.
49791         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49792         (FUNC): Use them.
49793         * lib/printf-frexp.c: Include fpucw.h.
49794         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
49795         (FUNC): Use them.
49796         * lib/vasnprintf.c: Include fpucw.h.
49797         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
49798         'long double' calculations.
49799         * tests/test-frexpl.c: Include fpucw.h.
49800         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49801         * tests/test-printf-frexpl.c: Include fpucw.h.
49802         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
49803         * modules/frexpl (Depends-on): Add fpucw.
49804         * modules/printf-frexpl (Depends-on): Likewise.
49805         * modules/fprintf-posix (Depends-on): Likewise.
49806         * modules/snprintf-posix (Depends-on): Likewise.
49807         * modules/sprintf-posix (Depends-on): Likewise.
49808         * modules/vasnprintf-posix (Depends-on): Likewise.
49809         * modules/vasprintf-posix (Depends-on): Likewise.
49810         * modules/vfprintf-posix (Depends-on): Likewise.
49811         * modules/vsnprintf-posix (Depends-on): Likewise.
49812         * modules/vsprintf-posix (Depends-on): Likewise.
49813         * modules/frexpl-tests (Depends-on): Likewise.
49814         * modules/printf-frexpl-tests (Depends-on): Likewise.
49815
49816 2007-03-24  Bruno Haible  <bruno@clisp.org>
49817
49818         * lib/float+.h: New file.
49819         * lib/isnan.c: Include float+.h.
49820         (SIZE): New macro.
49821         (FUNC): Compare only SIZE bytes of the value.
49822         * lib/vasnprintf.c: Include float+.h.
49823         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
49824         SIZEOF_LDBL or SIZEOF_DBL bytes.
49825         * modules/isnan-nolibm (Files): Add lib/float+.h.
49826         * modules/isnanl-nolibm (Files): Add lib/float+.h.
49827         * modules/isnanl (Files): Add lib/float+.h.
49828         * modules/vasnprintf (Files): Add lib/float+.h.
49829
49830 2007-03-24  Bruno Haible  <bruno@clisp.org>
49831
49832         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
49833         include isnanl-nolibm.h.
49834
49835 2007-03-24  Bruno Haible  <bruno@clisp.org>
49836
49837         * tests/test-read-file.c (main): Don't produce spurious output for
49838         expected situations. Make the test fail if it encountered unexpected
49839         results.
49840
49841 2007-03-24  Bruno Haible  <bruno@clisp.org>
49842
49843         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
49844         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
49845
49846 2007-03-24  Bruno Haible  <bruno@clisp.org>
49847
49848         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
49849
49850 2007-03-24  Bruno Haible  <bruno@clisp.org>
49851
49852         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
49853         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
49854
49855         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
49856         * modules/utf8-ucs4: Turn into a symbolic link to module
49857         unistr/u8-mbtouc.
49858
49859         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
49860         utf8-ucs4-unsafe.
49861         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
49862         unistr/u8-mbtouc-unsafe.
49863
49864         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
49865         * modules/utf16-ucs4: Turn into a symbolic link to module
49866         unistr/u16-mbtouc.
49867
49868         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
49869         utf16-ucs4-unsafe.
49870         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
49871         unistr/u16-mbtouc-unsafe.
49872
49873         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
49874         * modules/ucs4-utf8: Turn into a symbolic link to module
49875         unistr/u8-ubtomb.
49876
49877         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
49878         * modules/ucs4-utf16: Turn into a symbolic link to module
49879         unistr/u16-ubtomb.
49880
49881 2007-03-24  Bruno Haible  <bruno@clisp.org>
49882
49883         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
49884         Enable the function only if HAVE_INLINE.
49885         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
49886         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49887         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
49888         Enable the function only if HAVE_INLINE.
49889         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
49890         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
49891         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
49892         Enable the function only if HAVE_INLINE.
49893         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
49894         Enable the function only if HAVE_INLINE.
49895         * modules/utf8-ucs4: Update.
49896         * modules/utf8-ucs4-unsafe: Update.
49897         * modules/utf16-ucs4: Update.
49898         * modules/utf16-ucs4-unsafe: Update.
49899         * modules/ucs4-utf8: Update.
49900         * modules/ucs4-utf16: Update.
49901
49902 2007-03-24  Bruno Haible  <bruno@clisp.org>
49903
49904         * lib/utf8-ucs4.h: Remove file.
49905         * lib/utf8-ucs4-unsafe.h: Remove file.
49906         * lib/utf16-ucs4.h: Remove file.
49907         * lib/utf16-ucs4-unsafe.h: Remove file.
49908         * lib/ucs4-utf8.h: Remove file.
49909         * lib/ucs4-utf16.h: Remove file.
49910         * lib/unistr.h: Include their previous contents.
49911         * m4/utf-ucs4.m4: Remove file.
49912         * m4/ucs4-utf.m4: Remove file.
49913         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
49914         (Depends-on): Add unistr/base.
49915         (configure.ac): Remove gl_UTF_UCS4.
49916         (Makefile.am): Update.
49917         (Include): Change to unistr.h.
49918         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
49919         (Depends-on): Add unistr/base.
49920         (configure.ac): Remove gl_UTF_UCS4.
49921         (Makefile.am): Update.
49922         (Include): Change to unistr.h.
49923         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
49924         (Depends-on): Add unistr/base.
49925         (configure.ac): Remove gl_UTF_UCS4.
49926         (Makefile.am): Update.
49927         (Include): Change to unistr.h.
49928         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
49929         (Depends-on): Add unistr/base.
49930         (configure.ac): Remove gl_UTF_UCS4.
49931         (Makefile.am): Update.
49932         (Include): Change to unistr.h.
49933         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
49934         (Depends-on): Add unistr/base.
49935         (configure.ac): Remove gl_UCS4_UTF.
49936         (Makefile.am): Update.
49937         (Include): Change to unistr.h.
49938         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
49939         (Depends-on): Add unistr/base.
49940         (configure.ac): Remove gl_UCS4_UTF.
49941         (Makefile.am): Update.
49942         (Include): Change to unistr.h.
49943         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
49944         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
49945         utf8-ucs4-unsafe.h.
49946         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
49947         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
49948         utf16-ucs4-unsafe.h.
49949         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
49950         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
49951         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
49952         * lib/unistr/u8-strchr.c: Likewise.
49953         * lib/unistr/u8-strrchr.c: Likewise.
49954         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
49955         * lib/unistr/u16-strchr.c: Likewise.
49956         * lib/unistr/u16-strrchr.c: Likewise.
49957         * lib/striconveh.c: Update.
49958         * lib/linebreak.c: Update.
49959
49960 2007-03-24  Bruno Haible  <bruno@clisp.org>
49961
49962         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
49963         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
49964
49965 2007-03-22  Bruno Haible  <bruno@clisp.org>
49966
49967         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
49968
49969 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49970
49971         * MODULES.html.sh (File system functions): New module write-any-file.
49972         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
49973         * m4/write-any-file.m4: New files.
49974
49975 2007-03-23  Eric Blake  <ebb9@byu.net>
49976
49977         * gnulib-tool: Rearrange space-tab sequences, since some editors
49978         like to eat them.
49979
49980 2007-03-23  Eric Blake  <ebb9@byu.net>
49981
49982         * lib/version-etc.c (version_etc_va): Update license wording to
49983         be more concise.  Recommended by Richard Stallman.
49984
49985 2007-03-22  Bruno Haible  <bruno@clisp.org>
49986
49987         * lib/poll.c (MSG_PEEK): New fallback definition.
49988
49989 2007-03-22  Bruno Haible  <bruno@clisp.org>
49990
49991         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
49992         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
49993         (main): Update.
49994         Fixes a compilation error on BeOS.
49995
49996 2007-03-22  Bruno Haible  <bruno@clisp.org>
49997
49998         * modules/frexpl-tests: New file.
49999         * tests/test-frexpl.c: New file.
50000
50001         * modules/frexpl: New file.
50002         * m4/frexpl.m4: New file.
50003         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
50004         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
50005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
50006         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
50007         (Depends-on): Add frexpl. Remove isnanl-nolibm.
50008         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
50009
50010 2007-03-22  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/frexpl.c: Share code with lib/frexp.c.
50013         * modules/mathl (Files): Add lib/frexp.c.
50014         (Depends-on): Add isnanl-nolibm.
50015
50016 2007-03-22  Bruno Haible  <bruno@clisp.org>
50017
50018         * modules/printf-frexp (Files): Add m4/frexp.m4.
50019         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
50020         only if the found frexp function actually works.
50021
50022 2007-03-22  Bruno Haible  <bruno@clisp.org>
50023
50024         * lib/frexp.c: Remove older implementation that uses divisions.
50025
50026 2007-03-21  Bruno Haible  <bruno@clisp.org>
50027
50028         * modules/frexp-tests: New file.
50029         * tests/test-frexp.c: New file.
50030
50031         * modules/frexp: New file.
50032         * lib/frexp.c: New file.
50033         * m4/frexp.m4: New file.
50034         * lib/math_.h (frexp): New declaration.
50035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
50036         REPLACE_FREXP.
50037         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
50038
50039 2007-03-21  Bruno Haible  <bruno@clisp.org>
50040
50041         * modules/isnanl-tests: New file.
50042         * tests/test-isnanl.c: New file.
50043
50044         * modules/isnanl: New file.
50045         * lib/isnanl.h: New file.
50046         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
50047         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
50048         gl_FUNC_ISNANL_WORKS.
50049         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
50050         New macros.
50051
50052 2007-03-21  Bruno Haible  <bruno@clisp.org>
50053
50054         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
50055         lib/isnanl.h.
50056         (Include): Update.
50057         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
50058         * lib/vasnprintf.c: Update.
50059         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
50060         tests/test-isnanl.h, remove tests/test-isnanl.c.
50061         (Makefile.am): Update.
50062         * tests/test-isnanl-nolibm.c: New file.
50063         * tests/test-isnanl.h: New file.
50064         * tests/test-isnanl.c: Remove file.
50065
50066 2007-03-21  Jim Meyering  <jim@meyering.net>
50067
50068         When trying to open ".", treat ESTALE like EACCES.
50069         * lib/savewd.c (savewd_save): Resort to forking not just upon
50070         failure with EACCES, but also when errno is ESTALE.
50071
50072 2007-03-20  Bruno Haible  <bruno@clisp.org>
50073
50074         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
50075         Needed on AIX 5.1. Reported by Matthew Woehlke.
50076
50077 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50078
50079         Suggestions by Bruno Haible:
50080         * lib/acl-internal.h: Include "gettext.h" rather than rolling
50081         our own.
50082         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
50083         * modules/acl (Depends-on): Add gettext.
50084
50085 2007-03-19  Bruno Haible  <bruno@clisp.org>
50086
50087         * modules/iconvme: Remove file.
50088         * lib/iconvme.h: Remove file.
50089         * lib/iconvme.c: Remove file.
50090         * m4/iconvme.m4: Remove file.
50091
50092 2007-03-19  Bruno Haible  <bruno@clisp.org>
50093
50094         * doc/relocatable-maint.texi: Break long shell script line.
50095         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50096
50097 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50098
50099         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
50100         handle file_has_acl.
50101         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
50102         * lib/acl.c: Move header inclusions and related macro defns into
50103         lib/acl-internal.h.
50104         (S_ISLNK): Remove defn, since that's now done for us.
50105         (file_has_acl): Move to lib/file-has-acl.c.
50106         Call acl_trivial if available.  This is the crucial part of the fix.
50107         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
50108         shared within the library.  Rewrite a bit, partly to make it compatible
50109         with the GNU coding style.
50110         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
50111         Remove unnecessary double-quotes.
50112         Don't test for acl_to_text; the build will catch that.
50113         Replace acl_entries if it doesn't exist and it is needed.
50114         Check for -lsec and acl_trivial (as used on Solaris 10).
50115         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
50116         lib/file-has-acl.c.
50117         (Depends-on): Add sys_stat, for S_ISLNK.
50118
50119 2007-03-19  Ben Pfaff  <blp@gnu.org>
50120
50121         * doc/gnulib.texi: Fix typos.
50122         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50123
50124 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50125
50126         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
50127         If size is zero here, buf must be zero.
50128
50129 2007-03-19  Simon Josefsson  <simon@josefsson.org>
50130
50131         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
50132         <bruno@clisp.org>.
50133
50134 2007-03-18  Bruno Haible  <bruno@clisp.org>
50135
50136         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
50137         Suggested by Eric Blake.
50138
50139 2007-03-18  Ben Pfaff  <blp@gnu.org>
50140
50141         * doc/relocatable.texi: Recommend using as prefix a directory
50142         that does not exist and will never be created.  Based on
50143         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
50144         and others.
50145
50146 2007-03-17  Bruno Haible  <bruno@clisp.org>
50147
50148         * lib/fchownat.c: Include lchown.h.
50149
50150 2007-03-17  Bruno Haible  <bruno@clisp.org>
50151
50152         Fix endless loop when the given allocated size was > INT_MAX.
50153         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50154         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50155         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50156         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50157         * lib/sprintf.c (sprintf): Likewise.
50158
50159 2007-03-17  Bruno Haible  <bruno@clisp.org>
50160
50161         * tests/test-argp-2.sh (func_compare): Output a context diff.
50162
50163 2007-03-17  Bruno Haible  <bruno@clisp.org>
50164
50165         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50166         locale's decimal-point character.
50167
50168 2007-03-17  Bruno Haible  <bruno@clisp.org>
50169
50170         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50171         before comparing it. Needed because on some platforms (e.g. x86) a
50172         'long double' occupies less bytes than sizeof (long double).
50173
50174 2007-03-17  Bruno Haible  <bruno@clisp.org>
50175
50176         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50177         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50178         * tests/test-getaddrinfo.c (simple): Likewise.
50179         * tests/test-read-file.c (main): Likewise.
50180
50181 2007-03-17  Bruno Haible  <bruno@clisp.org>
50182
50183         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50184
50185 2007-03-17  Bruno Haible  <bruno@clisp.org>
50186
50187         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50188         unused variable.
50189
50190 2007-03-17  Bruno Haible  <bruno@clisp.org>
50191
50192         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50193         * tests/test-c-strncasecmp.c: Likewise.
50194
50195 2007-03-17  Bruno Haible  <bruno@clisp.org>
50196
50197         * modules/stdlib (Depends-on): Add unistd.
50198         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50199         Needed for MacOS X 10.3.
50200
50201 2007-03-17  Bruno Haible  <bruno@clisp.org>
50202
50203         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50204
50205 2007-03-17  Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50208
50209 2007-03-17  Bruno Haible  <bruno@clisp.org>
50210
50211         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50212         to reflect files copied from gnulib (with or without modifications).
50213         Suggested by Jim Meyering.
50214
50215 2007-03-17  Eric Blake  <ebb9@byu.net>
50216
50217         * NEWS: Document stdlib change from 2007-02-18.
50218
50219 2007-03-17  Jim Meyering  <jim@meyering.net>
50220
50221         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50222         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50223         someone uses a name containing shell meta-characters.
50224         Reported by Alfred M. Szmidt.
50225
50226         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50227
50228 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50229
50230         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50231         and copy gettext configuration files only if configure.ac contains
50232         a use of AM_GNU_GETTEXT_VERSION.
50233
50234 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50235
50236         * build-aux/bootstrap (gnulib_name): New variable.
50237         (gnulib_tool_options): Use it.
50238
50239 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50240
50241         * tests/test-des.c: Use new namespace.
50242
50243 2007-03-15  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50246         Reported by James Youngman <jay@gnu.org>.
50247
50248 2007-03-15  Bruno Haible  <bruno@clisp.org>
50249
50250         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50251         declared prototype. Needed with cc on OSF/1 5.1.
50252
50253 2007-03-15  Bruno Haible  <bruno@clisp.org>
50254
50255         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50256         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50257         (struct gl_list_implementation): Add dispose_fn argument to the
50258         'create_empty', 'create' methods.
50259         (struct gl_list_impl_base): Add field 'dispose_fn'.
50260         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50261         argument.
50262         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50263         dispose_fn argument.
50264         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50265         dispose_fn on the dropped values.
50266         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50267         dispose_fn argument.
50268         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50269         dropped values.
50270         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50271         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50272         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50273         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50274         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50275         argument.
50276         (gl_tree_list_free): Call dispose_fn on the dropped values.
50277         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50278         the dropped values.
50279         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50280         Add dispose_fn argument.
50281         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50282         Call dispose_fn on the dropped values.
50283         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50284         Add dispose_fn argument.
50285         (gl_sublist_create): Initialize the 'dispose_fn' field.
50286         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50287         * tests/test-array_list.c (main): Update.
50288         * tests/test-carray_list.c (main): Update.
50289         * tests/test-avltree_list.c (main): Update.
50290         * tests/test-rbtree_list.c (main): Update.
50291         * tests/test-avltreehash_list.c (main): Update.
50292         * tests/test-rbtreehash_list.c (main): Update.
50293         * tests/test-linked_list.c (main): Update.
50294         * tests/test-linkedhash_list.c (main): Update.
50295         * tests/test-array_oset.c (main): Update.
50296
50297 2007-03-15  Bruno Haible  <bruno@clisp.org>
50298
50299         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50300         (gl_oset_create_empty): Add dispose_fn argument.
50301         (struct gl_oset_implementation): Add dispose_fn argument to
50302         'create_empty' method.
50303         (struct gl_oset_impl_base): Add dispose_fn field.
50304         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50305         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50306         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50307         values.
50308         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50309         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50310         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50311         dropped value.
50312         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50313         dropped value.
50314         * tests/test-array_oset.c (main): Update.
50315         * tests/test-avltree_oset.c (main): Update.
50316         * tests/test-rbtree_oset.c (main): Update.
50317         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50318
50319 2007-03-13  Bruno Haible  <bruno@clisp.org>
50320
50321         * tests/test-stdbool.c (i): Update after last patch.
50322
50323 2007-03-12  Bruno Haible  <bruno@clisp.org>
50324
50325         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50326         the iswprint macro. Needed on Solaris 2.5.1.
50327
50328 2007-03-12  Bruno Haible  <bruno@clisp.org>
50329
50330         * tests/test-printf-frexp.c (main): Declare x as volatile.
50331
50332 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50333
50334         * doc/gnulib.texi (Build robot for gnulib): New section.
50335
50336 2007-03-12  Jim Meyering  <jim@meyering.net>
50337
50338         * build-aux/bootstrap: New file.
50339         * build-aux/bootstrap.conf: New file, from coreutils.
50340
50341 2007-03-11  Bruno Haible  <bruno@clisp.org>
50342
50343         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50344
50345 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50346
50347         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50348         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50349         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50350
50351 2007-03-11  Bruno Haible  <bruno@clisp.org>
50352
50353         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50354         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50355
50356 2007-03-11  Bruno Haible  <bruno@clisp.org>
50357
50358         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50359         formula. Needed for SunPRO C 5.0.
50360
50361 2007-03-11  Bruno Haible  <bruno@clisp.org>
50362
50363         * modules/long-options (Depends-on): Add getopt.
50364
50365 2007-03-11  Bruno Haible  <bruno@clisp.org>
50366
50367         * modules/modechange (Depends-on): Add stdbool.
50368
50369 2007-03-11  Bruno Haible  <bruno@clisp.org>
50370
50371         * modules/i-ring (Depends-on): Add stdbool.
50372
50373 2007-03-11  Bruno Haible  <bruno@clisp.org>
50374
50375         * modules/gc-des (Depends-on): Add stdbool.
50376
50377 2007-03-11  Bruno Haible  <bruno@clisp.org>
50378
50379         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50380
50381 2007-03-11  Bruno Haible  <bruno@clisp.org>
50382
50383         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50384
50385 2007-03-11  Bruno Haible  <bruno@clisp.org>
50386
50387         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50388
50389 2007-03-11  Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/vasnprintf.c (sprintf): Undefine.
50392
50393 2007-03-11  Bruno Haible  <bruno@clisp.org>
50394
50395         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50396         initializers in SunPRO C and Compaq C compilers.
50397
50398 2007-03-11  Bruno Haible  <bruno@clisp.org>
50399
50400         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50401         decrementing code ANSI C compliant.
50402
50403 2007-03-11  Bruno Haible  <bruno@clisp.org>
50404
50405         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50406         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50407
50408 2007-03-11  Bruno Haible  <bruno@clisp.org>
50409
50410         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50411         <stdbool.h> substitute doesn't pass.
50412
50413 2007-03-11  Bruno Haible  <bruno@clisp.org>
50414
50415         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50416
50417 2007-03-11  Bruno Haible  <bruno@clisp.org>
50418
50419         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50420         script, for submission to autobuild.josefsson.org.
50421
50422 2007-03-10  Bruno Haible  <bruno@clisp.org>
50423
50424         * modules/canonicalize-lgpl-tests: New file.
50425         * tests/test-canonicalize-lgpl.sh: New file.
50426         * tests/test-canonicalize-lgpl.c: New file.
50427
50428         * modules/c-strcase-tests: New file.
50429         * tests/test-c-strcase.sh: New file.
50430         * tests/test-c-strcasecmp.c: New file.
50431         * tests/test-c-strncasecmp.c: New file.
50432
50433         * modules/atexit-tests: New file.
50434         * tests/test-atexit.sh: New file.
50435         * tests/test-atexit.c: New file.
50436
50437 2007-03-10  Bruno Haible  <bruno@clisp.org>
50438
50439         * tests/test-binary-io.sh: Use temporary filenames that are not so
50440         likely to clash with those of other tests (in a parallel make).
50441         * tests/test-binary-io.c: Likewise.
50442
50443 2007-03-10  Bruno Haible  <bruno@clisp.org>
50444
50445         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50446         fallback; use #error instead.
50447         Suggested by Simon Josefsson.
50448
50449 2007-03-10  Bruno Haible  <bruno@clisp.org>
50450
50451         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50452         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50453         first and the last.
50454
50455 2007-03-10  Bruno Haible  <bruno@clisp.org>
50456
50457         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50458
50459 2007-03-10  Bruno Haible  <bruno@clisp.org>
50460
50461         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50462         "make distcheck".
50463         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50464         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50465         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50466
50467 2007-03-10  Bruno Haible  <bruno@clisp.org>
50468
50469         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50470         variable.
50471         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50472         variable.
50473
50474 2007-03-09  Eric Blake  <ebb9@byu.net>
50475         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50476
50477         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50478         types are not being provided by gnulib.
50479         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50480         types are supported.
50481
50482 2007-03-10  Bruno Haible  <bruno@clisp.org>
50483
50484         * lib/stdio_.h (__attribute__): New macro.
50485         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50486         vsprintf): Specify __attribute__ __format__ for GCC.
50487         Suggested by Eric Blake.
50488
50489 2007-03-09  Bruno Haible  <bruno@clisp.org>
50490
50491         * modules/printf-posix-tests: New file.
50492         * tests/test-printf-posix.sh: New file.
50493         * tests/test-printf-posix.c: New file.
50494
50495         * modules/printf-posix: New file.
50496         * lib/printf.c: New file.
50497         * m4/printf-posix-rpl.m4: New file.
50498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50499         REPLACE_PRINTF.
50500         * lib/stdio_.h (printf): New declaration.
50501         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50502         ____strfmon____): New macros.
50503         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50504         REPLACE_PRINTF.
50505
50506 2007-03-09  Bruno Haible  <bruno@clisp.org>
50507
50508         * tests/test-vasnprintf-posix2.sh: New file.
50509         * tests/test-vasnprintf-posix2.c: New file.
50510         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50511         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50512         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50513
50514         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50515         a locale dependent decimal point, rather than always '.'.
50516
50517 2007-03-09  Eric Blake  <ebb9@byu.net>
50518
50519         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50520         spite of platforms like Tandem/NSK that define it to -1.
50521
50522 2007-03-08  Bruno Haible  <bruno@clisp.org>
50523
50524         * modules/vprintf-posix-tests: New file.
50525         * tests/test-vprintf-posix.sh: New file.
50526         * tests/test-vprintf-posix.c: New file.
50527         * tests/test-printf-posix.h: New file.
50528
50529         * modules/vprintf-posix: New file.
50530         * lib/vprintf.c: New file.
50531         * m4/vprintf-posix.m4: New file.
50532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50533         REPLACE_VPRINTF.
50534         * lib/stdio_.h (vprintf): New declaration.
50535         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50536         REPLACE_VPRINTF.
50537
50538 2007-03-08  Bruno Haible  <bruno@clisp.org>
50539
50540         * modules/fprintf-posix-tests: New file.
50541         * tests/test-fprintf-posix.sh: New file.
50542         * tests/test-fprintf-posix.c: New file.
50543
50544         * modules/fprintf-posix: New file.
50545         * lib/fprintf.c: New file.
50546         * m4/fprintf-posix.m4: New file.
50547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50548         REPLACE_FPRINTF.
50549         * lib/stdio_.h (fprintf): New declaration.
50550         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50551         REPLACE_FPRINTF.
50552
50553 2007-03-08  Bruno Haible  <bruno@clisp.org>
50554
50555         * modules/vfprintf-posix-tests: New file.
50556         * tests/test-vfprintf-posix.sh: New file.
50557         * tests/test-vfprintf-posix.c: New file.
50558         * tests/test-fprintf-posix.h: New file.
50559         * tests/test-fprintf-posix.out: New file.
50560
50561         * modules/vfprintf-posix: New file.
50562         * lib/vfprintf.c: New file.
50563         * m4/vfprintf-posix.m4: New file.
50564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50565         REPLACE_VFPRINTF.
50566         * lib/stdio_.h (vfprintf): New declaration.
50567         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50568         REPLACE_VFPRINTF.
50569
50570 2007-03-08  Bruno Haible  <bruno@clisp.org>
50571
50572         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50573
50574 2007-03-08  Bruno Haible  <bruno@clisp.org>
50575
50576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50577         instead of 'expr' invocations.
50578         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50579         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50580         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50583         Suggested by Paul Eggert.
50584
50585 2007-03-08  Bruno Haible  <bruno@clisp.org>
50586
50587         * modules/fseterr-tests: New file.
50588         * tests/test-fseterr.c: New file.
50589
50590         * modules/fseterr: New file.
50591         * lib/fseterr.h: New file.
50592         * lib/fseterr.c: New file.
50593
50594 2007-03-08  Bruno Haible  <bruno@clisp.org>
50595
50596         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
50597         * lib/getopt_.h: Likewise.
50598         * lib/mbswidth.h: Likewise.
50599         * lib/setenv.h: Likewise.
50600         * lib/vasnprintf.h: Likewise.
50601         * lib/vasprintf.h: Likewise.
50602         * lib/verror.h: Likewise.
50603         * lib/xsetenv.h: Likewise.
50604         * lib/xvasprintf.h: Likewise.
50605
50606 2007-03-08  Jim Meyering  <jim@meyering.net>
50607
50608         * users.txt: Add parted.
50609
50610         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
50611
50612 2007-03-07  Bruno Haible  <bruno@clisp.org>
50613
50614         * m4/printf.m4: Make the shell script snippets copy&pastable.
50615
50616 2007-03-02  Bruno Haible  <bruno@clisp.org>
50617
50618         * lib/netinet_in_.h: New file.
50619         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
50620         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
50621         * modules/netinet_in (Files): Add lib/netinet_in_.h.
50622         (Depends-on): Add absolute-header.
50623         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
50624         into netinet/in.h.
50625
50626 2007-03-03  Bruno Haible  <bruno@clisp.org>
50627
50628         * lib/sys_select_.h: New file.
50629         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
50630         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
50631         * modules/sys_select (Files): Add lib/sys_select_.h.
50632         (Depends-on): Add absolute-header.
50633         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
50634         into sys/select.h.
50635
50636 2007-03-02  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
50639         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
50640         values.
50641         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
50642         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
50643         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
50644         * modules/sys_socket (Depends-on): Add absolute-header.
50645         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
50646         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
50647         (Include): Remove requirement of inclusion of <sys/types.h>.
50648
50649 2007-03-02  Bruno Haible  <bruno@clisp.org>
50650
50651         * lib/byteswap_.h (bswap_32): Fix formula.
50652
50653 2007-03-06  Bruno Haible  <bruno@clisp.org>
50654
50655         * modules/sprintf-posix-tests: New file.
50656         * tests/test-sprintf-posix.c: New file.
50657
50658         * modules/sprintf-posix: New file.
50659         * lib/sprintf.c: New file.
50660         * m4/sprintf-posix.m4: New file.
50661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
50662         REPLACE_SPRINTF.
50663         * lib/stdio_.h (sprintf): New declaration.
50664         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
50665         REPLACE_SPRINTF.
50666
50667 2007-03-06  Bruno Haible  <bruno@clisp.org>
50668
50669         * modules/vsprintf-posix-tests: New file.
50670         * tests/test-vsprintf-posix.c: New file.
50671         * tests/test-sprintf-posix.h: New file.
50672
50673         * modules/vsprintf-posix: New file.
50674         * lib/vsprintf.c: New file.
50675         * m4/vsprintf-posix.m4: New file.
50676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
50677         REPLACE_VSPRINTF.
50678         * lib/stdio_.h (vsprintf): New declaration.
50679         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
50680         REPLACE_VSPRINTF.
50681
50682 2007-03-06  Bruno Haible  <bruno@clisp.org>
50683
50684         * modules/vsnprintf (Depend-on): Remove minmax.
50685
50686 2007-03-06  Bruno Haible  <bruno@clisp.org>
50687
50688         * modules/snprintf-posix-tests: New file.
50689         * tests/test-snprintf-posix.c: New file.
50690
50691         * modules/snprintf-posix: New file.
50692         * m4/snprintf-posix.m4: New file.
50693         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
50694         gl_FUNC_SNPRINTF.
50695         (gl_FUNC_SNPRINTF): Invoke it.
50696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
50697         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
50698         is set.
50699         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
50700
50701 2007-03-06  Bruno Haible  <bruno@clisp.org>
50702
50703         * modules/vsnprintf-posix-tests: New file.
50704         * tests/test-vsnprintf-posix.c: New file.
50705         * tests/test-snprintf-posix.h: New file.
50706
50707         * modules/vsnprintf-posix: New file.
50708         * m4/vsnprintf-posix.m4: New file.
50709         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
50710         gl_FUNC_VSNPRINTF.
50711         (gl_FUNC_VSNPRINTF): Invoke it.
50712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
50713         * lib/stdio_.h (vsnprintf): Define as a replacement if
50714         REPLACE_VSNPRINTF is set.
50715         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
50716
50717 2007-03-06  Bruno Haible  <bruno@clisp.org>
50718
50719         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
50720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
50721
50722 2007-03-06  Bruno Haible  <bruno@clisp.org>
50723
50724         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
50725         (asinl): Declare also if HAVE_DECL_ASINL is set.
50726         (atanl): Declare also if HAVE_DECL_ATANL is set.
50727         (ceill): Declare also if HAVE_DECL_CEILL is set.
50728         (cosl): Declare also if HAVE_DECL_COSL is set.
50729         (expl): Declare also if HAVE_DECL_EXPL is set.
50730         (floorl): Declare also if HAVE_DECL_FLOORL is set.
50731         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
50732         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
50733         (logl): Declare also if HAVE_DECL_LOGL is set.
50734         (sinl): Declare also if HAVE_DECL_SINL is set.
50735         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
50736         (tanl): Declare also if HAVE_DECL_TANL is set.
50737         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
50738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
50739         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
50740         declaration of frexpl, ldexpl.
50741         * modules/printf-frexpl (Depends-on): Add math.
50742         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
50743
50744 2007-03-05  Bruno Haible  <bruno@clisp.org>
50745
50746         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
50747         frexpl and ldexpl are declared.
50748         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
50749
50750 2007-03-05  Bruno Haible  <bruno@clisp.org>
50751
50752         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
50753         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
50754
50755 2007-03-05  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/stdio_.h: Include <stddef.h>.
50758
50759 2007-03-05  Bruno Haible  <bruno@clisp.org>
50760
50761         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
50762
50763 2007-03-05  Bruno Haible  <bruno@clisp.org>
50764
50765         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
50766         NetBSD 4, from Ralf Wildenhues.
50767
50768 2007-03-04  Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/vasprintf.h: Update #if logic for the case when the functions
50771         exist but are overridden.
50772
50773 2007-03-04  Bruno Haible  <bruno@clisp.org>
50774
50775         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
50776         implementations: glibc-2.4 and MacOS X 10.3.
50777         * tests/test-vasnprintf-posix.c (test_function): Test also the case
50778         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
50779         * tests/test-vasprintf-posix.c (test_function): Likewise.
50780
50781 2007-03-04  Bruno Haible  <bruno@clisp.org>
50782
50783         * modules/vasprintf-posix-tests: New file.
50784         * tests/test-vasprintf-posix.c: New file.
50785
50786         * modules/vasprintf-posix: New file.
50787         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
50788         defined.
50789         * m4/vasprintf-posix.m4: New file.
50790         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
50791         gl_FUNC_VASPRINTF.
50792         (gl_FUNC_VASPRINTF): Invoke it.
50793         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
50794         here.
50795         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
50796
50797 2007-03-04  Bruno Haible  <bruno@clisp.org>
50798
50799         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
50800         REPLACE_GETTIMEOFDAY.
50801         * modules/sys_time (Makefile.am): Likewise.
50802         * m4/sys_time_h.m4: Likewise.
50803         * m4/gettimeofday.m4: Likewise.
50804
50805 2007-03-04  Bruno Haible  <bruno@clisp.org>
50806
50807         * modules/vasnprintf-posix-tests: New file.
50808         * tests/test-vasnprintf-posix.c: New file.
50809
50810         * modules/vasnprintf-posix: New file.
50811         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
50812         printf-frexpl.h.
50813         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
50814         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
50815         REPLACE_VASNPRINTF is defined.
50816         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
50817         gl_FUNC_VASNPRINTF.
50818         (gl_FUNC_VASNPRINTF): Invoke it.
50819         * m4/vasnprintf-posix.m4: New file.
50820         * m4/printf.m4: New file.
50821
50822 2007-03-04  Bruno Haible  <bruno@clisp.org>
50823
50824         Compile progreloc.c only if --enable-relocatable is specified.
50825         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
50826         if --enable-relocatable was specified.
50827         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
50828         lib_SOURCES.
50829
50830 2007-03-04  Jim Meyering  <jim@meyering.net>
50831
50832         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
50833         Use it consistently, rather than enumerating errno constants.
50834
50835 2007-03-04  Bruno Haible  <bruno@clisp.org>
50836
50837         * modules/xvasprintf-tests: New file.
50838         * tests/test-xvasprintf.c: New file.
50839
50840         * modules/vasprintf-tests: New file.
50841         * tests/test-vasprintf.c: New file.
50842
50843         * modules/vasnprintf-tests: New file.
50844         * tests/test-vasnprintf.c: New file.
50845
50846         * modules/vsnprintf-tests: New file.
50847         * tests/test-vsnprintf.c: New file.
50848
50849         * modules/snprintf-tests: New file.
50850         * tests/test-snprintf.c: New file.
50851
50852 2007-03-04  Bruno Haible  <bruno@clisp.org>
50853
50854         Compile relocatable.c only if --enable-relocatable is specified.
50855         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
50856         gl_RELOCATABLE_LIBRARY.
50857         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
50858         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
50859         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
50860         gl_RELOCATABLE_LIBRARY.
50861         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
50862         (Makefile.am): Remove lib_SOURCES.
50863         * modules/relocatable-lib-lgpl (configure.ac): Invoke
50864         gl_RELOCATABLE_LIBRARY.
50865         (Makefile.am): Remove lib_SOURCES.
50866         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
50867         always.
50868         * modules/relocatable-prog-wrapper (configure.ac): Invoke
50869         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
50870
50871 2007-03-04  Bruno Haible  <bruno@clisp.org>
50872
50873         * modules/argmatch-tests: New file.
50874         * tests/test-argmatch.c: New file.
50875
50876         * tests/test-allocsa.c (main): Halve the number of loop runs.
50877
50878         * modules/alloca-opt-tests: New file.
50879         * tests/test-alloca-opt.c: New file.
50880
50881 2007-03-04  Jim Meyering  <jim@meyering.net>
50882
50883         Work around difference between Linux ACLs and Solaris 10 ZFS.
50884         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
50885         for EINVAL.
50886
50887 2007-03-03  Bruno Haible  <bruno@clisp.org>
50888
50889         * modules/relocatable-prog (Depends-on): Add back progreloc's
50890         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
50891
50892 2007-03-03  Bruno Haible  <bruno@clisp.org>
50893
50894         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
50895         * modules/relocatable-lib: New file.
50896
50897 2007-03-03  Bruno Haible  <bruno@clisp.org>
50898
50899         * modules/relocatable-prog: Renamed from modules/relocatable.
50900         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
50901
50902 2007-03-03  Bruno Haible  <bruno@clisp.org>
50903
50904         * modules/relocatable-script (Files): Add doc/relocatable.texi,
50905         m4/relocatable-lib.m4.
50906         (Depends-on): Remove 'relocatable'.
50907         (configure.ac): Add gl_RELOCATABLE_NOP.
50908
50909 2007-03-03  Bruno Haible  <bruno@clisp.org>
50910
50911         * modules/relocatable-prog-wrapper: New file.
50912         * modules/relocatable (Depends-on): Add it. Remove all other
50913         dependencies except progname.
50914         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
50915
50916         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
50917         (gl_FUNC_STRERROR): Nop.
50918         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
50919
50920         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
50921         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
50922
50923         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
50924         (gl_FUNC_READLINK): Update.
50925
50926         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
50927
50928 2007-03-03  Bruno Haible  <bruno@clisp.org>
50929
50930         * lib/xreadlink.c: Include <unistd.h> unconditionally.
50931         * modules/xreadlink (Depends-on): Add unistd.
50932         * modules/xreadlink-with-size (Depends-on): Likewise.
50933
50934 2007-03-03  Bruno Haible  <bruno@clisp.org>
50935
50936         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
50937         extracted from gt_FUNC_SETENV.
50938         (gt_FUNC_SETENV): Remove macro.
50939         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
50940         remove gt_FUNC_SETENV.
50941
50942 2007-03-03  Bruno Haible  <bruno@clisp.org>
50943
50944         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
50945         ENABLE_RELOCATABLE here.
50946         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
50947
50948 2007-03-03  Bruno Haible  <bruno@clisp.org>
50949
50950         * modules/rbtreehash-list-tests (Depends-on): Add progname.
50951         * tests/test-rbtreehash_list.c: Include progname.h.
50952         (main): Call set_program_name.
50953
50954         * modules/rbtree-oset-tests (Depends-on): Add progname.
50955         * tests/test-rbtree_oset.c: Include progname.h.
50956         (main): Call set_program_name.
50957
50958         * modules/rbtree-list-tests (Depends-on): Add progname.
50959         * tests/test-rbtree_list.c: Include progname.h.
50960         (main): Call set_program_name.
50961
50962         * modules/linked-list-tests (Depends-on): Add progname.
50963         * tests/test-linked_list.c: Include progname.h.
50964         (main): Call set_program_name.
50965
50966 2007-03-03  Bruno Haible  <bruno@clisp.org>
50967
50968         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
50969         All uses of __restrict changed to _Restrict_.
50970         * lib/glob_.h (__restrict): Remove macro.
50971
50972 2007-03-02  Bruno Haible  <bruno@clisp.org>
50973
50974         * modules/gettext (configure.ac): Require gettext infrastructure
50975         from version 0.16.1.
50976
50977 2007-03-02  Bruno Haible  <bruno@clisp.org>
50978
50979         * modules/linkedhash-list-tests (Depends-on): Add progname.
50980         * tests/test-linkedhash_list.c: Include progname.h.
50981         (main): Call set_program_name.
50982
50983         * modules/carray-list-tests (Depends-on): Add progname.
50984         * tests/test-carray_list.c: Include progname.h.
50985         (main): Call set_program_name.
50986
50987         * modules/avltreehash-list-tests (Depends-on): Add progname.
50988         * tests/test-avltreehash_list.c: Include progname.h.
50989         (main): Call set_program_name.
50990
50991         * modules/avltree-oset-tests (Depends-on): Add progname.
50992         * tests/test-avltree_oset.c: Include progname.h.
50993         (main): Call set_program_name.
50994
50995         * modules/avltree-list-tests (Depends-on): Add progname.
50996         * tests/test-avltree_list.c: Include progname.h.
50997         (main): Call set_program_name.
50998
50999         * modules/array-oset-tests (Depends-on): Add progname.
51000         * tests/test-array_oset.c: Include progname.h.
51001         (main): Call set_program_name.
51002
51003         * modules/array-list-tests (Depends-on): Add progname.
51004         * tests/test-array_list.c: Include progname.h.
51005         (main): Call set_program_name.
51006
51007         * modules/argp-tests (Depends-on): Add progname.
51008         * tests/test-argp.c: Include argp.h first. Include progname.h.
51009         (main): Call set_program_name.
51010
51011 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
51012
51013         * doc/gnulib-tool.texi (Initial import): Reword description of
51014         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
51015         limited effect even if defined after the first system include.
51016
51017 2007-03-01  Bruno Haible  <bruno@clisp.org>
51018
51019         * build-aux/config.libpath: Update to libtool-1.5.22.
51020         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51021
51022 2007-03-01  Bruno Haible  <bruno@clisp.org>
51023
51024         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
51025         foo_CFLAGS.
51026         Reported by Ralf Wildenhues.
51027
51028 2007-03-01  Bruno Haible  <bruno@clisp.org>
51029
51030         * build-aux/install-reloc: Remove object files left over by some
51031         compilers.
51032         Reported by Ralf Wildenhues.
51033
51034 2007-03-01  Bruno Haible  <bruno@clisp.org>
51035
51036         * build-aux/install-reloc: Break long lines.
51037
51038 2007-03-01  Bruno Haible  <bruno@clisp.org>
51039
51040         * doc/relocatable.texi: Document that it may not work on OpenBSD.
51041         Reported by Ralf Wildenhues.
51042
51043 2007-03-01  Bruno Haible  <bruno@clisp.org>
51044
51045         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
51046         include ordering constraints.
51047
51048 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51049
51050         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
51051         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
51052         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
51053         as another example.
51054         * lib/time_.h: Fix misspelling.
51055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51056         Require gl_HEADER_TIME_H_DEFAULTS.
51057         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
51058         * m4/time_r.m4 (gl_TIME_R): Likewise.
51059         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
51060
51061 2007-03-01  Bruno Haible  <bruno@clisp.org>
51062
51063         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
51064         * m4/utimens.m4 (gl_UTIMENS): Likewise.
51065
51066 2007-03-01  Jim Meyering  <jim@meyering.net>
51067
51068         * modules/xreadlink (Maintainer): Add my name.
51069         * modules/xreadlink-with-size (Depends-on): Alphabetize.
51070
51071 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
51072             Bruno Haible  <bruno@clisp.org>
51073
51074         * build-aux/install-reloc: Compile also c-ctype.c.
51075         * build-aux/relocatable.sh.in: New file.
51076         * doc/relocatable.texi: New file.
51077         * doc/relocatable-maint.texi: New file.
51078         * doc/gnulib.texi: Include relocatable-maint.texi.
51079         * lib/progreloc.c: Include unistd.h unconditionally.
51080         * lib/relocwrapper.c: Include unistd.h unconditionally.
51081         Include c-ctype.h.
51082         (add_dotbin): Use c_tolower.
51083         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
51084         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
51085         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
51086         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
51087         to m4/relocatable-lib.m4.
51088         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
51089         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
51090         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
51091         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
51092         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
51093         * modules/relocatable: New file.
51094         * modules/relocatable-lib: New file.
51095         * modules/relocatable-script: New file.
51096
51097 2007-02-28  Bruno Haible  <bruno@clisp.org>
51098
51099         Import --enable-relocatable infrastructure.
51100         * build-aux/config.libpath: New file, from GNU gettext.
51101         * build-aux/install-reloc: New file, from GNU gettext.
51102         * build-aux/reloc-ldflags: New file, from GNU gettext.
51103         * lib/relocatable.h: New file, from GNU gettext.
51104         * lib/relocatable.c: New file, from GNU gettext.
51105         * lib/relocwrapper.c: New file, from GNU gettext.
51106         * m4/relocatable.m4: New file, from GNU gettext.
51107
51108 2007-02-28  Bruno Haible  <bruno@clisp.org>
51109
51110         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
51111
51112         * modules/xreadlink: New file, from GNU gettext with modifications.
51113         * lib/xreadlink.c: New file, from GNU gettext.
51114         * lib/xreadlink.h: Add comments.
51115         (xreadlink): New declaration.
51116
51117         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
51118         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
51119         lib/xreadlink-with-size.c.
51120         (configure.ac): Remove gl_XREADLINK invocation.
51121         (Makefile.am): Augment lib_SOURCES.
51122         * m4/xreadlink.m4: Remove file.
51123         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
51124         (xreadlink_with_size): Renamed from xreadink.
51125         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
51126         * modules/canonicalize (Depends-on): Replace xreadlink with
51127         xreadlink-with-size.
51128         * lib/canonicalize.c (canonicalize_filename_mode): Update.
51129
51130 2007-02-25  Jim Meyering  <jim@meyering.net>
51131
51132         * build-aux/announce-gen: When complaining about excess arguments,
51133         list them.
51134
51135 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51136
51137         * README: Document signed integer overflow situation more
51138         accurately.
51139
51140 2007-02-25  Bruno Haible  <bruno@clisp.org>
51141
51142         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
51143         'a' or 'A' conversion.
51144
51145 2007-02-25  Bruno Haible  <bruno@clisp.org>
51146
51147         * modules/filename: Renamed from modules/pathname.
51148         (Files): Replace lib/pathname.h with lib/filename.h. Replace
51149         lib/concatpath.c with lib/concat-filename.c.
51150         (Makefile.am): Update.
51151         (Include): Replace pathname.h with filename.h.
51152         * lib/filename.h: Renamed from lib/pathname.h.
51153         (concatenated_filename): Renamed from concatenated_pathname.
51154         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51155         (concatenated_filename): Renamed from concatenated_pathname.
51156         * lib/findprog.c: Include filename.h instead of pathname.h.
51157         (find_in_path): Update.
51158         * lib/javacomp.c: Include filename.h instead of pathname.h.
51159         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51160         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51161         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51162         is_oldgcj_14_13_usable, is_javac_usable): Update.
51163         * lib/javaexec.c: Include filename.h instead of pathname.h.
51164         (execute_java_class): Update.
51165         * modules/findprog: Update.
51166         * modules/javacomp: Update.
51167         * modules/javaexec: Update.
51168         * MODULES.html.sh (File system functions): Add 'filename', remove
51169         'pathname'.
51170
51171 2007-02-25  Bruno Haible  <bruno@clisp.org>
51172
51173         * modules/printf-frexpl-tests: New file.
51174         * tests/test-printf-frexpl.c: New file.
51175
51176         * modules/printf-frexpl: New file.
51177         * lib/printf-frexpl.h: New file.
51178         * lib/printf-frexpl.c: New file.
51179         * m4/printf-frexpl.m4: New file.
51180
51181 2007-02-25  Bruno Haible  <bruno@clisp.org>
51182
51183         * modules/printf-frexp-tests: New file.
51184         * tests/test-printf-frexp.c: New file.
51185
51186         * modules/printf-frexp: New file.
51187         * lib/printf-frexp.h: New file.
51188         * lib/printf-frexp.c: New file.
51189         * m4/printf-frexp.m4: New file.
51190
51191 2007-02-25  Bruno Haible  <bruno@clisp.org>
51192
51193         Assume automake >= 1.10 for the tests.
51194         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51195         * modules/arctwo-tests: Likewise.
51196         * modules/argp-tests: Likewise.
51197         * modules/avltree-list-tests: Likewise.
51198         * modules/avltree-oset-tests: Likewise.
51199         * modules/avltreehash-list-tests: Likewise.
51200         * modules/carray-list-tests: Likewise.
51201         * modules/crc-tests: Likewise.
51202         * modules/des-tests: Likewise.
51203         * modules/gc-arcfour-tests: Likewise.
51204         * modules/gc-arctwo-tests: Likewise.
51205         * modules/gc-des-tests: Likewise.
51206         * modules/gc-hmac-md5-tests: Likewise.
51207         * modules/gc-hmac-sha1-tests: Likewise.
51208         * modules/gc-md2-tests: Likewise.
51209         * modules/gc-md4-tests: Likewise.
51210         * modules/gc-md5-tests: Likewise.
51211         * modules/gc-pbkdf2-sha1-tests: Likewise.
51212         * modules/gc-rijndael-tests: Likewise.
51213         * modules/gc-sha1-tests: Likewise.
51214         * modules/gc-tests: Likewise.
51215         * modules/getaddrinfo-tests: Likewise.
51216         * modules/hmac-md5-tests: Likewise.
51217         * modules/hmac-sha1-tests: Likewise.
51218         * modules/linked-list-tests: Likewise.
51219         * modules/linkedhash-list-tests: Likewise.
51220         * modules/lock-tests: Likewise.
51221         * modules/md2-tests: Likewise.
51222         * modules/md4-tests: Likewise.
51223         * modules/md5-tests: Likewise.
51224         * modules/rbtree-list-tests: Likewise.
51225         * modules/rbtree-oset-tests: Likewise.
51226         * modules/rbtreehash-list-tests: Likewise.
51227         * modules/read-file-tests: Likewise.
51228         * modules/rijndael-tests: Likewise.
51229         * modules/stdint-tests: Likewise.
51230         * modules/tls-tests: Likewise.
51231
51232 2007-02-24  Bruno Haible  <bruno@clisp.org>
51233
51234         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51235         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51236         function; instead check whether isnan with a double argument links.
51237         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51238         function; instead check whether isnan with a 'long double' argument
51239         links.
51240         Reported by Eric Blake <ebb9@byu.net>.
51241
51242 2007-02-24  Bruno Haible  <bruno@clisp.org>
51243
51244         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51245         defined.
51246         * lib/isnanl.c: Remove all code. Just include isnan.c.
51247         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51248
51249 2007-02-25  Jim Meyering  <jim@meyering.net>
51250
51251         Avoid conflicting types for 'unsetenv' on FreeBSD.
51252         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51253         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51254         in stdlib.h.
51255
51256 2007-02-24  Bruno Haible  <bruno@clisp.org>
51257
51258         * modules/isnanl-nolibm-tests: New file.
51259         * tests/test-isnanl.c: New file.
51260
51261         * modules/isnanl-nolibm: New file.
51262         * lib/isnanl.h: New file.
51263         * lib/isnanl.c: New file.
51264         * m4/isnanl.m4: New file.
51265
51266 2007-02-24  Bruno Haible  <bruno@clisp.org>
51267
51268         * modules/isnan-nolibm-tests: New file.
51269         * tests/test-isnan.c: New file.
51270
51271         * modules/isnan-nolibm: New file.
51272         * lib/isnan.h: New file.
51273         * lib/isnan.c: New file.
51274         * m4/isnan.m4: New file.
51275
51276 2007-02-24  Bruno Haible  <bruno@clisp.org>
51277
51278         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51279         assume that an exponent fits in 20 bits.
51280
51281 2007-02-24  Jim Meyering  <jim@meyering.net>
51282
51283         * m4/regex.m4: Update the description of the configure-time option,
51284         --without-included-regex, to state accurately what the defaults are,
51285         and perhaps to give people an idea why using this option is risky.
51286
51287 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51288
51289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51290         loops on small arguments.  This attempts to avoid the problem
51291         Bruno Haible reported for AIX 4.3.2 in
51292         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51293
51294 2007-02-23  Bruno Haible  <bruno@clisp.org>
51295
51296         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51297         Needed for help2man.
51298
51299 2007-02-23  Karl Berry  <karl@gnu.org>
51300
51301         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51302         exists, foo.h should be cvs-ignored, not committed.
51303
51304 2007-02-23  Eric Blake  <ebb9@byu.net>
51305
51306         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51307         * lib/stat-time.h (includes): Likewise.
51308         * lib/utimecmp.c (includes): Likewise.
51309         * lib/utimens.h (includes): Likewise.
51310         * lib/getdate.y (includes): Also include "timespec.h" for use
51311         internal to the module.
51312         * modules/utimens (Depends-on): Revert yesterday's patch.
51313         * modules/nanosleep (Depends-on): Add missing dependency.
51314
51315 2007-02-22  Bruno Haible  <bruno@clisp.org>
51316
51317         * lib/glob.c: Don't include getlogin_r.h.
51318
51319 2007-02-22  Jim Meyering  <jim@meyering.net>
51320
51321         * modules/utimens (Depends-on): Add timespec, required for
51322         utimens.h's inclusion of timespec.h.
51323
51324 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51327         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51328         Schwab in
51329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51330         I'll try to think of a better way to fix the Solaris problem.
51331
51332         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51333         like glibc; on Solaris 10, it fails with errno == EINVAL.
51334         POSIX says the behavior is unspecified if the first argument is NULL,
51335         so play it safe and never pass NULL to the system getcwd.
51336
51337 2007-02-21  Jim Meyering  <jim@meyering.net>
51338
51339         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51340         of gettimeofday.  It would conflict with the one now always
51341         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51342         an IRIX 6.5 build failure.
51343
51344 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51345
51346         Minor fixups to port to Solaris 10 with Sun C 5.8.
51347         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51348         * modules/getcwd (Depends-on): Add dirfd.
51349         * lib/putenv.c (putenv): #undef it.
51350         (rpl_putenv): New decl.
51351         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51352
51353 2007-02-20  Bruno Haible  <bruno@clisp.org>
51354
51355         * modules/stdio-tests: New file.
51356         * tests/test-stdio.c: New file.
51357
51358         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51359         (Depends-on): Add stdio.
51360         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51361         (Include): Use <stdio.h> instead of vsnprintf.h.
51362         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51363         HAVE_DECL_VSNPRINTF.
51364         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51365
51366         * modules/snprintf (Files): Remove lib/snprintf.h.
51367         (Depends-on): Add stdio.
51368         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51369         (Include): Use <stdio.h> instead of snprintf.h.
51370         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51371         HAVE_DECL_SNPRINTF.
51372         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51373         * lib/getaddrinfo.c: Likewise.
51374
51375         * modules/stdio: New file.
51376         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51377         * lib/snprintf.h: Remove file.
51378         * lib/vsnprintf.h: Remove file.
51379         * lib/.cppi-disable: Remove snprintf.h.
51380         * m4/stdio_h.m4: New file.
51381         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51382
51383 2007-02-20  Jim Meyering  <jim@meyering.net>
51384
51385         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51386         used by e.g., mingw.  From Bruno Haible.
51387
51388 2007-02-19  Bruno Haible  <bruno@clisp.org>
51389
51390         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51391         warnings.
51392         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51393
51394 2007-02-19  Bruno Haible  <bruno@clisp.org>
51395
51396         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51397         from mingw users.
51398
51399 2007-02-19  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51402         warnings.
51403         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51404
51405 2007-02-19  Jim Meyering  <jim@meyering.net>
51406
51407         Don't use FD after a successful "fdopendir (fd)".
51408         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51409         Reset it by calling dirfd on the just-obtained DIR*.
51410
51411         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51412         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51413
51414 2007-02-18  Bruno Haible  <bruno@clisp.org>
51415
51416         * lib/readlink.c: Include <unistd.h>.
51417         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51418         HAVE_READLINK.
51419         * modules/readlink (Depends-on): Add unistd.
51420         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51421         (Include): Add <unistd.h>.
51422
51423         * lib/getlogin_r.h: Remove file.
51424         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51425         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51426         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51427         HAVE_DECL_GETLOGIN_R.
51428         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51429         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51430         (Include): Use <unistd.h> instead of getlogin_r.h.
51431
51432         * lib/getcwd.h: Remove file.
51433         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51434         * lib/xgetcwd.c: Likewise.
51435         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51436         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51437         * modules/getcwd (Files): Remove lib/getcwd.h.
51438         (Depends-on): Add unistd.
51439         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51440         (Include): Use <unistd.h> instad of getcwd.h.
51441
51442         * lib/ftruncate.c: Include <unistd.h> first.
51443         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51444         Set HAVE_FTRUNCATE.
51445         * modules/ftruncate (Depends-on): Add unistd.
51446         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51447
51448         * lib/fchdir.c: Include <unistd.h> first.
51449         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51451         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51452         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51453         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51454
51455         * lib/dup2.c: Include <unistd.h> first.
51456         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51457         HAVE_DUP2.
51458         * modules/dup2 (Depends-on): Add unistd.
51459         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51460
51461         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51462         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51463         REPLACE_CHOWN. Don't define chown as a macro here.
51464         * modules/chown (Depends-on): Add unistd.
51465         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51466
51467         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51468         Add definition for GL_LINK_WARNING.
51469         (chown, dup2): New declarations.
51470         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51471         link warning.
51472         (ftruncate): New declaration.
51473         (getcwd): New declaration, taken from old getcwd.h.
51474         (getlogin_r): New declaration, taken from old getlogin_r.h.
51475         (readlink): New declaration.
51476         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51477         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51478         (gl_PREREQ_UNISTD): Remove macro.
51479         (gl_UNISTD_MODULE_INDICATOR): New macro.
51480         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51481         many new variables. Don't set UNISTD_H.
51482         * modules/unistd (Description): Change.
51483         (Depends-on): Add link-warning.
51484         (configure.ac): Update.
51485         (Makefile.am): Create unistd.h always. Substitute many new variables
51486         into it.
51487
51488 2007-02-18  Bruno Haible  <bruno@clisp.org>
51489
51490         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51491         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51492         HAVE_GETSUBOPT.
51493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51494         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51495         * lib/getsubopt.h: Remove file.
51496         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51497         (Depends-on): Add stdlib.
51498         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51499         (Includes): Use <stdlib.h> instead of getsubopt.h.
51500         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51501         Set HAVE_GETSUBOPT.
51502         * lib/getsubopt.c: Don't include getsubopt.h.
51503
51504 2007-02-18  Bruno Haible  <bruno@clisp.org>
51505
51506         * modules/fchdir (Depends-on): Add dup2.
51507
51508 2007-02-18  Bruno Haible  <bruno@clisp.org>
51509
51510         * lib/stdlib_.h: Handle glibc's special invocation convention
51511         specially.
51512
51513 2007-02-18  Bruno Haible  <bruno@clisp.org>
51514
51515         * modules/stdlib-tests: New file.
51516         * tests/test-stdlib.c: New file.
51517
51518         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51519         (Depends-on): Add stdlib.
51520         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51521         (Includes): Use <stdlib.h> instead of mkstemp.h.
51522         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51523         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51524         * lib/mkstemp.c: Don't include mkstemp.h.
51525         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51526         * lib/stdlib--.h: Don't include mkstemp.h.
51527
51528         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51529         (Depends-on): Add stdlib.
51530         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51531         (Includes): Use <stdlib.h> instead of mkdtemp.h.
51532         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51533         HAVE_MKDTEMP.
51534         * lib/mkdtemp.c: Don't include mkdtemp.h.
51535         * lib/clean-temp.c: Don't include mkdtemp.h.
51536
51537         * modules/exit (Files): Remove lib/exit.h.
51538         (Depends-on): Add stdlib.
51539         (Makefile.am): Remove lib_SOURCES.
51540         (Include): Use <stdlib.h> instead of exit.h.
51541         * lib/argmatch.c: Don't include exit.h.
51542         * lib/execute.c: Likewise.
51543         * lib/pagealign_alloc.c: Likewise.
51544         * lib/pipe.c: Likewise.
51545         * lib/wait-process.c: Likewise.
51546         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51547         * lib/exitfail.c: Likewise.
51548         * lib/savewd.c: Likewise.
51549         * lib/xsetenv.c: Likewise.
51550
51551         * modules/stdlib: New file.
51552         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51553         and extra comments about mkstemp().
51554         * lib/exit.h: Remove file.
51555         * lib/mkdtemp.h: Remove file.
51556         * lib/mkstemp.h: Remove file.
51557         * m4/stdlib_h.m4: New file.
51558         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51559
51560 2007-02-18  Bruno Haible  <bruno@clisp.org>
51561
51562         * modules/math-tests: New file.
51563         * tests/test-math.c: New file.
51564
51565         * modules/math: New file.
51566         * modules/mathl (Files): Remove lib/mathl.h.
51567         (Depends-on): Add math.
51568         (Makefile.am): Don't mention mathl.h.
51569         (Include): Use <math.h> instead of mathl.h.
51570         * lib/math_.h: New file.
51571         * lib/mathl.h: Remove file.
51572         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51573         mathl.h.
51574         * lib/asinl.c: Likewise.
51575         * lib/atanl.c: Likewise.
51576         * lib/ceill.c: Likewise.
51577         * lib/cosl.c: Likewise.
51578         * lib/expl.c: Likewise.
51579         * lib/floorl.c: Likewise.
51580         * lib/frexpl.c: Likewise.
51581         * lib/ldexpl.c: Likewise.
51582         * lib/logl.c: Likewise.
51583         * lib/sincosl.c: Likewise.
51584         * lib/sinl.c: Likewise.
51585         * lib/sqrtl.c: Likewise.
51586         * lib/tanl.c: Likewise.
51587         * lib/trigl.c: Likewise.
51588         * m4/math_h.m4: New file.
51589         * MODULES.html.sh (Mathematics): Add math.
51590
51591 2007-02-17  Bruno Haible  <bruno@clisp.org>
51592
51593         * modules/wctype-tests: New file.
51594         * tests/test-wctype.c: New file.
51595
51596         * modules/wchar-tests: New file.
51597         * tests/test-wchar.c: New file.
51598
51599         * modules/unistd-tests: New file.
51600         * tests/test-unistd.c: New file.
51601
51602         * modules/time-tests: New file.
51603         * tests/test-time.c: New file.
51604
51605         * modules/sysexits-tests: New file.
51606         * tests/test-sysexits.c: New file.
51607
51608         * modules/sys_time-tests: New file.
51609         * tests/test-sys_time.c: New file.
51610
51611         * modules/sys_stat-tests: New file.
51612         * tests/test-sys_stat.c: New file.
51613
51614         * modules/sys_socket-tests: New file.
51615         * tests/test-sys_socket.c: New file.
51616
51617         * modules/sys_select-tests: New file.
51618         * tests/test-sys_select.c: New file.
51619
51620         * modules/string-tests: New file.
51621         * tests/test-string.c: New file.
51622
51623         * modules/stdbool-tests: New file.
51624         * tests/test-stdbool.c: New file.
51625
51626         * modules/netinet_in-tests: New file.
51627         * tests/test-netinet_in.c: New file.
51628
51629         * modules/inttypes-tests: New file.
51630         * tests/test-inttypes.c: New file.
51631
51632         * modules/fcntl-tests: New file.
51633         * tests/test-fcntl.c: New file.
51634
51635         * modules/byteswap-tests: New file.
51636         * tests/test-byteswap.c: New file.
51637
51638         * modules/arpa_inet-tests: New file.
51639         * tests/test-arpa_inet.c: New file.
51640
51641 2007-02-17  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
51644         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
51645         if the corresponding module is not enabled. Emit link warnings if
51646         the function is used nevertheless.
51647         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
51648         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
51649         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
51650         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
51651         * modules/inttypes (Depends-on): Add link-warning.
51652         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51653         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
51654         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
51655         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
51656         * modules/imaxdiv (configure.ac): Likewise.
51657         * modules/strtoimax (configure.ac): Likewise.
51658         * modules/strtoumax (configure.ac): Likewise.
51659
51660 2007-02-17  Bruno Haible  <bruno@clisp.org>
51661
51662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
51663         gl_STRING_MODULE_INDICATOR_DEFAULTS.
51664         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
51665         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
51666
51667 2007-02-17  Bruno Haible  <bruno@clisp.org>
51668
51669         * modules/link-warning: New file.
51670         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
51671         * lib/string_.h (GL_LINK_WARNING): Remove definition.
51672         * modules/string (Depends-on): Add link-warning.
51673         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51674         string.h.
51675         * MODULES.html.sh (Support for building libraries and executables): Add
51676         link-warning.
51677
51678 2007-02-17  Bruno Haible  <bruno@clisp.org>
51679
51680         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
51681         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
51682         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
51683         long lines.
51684
51685 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
51686             Bruno Haible  <bruno@clisp.org>
51687
51688         * modules/tmpfile: New file.
51689         * lib/tmpfile.c: New file.
51690         * m4/tmpfile.m4: New file.
51691         * MODULES.html.sh (func_all_modules): New section "Input/output".
51692
51693 2007-02-15  Bruno Haible  <bruno@clisp.org>
51694
51695         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
51696         (supports_delete_on_close): New function.
51697         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
51698
51699 2007-02-14  Bruno Haible  <bruno@clisp.org>
51700
51701         * modules/mbspcasecmp-tests: New file.
51702         * tests/test-mbspcasecmp.sh: New file.
51703         * tests/test-mbspcasecmp.c: New file.
51704
51705         New module mbspcasecmp.
51706         * modules/mbspcasecmp: New file.
51707         * lib/mbspcasecmp.c: New file.
51708         * lib/string_.h (strncasecmp): Change warning message.
51709         (mbspcasecmp): New declaration.
51710         * m4/mbspcasecmp.m4: New file.
51711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51712         GNULIB_MBSPCASECMP.
51713         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
51714         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
51715
51716 2007-02-14  Bruno Haible  <bruno@clisp.org>
51717
51718         * modules/mbsncasecmp-tests: New file.
51719         * tests/test-mbsncasecmp.sh: New file.
51720         * tests/test-mbsncasecmp.c: New file.
51721
51722         New module mbsncasecmp.
51723         * modules/mbsncasecmp: New file.
51724         * lib/mbsncasecmp.c: New file.
51725         * lib/string_.h (mbsncasecmp): New declaration.
51726         * m4/mbsncasecmp.m4: New file.
51727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51728         GNULIB_MBSNCASECMP.
51729         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
51730         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
51731
51732 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51733
51734         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
51735         Verify that it doesn't overlap with our flags.
51736         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
51737         do not have the desired effect in multibyte locales; instead, use
51738         mbscasecmp.
51739         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
51740         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
51741         we don't require GNU fnmatch ourselves (if our users require it, they
51742         should do so explicitly).
51743
51744         Fix regex code so it doesn't rely on strcasecmp.
51745         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
51746         Otherwise, include gnulib's langinfo.h.
51747         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
51748         undesirable behavior in non-C locales.  Instead, rely on localecharset.
51749         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
51750         * modules/regex (FILES): Remove m4/codeset.m4.
51751         (Depends-on): Add localcharset.  Remove strcase.
51752
51753 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51754
51755         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
51756         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
51757
51758 2007-02-13  Bruno Haible  <bruno@clisp.org>
51759
51760         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
51761         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51762
51763 2007-02-12  Bruno Haible  <bruno@clisp.org>
51764
51765         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
51766         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
51767         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
51768         time warning rather than a link error.
51769
51770 2007-02-12  Bruno Haible  <bruno@clisp.org>
51771
51772         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
51773         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51775
51776 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51777
51778         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
51779         args, not 2.
51780
51781 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
51782
51783         New module 'time', so that apps can include <time.h> as per
51784         POSIX and GNU instead of separate include files like time_r.h
51785         and timegm.h.  This implementation tries out a simpler approach
51786         for replacing decls in standard include files (as compared to
51787         the string module), somewhat as an experiment.
51788
51789         * config/srclist.txt: Comment out mktime.c for now.
51790         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
51791         since it doesn't apply any more.  Use generic wording instead.
51792         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
51793         'time'.
51794         * lib/time_.h, m4/time_h.m4, modules/time: New files.
51795         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
51796         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
51797         Don't include <sys/types.h>; no longer needed since we assume C89.
51798         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
51799         * lib/strftime.c: Likewise.
51800         * lib/time_r.c: Likewise.
51801         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
51802         * lib/nanosleep.c: Include <time.h> first, to check interface.
51803         * lib/strptime.c: Likewise.
51804         * lib/time_r.c: Likewise.
51805         * lib/timegm.c: Likewise.
51806         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
51807         needed.
51808         * lib/timegm.c: Don't include timegm.h; no longer needed.
51809         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
51810         time.h now handles any problems in that area.
51811         (struct timespec, nanosleep): Remove; time.h now arranges for these.
51812         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
51813         that time.h defines struct timespec.
51814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
51815         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
51816         handles that.
51817         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
51818         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
51819         needed.  Set REPLACE_LOCALTIME.
51820         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
51821         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
51822         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
51823         nanosleep; time_h.m4 now does that.  Don't require
51824         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
51825         module handles this now.
51826         * modules/getdate (Depends-on): Remove timespec.  Add time.
51827         * modules/nanosleep (Depends-on): Likewise.
51828         * modules/stat-time (Depends-on): Likewise.
51829         * modules/nanosleep (Include): Include time.h, not timespec.h.
51830         * modules/strptime (Files): Remove lib/strptime.h.
51831         (Depends-on): Add extensions, time.
51832         (Include): Include time.h, not strptime.h.
51833         * modules/time_r (Files): Remove lib/time_r.h.
51834         (Depends-on): Add time.
51835         (Include): Include time.h, not time_r.h.
51836         * modules/timegm: Likewise.
51837         * modules/timespec (Description): Now does timespec-related decls
51838         of our own, instead of struct timespec itself.
51839         (Depends-on): Add time; remove extensions.
51840         (Maintainer): Add self.
51841         * modules/utimecmp (Depends-on): Add time; remove timespec.
51842         * modules/utimens (Depends-on): Likewise.
51843         * modules/xnanosleep (Depends-on): Likewise.
51844
51845 2007-02-11  Bruno Haible  <bruno@clisp.org>
51846
51847         * lib/c-strstr.c: Include allocsa.h.
51848         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51849         * lib/c-strcasestr.c: Include allocsa.h.
51850         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51851         * lib/strcasestr.c: Include allocsa.h.
51852         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
51853         * lib/mbsstr.c: Include allocsa.h.
51854         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51855         allocsa/freesa instead of malloc/free.
51856         * lib/mbscasestr.c: Include allocsa.h.
51857         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
51858         allocsa/freesa instead of malloc/free.
51859         * modules/c-strstr (Depends-on): Add allocsa.
51860         * modules/c-strcasestr (Depends-on): Likewise.
51861         * modules/strcasestr (Depends-on): Likewise.
51862         * modules/mbsstr (Depends-on): Likewise.
51863         * modules/mbscasestr (Depends-on): Likewise.
51864
51865 2007-02-11  Bruno Haible  <bruno@clisp.org>
51866
51867         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
51868
51869         * modules/mbsspn-tests: New file.
51870         * tests/test-mbsspn.sh: New file.
51871         * tests/test-mbsspn.c: New file.
51872
51873 2007-02-11  Bruno Haible  <bruno@clisp.org>
51874
51875         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
51876
51877         * modules/mbspbrk-tests: New file.
51878         * tests/test-mbspbrk.sh: New file.
51879         * tests/test-mbspbrk.c: New file.
51880
51881 2007-02-11  Bruno Haible  <bruno@clisp.org>
51882
51883         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
51884         unneeded cast.
51885
51886         * modules/mbscspn-tests: New file.
51887         * tests/test-mbscspn.sh: New file.
51888         * tests/test-mbscspn.c: New file.
51889
51890 2007-02-11  Bruno Haible  <bruno@clisp.org>
51891
51892         * modules/mbscasecmp-tests: New file.
51893         * tests/test-mbscasecmp.sh: New file.
51894         * tests/test-mbscasecmp.c: New file.
51895
51896 2007-02-11  Bruno Haible  <bruno@clisp.org>
51897
51898         Ensure O(n) worst-case complexity of mbscasestr.
51899         * lib/mbscasestr.c: Include stdbool.h.
51900         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51901         functions.
51902         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
51903         the bookkeeping indicates that it's worth it.
51904         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
51905
51906         * modules/mbscasestr-tests: New file.
51907         * tests/test-mbscasestr1.c: New file.
51908         * tests/test-mbscasestr2.sh: New file.
51909         * tests/test-mbscasestr2.c: New file.
51910         * tests/test-mbscasestr3.sh: New file.
51911         * tests/test-mbscasestr3.c: New file.
51912         * tests/test-mbscasestr4.sh: New file.
51913         * tests/test-mbscasestr4.c: New file.
51914         * m4/locale-tr.m4: New file.
51915
51916 2007-02-11  Bruno Haible  <bruno@clisp.org>
51917
51918         Ensure O(n) worst-case complexity of mbsstr.
51919         * lib/mbsstr.c: Include stdbool.h.
51920         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
51921         functions.
51922         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
51923         bookkeeping indicates that it's worth it.
51924         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
51925
51926         * modules/mbsstr-tests: New file.
51927         * tests/test-mbsstr1.c: New file.
51928         * tests/test-mbsstr2.sh: New file.
51929         * tests/test-mbsstr2.c: New file.
51930         * tests/test-mbsstr3.sh: New file.
51931         * tests/test-mbsstr3.c: New file.
51932         * m4/locale-fr.m4: New file.
51933
51934 2007-02-11  Bruno Haible  <bruno@clisp.org>
51935
51936         * lib/mbsrchr.c (mbsrchr): Fix bug.
51937
51938         * modules/mbsrchr-tests: New file.
51939         * tests/test-mbsrchr.sh: New file.
51940         * tests/test-mbsrchr.c: New file.
51941
51942 2007-02-11  Bruno Haible  <bruno@clisp.org>
51943
51944         * lib/mbschr.c (mbschr): Fix bug.
51945
51946         * modules/mbschr-tests: New file.
51947         * tests/test-mbschr.sh: New file.
51948         * tests/test-mbschr.c: New file.
51949         * m4/locale-zh.m4: New file.
51950
51951 2007-02-11  Bruno Haible  <bruno@clisp.org>
51952
51953         Support for copying multibyte string iterators.
51954         * lib/mbiter.h: Include <string.h>.
51955         (mbiter_multi_copy): New function.
51956         (mbi_copy): New macro.
51957         * lib/mbuiter.h: Include <string.h>.
51958         (mbuiter_multi_copy): New function.
51959         (mbui_copy): New macro.
51960
51961 2007-02-11  Bruno Haible  <bruno@clisp.org>
51962
51963         New module mbslen.
51964         * modules/mbslen: New file.
51965         * lib/mbslen.c: New file.
51966         * lib/string_.h (mbslen): New declaration.
51967         * m4/mbslen.m4: New file.
51968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51969         GNULIB_MBSLEN.
51970         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
51971         * MODULES.html.sh (Internationalization functions): Add mbslen.
51972
51973 2007-02-11  Bruno Haible  <bruno@clisp.org>
51974
51975         Ensure O(n) worst-case complexity of strcasestr substitute.
51976         * lib/strcasestr.c: Include stdbool.h.
51977         (knuth_morris_pratt): New function.
51978         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
51979         bookkeeping indicates that it's worth it.
51980         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
51981
51982         * modules/strcasestr-tests: New file.
51983         * tests/test-strcasestr.c: New file.
51984
51985 2007-02-11  Bruno Haible  <bruno@clisp.org>
51986
51987         Ensure O(n) worst-case complexity of c_strcasestr.
51988         * lib/c-strcasestr.c: Include stdbool.h, string.h.
51989         (knuth_morris_pratt): New function.
51990         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
51991         the bookkeeping indicates that it's worth it.
51992         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
51993
51994         * modules/c-strcasestr-tests: New file.
51995         * tests/test-c-strcasestr.c: New file.
51996
51997 2007-02-11  Bruno Haible  <bruno@clisp.org>
51998
51999         Ensure O(n) worst-case complexity of c_strstr.
52000         * lib/c-strstr.c: Include stdbool.h, string.h.
52001         (knuth_morris_pratt): New function.
52002         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52003         bookkeeping indicates that it's worth it.
52004         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
52005
52006         * lib/c-strstr.c: Complete rewrite for maintainability.
52007
52008         * modules/c-strstr-tests: New file.
52009         * tests/test-c-strstr.c: New file.
52010
52011 2007-02-11  Bruno Haible  <bruno@clisp.org>
52012
52013         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
52014         5.2.1 and earlier, whereby \055 was treated just like the range
52015         delimiter '-'.
52016         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52017
52018 2007-02-08  Bruno Haible  <bruno@clisp.org>
52019
52020         * modules/regex (Depends-on): Add stdbool.
52021         Reported by Dalibor Topic <robilad@kaffe.org>.
52022
52023 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52024
52025         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
52026         Prefer returning from main to exiting from it.
52027         Remove unnecessary parens after sizeof.
52028
52029 2007-02-05  Bruno Haible  <bruno@clisp.org>
52030
52031         New module mbssep.
52032         * modules/mbssep: New file.
52033         * lib/mbssep.c: New file.
52034         * lib/string_.h (strsep): Add a conditional link warning.
52035         (mbssep): New declaration.
52036         * m4/mbssep.m4: New file.
52037         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52038         GNULIB_MBSSEP.
52039         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
52040         * MODULES.html.sh (Internationalization functions): Add mbssep.
52041
52042 2007-02-05  Bruno Haible  <bruno@clisp.org>
52043
52044         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
52045         Optimize search in case of 1 delimiter.
52046
52047 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52048
52049         * lib/acl.h: Include sys/types.h before sys/acl.h.
52050
52051 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52052
52053         Merge upstream fix for glibc bugzilla #3957:
52054
52055         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
52056
52057         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
52058         bit for RE_HAT_LISTS_NOT_NEWLINE.
52059         (build_charclass_op): Remove bogus comment.
52060
52061 2007-02-05  Simon Josefsson  <simon@josefsson.org>
52062
52063         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
52064
52065 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52066
52067         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
52068         * lib/memmem.c [!defined _LIBC]: Include config.h.
52069
52070 2007-02-04  Bruno Haible  <bruno@clisp.org>
52071
52072         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
52073         warning message.
52074
52075 2007-02-04  Bruno Haible  <bruno@clisp.org>
52076
52077         New module mbstok_r.
52078         * modules/mbstok_r: New file.
52079         * lib/mbstok_r.c: New file.
52080         * lib/string_.h (strtok_r): Change argument names to match the
52081         comments. Add a conditional link warning.
52082         (mbstok_r): New declaration.
52083         * m4/mbstok_r.m4: New file.
52084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52085         GNULIB_MBSTOK_R.
52086         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
52087         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
52088
52089 2007-02-04  Bruno Haible  <bruno@clisp.org>
52090
52091         New module mbsspn.
52092         * modules/mbsspn: New file.
52093         * lib/mbsspn.c: New file.
52094         * lib/string_.h (strspn): Add a conditional link warning.
52095         (mbsspn): New declaration.
52096         * m4/mbsspn.m4: New file.
52097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52098         GNULIB_MBSSPN.
52099         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
52100         * MODULES.html.sh (Internationalization functions): Add mbsspn.
52101
52102 2007-02-04  Bruno Haible  <bruno@clisp.org>
52103
52104         New module mbspbrk.
52105         * modules/mbspbrk: New file.
52106         * lib/mbspbrk.c: New file.
52107         * lib/string_.h (strpbrk): Add a conditional link warning.
52108         (mbspbrk): New declaration.
52109         * m4/mbspbrk.m4: New file.
52110         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52111         GNULIB_MBSPBRK.
52112         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
52113         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
52114
52115 2007-02-04  Bruno Haible  <bruno@clisp.org>
52116
52117         New module mbscspn.
52118         * modules/mbscspn: New file.
52119         * lib/mbscspn.c: New file.
52120         * lib/string_.h (strcspn): Add a conditional link warning.
52121         (mbscspn): New declaration.
52122         * m4/mbscspn.m4: New file.
52123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52124         GNULIB_MBSCSPN.
52125         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
52126         * MODULES.html.sh (Internationalization functions): Add mbscspn.
52127
52128 2007-02-04  Bruno Haible  <bruno@clisp.org>
52129
52130         New module mbscasestr, reduced goal of strcasestr.
52131         * modules/mbscasestr: New file.
52132         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
52133         (mbscasestr): Renamed from strcasestr.
52134         * lib/strcasestr.c: Don't include mbuiter.h.
52135         (strcasestr): Remove support for multibyte locales.
52136         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
52137         Change the conditional link warning.
52138         (mbscasestr): New declaration.
52139         * m4/mbscasestr.m4: New file.
52140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
52141         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
52142         REPLACE_STRCASESTR.
52143         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
52144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52145         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52146         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
52147         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
52148         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52149         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
52150         (Depends-on): Remove mbuiter.
52151         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
52152
52153 2007-02-04  Bruno Haible  <bruno@clisp.org>
52154
52155         Simplify handling of strncasecmp.
52156         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52157         the conditional link warning.
52158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52159         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52160         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52161         * modules/strcase (configure.ac): Don't invoke
52162         gl_STRING_MODULE_INDICATOR.
52163         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52164
52165 2007-02-04  Bruno Haible  <bruno@clisp.org>
52166
52167         New module mbscasecmp, reduced goal of strcasecmp.
52168         * modules/mbscasecmp: New file.
52169         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52170         (mbscasecmp): Renamed from strcasecmp.
52171         * lib/strcasecmp.c: Don't include mbuiter.h.
52172         (strcasecmp): Remove support for multibyte locales.
52173         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52174         Change the conditional link warning.
52175         (mbscasecmp): New declaration.
52176         * m4/mbscasecmp.m4: New file.
52177         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52178         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52179         REPLACE_STRCASECMP.
52180         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52182         GNULIB_MBSCASECMP.
52183         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52184         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52185         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52186         (Depends-on): Remove mbuiter.
52187         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52188
52189 2007-02-04  Bruno Haible  <bruno@clisp.org>
52190
52191         New module mbsstr. Remove module strstr.
52192         * modules/mbsstr: New file.
52193         * modules/strstr: Remove file.
52194         * lib/mbsstr.c: Renamed from lib/strstr.c.
52195         (mbsstr): Renamed from strstr.
52196         * lib/string_.h (strstr): Remove declaration. Change the conditional
52197         link warning.
52198         (mbsstr): New declaration.
52199         * m4/mbsstr.m4: New file.
52200         * m4/strstr.m4: Remove file.
52201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52202         REPLACE_STRSTR.
52203         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52204         Don't initialize GNULIB_STRSTR.
52205         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52206         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52207         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52208         (Support for systems lacking ANSI C 89): Remove strstr.
52209
52210 2007-02-04  Bruno Haible  <bruno@clisp.org>
52211
52212         New module mbsrchr.
52213         * modules/mbsrchr: New file.
52214         * lib/mbsrchr.c: New file.
52215         * lib/string_.h (strrchr): Add a conditional link warning.
52216         (mbsrchr): New declaration.
52217         * m4/mbsrchr.m4: New file.
52218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52219         GNULIB_MBSRCHR.
52220         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52221         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52222
52223 2007-02-04  Bruno Haible  <bruno@clisp.org>
52224
52225         New module mbschr.
52226         * modules/mbschr: New file.
52227         * lib/mbschr.c: New file.
52228         * lib/string_.h (strchr): Add a conditional link warning.
52229         (mbschr): New declaration.
52230         * m4/mbschr.m4: New file.
52231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52232         GNULIB_MBSCHR.
52233         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52234         * MODULES.html.sh (Internationalization functions): Add mbschr.
52235
52236 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52237
52238         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52239
52240         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52241
52242 2007-02-04  Bruno Haible  <bruno@clisp.org>
52243
52244         New module description section 'configure.ac-early'.
52245         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52246         (func_get_autoconf_early_snippet): New function.
52247         (func_import, func_create_testdir): Use it. Remove special cases for
52248         modules 'extensions' and 'lock'.
52249         * modules/extensions (configure.ac-early): Require
52250         gl_USE_SYSTEM_EXTENSIONS.
52251         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52252
52253 2007-02-04  Bruno Haible  <bruno@clisp.org>
52254
52255         Make use of gcj-4.3's -fsource and -ftarget option.
52256         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52257         and if so try the options -fsource and -ftarget.
52258         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52259         source_version, ftarget_option, target_version arguments.
52260         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52261         (is_envjavac_oldgcj_14_14_usable): Renamed from
52262         is_envjavac_gcj_14_14_usable.
52263         (is_envjavac_oldgcj_14_13_usable): Renamed from
52264         is_envjavac_gcj_14_13_usable.
52265         (is_gcj_present): Update.
52266         (is_gcj_43, is_gcj43_usable): New functions.
52267         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52268         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52269         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52270         try the options -fsource and -ftarget.
52271
52272 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52273
52274         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52275         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52276         larger value.
52277
52278 2007-02-03  Jim Meyering  <jim@meyering.net>
52279
52280         Give tools a better chance to allocate space for very large buffers.
52281         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52282
52283         Make pwd and readlink work also when run with an unreadable parent dir
52284         on systems with openat support.
52285         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52286         provided getcwd function, even when we have openat support.
52287         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52288
52289 2007-02-02  Bruno Haible  <bruno@clisp.org>
52290
52291         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52292         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52293         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52294         portability problems if one of these functions is only used on specific
52295         platforms.
52296         Reported by Paul Eggert.
52297
52298 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52299
52300         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52301         is causing more trouble than it's curing.
52302         * lib/regex_internal.h (__mempcpy): Remove.
52303         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52304         (and make the code a tad smaller to boot).
52305         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52306
52307 2007-02-02  Jim Meyering  <jim@meyering.net>
52308
52309         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52310         section, not in the Makefile.am: one.
52311
52312 2007-02-02  Eric Blake  <ebb9@byu.net>
52313
52314         * lib/strchrnul.c: Always include config.h first.
52315
52316         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52317         gnulib strstr is not necessary here.
52318
52319 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52320
52321         * m4/socklen.m4: Fix typo.
52322
52323 2007-02-02  Eric Blake  <ebb9@byu.net>
52324
52325         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52326         * modules/netinet_in (Makefile.am): Likewise.
52327
52328 2007-02-01  Bruno Haible  <bruno@clisp.org>
52329
52330         * lib/string_.h (GL_LINK_WARNING): New macro.
52331         (strcasecmp, strstr, strcasestr): If provided by the system,
52332         conditionally define as a macro that leads to a warning instead of to
52333         an error.
52334         (strncasecmp): Conditionally define as a macro that leads to a warning.
52335
52336 2007-02-01  Karl Berry  <karl@gnu.org>
52337
52338         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52339
52340 2007-02-01  Bruno Haible  <bruno@clisp.org>
52341
52342         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52343         renamings.
52344
52345 2007-02-01  Eric Blake  <ebb9@byu.net>
52346
52347         * modules/regex (Depends-on): Revert dependence on mempcpy.
52348         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52349         module's definition of mempcpy.
52350         Reported by Paul Eggert.
52351
52352 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52353
52354         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52355         the symbol XYZ before redefining it.  This fixes a problem with
52356         programs that don't use XYZ, when compiled on systems that define
52357         XYZ to something else.
52358
52359 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52360
52361         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52362         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52363         writeable to group or other and (2) is intended to have a special
52364         mode bit that is set or cleared.  In such a case, the directory
52365         should be neither group- nor other-writeable until the special
52366         mode bits are right.
52367
52368 2007-01-31  Eric Blake  <ebb9@byu.net>
52369
52370         * modules/mountlist (Depends-on): Add strstr.
52371
52372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52373         bug.
52374         * modules/string (Makefile.am): Remove redundant replacement.
52375         * modules/regex (Depends-on): Add mempcpy.
52376
52377 2007-01-31  Bruno Haible  <bruno@clisp.org>
52378
52379         New module description field 'Link'.
52380         * gnulib-tool (func_usage): Document --extract-link-directive.
52381         (sed_extract_prog): Recognize 'Link' directive.
52382         (func_get_link_directive): New function.
52383         (func_import): Show summary of link directives.
52384         Handle --extract-link-directive option.
52385         * modules/acl (Link): New section.
52386         * modules/clock-time (Link): New section.
52387         * modules/euidaccess (Link): New section.
52388         * modules/gettext (Link): New section.
52389         * modules/iconv (Link): New section.
52390         * modules/lock (Link): New section.
52391         * modules/nanosleep (Link): New section.
52392         * modules/readline (Link): New section.
52393
52394 2007-01-27  Bruno Haible  <bruno@clisp.org>
52395
52396         Enforce the use of gnulib modules for unportable <string.h> functions.
52397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52398         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52399         (gl_HEADER_STRING_H_BODY): Require it.
52400         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52401         the symbol XYZ to one that gives a link error.
52402         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52403         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52404         * modules/mempcpy (configure.ac): Likewise.
52405         * modules/memrchr (configure.ac): Likewise.
52406         * modules/stpcpy (configure.ac): Likewise.
52407         * modules/stpncpy (configure.ac): Likewise.
52408         * modules/strcase (configure.ac): Likewise.
52409         * modules/strcasestr (configure.ac): Likewise.
52410         * modules/strchrnul (configure.ac): Likewise.
52411         * modules/strdup (configure.ac): Likewise.
52412         * modules/strndup (configure.ac): Likewise.
52413         * modules/strnlen (configure.ac): Likewise.
52414         * modules/strpbrk (configure.ac): Likewise.
52415         * modules/strsep (configure.ac): Likewise.
52416         * modules/strstr (configure.ac): Likewise.
52417         * modules/strtok_r (configure.ac): Likewise.
52418
52419 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52420
52421         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52422
52423 2007-01-30  Jim Meyering  <jim@meyering.net>
52424
52425         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52426
52427 2007-01-29  Bruno Haible  <bruno@clisp.org>
52428
52429         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52430         * lib/execute.c: Likewise.
52431         * lib/pipe.c: Likewise.
52432         * lib/printf-args.h: Likewise.
52433         * lib/printf-args.c: Likewise.
52434         * lib/printf-parse.c: Likewise.
52435         * lib/vasnprintf.c: Likewise.
52436
52437 2007-01-29  Eric Blake  <ebb9@byu.net>
52438
52439         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52440         declaration.
52441
52442 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52443
52444         * lib/strptime.h (strptime): Use 'restrict' for args where
52445         POSIX requires this.
52446         * lib/strptime.c (strptime): Likewise.
52447         Change license notice from LGPL to GPL, since gnulib-tool will
52448         change this as needed.
52449         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52450         defined.
52451         Include "strptime.h" first, to check interface.
52452         Do not #undef _LIBC and _NL_CURRENT.
52453         Do not include <stdlib.h>; no longer needed.
52454         Include "time_r.h" and declare ptime_locale_status
52455         only if _LIBC is not defined.
52456         (__P): Remove unused macro.
52457         (match_string): Bring back glibc version, but use it only if _LIBC
52458         is defined.
52459         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52460         Remove unnecessary assertion and abort() call.
52461         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52462         * m4/strptime.m4: Fix serial number comment.
52463         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52464         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52465         (Depends-on): Add time_r.
52466
52467 2007-01-29  Bruno Haible  <bruno@clisp.org>
52468
52469         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52470         strptime.
52471         * modules/strptime (Depends-on): Add stdbool.
52472         * lib/strptime.h: Include <time.h> always. Add comments.
52473
52474 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52475
52476         * modules/strptime: New file.
52477         * lib/strptime.h: New file.
52478         * lib/strptime.c: New file.
52479         * m4/strptime.m4: New file.
52480
52481 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52482
52483         * MODULES.html.sh: New module mpsort.
52484         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52485
52486         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52487         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52488         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52489         All uses changed.
52490         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52491         All uses changed.
52492         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52493         to _Restrict_.
52494         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52495         the parameter matches the prototype.
52496
52497 2007-01-28  Jim Meyering  <jim@meyering.net>
52498
52499         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52500         sys/time.h here, reverting that part of the previous patch:
52501         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52502
52503 2007-01-28  Bruno Haible  <bruno@clisp.org>
52504
52505         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52506         value of $(SYS_TIME_H).
52507         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52508         remove it conditionally, too. [added by Jim Meyering]
52509         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52510         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52511         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52512         GETTIMEOFDAY_REPLACEMENT to 1.
52513
52514 2007-01-28  Bruno Haible  <bruno@clisp.org>
52515
52516         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52517         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52519         Set UNISTD_H instead of UNISTD_H2.
52520         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52521
52522 2007-01-28  Bruno Haible  <bruno@clisp.org>
52523
52524         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52525         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52526
52527 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52528
52529         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
52530         (func_create_testdir): Ensure C locale for `grep' and `tr'
52531         character ranges.
52532         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52533         ACLOCAL_AMFLAGS parsing state machine.
52534
52535 2007-01-27  Bruno Haible  <bruno@clisp.org>
52536
52537         * modules/unistr/base: Update.
52538
52539 2007-01-27  Bruno Haible  <bruno@clisp.org>
52540
52541         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52542         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52543         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52544         modules/unistr/u32-mbtouc.
52545         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52546         * lib/unistr.h: Update.
52547         * lib/linebreak.c: Update.
52548         * modules/unistr/u32-mbtouc: Renamed from
52549         modules/unistr/u32-mbtouc-safe.
52550         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52551         * lib/unistr.h: Update.
52552         * lib/unistr/u32-to-u8.c: Update.
52553         * lib/unistr/u32-to-u16.c: Update.
52554
52555 2007-01-27  Bruno Haible  <bruno@clisp.org>
52556
52557         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52558         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52559         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52560         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52561         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52562         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52563         modules/unistr/u16-mbtouc.
52564         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52565         * lib/unistr.h: Update.
52566         * lib/linebreak.c: Update.
52567         * modules/linebreak: Update.
52568         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52569         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52570         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52571         * modules/unistr/u16-mbtouc: Renamed from
52572         modules/unistr/u16-mbtouc-safe.
52573         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52574         * lib/unistr.h: Update.
52575         * lib/unistr/u16-to-u8.c: Update.
52576         * modules/unistr/u16-to-u8: Update.
52577         * lib/unistr/u16-to-u32.c: Update.
52578         * modules/unistr/u16-to-u32: Update.
52579
52580 2007-01-27  Bruno Haible  <bruno@clisp.org>
52581
52582         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52583         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52584         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52585         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52586         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52587         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52588         modules/unistr/u8-mbtouc.
52589         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52590         * lib/unistr.h: Update.
52591         * lib/striconveh.c: Update.
52592         * modules/striconveh: Update.
52593         * lib/linebreak.c: Update.
52594         * modules/linebreak: Update.
52595         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
52596         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
52597         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
52598         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
52599         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
52600         * lib/unistr.h: Update.
52601         * lib/striconveh.c: Update.
52602         * modules/striconveh: Update.
52603         * lib/unistr/u8-to-u16.c: Update.
52604         * modules/unistr/u8-to-u16: Update.
52605         * lib/unistr/u8-to-u32.c: Update.
52606         * modules/unistr/u8-to-u32: Update.
52607
52608 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52609
52610         Sync from Libtool.
52611         * lib/argz.c: Do not include strings.h nor memory.h, include
52612         string.h unconditionally.  Patch by Simon Josefsson.
52613
52614 2007-01-27  Bruno Haible  <bruno@clisp.org>
52615
52616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
52617         from gl_HEADER_STRING_H_BODY.
52618         (gl_HEADER_STRING_H_BODY): Require it.
52619         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
52620         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52621         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52622         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52623         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52624         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
52625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52626         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52627         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
52628         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52629         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52630         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
52631         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52632         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52633         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52634
52635 2007-01-27  Bruno Haible  <bruno@clisp.org>
52636
52637         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
52638         check_PROGRAMS into noinst_PROGRAMS.
52639         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
52640         check_PROGRAMS in this case.
52641         (func_import): Set for_test to false.
52642         (func_create_testdir): Set for_test to true.
52643
52644 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52645             Bruno Haible  <bruno@clisp.org>
52646
52647         * modules/strcasestr (Files): Remove lib/strcasestr.h.
52648         (Depends-on): Add string.
52649         (Includes): Use <string.h> instead of strcasestr.h.
52650         * modules/string (Makefile.am): Also substitute the value of
52651         REPLACE_STRCASESTR.
52652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
52653         assume strcasestr is declared in <string.h> not <strings.h>. Also
52654         set REPLACE_STRCASESTR.
52655         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
52656         REPLACE_STRCASESTR.
52657         * lib/strcasestr.h: Remove file.
52658         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
52659         * lib/string_.h (strcasestr): New declaration.
52660
52661 2007-01-27  Bruno Haible  <bruno@clisp.org>
52662
52663         * lib/string_.h: Use 'extern'.
52664
52665 2007-01-27  Jim Meyering  <jim@meyering.net>
52666
52667         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
52668         of set-but-not-used local, "q".
52669
52670         * lib/mempcpy.c: Include <config.h> before <string.h>.
52671         This fixes a compilation error on HP-UX, due to the system's
52672         "restrict"-using mempcpy prototype.
52673
52674 2007-01-26  Bruno Haible  <bruno@clisp.org>
52675
52676         Small optimization.
52677         * lib/javacomp.c: Include c-strstr.h.
52678          (is_envjavac_gcj): Use c_strstr instead of strstr.
52679         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
52680
52681 2007-01-26  Bruno Haible  <bruno@clisp.org>
52682
52683         * MODULES.html.sh (Unicode string functions): Add the new modules.
52684
52685         * modules/uniconv/u32-strconv-to-locale: New file.
52686         * lib/uniconv/u32-strconv-to-locale.c: New file.
52687
52688         * modules/uniconv/u16-strconv-to-locale: New file.
52689         * lib/uniconv/u16-strconv-to-locale.c: New file.
52690
52691         * modules/uniconv/u8-strconv-to-locale: New file.
52692         * lib/uniconv/u8-strconv-to-locale.c: New file.
52693
52694         * modules/uniconv/u32-strconv-from-locale: New file.
52695         * lib/uniconv/u32-strconv-from-locale.c: New file.
52696
52697         * modules/uniconv/u16-strconv-from-locale: New file.
52698         * lib/uniconv/u16-strconv-from-locale.c: New file.
52699
52700         * modules/uniconv/u8-strconv-from-locale: New file.
52701         * lib/uniconv/u8-strconv-from-locale.c: New file.
52702
52703         * modules/uniconv/u32-strconv-to-enc: New file.
52704         * lib/uniconv/u32-strconv-to-enc.c: New file.
52705         * modules/uniconv/u32-strconv-to-enc-tests: New file.
52706         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
52707
52708         * modules/uniconv/u16-strconv-to-enc: New file.
52709         * lib/uniconv/u16-strconv-to-enc.c: New file.
52710         * lib/uniconv/u-strconv-to-enc.h: New file.
52711         * modules/uniconv/u16-strconv-to-enc-tests: New file.
52712         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
52713
52714         * modules/uniconv/u8-strconv-to-enc: New file.
52715         * lib/uniconv/u8-strconv-to-enc.c: New file.
52716         * modules/uniconv/u8-strconv-to-enc-tests: New file.
52717         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
52718
52719         * modules/uniconv/u32-strconv-from-enc: New file.
52720         * lib/uniconv/u32-strconv-from-enc.c: New file.
52721         * modules/uniconv/u32-strconv-from-enc-tests: New file.
52722         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
52723
52724         * modules/uniconv/u16-strconv-from-enc: New file.
52725         * lib/uniconv/u16-strconv-from-enc.c: New file.
52726         * modules/uniconv/u16-strconv-from-enc-tests: New file.
52727         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
52728
52729         * modules/uniconv/u8-strconv-from-enc: New file.
52730         * lib/uniconv/u8-strconv-from-enc.c: New file.
52731         * lib/uniconv/u-strconv-from-enc.h: New file.
52732         * modules/uniconv/u8-strconv-from-enc-tests: New file.
52733         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
52734
52735         * modules/uniconv/u32-conv-from-enc: New file.
52736         * lib/uniconv/u32-conv-from-enc.c: New file.
52737         * modules/uniconv/u32-conv-from-enc-tests: New file.
52738         * tests/uniconv/test-u32-conv-from-enc.c: New file.
52739
52740         * modules/uniconv/u16-conv-from-enc: New file.
52741         * lib/uniconv/u16-conv-from-enc.c: New file.
52742         * lib/uniconv/u-conv-from-enc.h: New file.
52743         * modules/uniconv/u16-conv-from-enc-tests: New file.
52744         * tests/uniconv/test-u16-conv-from-enc.c: New file.
52745
52746         * modules/uniconv/u8-conv-from-enc: New file.
52747         * lib/uniconv/u8-conv-from-enc.c: New file.
52748         * modules/uniconv/u8-conv-from-enc-tests: New file.
52749         * tests/uniconv/test-u8-conv-from-enc.c: New file.
52750
52751         * modules/uniconv/base: New file.
52752         * lib/uniconv.h: New file.
52753
52754 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
52755
52756         * doc/gnulib-tool.texi (Initial import): Update to match current
52757         behavior with strdup module.
52758         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
52759         * lib/memmem.h: Remove; all uses removed.  This is now done
52760         by <string.h>.
52761         * lib/mempcpy.h: Likewise.
52762         * lib/memrchr.h: Likewise.
52763         * lib/stpcpy.h: Likewise.
52764         * lib/stpncpy.h: Likewise.
52765         * lib/strcase.h: Likewise.
52766         * lib/strchrnul.h: Likewise.
52767         * lib/strdup.h: Likewise.
52768         * lib/strndup.h: Likewise.
52769         * lib/strnlen.h: Likewise.
52770         * lib/strpbrk.h: Likewise.
52771         * lib/strsep.h: Likewise.
52772         * lib/strstr.h: Likewise.
52773         * lib/strtok_r.h: Likewise.
52774         * lib/string_.h: New file.
52775         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
52776         Rely on <string.h> instead.
52777         * lib/canon-host.c: Likewise.
52778         * lib/chdir-long.c: Likewise.
52779         * lib/concatpath.c: Likewise.
52780         * lib/exclude.c: Likewise.
52781         * lib/fchdir.c: Likewise.
52782         * lib/getaddrinfo.c: Likewise.
52783         * lib/getcwd.c: Likewise.
52784         * lib/getsubopt.c: Likewise.
52785         * lib/glob.c: Likewise.
52786         * lib/hard-locale.c: Likewise.
52787         * lib/iconvme.c: Likewise.
52788         * lib/javacomp.c: Likewise.
52789         * lib/mempcpy.c: Likewise.
52790         * lib/memrchr.c: Likewise.
52791         * lib/regex_internal.h: Likewise.
52792         * lib/stpncpy.c: Likewise.
52793         * lib/strcasecmp.c: Likewise.
52794         * lib/strchrnul.c: Likewise.
52795         * lib/strdup.c: Likewise.
52796         * lib/striconv.c: Likewise.
52797         * lib/striconveh.c: Likewise.
52798         * lib/striconveha.c: Likewise.
52799         * lib/strncasecmp.c: Likewise.
52800         * lib/strndup.c: Likewise.
52801         * lib/strnlen.c: Likewise.
52802         * lib/strsep.c: Likewise.
52803         * lib/strstr.c: Likewise.
52804         * lib/strtok_r.c: Likewise.
52805         * lib/userspec.c: Likewise.
52806         * lib/w32spawn.h: Likewise.
52807         * lib/xstrndup.c: Likewise.
52808         * lib/mountlist.c (strstr): Remove decl.
52809         * m4/string_h.m4: New file.
52810         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
52811         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
52812         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
52813         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
52814         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
52815         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
52816         Set REPLACE_STRCASECMP if necessary.
52817         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
52818         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
52819         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
52820         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
52821         HAVE_DECL_STRDUP if necessary.
52822         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
52823         since gl_FUNC_STRNDUP does that now.
52824         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
52825         Check for decl here...
52826         (gl_PREREQ_STRNLEN): ... not here.
52827         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
52828         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
52829         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
52830         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
52831         necessary.
52832         * modules/string: New file.
52833         * modules/memmem (Files): Remove special-purpose include file.
52834         (Depends-on): Add string.
52835         (Include): Include <string.h>, not the removed file.
52836         * modules/mempcpy: Likewise.
52837         * modules/memrchr: Likewise.
52838         * modules/stpcpy: Likewise.
52839         * modules/stpncpy: Likewise.
52840         * modules/strcase: Likewise.
52841         * modules/strchrnul: Likewise.
52842         * modules/strdup: Likewise.
52843         * modules/strndup: Likewise.
52844         * modules/strnlen: Likewise.
52845         * modules/strpbrk: Likewise.
52846         * modules/strsep: Likewise.
52847         * modules/strstr: Likewise.
52848         * modules/strtok_r: Likewise.
52849         * tests/test-dirname.c: Don't include "strdup.h", since
52850         <string.h> now suffices.
52851         * tests/test-memmem.c: Don't include "memmem.h", since
52852         <string.h> now suffices.
52853
52854 2007-01-25  Bruno Haible  <bruno@clisp.org>
52855
52856         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
52857         *resultp is 0.
52858
52859         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
52860         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
52861         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
52862         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
52863
52864         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
52865         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
52866         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
52867         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
52868         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
52869         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
52870
52871 2007-01-24  Bruno Haible  <bruno@clisp.org>
52872
52873         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
52874         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
52875         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
52876         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
52877         gl_FUNC_FTS_CORE.
52878         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
52879         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
52880         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52881         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
52882         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
52883         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
52884         gl_FUNC_FCHOWNAT.
52885         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
52886         gl_FUNC_STRFTIME.
52887         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
52888         Reported by Ralf Wildenhues.
52889
52890 2007-01-24  Bruno Haible  <bruno@clisp.org>
52891
52892         Drop AC_REQUIRE calls that are redundant with the module dependencies.
52893         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
52894         gl_GETADDRINFO.
52895         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
52896         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
52897         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
52898
52899 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
52900
52901         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
52902         Don't use 'exit'; just return from 'main'.
52903         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
52904
52905         * lib/fnmatch_.h: Readjust white space and comments to match
52906         glibc, to avoid spurious diffs.
52907
52908 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52909
52910         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
52911         2004-12-01 change by Jakub Jelinek, since this code won't compile
52912         if !LIBC.  Problem reported by Bob Proulx.
52913
52914 2007-01-23  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/striconveh.c: Include c-strcaseeq.h.
52917         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
52918         * modules/striconveh (Depends-on): Add c-strcaseeq.
52919
52920 2007-01-23  Bruno Haible  <bruno@clisp.org>
52921
52922         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
52923
52924         * modules/c-strcaseeq: New file.
52925         * lib/c-strcaseeq.h: New file.
52926
52927         * modules/streq: New file.
52928         * lib/streq.h: New file.
52929
52930 2007-01-23  Bruno Haible  <bruno@clisp.org>
52931
52932         * modules/striconveha-tests: New file.
52933         * tests/test-striconveha.c: New file.
52934
52935         * lib/striconveha.h: Include <stdbool.h>.
52936         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
52937         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
52938         (mem_iconveha_notranslit): Renamed from mem_iconveha.
52939         (mem_iconveha): New function.
52940         (str_iconveha_notranslit): Renamed from str_iconveha.
52941         (str_iconveha): New function.
52942         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
52943         c-strcase.
52944
52945 2007-01-23  Bruno Haible  <bruno@clisp.org>
52946
52947         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
52948         encodings without forgiving before trying any encoding with handler.
52949         (str_iconveha): Try all encodings without forgiving before trying any
52950         encoding with handler.
52951
52952 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52953
52954         Import the following changes from libc.
52955
52956         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52957
52958         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
52959
52960         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52961
52962         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
52963         normal_bracket label.
52964
52965         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
52966
52967         [BZ #361]
52968         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
52969         to normal_bracket after fetching the next character.
52970
52971 2007-01-22  Bruno Haible  <bruno@clisp.org>
52972
52973         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
52974         argument.
52975         * lib/striconveh.c (iconv_carefully_1): New function.
52976         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
52977         argument.
52978         (str_cd_iconveh): Update.
52979         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
52980         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
52981         * tests/test-striconveh.c (MAGIC): New macro.
52982         (new_offsets): New function.
52983         (main): Test call with and without offsets.
52984
52985 2007-01-22  Bruno Haible  <bruno@clisp.org>
52986
52987         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
52988         * modules/sys_select (Makefile.am): Likewise.
52989         * modules/sys_socket (Makefile.am): Likewise.
52990         * modules/sys_time (Makefile.am): Likewise.
52991
52992 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
52993
52994         * modules/gettimeofday (License): Change from GPL to LGPL, since
52995         gettimeofday is a library function.
52996
52997 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52998
52999         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
53000
53001 2007-01-21  Bruno Haible  <bruno@clisp.org>
53002
53003         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
53004
53005 2007-01-21  Bruno Haible  <bruno@clisp.org>
53006
53007         * modules/striconveha: New file.
53008         * lib/striconveha.h: New file.
53009         * lib/striconveha.c: New file.
53010         * MODULES.html.sh (Internationalization functions): Add striconveha.
53011         * lib/striconv.c (str_iconv): Optimize the case of an empty input
53012         string.
53013         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
53014
53015 2007-01-21  Bruno Haible  <bruno@clisp.org>
53016
53017         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
53018         * lib/striconveh.c (str_iconveh): Likewise.
53019
53020 2007-01-21  Bruno Haible  <bruno@clisp.org>
53021
53022         * lib/striconveh.h (mem_iconveh): New declaration.
53023         * lib/striconveh.c (mem_iconveh): New function.
53024         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
53025
53026 2007-01-21  Bruno Haible  <bruno@clisp.org>
53027
53028         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
53029
53030         * lib/striconveh.h (mem_cd_iconveh): Change specification.
53031         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
53032         original result buffer.
53033         (str_cd_iconveh): Update.
53034         * tests/test-striconveh.c (main): Update.
53035
53036         * lib/striconv.h (mem_cd_iconv): Change specification.
53037         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
53038         result buffer.
53039         (str_cd_iconv): Update.
53040         * tests/test-striconv.c (main): Update.
53041
53042 2007-01-21  Bruno Haible  <bruno@clisp.org>
53043
53044         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
53045
53046 2007-01-20  Jim Meyering  <jim@meyering.net>
53047
53048         * lib/userspec.c (parse_with_separator): If a user or group string
53049         starts with "+", skip the corresponding name-to-ID look-up, since
53050         such a look-up must fail: user and group names may not include "+".
53051
53052 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53053
53054         * lib/poll.c: Include sys/time.h and time.h unconditionally,
53055         since we now assume the sys_time module.
53056         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
53057         check for sys/time.h; no longer needed.
53058         * modules/poll (Depends-on): Depend on sys_time.
53059
53060 2007-01-18  Bruno Haible  <bruno@clisp.org>
53061
53062         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
53063         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53064
53065         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
53066         gettimeofday.
53067
53068         * tests/test-gettimeofday.c: Include <time.h>.
53069         (dummy): Remove variable.
53070
53071         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
53072         gl_HEADER_SYS_TIME_H.
53073         (gl_HEADER_SYS_TIME_H): New macro.
53074
53075         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
53076         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53077         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53078         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
53079         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53080         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
53081         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
53082         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53083         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
53084         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
53085         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53086
53087         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
53088         last change; it caused a compilation error when cross-compiling to
53089         Cygwin.
53090
53091 2007-01-18  Jim Meyering  <jim@meyering.net>
53092
53093         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
53094         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
53095         than the race-prone "test -d sys || mkdir sys".
53096         (configure.ac): Use AC_PROG_MKDIR_P.
53097         * modules/sys_select: Likewise.
53098         * modules/sys_socket: Likewise.
53099         * modules/sys_time: Likewise.
53100
53101 2007-01-18  Eric Blake  <ebb9@byu.net>
53102
53103         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
53104         replace gettimeofday.
53105         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
53106         name, to avoid infinite recursion.
53107
53108 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
53111         module sys_time.
53112         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
53113         assume timespec.h defines struct timeval.
53114         * lib/settime.c: Likewise.
53115         * lib/utimens.c: Likewise.
53116         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
53117         since we now assume the gettimeofday module.
53118         * lib/tempname.c (__gen_tempname): Likewise.
53119         * lib/gettimeofday.h: Remove.
53120         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
53121         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
53122         Include <time.h>, for 'time()'.
53123         (localtime_buffer_addr): Also use this workaround if
53124         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
53125         to simplify the uses.  All uses changed.
53126         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
53127         that #undef is inside {}, and 'const' follows type name consistently.
53128         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
53129         (gettimeofday): Do not use the maximum possible value for
53130         tv->tv_usec, since that might break usages other than ls.c.
53131         Instead, we'll leave ls.c alone.  This undoes today's patch
53132         by Bruno.  Add a compile-time warning for 1s-clock resolution;
53133         we've never observed the problem but might as well keep the
53134         canary.
53135         * lib/nanosleep.c: Include timespec.h first, for interface check.
53136         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
53137         now assume the sys_time module.
53138         * lib/tempname.c: Likewise.
53139         * lib/timespec.h: Likewise.
53140         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
53141         needed.
53142         * lib/strftime.c: Likewise.
53143         * lib/timespec.h: Likewise.
53144         * lib/posixtm.c: Include posixtm.h first, for interface check.
53145         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
53146         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
53147         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
53148         * lib/sys_time_.h: New file.
53149         * lib/timespec.h (struct timespec): Use long int, not long.
53150         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53151         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
53152         Remove obsolescent call to AC_HEADER_TIME.
53153         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53155         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53156         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53157         Likewise.
53158         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53159         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53160         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53161         into the sys_time module.  Check for gettimeofday just once.
53162         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53163         for gettimeofday signature to just check the signature.  Merely
53164         compile it, since linking doesn't test signature.  Improve test for
53165         whether gettimeofday.o is actually needed.
53166         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53167         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53168         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53169         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53170         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53171         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53172         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53173         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53174         than worrying about sys/time.h.
53175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53176         Don't bother worrying about TIME_WITH_SYS_TIME.
53177         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53178         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53179         * m4/sys_time_h.m4: New file.
53180         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53181         Don't include sys/time.h.  Return from main rather than exiting.
53182         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53183         all uses changed.
53184         * modules/gethrxtime (Depends-on): Add sys_time.
53185         * modules/gettime (Depends-on): Likewise.
53186         * modules/gettimeofday (Depends-on): Likewise.
53187         * modules/nanosleep (Depends-on): Likewise.
53188         * modules/settime (Depends-on): Likewise.
53189         * modules/tempname (Depends-on): Likewise.
53190         * modules/utimens (Depends-on): Likewise.
53191         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53192         (Include:) Change back to <sys/time.h>.
53193         (Maintainer:) Add self.
53194         * modules/sys_time: New file.
53195         * modules/tempname (Depends-on): Add gettimeofday.
53196         * tests/test-gettimeofday.c: Include <sys/time.h>
53197         rather than gettimeofday.h.
53198
53199 2007-01-17  Bruno Haible  <bruno@clisp.org>
53200
53201         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53202         the license default to GPL.
53203         (func_create_testdir): Don't complain if a module is LGPL and its
53204         tests module depends on GPLed modules.
53205
53206 2007-01-17  Bruno Haible  <bruno@clisp.org>
53207
53208         * lib/gettimeofday.c (gettimeofday): Add code for the case
53209         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53210         maximum possible value for tv->tv_usec, rather than the minimum one.
53211
53212 2005-10-08  Martin Lambers  <marlam@marlam.de>
53213 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53214 2007-01-16  Bruno Haible  <bruno@clisp.org>
53215
53216         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53217         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53218         gl_FUNC_GETTIMEOFDAY.
53219         (Include): Add gettimeofday.h.
53220         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53221         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53222         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53223         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53224         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53225         * lib/gettimeofday.h: New file.
53226         * lib/gettimeofday.c: Include <sys/timeb.h>.
53227         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53228         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53229         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53230         fall back on time().
53231
53232         * tests/test-gettimeofday.c: New file.
53233         * modules/gettimeofday-tests: New file.
53234
53235 2007-01-16  Eric Blake  <ebb9@byu.net>
53236
53237         * modules/fnmatch (Depends-on): Depend on wchar.
53238         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53239         * m4/fnmatch.m4: Likewise.
53240         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53241         * m4/mbchar.m4: Likewise.
53242         * modules/mbswidth (Depends-on): Depend on wchar.
53243         * lib/mbswidth.c: Assume <wchar.h>.
53244         * m4/mbswidth.m4: Likewise.
53245         * modules/quotearg (Depends-on): Depend on wchar.
53246         * lib/quotearg.c: Assume <wchar.h>.
53247         * m4/quotearg.m4: Likewise.
53248         * modules/regex (Depends-on): Depend on wchar.
53249         * lib/regex_internal.h: Assume <wchar.h>.
53250         * m4/regex.m4: Likewise.
53251         * modules/stdint (Depends-on): Depend on wchar.
53252         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53253         * m4/stdint.m4: Likewise.
53254         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53255         * modules/strftime (Depends-on): Depend on wchar.
53256         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53257         * modules/strtol (Depends-on): Depend on wchar.
53258         * lib/strtol.c: Assume <wchar.h>.
53259         * modules/wcwidth (Depends-on): Depend on wchar.
53260         * lib/wcwidth.h: Assume <wchar.h>.
53261         * m4/wcwidth.m4: Likewise.
53262
53263 2007-01-16  Bruno Haible  <bruno@clisp.org>
53264
53265         * modules/csharpexec-script: New, created from...
53266         * modules/csharpexec: ... this.
53267
53268 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53269
53270         * modules/javaexec-script: New, created from...
53271         * modules/javaexec: ... this.
53272
53273 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53274
53275         * modules/poll (Dependencies): Add sys_select.
53276
53277 2007-01-15  Jim Meyering  <jim@meyering.net>
53278
53279         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53280         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53281         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53282         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53283
53284 2007-01-15  Bruno Haible  <bruno@clisp.org>
53285
53286         * modules/striconveh: New file.
53287         * lib/striconveh.h: New file.
53288         * lib/striconveh.c: New file.
53289         * MODULES.html.sh (Internationalization functions): Add striconveh.
53290
53291         * modules/striconveh-tests: New file.
53292         * tests/test-striconveh.c: New file.
53293
53294 2007-01-15  Bruno Haible  <bruno@clisp.org>
53295
53296         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53297         not from GNU libiconv or GNU libc.
53298
53299 2007-01-15  Bruno Haible  <bruno@clisp.org>
53300
53301         * doc/gnulib-intro.texi (Copyright): Explain the different license
53302         terms for module descriptions, autoconf macros, tests, documentation.
53303
53304 2007-01-14  Bruno Haible  <bruno@clisp.org>
53305
53306         * modules/striconv-tests: New file.
53307         * tests/test-striconv.c: New file.
53308
53309 2007-01-14  Bruno Haible  <bruno@clisp.org>
53310
53311         * modules/iconv-tests: New file.
53312         * tests/test-iconv.c: New file.
53313
53314 2007-01-14  Bruno Haible  <bruno@clisp.org>
53315
53316         * gnulib-tool (func_get_license): For test modules, use the license of
53317         the main module.
53318
53319 2007-01-14  Bruno Haible  <bruno@clisp.org>
53320
53321         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53322         if iconv is found to exist.
53323
53324 2007-01-14  Bruno Haible  <bruno@clisp.org>
53325
53326         * modules/c-ctype-tests: New file.
53327         * tests/test-c-ctype.c: New file.
53328
53329 2007-01-14  Bruno Haible  <bruno@clisp.org>
53330
53331         * modules/binary-io-tests: New file.
53332         * tests/test-binary-io.sh: New file.
53333         * tests/test-binary-io.c: New file.
53334
53335 2007-01-14  Bruno Haible  <bruno@clisp.org>
53336
53337         * modules/array-oset-tests: New file.
53338         * tests/test-array_oset.c: New file.
53339
53340 2007-01-14  Bruno Haible  <bruno@clisp.org>
53341
53342         * modules/array-list-tests: New file.
53343         * tests/test-array_list.c: New file.
53344
53345 2007-01-14  Bruno Haible  <bruno@clisp.org>
53346
53347         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53348         and make.
53349         Reported by Simon Josefsson in
53350         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53351
53352 2007-01-14  Bruno Haible  <bruno@clisp.org>
53353
53354         * modules/allocsa-tests: New file.
53355         * tests/test-allocsa.c: New file.
53356
53357 2007-01-14  Bruno Haible  <bruno@clisp.org>
53358
53359         * modules/fchdir (Depends-on): Add absolute-header.
53360         * modules/unistd (Depends-on): Likewise.
53361
53362 2006-12-30  Bruno Haible  <bruno@clisp.org>
53363
53364         * modules/fchdir: New file.
53365         * modules/unistd (Files): Add lib/unistd_.h.
53366         (Makefile.am): Generate unistd.h from unistd_.h.
53367         * lib/fchdir.c: New file.
53368         * lib/dirent_.h: New file.
53369         * lib/unistd_.h: New file.
53370         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53371         * m4/fchdir.m4: New file.
53372         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53373         (gl_HEADER_UNISTD): Invoke it.
53374         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53375         function.
53376         * lib/backupfile.c (opendir, closedir): Undefine.
53377         * lib/chown.c (open, close): Undefine.
53378         * lib/clean-temp.c (open, close): Undefine.
53379         * lib/copy-file.c (open, close): Undefine.
53380         * lib/execute.c (open, close): Undefine.
53381         * lib/fsusage.c (open, close): Undefine.
53382         * lib/gc-gnulib.c (open, close): Undefine.
53383         * lib/getcwd.c (opendir, closedir): Undefine.
53384         * lib/glob.c (opendir, closedir): Undefine.
53385         * lib/javacomp.c (open, close): Undefine.
53386         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53387         * lib/openat-proc.c (open, close): Undefine.
53388         * lib/pagealign_alloc.c (open, close): Undefine.
53389         * lib/pipe.c (open, close): Undefine.
53390         * lib/progreloc.c (open, close): Undefine.
53391         * lib/savedir.c (opendir, closedir): Undefine.
53392         * lib/utime.c (open, close): Undefine.
53393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53394
53395 2007-01-10  Bruno Haible  <bruno@clisp.org>
53396
53397         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53398
53399 2007-01-12  Eric Blake  <ebb9@byu.net>
53400
53401         Provide a robust <wchar.h>.  Further simplifications are now
53402         possible in other modules, but not included here.
53403         * modules/wchar: New module.
53404         * m4/wchar.m4: New file.
53405         * lib/wchar_.h: Likewise.
53406         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53407         of the new module.
53408         * MODULES.html.sh (Extended multibyte and wide character utilities):
53409         New section.
53410
53411 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53412
53413         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53414         to a reasonable default for memory allocation.
53415         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53416         file system that reports garbage st_size values for symlinks.
53417         Problem reported by Liyang Hu.
53418
53419 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53420
53421         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53422         Emacs .#* auto-save files).
53423
53424 2007-01-11  Bruno Haible  <bruno@clisp.org>
53425
53426         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53427         directory.
53428
53429 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53430
53431         Use @...@ consistently in lib/wctype_.h.
53432         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53433         on it being set to 1 or 0.
53434         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53435         go back to AC_SUBSTing it.
53436         * modules/wctype (Makefile.am): Undo previous change.
53437
53438 2007-01-10  Eric Blake  <ebb9@byu.net>
53439
53440         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53441         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53442         * modules/wctype (Makefile.am): Likewise.
53443         Reported by Chris McGuire.
53444
53445 2007-01-10  Jim Meyering  <jim@meyering.net>
53446
53447         fts.c: a small readability/maintainability improvement
53448         * lib/fts.c (fts_read): Make this code slightly more readable and
53449         maintainable by hoisting the "sp->fts_cur = p" assignments to
53450         immediately follow the statements that set P.  Derived from
53451         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53452
53453 2007-01-10  Eric Blake  <ebb9@byu.net>
53454
53455         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53456         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53458         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53459         Reported by Chris McGuire.
53460
53461 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53462
53463         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53464         in sed script.
53465
53466 2007-01-09  Bruno Haible  <bruno@clisp.org>
53467
53468         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53469         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53470         variables.
53471         (func_module): Use them.
53472
53473 2007-01-09  Bruno Haible  <bruno@clisp.org>
53474
53475         * modules/unistr/base: New file.
53476         * lib/unistr.h: New file.
53477
53478         * modules/unistr/u8-to-u16: New file.
53479         * lib/unistr/u8-to-u16.c: New file.
53480
53481         * modules/unistr/u8-to-u32: New file.
53482         * lib/unistr/u8-to-u32.c: New file.
53483
53484         * modules/unistr/u16-to-u8: New file.
53485         * lib/unistr/u16-to-u8.c: New file.
53486
53487         * modules/unistr/u16-to-u32: New file.
53488         * lib/unistr/u16-to-u32.c: New file.
53489
53490         * modules/unistr/u32-to-u8: New file.
53491         * lib/unistr/u32-to-u8.c: New file.
53492
53493         * modules/unistr/u32-to-u16: New file.
53494         * lib/unistr/u32-to-u16.c: New file.
53495
53496         * modules/unistr/u8-check: New file.
53497         * modules/unistr/u16-check: New file.
53498         * modules/unistr/u32-check: New file.
53499         * lib/unistr/u8-check.c: New file.
53500         * lib/unistr/u16-check.c: New file.
53501         * lib/unistr/u32-check.c: New file.
53502
53503         * modules/unistr/u8-chr: New file.
53504         * modules/unistr/u16-chr: New file.
53505         * modules/unistr/u32-chr: New file.
53506         * lib/unistr/u8-chr.c: New file.
53507         * lib/unistr/u16-chr.c: New file.
53508         * lib/unistr/u32-chr.c: New file.
53509
53510         * modules/unistr/u8-cmp: New file.
53511         * modules/unistr/u16-cmp: New file.
53512         * modules/unistr/u32-cmp: New file.
53513         * lib/unistr/u8-cmp.c: New file.
53514         * lib/unistr/u16-cmp.c: New file.
53515         * lib/unistr/u32-cmp.c: New file.
53516
53517         * modules/unistr/u8-cpy: New file.
53518         * modules/unistr/u16-cpy: New file.
53519         * modules/unistr/u32-cpy: New file.
53520         * lib/unistr/u8-cpy.c: New file.
53521         * lib/unistr/u16-cpy.c: New file.
53522         * lib/unistr/u32-cpy.c: New file.
53523         * lib/unistr/u-cpy.h: New file.
53524
53525         * modules/unistr/u8-cpy-alloc: New file.
53526         * modules/unistr/u16-cpy-alloc: New file.
53527         * modules/unistr/u32-cpy-alloc: New file.
53528         * lib/unistr/u8-cpy-alloc.c: New file.
53529         * lib/unistr/u16-cpy-alloc.c: New file.
53530         * lib/unistr/u32-cpy-alloc.c: New file.
53531         * lib/unistr/u-cpy-alloc.h: New file.
53532
53533         * modules/unistr/u8-endswith: New file.
53534         * modules/unistr/u16-endswith: New file.
53535         * modules/unistr/u32-endswith: New file.
53536         * lib/unistr/u8-endswith.c: New file.
53537         * lib/unistr/u16-endswith.c: New file.
53538         * lib/unistr/u32-endswith.c: New file.
53539         * lib/unistr/u-endswith.h: New file.
53540
53541         * modules/unistr/u8-mblen: New file.
53542         * modules/unistr/u16-mblen: New file.
53543         * modules/unistr/u32-mblen: New file.
53544         * lib/unistr/u8-mblen.c: New file.
53545         * lib/unistr/u16-mblen.c: New file.
53546         * lib/unistr/u32-mblen.c: New file.
53547
53548         * modules/unistr/u8-mbtouc: New file.
53549         * modules/unistr/u16-mbtouc: New file.
53550         * modules/unistr/u32-mbtouc: New file.
53551         * lib/unistr/u8-mbtouc.c: New file.
53552         * lib/unistr/u16-mbtouc.c: New file.
53553         * lib/unistr/u32-mbtouc.c: New file.
53554
53555         * modules/unistr/u8-mbtouc-safe: New file.
53556         * modules/unistr/u16-mbtouc-safe: New file.
53557         * modules/unistr/u32-mbtouc-safe: New file.
53558         * lib/unistr/u8-mbtouc-safe.c: New file.
53559         * lib/unistr/u16-mbtouc-safe.c: New file.
53560         * lib/unistr/u32-mbtouc-safe.c: New file.
53561
53562         * modules/unistr/u8-move: New file.
53563         * modules/unistr/u16-move: New file.
53564         * modules/unistr/u32-move: New file.
53565         * lib/unistr/u8-move.c: New file.
53566         * lib/unistr/u16-move.c: New file.
53567         * lib/unistr/u32-move.c: New file.
53568         * lib/unistr/u-move.h: New file.
53569
53570         * modules/unistr/u8-next: New file.
53571         * modules/unistr/u16-next: New file.
53572         * modules/unistr/u32-next: New file.
53573         * lib/unistr/u8-next.c: New file.
53574         * lib/unistr/u16-next.c: New file.
53575         * lib/unistr/u32-next.c: New file.
53576
53577         * modules/unistr/u8-prev: New file.
53578         * modules/unistr/u16-prev: New file.
53579         * modules/unistr/u32-prev: New file.
53580         * lib/unistr/u8-prev.c: New file.
53581         * lib/unistr/u16-prev.c: New file.
53582         * lib/unistr/u32-prev.c: New file.
53583
53584         * modules/unistr/u8-set: New file.
53585         * modules/unistr/u16-set: New file.
53586         * modules/unistr/u32-set: New file.
53587         * lib/unistr/u8-set.c: New file.
53588         * lib/unistr/u16-set.c: New file.
53589         * lib/unistr/u32-set.c: New file.
53590         * lib/unistr/u-set.h: New file.
53591
53592         * modules/unistr/u8-startswith: New file.
53593         * modules/unistr/u16-startswith: New file.
53594         * modules/unistr/u32-startswith: New file.
53595         * lib/unistr/u8-startswith.c: New file.
53596         * lib/unistr/u16-startswith.c: New file.
53597         * lib/unistr/u32-startswith.c: New file.
53598         * lib/unistr/u-startswith.h: New file.
53599
53600         * modules/unistr/u8-stpcpy: New file.
53601         * modules/unistr/u16-stpcpy: New file.
53602         * modules/unistr/u32-stpcpy: New file.
53603         * lib/unistr/u8-stpcpy.c: New file.
53604         * lib/unistr/u16-stpcpy.c: New file.
53605         * lib/unistr/u32-stpcpy.c: New file.
53606         * lib/unistr/u-stpcpy.h: New file.
53607
53608         * modules/unistr/u8-stpncpy: New file.
53609         * modules/unistr/u16-stpncpy: New file.
53610         * modules/unistr/u32-stpncpy: New file.
53611         * lib/unistr/u8-stpncpy.c: New file.
53612         * lib/unistr/u16-stpncpy.c: New file.
53613         * lib/unistr/u32-stpncpy.c: New file.
53614         * lib/unistr/u-stpncpy.h: New file.
53615
53616         * modules/unistr/u8-strcat: New file.
53617         * modules/unistr/u16-strcat: New file.
53618         * modules/unistr/u32-strcat: New file.
53619         * lib/unistr/u8-strcat.c: New file.
53620         * lib/unistr/u16-strcat.c: New file.
53621         * lib/unistr/u32-strcat.c: New file.
53622         * lib/unistr/u-strcat.h: New file.
53623
53624         * modules/unistr/u8-strchr: New file.
53625         * modules/unistr/u16-strchr: New file.
53626         * modules/unistr/u32-strchr: New file.
53627         * lib/unistr/u8-strchr.c: New file.
53628         * lib/unistr/u16-strchr.c: New file.
53629         * lib/unistr/u32-strchr.c: New file.
53630
53631         * modules/unistr/u8-strcmp: New file.
53632         * modules/unistr/u16-strcmp: New file.
53633         * modules/unistr/u32-strcmp: New file.
53634         * lib/unistr/u8-strcmp.c: New file.
53635         * lib/unistr/u16-strcmp.c: New file.
53636         * lib/unistr/u32-strcmp.c: New file.
53637
53638         * modules/unistr/u8-strcpy: New file.
53639         * modules/unistr/u16-strcpy: New file.
53640         * modules/unistr/u32-strcpy: New file.
53641         * lib/unistr/u8-strcpy.c: New file.
53642         * lib/unistr/u16-strcpy.c: New file.
53643         * lib/unistr/u32-strcpy.c: New file.
53644         * lib/unistr/u-strcpy.h: New file.
53645
53646         * modules/unistr/u8-strcspn: New file.
53647         * modules/unistr/u16-strcspn: New file.
53648         * modules/unistr/u32-strcspn: New file.
53649         * lib/unistr/u8-strcspn.c: New file.
53650         * lib/unistr/u16-strcspn.c: New file.
53651         * lib/unistr/u32-strcspn.c: New file.
53652         * lib/unistr/u-strcspn.h: New file.
53653
53654         * modules/unistr/u8-strdup: New file.
53655         * modules/unistr/u16-strdup: New file.
53656         * modules/unistr/u32-strdup: New file.
53657         * lib/unistr/u8-strdup.c: New file.
53658         * lib/unistr/u16-strdup.c: New file.
53659         * lib/unistr/u32-strdup.c: New file.
53660         * lib/unistr/u-strdup.h: New file.
53661
53662         * modules/unistr/u8-strlen: New file.
53663         * modules/unistr/u16-strlen: New file.
53664         * modules/unistr/u32-strlen: New file.
53665         * lib/unistr/u8-strlen.c: New file.
53666         * lib/unistr/u16-strlen.c: New file.
53667         * lib/unistr/u32-strlen.c: New file.
53668         * lib/unistr/u-strlen.h: New file.
53669
53670         * modules/unistr/u8-strmblen: New file.
53671         * modules/unistr/u16-strmblen: New file.
53672         * modules/unistr/u32-strmblen: New file.
53673         * lib/unistr/u8-strmblen.c: New file.
53674         * lib/unistr/u16-strmblen.c: New file.
53675         * lib/unistr/u32-strmblen.c: New file.
53676
53677         * modules/unistr/u8-strmbtouc: New file.
53678         * modules/unistr/u16-strmbtouc: New file.
53679         * modules/unistr/u32-strmbtouc: New file.
53680         * lib/unistr/u8-strmbtouc.c: New file.
53681         * lib/unistr/u16-strmbtouc.c: New file.
53682         * lib/unistr/u32-strmbtouc.c: New file.
53683
53684         * modules/unistr/u8-strncat: New file.
53685         * modules/unistr/u16-strncat: New file.
53686         * modules/unistr/u32-strncat: New file.
53687         * lib/unistr/u8-strncat.c: New file.
53688         * lib/unistr/u16-strncat.c: New file.
53689         * lib/unistr/u32-strncat.c: New file.
53690         * lib/unistr/u-strncat.h: New file.
53691
53692         * modules/unistr/u8-strncmp: New file.
53693         * modules/unistr/u16-strncmp: New file.
53694         * modules/unistr/u32-strncmp: New file.
53695         * lib/unistr/u8-strncmp.c: New file.
53696         * lib/unistr/u16-strncmp.c: New file.
53697         * lib/unistr/u32-strncmp.c: New file.
53698
53699         * modules/unistr/u8-strncpy: New file.
53700         * modules/unistr/u16-strncpy: New file.
53701         * modules/unistr/u32-strncpy: New file.
53702         * lib/unistr/u8-strncpy.c: New file.
53703         * lib/unistr/u16-strncpy.c: New file.
53704         * lib/unistr/u32-strncpy.c: New file.
53705         * lib/unistr/u-strncpy.h: New file.
53706
53707         * modules/unistr/u8-strnlen: New file.
53708         * modules/unistr/u16-strnlen: New file.
53709         * modules/unistr/u32-strnlen: New file.
53710         * lib/unistr/u8-strnlen.c: New file.
53711         * lib/unistr/u16-strnlen.c: New file.
53712         * lib/unistr/u32-strnlen.c: New file.
53713         * lib/unistr/u-strnlen.h: New file.
53714
53715         * modules/unistr/u8-strpbrk: New file.
53716         * modules/unistr/u16-strpbrk: New file.
53717         * modules/unistr/u32-strpbrk: New file.
53718         * lib/unistr/u8-strpbrk.c: New file.
53719         * lib/unistr/u16-strpbrk.c: New file.
53720         * lib/unistr/u32-strpbrk.c: New file.
53721         * lib/unistr/u-strpbrk.h: New file.
53722
53723         * modules/unistr/u8-strrchr: New file.
53724         * modules/unistr/u16-strrchr: New file.
53725         * modules/unistr/u32-strrchr: New file.
53726         * lib/unistr/u8-strrchr.c: New file.
53727         * lib/unistr/u16-strrchr.c: New file.
53728         * lib/unistr/u32-strrchr.c: New file.
53729
53730         * modules/unistr/u8-strspn: New file.
53731         * modules/unistr/u16-strspn: New file.
53732         * modules/unistr/u32-strspn: New file.
53733         * lib/unistr/u8-strspn.c: New file.
53734         * lib/unistr/u16-strspn.c: New file.
53735         * lib/unistr/u32-strspn.c: New file.
53736         * lib/unistr/u-strspn.h: New file.
53737
53738         * modules/unistr/u8-strstr: New file.
53739         * modules/unistr/u16-strstr: New file.
53740         * modules/unistr/u32-strstr: New file.
53741         * lib/unistr/u8-strstr.c: New file.
53742         * lib/unistr/u16-strstr.c: New file.
53743         * lib/unistr/u32-strstr.c: New file.
53744         * lib/unistr/u-strstr.h: New file.
53745
53746         * modules/unistr/u8-strtok: New file.
53747         * modules/unistr/u16-strtok: New file.
53748         * modules/unistr/u32-strtok: New file.
53749         * lib/unistr/u8-strtok.c: New file.
53750         * lib/unistr/u16-strtok.c: New file.
53751         * lib/unistr/u32-strtok.c: New file.
53752         * lib/unistr/u-strtok.h: New file.
53753
53754         * modules/unistr/u8-uctomb: New file.
53755         * modules/unistr/u16-uctomb: New file.
53756         * modules/unistr/u32-uctomb: New file.
53757         * lib/unistr/u8-uctomb.c: New file.
53758         * lib/unistr/u16-uctomb.c: New file.
53759         * lib/unistr/u32-uctomb.c: New file.
53760
53761         * MODULES.html.sh (Unicode string functions): Add the new modules.
53762
53763 2007-01-08  Bruno Haible  <bruno@clisp.org>
53764
53765         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
53766         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
53767         subdirectories.
53768
53769 2007-01-08  Karl Berry  <karl@gnu.org>
53770
53771         * doc/error.texi: mention that main() fns must set program_name
53772         when progname is used.
53773
53774 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
53775
53776         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
53777         WCTYPE_H is empty, for the benefit of builds from non-distclean
53778         directories.  Problem reported by Eric Blake in
53779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
53780
53781 2007-01-08  Bruno Haible  <bruno@clisp.org>
53782
53783         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
53784         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
53785         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
53786         PROVIDE_CANONICALIZE_FILENAME_MODE.
53787         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
53788
53789 2007-01-08  Bruno Haible  <bruno@clisp.org>
53790
53791         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
53792         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
53793         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
53794         * lib/fts.c: Likewise.
53795         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
53796
53797 2006-12-25  Bruno Haible  <bruno@clisp.org>
53798
53799         * modules/utf8-ucs4-safe: New file.
53800         * lib/utf8-ucs4-safe.h: New file.
53801         * lib/unistr/utf8-ucs4-safe.c: New file.
53802
53803         * modules/utf16-ucs4-safe: New file.
53804         * lib/utf16-ucs4-safe.h: New file.
53805         * lib/unistr/utf16-ucs4-safe.c: New file.
53806
53807         * MODULES.html.sh (Unicode string functions): Add the new modules.
53808
53809 2007-01-08  Bruno Haible  <bruno@clisp.org>
53810
53811         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
53812         (Depends-on): Add unitypes.
53813         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53814         (u8_mbtouc_aux): Move out to separate file.
53815         (u8_mbtouc): Use ucs4_t, uint8_t types.
53816         * lib/unistr/utf8-ucs4.c: New file.
53817
53818         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
53819         (Depends-on): Add unitypes.
53820         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
53821         (u16_mbtouc_aux): Move out to separate file.
53822         (u16_mbtouc): Use ucs4_t, uint16_t types.
53823         * lib/unistr/utf16-ucs4.c: New file.
53824
53825         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
53826         (Depends-on): Add unitypes.
53827         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
53828         (u8_uctomb_aux): Move out to separate file.
53829         (u8_uctomb): Use ucs4_t, uint8_t types.
53830         * lib/unistr/ucs4-utf8.c: New file.
53831
53832         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
53833         (Depends-on): Add unitypes.
53834         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
53835         (u16_uctomb_aux): Move out to separate file.
53836         (u16_uctomb): Use ucs4_t, uint16_t types.
53837         * lib/unistr/ucs4-utf16.c: New file.
53838
53839 2006-12-25  Bruno Haible  <bruno@clisp.org>
53840
53841         * modules/unitypes: New file.
53842         * lib/unitypes.h: New file.
53843         * MODULES.html.sh (func_all_modules): New section "Unicode string
53844         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
53845         this section. Add unitypes.
53846
53847 2007-01-08  Bruno Haible  <bruno@clisp.org>
53848
53849         Avoid variable names that conflict with those from libtool.
53850         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
53851         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
53852         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
53853         library_names_spec to acl_library_names_spec, hardcode_* to
53854         acl_hardcode_*.
53855         Reported by Ralf Wildenhues.
53856
53857 2007-01-08  Bruno Haible  <bruno@clisp.org>
53858
53859         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
53860         definition.
53861         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
53862         definition.
53863         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
53864         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
53865         definition.
53866         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
53867         definition.
53868         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
53869         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
53870         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
53871         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
53872         definition.
53873         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
53874         definition.
53875         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
53876         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
53877         GC_USE_<algorithm>.
53878         * lib/gc-libgcrypt.c: Likewise.
53879         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
53880         * modules/gc-arctwo (configure.ac): Likewise.
53881         * modules/gc-des (configure.ac): Likewise.
53882         * modules/gc-hmac-md5 (configure.ac): Likewise.
53883         * modules/gc-hmac-sha1 (configure.ac): Likewise.
53884         * modules/gc-md2 (configure.ac): Likewise.
53885         * modules/gc-md4 (configure.ac): Likewise.
53886         * modules/gc-md5 (configure.ac): Likewise.
53887         * modules/gc-random (configure.ac): Likewise.
53888         * modules/gc-rijndael (configure.ac): Likewise.
53889         * modules/gc-sha1 (configure.ac): Likewise.
53890
53891 2007-01-08  Bruno Haible  <bruno@clisp.org>
53892
53893         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
53894         macro definition.
53895         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
53896         definition.
53897         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
53898         definition.
53899         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
53900         * modules/fcntl-safer (configure.ac): Likewise.
53901         * modules/fopen-safer (configure.ac): Likewise.
53902         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
53903         GNULIB_FWRITEERROR macro definition.
53904
53905 2007-01-08  Bruno Haible  <bruno@clisp.org>
53906
53907         * m4/gnulib-common.m4: New file.
53908         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
53909         (func_get_filelist): Add m4/gnulib-common.m4.
53910
53911 2007-01-08  Bruno Haible  <bruno@clisp.org>
53912
53913         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
53914         command.
53915
53916 2007-01-08  Jim Meyering  <jim@meyering.net>
53917
53918         Use a more robust test for a "can't happen" condition.
53919         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
53920         narrowed the st_size value.  Presuming the "can't happen" condition
53921         is true, that narrowing could conceivably convert an invalid st_size
53922         value into a valid one.  Instead, use a change based on Matthew
53923         Woehlke's original patch.
53924
53925         Slight readability improvement: use an assert-like macro
53926         in place of literal "abort ()" uses.
53927         * lib/fts.c (fts_assert): Define.
53928         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
53929         Use this macro instead of a bare 'abort'.
53930
53931 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
53932
53933         Don't worry about using IRIX 5.3's wctype.h broken definitions;
53934         simply work around them.
53935         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
53936         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
53937         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
53938         declaring.
53939         Don't bother to define as macros, since the standard doesn't require it.
53940         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
53941         longer worry about IRIX 5.3.
53942         (HAVE_WCTYPE_CTMP_BUG): Remove.
53943
53944 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53945
53946         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
53947         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
53948         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
53949         Problems reported by Georg Schwarz for IRIX 5.3.
53950
53951         * gnulib-tool (autoconf_minversion): Take the maximum version number
53952         found, not the minimum.  Problem reported by James Youngman.
53953
53954 2007-01-03  Karl Berry  <karl@gnu.org>
53955
53956         * doc/error.texi: new file, explaining interaction with progname.
53957         * doc/gnulib.texi: include it.  Update copyright.
53958
53959 2007-01-03  Simon Josefsson  <simon@josefsson.org>
53960
53961         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
53962         AC_CANONICAL_HOST, to improve autobuild outputs.
53963
53964 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
53965             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53966
53967         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
53968         sockets, server sockets, and other file descriptors.  Count errors
53969         to compute the return value.  Reorder the code a bit to be easier
53970         to follow.  Don't set event bits that were not requested (except
53971         POLLERR and POLLHUP).
53972
53973 2007-01-01  Bruno Haible  <bruno@clisp.org>
53974
53975         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
53976
53977 2007-01-03  Jim Meyering  <jim@meyering.net>
53978
53979         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
53980
53981 2007-01-02  Bruno Haible  <bruno@clisp.org>
53982
53983         * modules/settime (Include): Require timespec.h.
53984         * modules/nanosleep (Include): Likewise.
53985
53986 2007-01-01  Bruno Haible  <bruno@clisp.org>
53987
53988         * gnulib-tool (func_emit_copyright_notice): Bump year.
53989         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
53990
53991 2007-01-01  Bruno Haible  <bruno@clisp.org>
53992
53993         Improve support for OpenBSD.
53994         * build-aux/config.rpath (libname_spec): Export.
53995         (library_names_spec): New variable. Export.
53996         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
53997         library_names_spec from the config.rpath output. Locate shared library
53998         through the name pattern in library_names_spec.
53999
54000 2007-01-01  Eric Blake  <ebb9@byu.net>
54001
54002         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
54003
54004 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
54005
54006         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
54007         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
54008         assume the C locale, and avoid an "eval" that could cause trouble.
54009         Problem with SORT reported by Bob Proulx.
54010
54011         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
54012         Define.  Trivial patch from Henning Nielsen Lund, originally
54013         sent to bug-grep@gnu.org today.
54014
54015 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54016
54017         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
54018         struct stat.  Problem reported by Henning Nielsen Lund.
54019         * lib/acl.c: Include acl.h first, to check interface.  Don't
54020         bother to include sys/types.h and sys/stat.h again.
54021
54022 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54023
54024         Import the following change from libc; problem reported by
54025         Sven Verdoolaege.
54026
54027         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
54028
54029         [BZ #1373]
54030         * lib/argp.h: Remove __NTH for __argp_usage inline function.
54031
54032 2006-12-28  Jim Meyering  <jim@meyering.net>
54033
54034         * build-aux/announce-gen: Do not assume that the package
54035         builds any of tar.gz, tar.bz2, and .xdelta files.
54036         Suggestion from Simon Josefsson.
54037
54038 2006-12-28  Simon Josefsson  <simon@josefsson.org>
54039
54040         * modules/announce-gen: New file.
54041
54042 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
54043
54044         * lib/mbchar.h: Just include <wctype.h>; the wctype module
54045         handles its gotchas now.
54046         * lib/mbswidth.c: Likewise.
54047         * lib/wcwidth.h: Likewise.
54048         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
54049         and iswcntrl; the wctype module does this stuff now.
54050         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54051         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54052         * modules/mbchar (Depends-on): Add wctype.
54053         * modules/mbswidth (Depends-on): Likewise.
54054         * modules/wcwidth (Depends-on): Likewise.
54055
54056 2006-12-27  Eric Blake  <ebb9@byu.net>
54057
54058         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
54059         module uses more than what <wctype.h> is required to provide.
54060
54061 2006-12-26  Eric Blake  <ebb9@byu.net>
54062
54063         * gnulib-tool (sed_extract_prog): Avoid space-tab.
54064
54065 2006-12-26  Eric Blake  <ebb9@byu.net>
54066
54067         * modules/absolute-header: New module.
54068         * modules/fcntl (Depends-on): Depend on it.
54069         * modules/inttypes (Depends-on): Likewise.
54070         * modules/stdint (Depends-on): Likewise.
54071         * modules/sys_stat (Depends-on): Likewise.
54072         * modules/wctype (Depends-on): Likewise.
54073         * MODULES.html.sh (Support for building libraries and
54074         executables): Document it.
54075
54076 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54077
54078         * gnulib-tool (SED): Remove, undoing previous change.
54079         The problem was that it broke coreutils on Solaris, because
54080         "sed --posix" leaked into a makefile.
54081         (sed): New alias, if 'alias' and GNU sed.
54082
54083 2006-12-24  Jim Meyering  <jim@meyering.net>
54084
54085         Work around an fchownat bug in glibc-2.4:
54086         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
54087         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
54088         in spite of the -P option.
54089         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
54090         New macros.
54091         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
54092         * modules/openat (Files): Add lib/fchownat.c.
54093         * lib/openat.c (fchownat): Don't define here.  Move to...
54094         * lib/fchownat.c: ...this new file.
54095
54096 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54097
54098         Fix bug reported by Bruno Haible in
54099         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
54100         where quotearg.c didn't compile on Mac OS X 10.2 because it
54101         lacks <wchar.h> and wint_t.
54102         * lib/wctype_.h (__wctype_wint_t): New type.
54103         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
54104         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
54105         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
54106         Arg is now of type __wctype_wint_t, not wint_t.
54107         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
54108         substitute HAVE_WINT_T.
54109         * modules/wctype (Files): Add m4/wint_t.m4.
54110         (wctype.h): Substitute HAVE_WINT_T.
54111
54112 2006-12-23  Bruno Haible  <bruno@clisp.org>
54113
54114         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
54115
54116 2006-12-23  Bruno Haible  <bruno@clisp.org>
54117
54118         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
54119         S_ISLNK.
54120         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
54121         mingw.
54122
54123 2006-12-22  Bruno Haible  <bruno@clisp.org>
54124
54125         * lib/copy-file.c: Include acl.h.
54126         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
54127         Close the file descriptors only after being done with copy_acl.
54128         * modules/copy-file (Depends-on): Add acl.
54129
54130 2006-12-22  Bruno Haible  <bruno@clisp.org>
54131
54132         * gnulib-tool (SED): New variable.
54133         Use $SED instead of sed everywhere.
54134
54135 2006-12-22  Bruno Haible  <bruno@clisp.org>
54136
54137         * modules/no-c++: New file.
54138         * m4/no-c++.m4: New file.
54139         * MODULES.html.sh (Support for building libraries and executables):
54140         Add no-c++.
54141
54142 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54143
54144         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54145         Include <limits.h>, and use its INT_MAX to rewrite the
54146         j loop so that it does not overflow 'int'.  Problem reported by
54147         Ralf Wildenhues in
54148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
54149         Play it safe by shifting left by 1 rather than multiplying by 2,
54150         as GCC is less likely to optimize this away when the value
54151         is signed (when it assumes overflow leads to undefined behavior).
54152         Also, don't assume time_t uses two's complement.
54153
54154 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54155
54156         * MODULES.html.sh: New module wctype.
54157         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54158         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54159         <wctype.h>, since the new wctype module should fix this.
54160         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54161         the wctype module should arrange for it.
54162         * lib/regex_internal.h: Likewise.
54163         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54164         since the wctype module should handle this now.
54165         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54166         * modules/fnmatch (Depends-on): Add wctype.
54167         * modules/quotearg (Depends-on): Likewise.
54168         * modules/regex (Depends-on): Likewise.
54169
54170 2006-12-19  Bruno Haible  <bruno@clisp.org>
54171
54172         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54173         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54174
54175 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54176
54177         * modules/savewd (Depends-on): Fix dependency on fcntl.
54178
54179 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54180
54181         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54182         conforms to C99, rather than relying on the user's environment
54183         setting of STDINT_H.
54184
54185 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54186         and Eric Blake  <ebb9@byu.net>
54187
54188         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54189         This is more consistent with the other defines here.
54190         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54191         Port to z/OS.  Problem reported by Paul Gilmartin.
54192         Change local vars to use gl_ prefix rather than ac_.
54193         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54194         with other defines.
54195         * modules/double-slash-root: New module.
54196         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54197         (Depends-on): Add double-slash-root.
54198         * MODULES.html.sh (File system functions): Mention new module.
54199
54200 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54201
54202         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54203         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54204         This is for the benefit of gzip, which doesn't do i18n.
54205
54206 2006-12-12  Jim Meyering  <jim@meyering.net>
54207
54208         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54209         Reported by Andreas Schwab <schwab@suse.de>.
54210
54211 2006-12-12  Bruno Haible  <bruno@clisp.org>
54212
54213         Merge these changes.
54214         2006-09-05  Bruno Haible  <bruno@clisp.org>
54215         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54216         iconv_alloc succeeded.
54217         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54218         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54219         test for " && dest " at the end - dest is always != NULL there. Call
54220         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54221         with 2xNULL arguments, also to flush the state storage. Handle the
54222         IRIX iconv behaviour. Realloc the final result, to throw away unused
54223         memory.
54224
54225 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54226
54227         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54228         and fchmodat unconditionally, since glibc 2.4 has them.
54229         Problem reported by Arkadiusz Miskiewicz.
54230
54231 2006-12-10  Bruno Haible  <bruno@clisp.org>
54232
54233         * gnulib-tool (func_import): Show the include files only for those
54234         modules that are copied and specified.
54235         Reported by Karl Berry.
54236
54237 2006-12-08  Jim Meyering  <jim@meyering.net>
54238
54239         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54240         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54241
54242         * build-aux/announce-gen: Add two new options, both optional:
54243         --bootstrap-tools=TOOL_LIST
54244               a comma-separated list of tools, e.g.,
54245               autoconf,automake,bison,gnulib
54246         --gnulib-snapshot-date=DATE
54247               if gnulib is in the bootstrap tool list,
54248               then report this as the snapshot date.
54249               If not specified, use the current date/time.
54250               If you specify a date here, be sure it's UTC.
54251
54252 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54253
54254         * tests/test-argp-2.sh: Fix test to match actual output.
54255         (func_compare): Fix sed script to be portable.
54256
54257 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54258
54259         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54260         workaround for this case.  It is not autoconfigured now; offhand
54261         it's hard to see how to autoconfigure it.
54262
54263 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54264
54265         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54266         a directory that is about to be chowned.  Such a directory's
54267         initial file permissions should permit the owner only and this
54268         should not be changed until after the chown, since the group and
54269         other bits would be incorrect if they granted permission before
54270         the chown.
54271
54272         Fix porting problem for iswctype reported by Georg Schwarz in:
54273         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54274         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54275         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54277         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54278
54279 2006-12-03  Jim Meyering  <jim@meyering.net>
54280
54281         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54282         p->fts_statp may not yet be defined.
54283         (fts_read): Instead, set it in the caller, once p->fts_statp is
54284         sure to be defined, and corresponds to a top-level directory.
54285         This bug made du -x fail.  Here's the coreutils test case:
54286         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54287         Reported by Mike Frysinger.
54288
54289 2006-12-01  Jim Meyering  <jim@meyering.net>
54290
54291         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54292         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54293         Reported by Simon Josefsson.
54294
54295 2006-11-30  Jim Meyering  <jim@meyering.net>
54296
54297         * m4/warning.m4: Use the all-permissive copyright notice
54298         recommended by RMS (rather than LGPL).
54299         * m4/vararrays.m4: Likewise.
54300         * m4/flexmember.m4: Likewise.
54301
54302 2006-11-29  Bruno Haible  <bruno@clisp.org>
54303
54304         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54305         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54306         using +=.
54307         Reported by Simon Josefsson <simon@josefsson.org>.
54308
54309 2006-11-28  James Youngman <jay@gnu.org>
54310
54311         * README: Advise users that they might find the bug-gnulib@gnu.org
54312         and autotools-announce@gnu.org mailing lists useful.
54313
54314 2006-11-28  Bruno Haible  <bruno@clisp.org>
54315
54316         * m4/ptrdiff_max.m4: Remove file.
54317
54318 2006-11-21  Bruno Haible  <bruno@clisp.org>
54319
54320         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54321         _AC_COMPUTE_INT.
54322         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54323         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54324         _AC_COMPUTE_INT.
54325         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54326         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54327         _AC_COMPUTE_INT.
54328         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54329
54330 2006-11-28  Jim Meyering  <jim@meyering.net>
54331
54332         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54333         warning from "gcc -Wshadow" about shadowing the builtin.
54334
54335 2006-11-27  Bruno Haible  <bruno@clisp.org>
54336
54337         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54338         _AC_COMPUTE_INT.
54339         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54340
54341 2006-11-27  Bruno Haible  <bruno@clisp.org>
54342             Paul Eggert  <eggert@cs.ucla.edu>
54343
54344         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54345
54346 2006-11-26  Bruno Haible  <bruno@clisp.org>
54347
54348         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54349         noinst_LTLIBRARIES.
54350
54351 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54352             Bruno Haible  <bruno@clisp.org>
54353
54354         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54355         if compiling with "gcc -ansi".
54356
54357 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54358
54359         Fix some incompatibilities with gcc -ansi -pedantic.
54360         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54361         if compiling pedantically with GCC, unless it's C99 or later.
54362         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54363         it mishandles gcc -ansi -pedantic as well.
54364         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54365         if gcc -pedantic.
54366         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54367         initializers for struct if -pedantic, unless it's C99 or later.
54368
54369 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54370
54371         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54372         Don't close an fd more than once. Identical atimes indicate
54373         success, not failure.
54374
54375 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54376
54377         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54378
54379 2006-11-23  Jim Meyering  <jim@meyering.net>
54380
54381         * build-aux/announce-gen: New file.  From coreutils.
54382
54383 2006-11-22  Jim Meyering  <jim@meyering.net>
54384
54385         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54386         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54387         (fts_read): Use a temporary to narrow the overused st_size member
54388         before using it in a switch statement.  Reported by Matthew Woehlke.
54389
54390         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54391         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54392
54393 2006-11-20  Bruno Haible  <bruno@clisp.org>
54394
54395         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54396         changequote instead of pairs of brackets.
54397         Reported by Andreas Schwab <schwab@suse.de>.
54398
54399 2006-11-21  Jim Meyering  <jim@meyering.net>
54400
54401         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54402         so as to remain compatible with older compilers.
54403         Patch from Michael Deutschmann.
54404
54405 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54406
54407         * MODULES.html.sh (File system functions): Add openat.
54408
54409         * lib/openat.h (rpl_fstatat): New macro, if
54410         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54411         (fstatat): Define to rpl_fstatat under the same conditions,
54412         unless COMPILING_FSTATAT.
54413         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54414         seems to have the bug.
54415         * lib/fstatat.c: New file.
54416         * modules/openat (Files): Add it.
54417
54418 2006-11-20  Bruno Haible  <bruno@clisp.org>
54419
54420         * Makefile: New file.
54421
54422 2006-11-20  Jim Meyering  <jim@meyering.net>
54423
54424         The beginnings of syntax-related checks for gnulib.
54425         * lib/Makefile: New file.
54426         * lib/t-idcache: New script.  Ensure that the two halves of
54427         idcache.c stay in sync.
54428
54429         * lib/idcache.c: Adjust comments in user- and group- portions to
54430         be more accurate, and to be consistent with one another.
54431
54432 2006-11-20  Jim Meyering  <jim@meyering.net>
54433
54434         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54435         continue using the flexible array member (thus, this module performs
54436         half as many malloc calls), with the addition that...
54437         (getgroup, getuser): Consistently record a non-match via an empty
54438         "name" string, and map an empty string match to a NULL return value.
54439         * modules/idcache (Depends-on): Re-add flexmember.
54440
54441         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54442         (getuidbyname, getgroup, getgidbyname): Likewise.
54443
54444         Use cleaner syntax: NULL rather than 0.
54445         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54446
54447 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54448
54449         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54450         It mishandled the case where the group was missing.
54451         Problem reported by Greg Schafer.
54452         * modules/idcache: Likewise.
54453
54454 2006-11-18  Jim Meyering  <jim@meyering.net>
54455
54456         * check-module (%exempt_header): Add exception for some
54457         conditionally-included headers.
54458
54459         * modules/i-ring (Depends-on): Add verify.
54460         (License): Change to LGPL.
54461
54462 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54463
54464         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54465         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54466         and inttostr.h.  Use snprintf rather than uinttostr, so that
54467         LGPLed code doesn't depend on GPLed.
54468
54469 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54470
54471         * modules/inline (License): Change from GPL to LGPL.
54472
54473 2006-11-17  Jim Meyering  <jim@meyering.net>
54474
54475         * modules/d-type (License): Switch to LGPL.
54476
54477 2006-11-15  Bruno Haible  <bruno@clisp.org>
54478
54479         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54480
54481 2006-11-15  Eric Blake  <ebb9@byu.net>
54482
54483         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54484         the module dependency.
54485
54486 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54487             Bruno Haible  <bruno@clisp.org>
54488
54489         * gnulib-tool (func_create_testdir): Add license consistency check.
54490
54491 2006-11-15  Eric Blake  <ebb9@byu.net>
54492
54493         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54494         random "(cached)" in configure output.
54495
54496 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54497
54498         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54499         test for conforming inttypes.h is both announced and cached.
54500
54501         * MODULES.html.sh (seen_modules, seen_files): New variables.
54502         (func_module): Rewrite to use a few less gnulib-tool and sed
54503         invocations.  Avoid a couple of quadratic algorithms for ...
54504         (missed_modules, missed_files): ... these, with ...
54505         (func_append, func_tmpdir): ... these new functions, from
54506         gnulib-tool.  Analogously, install traps for cleanup.
54507
54508         * tests/test-gc.c (main): Remove unused variables.
54509         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54510
54511 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54512
54513         * modules/inttostr (License): Change to LGPL.
54514
54515 2006-11-14  Eric Blake  <ebb9@byu.net>
54516
54517         * modules/tempname (License): Change to LGPL.
54518
54519 2006-11-14  Eric Blake  <ebb9@byu.net>
54520
54521         * doc/functions.texi (Function Portability): *printf functions on
54522         Cygwin now understand all POSIX size specifiers.
54523
54524 2006-11-14  Bruno Haible  <bruno@clisp.org>
54525
54526         * modules/c-ctype (License): Change to LGPL.
54527
54528 2006-11-12  Bruno Haible  <bruno@clisp.org>
54529
54530         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54531         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
54532         for GNOME libraries, for which the include files are installed in
54533         subdirectories of $prefix/include.
54534
54535 2006-11-12  Bruno Haible  <bruno@clisp.org>
54536
54537         * m4/lib-link.m4: Require at least autoconf-2.54.
54538         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54539         name to underscores for the --with option.
54540
54541 2006-11-13  Bruno Haible  <bruno@clisp.org>
54542
54543         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54544         the tests directory.
54545         Reported by Ralf Wildenhues.
54546
54547 2006-11-13  Bruno Haible  <bruno@clisp.org>
54548
54549         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54550         (func_emit_initmacro_end): Undo the override here.
54551         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54552         Works around the famous automake error in coreutils.
54553
54554 2006-11-13  Eric Blake  <ebb9@byu.net>
54555
54556         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54557         element, not its node.
54558
54559 2006-11-12  Bruno Haible  <bruno@clisp.org>
54560
54561         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54562         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54563
54564 2006-11-12  Bruno Haible  <bruno@clisp.org>
54565
54566         * gnulib-tool: New option --local-symlink.
54567         (func_usage): Document it.
54568         (lsymbolic): New variable.
54569         (func_import, func_create_testdir): If --symlink was not specified,
54570         test whether --local-symlink was specified and the file comes from
54571         the local_gnulib_dir.
54572
54573 2006-11-12  Bruno Haible  <bruno@clisp.org>
54574
54575         * gnulib-tool (func_ln): New function.
54576         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54577
54578 2006-11-12  Bruno Haible  <bruno@clisp.org>
54579
54580         Finish support for source files in subdirectories.
54581         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54582         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54583         AUTOMAKE_OPTIONS.
54584         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54585
54586 2006-11-12  Bruno Haible  <bruno@clisp.org>
54587
54588         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54589         EXTRA_lib_SOURCES augmentation.
54590         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54591
54592 2006-11-12  Jim Meyering  <jim@meyering.net>
54593
54594         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54595         file descriptors.  This also averts a failure on systems with
54596         native openat support when a traversed directory lacks "x" access.
54597         * lib/fts_.h: Include "i-ring.h"
54598         (struct FTS) [fts_fd_ring]: New member.
54599         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
54600         (FCHDIR): Add parentheses.
54601         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
54602         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
54603         When descending, rather than simply closing the previous
54604         fts_cwd_fd value, push that file descriptor onto the ring.
54605         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
54606         (fts_open): Initialize the new fd_ring member.
54607         (fts_close): Clear the ring.
54608         (fts_safe_changedir): When possible, use our new fd_ring to skip
54609         the diropen and fstat and dev/ino comparison that would normally
54610         accompany a virtual `chdir ("..")'.
54611
54612         * modules/fts (Depends-on): Add i-ring.
54613         * modules/i-ring: New module.
54614         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
54615         * m4/i-ring.m4: New file.
54616
54617 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54618
54619         * gnulib-tool (func_create_testdir): Fix replacement of
54620         `build-aux' in configure.ac.  Run autotools in gltests
54621         subdirectory.
54622         (func_create_testdir, func_create_megatestdir, test): There is
54623         no need for '--force' in most autotool invocations in a new
54624         tree.  Actually fail the whole test if any of the tools, or the
54625         configure or make stages fail.
54626
54627         Sync from Automake.
54628         * build-aux/gnupload: Revert last change.  Add pointer to upload
54629         instructions of the GNU Maintenance Instructions.
54630         Suggestion by Karl Berry.
54631
54632 2006-11-10  Jim Meyering  <jim@meyering.net>
54633
54634         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
54635
54636 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54637
54638         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
54639         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
54640         (bind_textdomain_codeset) [! ENABLE_NLS]:
54641         Evaluate all the arguments.  That way, callers get compatible behavior
54642         if the arguments have side effects.  Also, it avoids some GCC
54643         diagnostics in some cases; Joel E. Denny reported problems when Bison
54644         was configured with --enable-gcc-warnigs.
54645
54646 2006-11-10  Jim Meyering  <jim@meyering.net>
54647
54648         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
54649         relevant options in CFLAGS (like -O, -fno-inline) are taken into
54650         account.
54651
54652 2006-11-10  Jim Meyering  <jim@meyering.net>
54653
54654         * modules/inline: New file/module.
54655         * modules/xalloc (Files): Remove m4/inline.m4.
54656         (Depends-on): Add inline, instead.
54657         * modules/oset: Likewise.
54658         * modules/list: Likewise.
54659
54660 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54661
54662         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
54663         Problem reported by Matthew Woehlke.
54664
54665 2006-11-09  Bruno Haible  <bruno@clisp.org>
54666
54667         * lib/tempname.c (gen_tempname): Remove variant that invokes
54668         __gen_tempname.
54669         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
54670         __gen_tempname.
54671
54672 2006-11-08  Bruno Haible  <bruno@clisp.org>
54673
54674         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
54675         to 'yes' instead of 'cross-compiling'.
54676
54677 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
54678
54679         * lib/quotearg.h (quotearg_free): New decl.
54680         * lib/quotearg.c (quotearg_free): New function.
54681         (slot0, nslots, slotvec0, slotvec):
54682         Now file-scope so that quotearg_free can get at them.
54683
54684 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54685
54686         Sync from Automake.
54687         * build-aux/gnupload: Add missing 'gnu' to example URL.
54688         Report by Karl Berry.
54689
54690 2006-11-08  Bruno Haible  <bruno@clisp.org>
54691
54692         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
54693         Suggested by Paul Eggert.
54694
54695 2006-11-08  Jim Meyering  <jim@meyering.net>
54696
54697         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
54698         It's already included if !_LIBC.
54699         (fts_safe_changedir): Add a comment.
54700
54701 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54702
54703         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
54704         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
54705         Matthew Woehlke.
54706
54707         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
54708         definitions up, to avoid colliding with change below.
54709         (static_inline) [HAVE_INLINE]: New macro.
54710         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
54711         Provide extern decls when !HAVE_INLINE.  Do not define unless
54712         static_inline is defined, either by us or by xmalloc.c.  Use
54713         static_inline rather than static inline.
54714         (XCALLOC): Optimize sizeof(T) = 1 case.
54715         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
54716
54717 2006-11-07  Bruno Haible  <bruno@clisp.org>
54718
54719         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
54720         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
54721         AC_C_INLINE.
54722         * modules/xalloc (Files): Add m4/inline.m4.
54723
54724 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54725
54726         * README: Fix typo.
54727         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
54728         (Miscellanous Notes): ...from this.
54729
54730 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
54731
54732         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
54733         Mention that offsetof should be used instead of sizeof.
54734         From Bruno Haible.
54735
54736 2006-11-07  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
54739
54740 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54741
54742         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54743         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
54744         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54745         (gl_tree_add_before, gl_tree_add_after):
54746         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
54747         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
54748         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54749         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
54750         (gl_linked_add_after, gl_linked_add_at): Likewise.
54751         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
54752         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
54753         (gl_tree_add_before, gl_tree_add_after): Likewise.
54754         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
54755         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
54756         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
54757
54758 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54759
54760         * lib/gl_oset.h: Use C comment style, not C++ comment style.
54761
54762 2006-11-06  Bruno Haible  <bruno@clisp.org>
54763
54764         * m4/inline.m4: New file.
54765         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
54766         * modules/list (Files): Add m4/inline.m4.
54767         * modules/oset (Files): Likewise.
54768
54769 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
54770
54771         * lib/idcache.c: Include <stddef.h>, for offsetof.
54772         (struct userid.name): Change from char * to a flexible array member.
54773         All uses changed.
54774         * modules/idcache (Depends-on): Add flexmember.
54775
54776         * MODULES.html.sh (Core language properties): New module flexmember.
54777         * modules/flexmember, m4/flexmember.m4: New files.
54778
54779         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
54780         inline functions that are identical with the old xnmalloc_inline,
54781         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
54782         that we can avoid some unnecessary integer multiplications and
54783         divisions in the common case where the element size is known at
54784         compile time.
54785         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
54786         needed.
54787         (xnboundedmalloc): Remove.
54788         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
54789         arguments, for consistency with rest of this header.
54790         (xcharalloc): Rewrite using XNMALLOC.
54791         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
54792         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
54793         versions have been moved to lib/xalloc.h and renamed to be the
54794         non-*_inline versions.
54795         (xmalloc, xrealloc): Implement without reference to the xnmalloc
54796         and xnrealloc functions, since those functions are now inline and
54797         now call us.
54798         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
54799         renaming described above.
54800         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
54801         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
54802         captures the dependency in AC_C_INLINE.
54803
54804         New module canonicalize-lgpl, proposed by Charles Wilson in
54805         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
54806         with a few small changes afterwards.
54807         * MODULES.html.sh (File system functions): New module
54808         canonicalize-lgpl.
54809         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
54810         and canonicalize_file_name.
54811         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
54812         * modules/canonicalize-lgpl: New files.
54813
54814 2006-11-05  Bruno Haible  <bruno@clisp.org>
54815
54816         * gnulib-tool (func_import, func_create_testdir): Create directories
54817         also for files in subdirectories of lib/.
54818
54819 2006-11-05  Bruno Haible  <bruno@clisp.org>
54820
54821         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
54822         ANSI C compliant.
54823
54824 2006-11-03  Bruno Haible  <bruno@clisp.org>
54825
54826         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
54827         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
54828         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
54829         (xnboundedmalloc): New inline function.
54830         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
54831         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
54832         xmalloc.
54833         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
54834         xmalloc.
54835         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
54836         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
54837         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
54838         xmalloc.
54839         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54840         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
54841         xmalloc.
54842         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
54843         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54844         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
54845         xmalloc.
54846         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
54847         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
54848         gl_tree_add_after): Use XMALLOC instead of xmalloc.
54849         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
54850         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
54851         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
54852         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
54853
54854 2006-11-03  Bruno Haible  <bruno@clisp.org>
54855
54856         * lib/c-ctype.h [C++]: Define functions without name mangling.
54857         * lib/fwriteerror.h [C++]: Likewise.
54858         * lib/gcd.h [C++]: Likewise.
54859         * lib/linebreak.h [C++]: Likewise.
54860
54861 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54862
54863         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
54864         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
54865         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
54866         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
54867         Check for functions and headers just once.
54868         Check for declaration of canonicalize_file_name.
54869         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
54870
54871 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
54872
54873         * gnulib-tool (func_import): Fix typo in actioncmd.
54874
54875 2006-11-02  Bruno Haible  <bruno@clisp.org>
54876
54877         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
54878         newline sequence in the Makefile.am snippet as a space, like "make"
54879         does.
54880         Reported by Roger Persson <perrog@gmail.com>.
54881
54882 2006-11-01  Bruno Haible  <bruno@clisp.org>
54883
54884         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
54885         already declared in <string.h>.
54886         * lib/strcase.h (strncasecmp): Don't declare it if yes.
54887
54888 2006-11-01  Bruno Haible  <bruno@clisp.org>
54889
54890         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
54891         * lib/strcase.h: Include <string.h>.
54892         (strcasecmp): Define to rpl_strcasecmp here.
54893
54894 2006-11-01  Bruno Haible  <bruno@clisp.org>
54895
54896         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
54897
54898 2006-11-01  Eric Blake  <ebb9@byu.net>
54899
54900         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
54901
54902         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
54903
54904 2006-10-29  Bruno Haible  <bruno@clisp.org>
54905
54906         Make it compile in C++ mode.
54907         * lib/full-write.c (full_rw): Add a cast.
54908
54909 2006-11-01  Bruno Haible  <bruno@clisp.org>
54910
54911         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
54912         be POSIX compliant.
54913         Reported by Roger Persson <perrog@gmail.com>.
54914
54915 2006-11-01  Eric Blake  <ebb9@byu.net>
54916
54917         * lib/getopt_.h: Fix comments.
54918
54919 2006-10-31  Eric Blake  <ebb9@byu.net>
54920
54921         * modules/tmpdir (Depends-on): Add sys_stat.
54922         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
54923         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
54924         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
54925         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
54926         tempname.
54927
54928 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
54929
54930         Avoid some C++ diagnostics reported by Bruno Haible.
54931         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
54932         xmalloc.
54933         (quotearg_alloc): Use xcharalloc rather than xmalloc.
54934         (struct slotvec): Move to top level.
54935         (quotearg_n_options): Rewrite to avoid xmalloc.
54936         * lib/xalloc.h (xcharalloc): New function.
54937         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
54938         [defined __cplusplus]: Add function template that provides result
54939         type propagation.  This part of the change is from Bruno Haible.
54940
54941 2006-10-29  Bruno Haible  <bruno@clisp.org>
54942
54943         Make it compile in C++ mode.
54944         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
54945         * lib/strnlen1.c (strnlen1): Cast memchr result.
54946         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
54947         * lib/clean-temp.c (string_equals, string_hash): Add casts.
54948         (create_temp_dir): Rename local variable 'template'.
54949         (compile_csharp_using_sscli): Add cast.
54950         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
54951         * lib/findprog.c (find_in_path): Likewise.
54952         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
54953         * lib/wait-process.c (register_slave_subprocess): Likewise.
54954
54955 2006-10-22  Bruno Haible  <bruno@clisp.org>
54956
54957         * modules/tsearch: New file.
54958         * lib/tsearch.h: New file.
54959         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
54960         * m4/tsearch.m4: New file.
54961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
54962
54963 2006-10-29  Eric Blake  <ebb9@byu.net>
54964
54965         * lib/arcfour.c: Assume config.h.
54966         * lib/arctwo.c: Likewise.
54967         * lib/base64.c: Likewise.
54968         * lib/check-version.c: Likewise.
54969         * lib/crc.c: Likewise.
54970         * lib/des.c: Likewise.
54971         * lib/gc-gnulib.c: Likewise.
54972         * lib/gc-libgcrypt.c: Likewise.
54973         * lib/gc-pbkdf2-sha1.c: Likewise.
54974         * lib/getaddrinfo.c: Likewise.
54975         * lib/getdelim.c: Likewise.
54976         * lib/getline.c: Likewise.
54977         * lib/hmac-md5.c: Likewise.
54978         * lib/hmac-sha1.c: Likewise.
54979         * lib/iconvme.c: Likewise.
54980         * lib/md2.c: Likewise.
54981         * lib/md4.c: Likewise.
54982         * lib/memxor.c: Likewise.
54983         * lib/read-file.c: Likewise.
54984         * lib/readline.c: Likewise.
54985         * lib/rijndael-alg-fst.c: Likewise.
54986         * lib/rijndael-api-fst.c: Likewise.
54987         * lib/xgetdomainname.c: Likewise.
54988
54989 2006-10-28  Eric Blake  <ebb9@byu.net>
54990
54991         * lib/xstrndup.c: Assume config.h.
54992
54993 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54994
54995         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
54996         stat-macros.h is now for our own macros, whereas stat_h is for
54997         macros in the <sys/stat.h> name space.
54998         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
54999         (STAT_MACROS_H): Remove.
55000         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
55001         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
55002         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
55003         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
55004         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
55005         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
55006         Move these macros to ...
55007         * lib/stat_.h: here.  Don't include stat-macros.h.
55008         * lib/canonicalize.c: Don't include stat-macros.h.
55009         * lib/chown.c: Likewise.
55010         * lib/euidaccess.c: Likewise.
55011         * lib/file-type.c: Likewise.
55012         * lib/filemode.c: Likewise.
55013         * lib/glob.c: Likewise.
55014         * lib/isapipe.c: Likewise.
55015         * lib/lchown.c: Likewise.
55016         * lib/lstat.c: Likewise.
55017         * lib/mkdir-p.c: Likewise.
55018         * lib/rmdir.c: Likewise.
55019         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
55020         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
55021         unless mkdir isn't declared, to speed up 'configure'.
55022         Always create sys/stat.h, since it's unlikely any real sys/stat.h
55023         would define all the S_* symbols.
55024         * modules/canonicalize (Depends-on):
55025         Depend on sys_stat, not stat-macros.
55026         * modules/chown: Likewise.
55027         * modules/euidaccess: Likewise.
55028         * modules/filemode: Likewise.
55029         * modules/file-type: Likewise.
55030         * modules/glob: Likewise.
55031         * modules/isapipe: Likewise.
55032         * modules/lchown: Likewise.
55033         * modules/lstat: Likewise.
55034         * modules/mkancesdirs: Likewise.
55035         * modules/rmdir: Likewise.
55036         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
55037         * modules/modechange: Likewise.
55038         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
55039         (configure.ac): Remove gl_STAT_MACROS.
55040         * modules/sys_stat (Depends-on): Remove stat-macros.
55041
55042 2006-10-27  Bruno Haible  <bruno@clisp.org>
55043
55044         * m4/signed.m4: Remove file.
55045         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
55046         invocation.
55047         * modules/vasnprintf (Files): Remove m4/signed.m4.
55048
55049 2006-10-27  Bruno Haible  <bruno@clisp.org>
55050
55051         Update to GNU gettext 0.16.
55052         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
55053         m4/inttypes-h.m4, m4/signed.m4.
55054         * m4/gettext.m4: Update to GNU gettext 0.16.
55055         * m4/intl.m4: New file, from GNU gettext.
55056         * m4/intldir.m4: New file, from GNU gettext.
55057         * config/srclist.txt: Update
55058
55059 2006-10-27  Eric Blake  <ebb9@byu.net>
55060
55061         * MODULES.html.sh: Document tempname.
55062         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
55063         dependencies.
55064         (Files): Move lib/tempname.c...
55065         * modules/tempname: ...to this new module.
55066         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
55067         (gl_PREREQ_TEMPNAME): Move...
55068         * m4/tempname.m4: ...to this new file.
55069         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
55070         * modules/sys_stat (Depends-on): Add stat-macros.
55071         * lib/stat_.h (includes): Pick up stat macros.
55072         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
55073         if stat macros are broken.
55074         * lib/tempname.c (includes): No need to include "stat-macros.h".
55075         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
55076         (direxists, __path_search) [!_LIBC]: Don't compile these in
55077         gnulib; the tmpdir module covers that.
55078         * lib/tempname.h: New file.
55079
55080 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55081
55082         * COPYING: Explain how gnulib-tool converts licence headers.
55083         Almost all wording by Eric Blake.
55084
55085 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
55086
55087         * lib/mbchar.h (is_basic_table): Make read-only.
55088         * lib/mbchar.c (is_basic_table): Likewise.
55089         Reported by John Darrington.
55090
55091 2006-10-25  Bruno Haible  <bruno@clisp.org>
55092
55093         * lib/progname.h (set_program_name): Undefine before defining.
55094
55095 2006-10-25  Bruno Haible  <bruno@clisp.org>
55096
55097         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
55098         false for non-gcc C++ compilers.
55099         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55100
55101 2006-10-24  Bruno Haible  <bruno@clisp.org>
55102
55103         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
55104         iconv implementations like Irix iconv.
55105
55106 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55107
55108         * modules/vararrays: New file.
55109         * m4/vararrays.m4: New file, taken from diffutils.
55110         * MODULES.html.sh: New module vararrays.
55111
55112 2006-10-24  Karl Berry  <karl@gnu.org>
55113
55114         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
55115         Don't call GNU Unix.
55116
55117 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55118
55119         * users.txt: Add Libtool.
55120
55121         Sync from Libtool:
55122
55123         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55124
55125         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
55126         to gnulib's policy of including config.h unconditionally.
55127
55128 2006-10-24  Bruno Haible  <bruno@clisp.org>
55129
55130         * modules/wcwidth (Files): Add m4/wint_t.m4.
55131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
55132         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
55133
55134 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55135
55136         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
55137         to pacify GCC with some -W flags enabled.  Problem reported by
55138         Bruno Haible.
55139
55140 2006-10-24  Jim Meyering  <jim@meyering.net>
55141
55142         * MODULES.html.sh: Remove uinttostr.  It's not a module.
55143         Reported by Karl Berry.
55144
55145 2006-10-23  Bruno Haible  <bruno@clisp.org>
55146
55147         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
55148
55149 2006-10-24  Bruno Haible  <bruno@clisp.org>
55150
55151         * lib/gl_list.h: Use C comment style, not C++ comment style.
55152
55153 2006-10-23  Eric Blake  <ebb9@byu.net>
55154
55155         * lib/getaddrinfo.c (includes): Add missing include.
55156
55157 2006-10-23  Bruno Haible  <bruno@clisp.org>
55158             Paul Eggert  <eggert@cs.ucla.edu>
55159
55160         Ability to rename obstack_free.
55161         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55162         obstack_free.
55163         (obstack_free): Invoke the __obstack_free macro.
55164         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55165
55166 2006-10-23  Bruno Haible  <bruno@clisp.org>
55167             Paul Eggert  <eggert@cs.ucla.edu>
55168
55169         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55170         __argc, __argv from the declaration. (They are defined as macros on
55171         mingw.)
55172
55173 2006-10-22  Bruno Haible  <bruno@clisp.org>
55174
55175         * doc/gnulib-intro.texi: New file.
55176         * doc/gnulib.texi: Include it.
55177
55178 2006-10-21  Bruno Haible  <bruno@clisp.org>
55179
55180         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55181         "Introduction", "Miscellanous Notes", "Particular Modules".
55182
55183 2006-10-21  Bruno Haible  <bruno@clisp.org>
55184
55185         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55186         Change mostlyclean-local rule to avoid sh syntax error from bash
55187         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55188
55189 2006-10-23  Jim Meyering  <jim@meyering.net>
55190
55191         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55192         in place of snprintf.
55193
55194         * modules/inttostr (Files): Add lib/uinttostr.c.
55195         * lib/uinttostr.c (inttostr): New file/function.
55196         * lib/inttostr.h (uinttostr): Declare.
55197         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55198         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55199         Add uinttostr.
55200         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55201
55202 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55203
55204         * lib/canonicalize.c (ELOOP): Define if not already defined.
55205         Problem reported by Bruno Haible in
55206         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55207
55208 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55209
55210         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55211         Problem reported by Perry Smith and Ville Laurikari.
55212
55213         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55214         uses.
55215
55216 2006-10-19  Bruno Haible  <bruno@clisp.org>
55217
55218         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55219         for mingw.
55220
55221 2006-10-19  Bruno Haible  <bruno@clisp.org>
55222
55223         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55224         Needed for mingw.
55225
55226 2006-10-19  Bruno Haible  <bruno@clisp.org>
55227
55228         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55229
55230 2006-10-19  Bruno Haible  <bruno@clisp.org>
55231
55232         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55233         it.
55234
55235 2006-10-19  Bruno Haible  <bruno@clisp.org>
55236
55237         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55238         invocation.
55239
55240 2006-10-19  Bruno Haible  <bruno@clisp.org>
55241
55242         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55243         mountlist by default.
55244
55245 2006-10-16  Bruno Haible  <bruno@clisp.org>
55246
55247         * lib/c-strstr.c: Include c-strstr.h.
55248
55249 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55250
55251         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55252         in a slash.
55253
55254 2006-10-18  Bruno Haible  <bruno@clisp.org>
55255
55256         * lib/lock.h [C++]: Wrap definitions in extern "C".
55257
55258 2006-10-18  Bruno Haible  <bruno@clisp.org>
55259
55260         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55261         gl_LIBOBJS list.
55262
55263 2006-10-18  Bruno Haible  <bruno@clisp.org>
55264
55265         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55266
55267 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55268
55269         * lib/xstrtol.h: Include gettext.h.
55270         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55271         Problem reported by Eric Blake.
55272         * modules/xstrtol (Depends-on): Add gettext-h.
55273
55274 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55275
55276         * lib/strftime.c (advance): New macro.
55277         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55278         incomplete type, so you can't add 0 to it.  Problem and patch
55279         reported by Eelco Dolstra for dietlibc.
55280
55281 2006-10-18  Jim Meyering  <jim@meyering.net>
55282
55283         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55284         type for a local, and rename it: s/up/user_proc/.
55285
55286 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55287
55288         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55289         READ_UTMP_USER_PROCESS.
55290         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55291
55292 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55293
55294         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55295         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55296
55297 2006-10-17  Eric Blake  <ebb9@byu.net>
55298
55299         * lib/sigprocmask.c (sigprocmask): Fix typo.
55300
55301         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55302
55303         * modules/clean-temp (Makefile.am): Don't add to make output...
55304         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55305         config.h.
55306
55307 2006-10-17  Bruno Haible  <bruno@clisp.org>
55308
55309         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55310         differently if DEFAULT_TEXT_DOMAIN is set.
55311
55312 2006-10-16  Bruno Haible  <bruno@clisp.org>
55313
55314         * lib/clean-temp.c: Include fwriteerror.h.
55315
55316 2006-10-16  Bruno Haible  <bruno@clisp.org>
55317
55318         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55319
55320 2006-10-16  Bruno Haible  <bruno@clisp.org>
55321
55322         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55323         * lib/sigprocmask.h: Include <sys/types.h>.
55324         (sigset_t): Use the system's definition if present.
55325
55326 2006-10-17  Eric Blake  <ebb9@byu.net>
55327
55328         * lib/xvasprintf.c (includes): Assume config.h.
55329         * lib/xasprintf.c (includes): Likewise.
55330
55331 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55332
55333         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55334         at least as wide as intmax_t.
55335
55336 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55337
55338         (Imported from Automake.)
55339         * build-aux/gnupload: Update to version 1.1 of directive file.
55340
55341 2006-10-16  Eric Blake  <ebb9@byu.net>
55342
55343         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55344         match Automake 1.10a.
55345
55346 2006-10-14  Bruno Haible  <bruno@clisp.org>
55347
55348         * modules/sigprocmask: New file.
55349         * lib/sigprocmask.h: New file.
55350         * lib/sigprocmask.c: New file.
55351         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55352         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55353         request sigprocmask.o.
55354         (gl_PREREQ_SIGPROCMASK): New macro.
55355         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55356         (Depends-on): Add sigprocmask.
55357         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55358         gt_SIGNALBLOCKING. Test for 'raise' only once.
55359         * lib/fatal-signal.c: Include sigprocmask.h.
55360         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55361         unblock_fatal_signals): Define always.
55362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55363         sigprocmask.
55364
55365 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55366
55367         Sync from Automake.
55368         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55369         which incorrectly sets the mode of an existing destination
55370         directory.  In some cases the unpatched install-sh could do the
55371         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55372         system.  We hope this is rare in practice, but it's clearly worth
55373         fixing.  Problem reported by Alex Unleashed in
55374         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55375         Also, don't bother to check for -m bugs unless we're using -m;
55376         suggested by Stepan Kasal.
55377
55378 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55379
55380         Sync from Automake.
55381         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55382         `-c' flag, so they appear at the same position as in %FASTDEP%
55383         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55384         which ignores unknown options only after the first non-option.
55385         Bug report against M4 by Nelson H. F. Beebe.
55386
55387 2006-10-13  Jim Meyering  <jim@meyering.net>
55388
55389         Fix a bug in yesterday's change.
55390         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55391         p->fts_statp->st_dev would be used uninitialized.
55392         Ensures that we always call fts_stat on the very first entry.
55393         Miklos Szeredi reported that find -xdev stopped working.
55394
55395 2006-10-12  Bruno Haible  <bruno@clisp.org>
55396
55397         * gnulib-tool (func_get_automake_snippet): Append an automatically
55398         computed EXTRA_DIST augmentation.
55399         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55400         * modules/alloca-opt (Makefile.am): Likewise.
55401         * modules/allocsa (Makefile.am): Likewise.
55402         * modules/arcfour (Makefile.am): Likewise.
55403         * modules/arctwo (Makefile.am): Likewise.
55404         * modules/argmatch (Makefile.am): Likewise.
55405         * modules/argz (Makefile.am): Likewise.
55406         * modules/atexit (Makefile.am): Likewise.
55407         * modules/backupfile (Makefile.am): Likewise.
55408         * modules/byteswap (Makefile.am): Likewise.
55409         * modules/c-strtod (Makefile.am): Likewise.
55410         * modules/c-strtold (Makefile.am): Likewise.
55411         * modules/calloc (Makefile.am): Likewise.
55412         * modules/canon-host (Makefile.am): Likewise.
55413         * modules/canonicalize (Makefile.am): Likewise.
55414         * modules/chdir-long (Makefile.am): Likewise.
55415         * modules/chdir-safer (Makefile.am): Likewise.
55416         * modules/check-version (Makefile.am): Likewise.
55417         * modules/chown (Makefile.am): Likewise.
55418         * modules/cloexec (Makefile.am): Likewise.
55419         * modules/close-stream (Makefile.am): Likewise.
55420         * modules/closeout (Makefile.am): Likewise.
55421         * modules/crc (Makefile.am): Likewise.
55422         * modules/csharpexec (Makefile.am): Likewise.
55423         * modules/cycle-check (Makefile.am): Likewise.
55424         * modules/des (Makefile.am): Likewise.
55425         * modules/dev-ino (Makefile.am): Likewise.
55426         * modules/dirfd (Makefile.am): Likewise.
55427         * modules/dirname (Makefile.am): Likewise.
55428         * modules/dup2 (Makefile.am): Likewise.
55429         * modules/eealloc (Makefile.am): Likewise.
55430         * modules/error (Makefile.am): Likewise.
55431         * modules/euidaccess (Makefile.am): Likewise.
55432         * modules/exclude (Makefile.am): Likewise.
55433         * modules/exitfail (Makefile.am): Likewise.
55434         * modules/fcntl-safer (Makefile.am): Likewise.
55435         * modules/fcntl (Makefile.am): Likewise.
55436         * modules/file-type (Makefile.am): Likewise.
55437         * modules/fileblocks (Makefile.am): Likewise.
55438         * modules/filemode (Makefile.am): Likewise.
55439         * modules/filenamecat (Makefile.am): Likewise.
55440         * modules/fnmatch (Makefile.am): Likewise.
55441         * modules/fopen-safer (Makefile.am): Likewise.
55442         * modules/fpending (Makefile.am): Likewise.
55443         * modules/fprintftime (Makefile.am): Likewise.
55444         * modules/free (Makefile.am): Likewise.
55445         * modules/fsusage (Makefile.am): Likewise.
55446         * modules/ftruncate (Makefile.am): Likewise.
55447         * modules/fts (Makefile.am): Likewise.
55448         * modules/gc-arcfour (Makefile.am): Likewise.
55449         * modules/gc-des (Makefile.am): Likewise.
55450         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55451         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55452         * modules/gc-md4 (Makefile.am): Likewise.
55453         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55454         * modules/gc-sha1 (Makefile.am): Likewise.
55455         * modules/gc (Makefile.am): Likewise.
55456         * modules/getaddrinfo (Makefile.am): Likewise.
55457         * modules/getcwd (Makefile.am): Likewise.
55458         * modules/getdelim (Makefile.am): Likewise.
55459         * modules/getdomainname (Makefile.am): Likewise.
55460         * modules/getgroups (Makefile.am): Likewise.
55461         * modules/gethostname (Makefile.am): Likewise.
55462         * modules/gethrxtime (Makefile.am): Likewise.
55463         * modules/getline (Makefile.am): Likewise.
55464         * modules/getloadavg (Makefile.am): Likewise.
55465         * modules/getlogin_r (Makefile.am): Likewise.
55466         * modules/getndelim2 (Makefile.am): Likewise.
55467         * modules/getopt (Makefile.am): Likewise.
55468         * modules/getpagesize (Makefile.am): Likewise.
55469         * modules/getpass-gnu (Makefile.am): Likewise.
55470         * modules/getpass (Makefile.am): Likewise.
55471         * modules/getsubopt (Makefile.am): Likewise.
55472         * modules/gettime (Makefile.am): Likewise.
55473         * modules/gettimeofday (Makefile.am): Likewise.
55474         * modules/getugroups (Makefile.am): Likewise.
55475         * modules/getusershell (Makefile.am): Likewise.
55476         * modules/glob (Makefile.am): Likewise.
55477         * modules/group-member (Makefile.am): Likewise.
55478         * modules/hard-locale (Makefile.am): Likewise.
55479         * modules/hash (Makefile.am): Likewise.
55480         * modules/hmac-md5 (Makefile.am): Likewise.
55481         * modules/hmac-sha1 (Makefile.am): Likewise.
55482         * modules/human (Makefile.am): Likewise.
55483         * modules/idcache (Makefile.am): Likewise.
55484         * modules/imaxabs (Makefile.am): Likewise.
55485         * modules/imaxdiv (Makefile.am): Likewise.
55486         * modules/inet_ntop (Makefile.am): Likewise.
55487         * modules/inet_pton (Makefile.am): Likewise.
55488         * modules/intprops (Makefile.am): Likewise.
55489         * modules/inttostr (Makefile.am): Likewise.
55490         * modules/inttypes (Makefile.am): Likewise.
55491         * modules/isapipe (Makefile.am): Likewise.
55492         * modules/javaversion (Makefile.am): Likewise.
55493         * modules/lchmod (Makefile.am): Likewise.
55494         * modules/lchown (Makefile.am): Likewise.
55495         * modules/localcharset (Makefile.am): Likewise.
55496         * modules/long-options (Makefile.am): Likewise.
55497         * modules/lstat (Makefile.am): Likewise.
55498         * modules/malloc (Makefile.am): Likewise.
55499         * modules/mathl (Makefile.am): Likewise.
55500         * modules/mbchar (Makefile.am): Likewise.
55501         * modules/md2 (Makefile.am): Likewise.
55502         * modules/md4 (Makefile.am): Likewise.
55503         * modules/md5 (Makefile.am): Likewise.
55504         * modules/memcasecmp (Makefile.am): Likewise.
55505         * modules/memchr (Makefile.am): Likewise.
55506         * modules/memcmp (Makefile.am): Likewise.
55507         * modules/memcoll (Makefile.am): Likewise.
55508         * modules/memcpy (Makefile.am): Likewise.
55509         * modules/memmem (Makefile.am): Likewise.
55510         * modules/memmove (Makefile.am): Likewise.
55511         * modules/mempcpy (Makefile.am): Likewise.
55512         * modules/memrchr (Makefile.am): Likewise.
55513         * modules/memset (Makefile.am): Likewise.
55514         * modules/memxor (Makefile.am): Likewise.
55515         * modules/mkancesdirs (Makefile.am): Likewise.
55516         * modules/mkdir-p (Makefile.am): Likewise.
55517         * modules/mkdir (Makefile.am): Likewise.
55518         * modules/mkdtemp (Makefile.am): Likewise.
55519         * modules/mkstemp (Makefile.am): Likewise.
55520         * modules/mktime (Makefile.am): Likewise.
55521         * modules/modechange (Makefile.am): Likewise.
55522         * modules/mountlist (Makefile.am): Likewise.
55523         * modules/nanosleep (Makefile.am): Likewise.
55524         * modules/obstack (Makefile.am): Likewise.
55525         * modules/openat (Makefile.am): Likewise.
55526         * modules/pagealign_alloc (Makefile.am): Likewise.
55527         * modules/pathmax (Makefile.am): Likewise.
55528         * modules/physmem (Makefile.am): Likewise.
55529         * modules/poll (Makefile.am): Likewise.
55530         * modules/posixtm (Makefile.am): Likewise.
55531         * modules/posixver (Makefile.am): Likewise.
55532         * modules/putenv (Makefile.am): Likewise.
55533         * modules/quote (Makefile.am): Likewise.
55534         * modules/quotearg (Makefile.am): Likewise.
55535         * modules/raise (Makefile.am): Likewise.
55536         * modules/read-file (Makefile.am): Likewise.
55537         * modules/readline (Makefile.am): Likewise.
55538         * modules/readlink (Makefile.am): Likewise.
55539         * modules/readtokens (Makefile.am): Likewise.
55540         * modules/readutmp (Makefile.am): Likewise.
55541         * modules/realloc (Makefile.am): Likewise.
55542         * modules/regex (Makefile.am): Likewise.
55543         * modules/rename-dest-slash (Makefile.am): Likewise.
55544         * modules/rename (Makefile.am): Likewise.
55545         * modules/rijndael (Makefile.am): Likewise.
55546         * modules/rmdir (Makefile.am): Likewise.
55547         * modules/rpmatch (Makefile.am): Likewise.
55548         * modules/safe-read (Makefile.am): Likewise.
55549         * modules/safe-write (Makefile.am): Likewise.
55550         * modules/same-inode (Makefile.am): Likewise.
55551         * modules/same (Makefile.am): Likewise.
55552         * modules/save-cwd (Makefile.am): Likewise.
55553         * modules/savedir (Makefile.am): Likewise.
55554         * modules/setenv (Makefile.am): Likewise.
55555         * modules/settime (Makefile.am): Likewise.
55556         * modules/sha1 (Makefile.am): Likewise.
55557         * modules/sig2str (Makefile.am): Likewise.
55558         * modules/snprintf (Makefile.am): Likewise.
55559         * modules/stat-macros (Makefile.am): Likewise.
55560         * modules/stat-time (Makefile.am): Likewise.
55561         * modules/stdbool (Makefile.am): Likewise.
55562         * modules/stdint (Makefile.am): Likewise.
55563         * modules/stdlib-safer (Makefile.am): Likewise.
55564         * modules/stpcpy (Makefile.am): Likewise.
55565         * modules/stpncpy (Makefile.am): Likewise.
55566         * modules/strcase (Makefile.am): Likewise.
55567         * modules/strcasestr (Makefile.am): Likewise.
55568         * modules/strchrnul (Makefile.am): Likewise.
55569         * modules/strcspn (Makefile.am): Likewise.
55570         * modules/strdup (Makefile.am): Likewise.
55571         * modules/strerror (Makefile.am): Likewise.
55572         * modules/strftime (Makefile.am): Likewise.
55573         * modules/strndup (Makefile.am): Likewise.
55574         * modules/strnlen (Makefile.am): Likewise.
55575         * modules/strpbrk (Makefile.am): Likewise.
55576         * modules/strsep (Makefile.am): Likewise.
55577         * modules/strstr (Makefile.am): Likewise.
55578         * modules/strtod (Makefile.am): Likewise.
55579         * modules/strtoimax (Makefile.am): Likewise.
55580         * modules/strtok_r (Makefile.am): Likewise.
55581         * modules/strtol (Makefile.am): Likewise.
55582         * modules/strtoll (Makefile.am): Likewise.
55583         * modules/strtoul (Makefile.am): Likewise.
55584         * modules/strtoull (Makefile.am): Likewise.
55585         * modules/strtoumax (Makefile.am): Likewise.
55586         * modules/strverscmp (Makefile.am): Likewise.
55587         * modules/sys_socket (Makefile.am): Likewise.
55588         * modules/sys_stat (Makefile.am): Likewise.
55589         * modules/sysexits (Makefile.am): Likewise.
55590         * modules/time_r (Makefile.am): Likewise.
55591         * modules/timegm (Makefile.am): Likewise.
55592         * modules/timespec (Makefile.am): Likewise.
55593         * modules/tmpfile-safer (Makefile.am): Likewise.
55594         * modules/trim (Makefile.am): Likewise.
55595         * modules/unistd-safer (Makefile.am): Likewise.
55596         * modules/unlinkdir (Makefile.am): Likewise.
55597         * modules/unlocked-io (Makefile.am): Likewise.
55598         * modules/userspec (Makefile.am): Likewise.
55599         * modules/utime (Makefile.am): Likewise.
55600         * modules/utimecmp (Makefile.am): Likewise.
55601         * modules/utimens (Makefile.am): Likewise.
55602         * modules/vasnprintf (Makefile.am): Likewise.
55603         * modules/vasprintf (Makefile.am): Likewise.
55604         * modules/vsnprintf (Makefile.am): Likewise.
55605         * modules/xalloc (Makefile.am): Likewise.
55606         * modules/xgetcwd (Makefile.am): Likewise.
55607         * modules/xnanosleep (Makefile.am): Likewise.
55608         * modules/xreadlink (Makefile.am): Likewise.
55609         * modules/xstrtod (Makefile.am): Likewise.
55610         * modules/xstrtol (Makefile.am): Likewise.
55611         * modules/xstrtold (Makefile.am): Likewise.
55612         * modules/yesno (Makefile.am): Likewise.
55613         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
55614
55615 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55616
55617         * modules/error (Makefile.am): Distribute files through
55618         EXTRA_DIST, not lib_SOURCES.
55619
55620 2006-10-12  Eric Blake  <ebb9@byu.net>
55621
55622         * modules/error (Makefile.am): Distribute files in /lib.
55623         * modules/obstack (Makefile.am): Likewise.
55624
55625 2006-10-12  Bruno Haible  <bruno@clisp.org>
55626
55627         * modules/acl (Makefile.am): Distribute all files in lib/ through
55628         EXTRA_DIST.
55629         * modules/arcfour (Makefile.am): Likewise.
55630         * modules/arctwo (Makefile.am): Likewise.
55631         * modules/argmatch (Makefile.am): Likewise.
55632         * modules/argz (Makefile.am): Likewise.
55633         * modules/atexit (Makefile.am): Likewise.
55634         * modules/backupfile (Makefile.am): Likewise.
55635         * modules/c-strtod (Makefile.am): Likewise.
55636         * modules/c-strtold (Makefile.am): Likewise.
55637         * modules/calloc (Makefile.am): Likewise.
55638         * modules/canon-host (Makefile.am): Likewise.
55639         * modules/canonicalize (Makefile.am): Likewise.
55640         * modules/chdir-long (Makefile.am): Likewise.
55641         * modules/chdir-safer (Makefile.am): Likewise.
55642         * modules/check-version (Makefile.am): Likewise.
55643         * modules/chown (Makefile.am): Likewise.
55644         * modules/cloexec (Makefile.am): Likewise.
55645         * modules/close-stream (Makefile.am): Likewise.
55646         * modules/closeout (Makefile.am): Likewise.
55647         * modules/crc (Makefile.am): Likewise.
55648         * modules/cycle-check (Makefile.am): Likewise.
55649         * modules/des (Makefile.am): Likewise.
55650         * modules/dirfd (Makefile.am): Likewise.
55651         * modules/dirname (Makefile.am): Likewise.
55652         * modules/dup2 (Makefile.am): Likewise.
55653         * modules/euidaccess (Makefile.am): Likewise.
55654         * modules/exclude (Makefile.am): Likewise.
55655         * modules/exitfail (Makefile.am): Likewise.
55656         * modules/fcntl-safer (Makefile.am): Likewise.
55657         * modules/file-type (Makefile.am): Likewise.
55658         * modules/fileblocks (Makefile.am): Likewise.
55659         * modules/filemode (Makefile.am): Likewise.
55660         * modules/filenamecat (Makefile.am): Likewise.
55661         * modules/fnmatch (Makefile.am): Likewise.
55662         * modules/fopen-safer (Makefile.am): Likewise.
55663         * modules/fpending (Makefile.am): Likewise.
55664         * modules/fprintftime (Makefile.am): Likewise.
55665         * modules/free (Makefile.am): Likewise.
55666         * modules/fsusage (Makefile.am): Likewise.
55667         * modules/ftruncate (Makefile.am): Likewise.
55668         * modules/fts (Makefile.am): Likewise.
55669         * modules/gc (Makefile.am): Likewise.
55670         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55671         * modules/getaddrinfo (Makefile.am): Likewise.
55672         * modules/getcwd (Makefile.am): Likewise.
55673         * modules/getdelim (Makefile.am): Likewise.
55674         * modules/getdomainname (Makefile.am): Likewise.
55675         * modules/getgroups (Makefile.am): Likewise.
55676         * modules/gethostname (Makefile.am): Likewise.
55677         * modules/gethrxtime (Makefile.am): Likewise.
55678         * modules/getline (Makefile.am): Likewise.
55679         * modules/getloadavg (Makefile.am): Likewise.
55680         * modules/getlogin_r (Makefile.am): Likewise.
55681         * modules/getopt (Makefile.am): Likewise.
55682         * modules/getpass (Makefile.am): Likewise.
55683         * modules/getpass-gnu (Makefile.am): Likewise.
55684         * modules/getsubopt (Makefile.am): Likewise.
55685         * modules/gettime (Makefile.am): Likewise.
55686         * modules/gettimeofday (Makefile.am): Likewise.
55687         * modules/getugroups (Makefile.am): Likewise.
55688         * modules/getusershell (Makefile.am): Likewise.
55689         * modules/glob (Makefile.am): Likewise.
55690         * modules/group-member (Makefile.am): Likewise.
55691         * modules/hard-locale (Makefile.am): Likewise.
55692         * modules/hash (Makefile.am): Likewise.
55693         * modules/hmac-md5 (Makefile.am): Likewise.
55694         * modules/hmac-sha1 (Makefile.am): Likewise.
55695         * modules/human (Makefile.am): Likewise.
55696         * modules/idcache (Makefile.am): Likewise.
55697         * modules/imaxabs (Makefile.am): Likewise.
55698         * modules/imaxdiv (Makefile.am): Likewise.
55699         * modules/inet_ntop (Makefile.am): Likewise.
55700         * modules/inet_pton (Makefile.am): Likewise.
55701         * modules/inttostr (Makefile.am): Likewise.
55702         * modules/isapipe (Makefile.am): Likewise.
55703         * modules/lchown (Makefile.am): Likewise.
55704         * modules/long-options (Makefile.am): Likewise.
55705         * modules/lstat (Makefile.am): Likewise.
55706         * modules/malloc (Makefile.am): Likewise.
55707         * modules/mathl (Makefile.am): Likewise.
55708         * modules/mbchar (Makefile.am): Likewise.
55709         * modules/md2 (Makefile.am): Likewise.
55710         * modules/md4 (Makefile.am): Likewise.
55711         * modules/md5 (Makefile.am): Likewise.
55712         * modules/memcasecmp (Makefile.am): Likewise.
55713         * modules/memchr (Makefile.am): Likewise.
55714         * modules/memcmp (Makefile.am): Likewise.
55715         * modules/memcoll (Makefile.am): Likewise.
55716         * modules/memcpy (Makefile.am): Likewise.
55717         * modules/memmem (Makefile.am): Likewise.
55718         * modules/memmove (Makefile.am): Likewise.
55719         * modules/mempcpy (Makefile.am): Likewise.
55720         * modules/memrchr (Makefile.am): Likewise.
55721         * modules/memset (Makefile.am): Likewise.
55722         * modules/memxor (Makefile.am): Likewise.
55723         * modules/mkancesdirs (Makefile.am): Likewise.
55724         * modules/mkdir (Makefile.am): Likewise.
55725         * modules/mkdir-p (Makefile.am): Likewise.
55726         * modules/mkdtemp (Makefile.am): Likewise.
55727         * modules/mkstemp (Makefile.am): Likewise.
55728         * modules/mktime (Makefile.am): Likewise.
55729         * modules/modechange (Makefile.am): Likewise.
55730         * modules/mountlist (Makefile.am): Likewise.
55731         * modules/nanosleep (Makefile.am): Likewise.
55732         * modules/openat (Makefile.am): Likewise.
55733         * modules/pagealign_alloc (Makefile.am): Likewise.
55734         * modules/physmem (Makefile.am): Likewise.
55735         * modules/poll (Makefile.am): Likewise.
55736         * modules/posixtm (Makefile.am): Likewise.
55737         * modules/posixver (Makefile.am): Likewise.
55738         * modules/putenv (Makefile.am): Likewise.
55739         * modules/quote (Makefile.am): Likewise.
55740         * modules/quotearg (Makefile.am): Likewise.
55741         * modules/raise (Makefile.am): Likewise.
55742         * modules/read-file (Makefile.am): Likewise.
55743         * modules/readline (Makefile.am): Likewise.
55744         * modules/readlink (Makefile.am): Likewise.
55745         * modules/readtokens (Makefile.am): Likewise.
55746         * modules/readutmp (Makefile.am): Likewise.
55747         * modules/realloc (Makefile.am): Likewise.
55748         * modules/regex (Makefile.am): Likewise.
55749         * modules/rename (Makefile.am): Likewise.
55750         * modules/rename-dest-slash (Makefile.am): Likewise.
55751         * modules/rijndael (Makefile.am): Likewise.
55752         * modules/rmdir (Makefile.am): Likewise.
55753         * modules/rpmatch (Makefile.am): Likewise.
55754         * modules/safe-read (Makefile.am): Likewise.
55755         * modules/safe-write (Makefile.am): Likewise.
55756         * modules/same (Makefile.am): Likewise.
55757         * modules/save-cwd (Makefile.am): Likewise.
55758         * modules/savedir (Makefile.am): Likewise.
55759         * modules/setenv (Makefile.am): Likewise.
55760         * modules/settime (Makefile.am): Likewise.
55761         * modules/sha1 (Makefile.am): Likewise.
55762         * modules/sig2str (Makefile.am): Likewise.
55763         * modules/snprintf (Makefile.am): Likewise.
55764         * modules/stdlib-safer (Makefile.am): Likewise.
55765         * modules/stpcpy (Makefile.am): Likewise.
55766         * modules/stpncpy (Makefile.am): Likewise.
55767         * modules/strcase (Makefile.am): Likewise.
55768         * modules/strcasestr (Makefile.am): Likewise.
55769         * modules/strchrnul (Makefile.am): Likewise.
55770         * modules/strcspn (Makefile.am): Likewise.
55771         * modules/strdup (Makefile.am): Likewise.
55772         * modules/strerror (Makefile.am): Likewise.
55773         * modules/strftime (Makefile.am): Likewise.
55774         * modules/strndup (Makefile.am): Likewise.
55775         * modules/strnlen (Makefile.am): Likewise.
55776         * modules/strpbrk (Makefile.am): Likewise.
55777         * modules/strsep (Makefile.am): Likewise.
55778         * modules/strstr (Makefile.am): Likewise.
55779         * modules/strtod (Makefile.am): Likewise.
55780         * modules/strtoimax (Makefile.am): Likewise.
55781         * modules/strtok_r (Makefile.am): Likewise.
55782         * modules/strtol (Makefile.am): Likewise.
55783         * modules/strtoll (Makefile.am): Likewise.
55784         * modules/strtoul (Makefile.am): Likewise.
55785         * modules/strtoull (Makefile.am): Likewise.
55786         * modules/strtoumax (Makefile.am): Likewise.
55787         * modules/strverscmp (Makefile.am): Likewise.
55788         * modules/time_r (Makefile.am): Likewise.
55789         * modules/timegm (Makefile.am): Likewise.
55790         * modules/tmpfile-safer (Makefile.am): Likewise.
55791         * modules/unistd-safer (Makefile.am): Likewise.
55792         * modules/unlinkdir (Makefile.am): Likewise.
55793         * modules/userspec (Makefile.am): Likewise.
55794         * modules/utime (Makefile.am): Likewise.
55795         * modules/utimecmp (Makefile.am): Likewise.
55796         * modules/utimens (Makefile.am): Likewise.
55797         * modules/vasnprintf (Makefile.am): Likewise.
55798         * modules/vasprintf (Makefile.am): Likewise.
55799         * modules/vsnprintf (Makefile.am): Likewise.
55800         * modules/xalloc (Makefile.am): Likewise.
55801         * modules/xgetcwd (Makefile.am): Likewise.
55802         * modules/xnanosleep (Makefile.am): Likewise.
55803         * modules/xreadlink (Makefile.am): Likewise.
55804         * modules/xstrtod (Makefile.am): Likewise.
55805         * modules/xstrtol (Makefile.am): Likewise.
55806         * modules/xstrtold (Makefile.am): Likewise.
55807         * modules/yesno (Makefile.am): Likewise.
55808
55809 2006-10-12  Jim Meyering  <jim@meyering.net>
55810
55811         * m4/getloadavg.m4: Revert the change below.
55812
55813         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
55814         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
55815         fail with a symlink, which is what coreutils' ./bootstrap now
55816         creates by default.
55817
55818 2006-10-12  Bruno Haible  <bruno@clisp.org>
55819
55820         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
55821         mingw.
55822         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
55823         MSVC and mingw explicitly.
55824
55825 2006-10-11  Simon Josefsson  <jas@extundo.com>
55826             Bruno Haible  <bruno@clisp.org>
55827
55828         Add support for multiple gnulib-tool invocations in the scope of a
55829         single configure.ac file.
55830         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
55831         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
55832         with the same contents as the _LIBADD variable.
55833         (func_emit_initmacro_start, func_emit_initmacro_end,
55834         func_emit_initmacro_done): New functions.
55835         (func_import, func_create_testdir): Invoke them. Allow the identifiers
55836         gl_LIBOBJS and gl_LTLIBOBJS.
55837
55838 2006-10-11  Bruno Haible  <bruno@clisp.org>
55839
55840         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
55841         (func_create_testdir): Don't create po/Makefile.am, don't invoke
55842         autoreconf. Instead, invoke autopoint explicitly but move back the
55843         *.m4 files from gnulib.
55844
55845 2006-10-11  Bruno Haible  <bruno@clisp.org>
55846
55847         * gnulib-tool (func_usage): Make module names after --create-testdir
55848         optional.
55849         (func_create_testdir): If no module was specified, use nearly all
55850         modules.
55851
55852 2006-10-12  Jim Meyering  <jim@meyering.net>
55853
55854         Big performance improvement for fts-based tools that use FTS_NOSTAT.
55855         Avoid spurious inode-mismatch problems on non-POSIX file systems.
55856         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
55857         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
55858         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
55859         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
55860         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
55861         (fts_set_stat_required): New function.
55862         (fts_open): Defer the calls to fts_stat, if possible or requested.
55863         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
55864         into fts_stat itself.
55865         (fts_read): Perform any required (deferred) fts_stat call.
55866         (fts_build): Likewise, for the directory we're about to open and read.
55867         In the readdir loop, carefully decide whether each entry will require
55868         an eventual call to fts_stat, using dirent.d_type info if available.
55869         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
55870         a command line argument into this function.  Update all callers.
55871         Map a return value of FTS_DOT to FTS_D for a command line argument.
55872         * modules/fts (Depends-on): Add d-type.  Alphabetize.
55873         Thanks to Miklos Szeredi for his tenacity and for the initial
55874         bug report about "find" failing on a FUSE-based file system.
55875
55876         * lib/fts.c (fts_open): Use consistent indentation.
55877
55878 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55879
55880         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
55881         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
55882         reported by Jim Meyering.  All uses of cache variables renamed
55883         to match Autoconf's.
55884         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
55885         the other one.
55886
55887         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
55888         Fix misspelling in diagnostic.
55889
55890 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55891
55892         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
55893         defined.  Problem reported by Matthew Woehlke.
55894
55895         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
55896         Add support for Tandem NonStop R series.
55897         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
55898         Use new macro.
55899
55900         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
55901         (has_trailing_slash): Omit size arg; all callers changed.
55902         Omit 'inline', since it doesn't help performance and we'd
55903         need to configure it.
55904         Don't count //, ///, etc. as having a trailing slash.
55905         As a side effect, this removes a C99ism reported by Matthew Woehlke.
55906         (rpl_rename_dest_slash): On failure, use rename's errno rather
55907         than (in some cases) an incorrect or junk errno.
55908         Simplify code by removing need to compute length; this does
55909         cause it to make two passes instead of one over the file name,
55910         but it's worth it.
55911
55912         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
55913         change, since Autoconf's version may no longer be appropriate now
55914         that we are using CVS Autoconf's version.  Add support for Tandem.
55915
55916 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55917             Bruno Haible  <bruno@clisp.org>
55918
55919         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
55920         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
55921         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
55922         gl_AC_TYPE_LONG_LONG.
55923
55924         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
55925         instead of HAVE_LONG_LONG.
55926         * lib/printf-args.c (printf_fetchargs): Likewise.
55927         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
55928         * lib/vasnprintf.c (VASNPRINTF): Likewise.
55929         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
55930         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
55931         gl_AC_TYPE_LONG_LONG.
55932
55933 2006-10-11  Bruno Haible  <bruno@clisp.org>
55934
55935         * m4/longlong.m4: Add comments.
55936         * m4/ulonglong.m4: Likewise.
55937
55938 2006-10-10  Bruno Haible  <bruno@clisp.org>
55939
55940         Make it possible to #define stpcpy, strdup to aliases.
55941         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
55942         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
55943
55944 2006-10-10  Bruno Haible  <bruno@clisp.org>
55945
55946         Make it possible to #define gcd to an alias.
55947         * lib/gcd.c: Include config.h.
55948
55949 2006-10-10  Bruno Haible  <bruno@clisp.org>
55950
55951         Make it possible to #define c_isascii to an alias.
55952         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
55953         defined. Undefine the macros before defining them, to avoid gcc
55954         warnings.
55955         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
55956         define NO_C_CTYPE_MACROS early.
55957
55958 2006-10-10  Bruno Haible  <bruno@clisp.org>
55959
55960         Make it possible to #define set_program_name to an alias.
55961         * lib/progname.c: Don't undefine set_program_name; instead, undefine
55962         ENABLE_RELOCATABLE early.
55963
55964 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55965
55966         Port to Tandem NSK OSS, which has 64-bit signed int but at most
55967         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
55968         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
55969         More generally, don't assume that 64-bit signed int is available
55970         if unsigned int is, and vice versa.
55971         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
55972         unsigned symbols, not on their signed counterparts.
55973         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
55974         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
55975         (UINT64_C, UINTMAX_C):
55976         Likewise.
55977         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
55978         unsigned counterparts.
55979         (Have_long_long, Unsigned): New macros.
55980         (Int): Renamed from INT.
55981         (strtoimax): Use the new macros.
55982         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
55983         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
55984         * modules/inttypes (inttypes.h): Substitute
55985         HAVE_UNSIGNED_LONG_LONG_INT.
55986         * modules/stdint (stdint.h): Likewise.
55987         (Files): Add m4/ulonglong.m4.
55988
55989 2006-10-10  Bruno Haible  <bruno@clisp.org>
55990
55991         Fix a gcc -Wshadow warning.
55992         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
55993         to 'bucket'.
55994         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
55995         gl_linked_indexof_from_to): Likewise.
55996         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
55997         Likewise.
55998         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
55999         Likewise.
56000         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
56001         Reported by Eric Blake.
56002
56003 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
56004
56005         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
56006         for NetBSD.  Problem reported by Bruno Haible.
56007
56008 2006-10-09  Jim Meyering  <jim@meyering.net>
56009
56010         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
56011         Patch from Bruno Haible.
56012
56013 2006-10-09  Jim Meyering  <jim@meyering.net>
56014
56015         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
56016         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
56017         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
56018
56019 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56020
56021         Don't include <config.h> twice; this doesn't work in some cases,
56022         e.g., when config.h has "#define intmax_t long long int" and
56023         we include <config.h>, <inttypes.h>, <config.h> in that order.
56024         Problem reported by Matthew Woehlke in:
56025         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
56026         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
56027         * lib/fts-cycle.c: Don't include config.h.
56028         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
56029         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
56030         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
56031         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
56032         inttypes.h.
56033         * lib/xstrtoumax.c: Likewise.
56034         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
56035         __strtol and the like, so that this module is more like its siblings.
56036         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
56037         Remove; no longer needed now that we assume gnulib inttypes.h.
56038
56039 2006-10-08  Bruno Haible  <bruno@clisp.org>
56040
56041         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
56042         option.
56043
56044 2006-10-07  Jim Meyering  <jim@meyering.net>
56045
56046         * modules/inttypes (inttypes.h): Revert what seems to have been
56047         an inadvertent part of today's change: use "|", not "/" in the
56048         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
56049
56050 2006-10-07  Bruno Haible  <bruno@clisp.org>
56051
56052         * modules/sublist: New file.
56053
56054 2006-10-07  Bruno Haible  <bruno@clisp.org>
56055
56056         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
56057         * modules/argz (argz.h): Likewise.
56058         * modules/arpa_inet (arpa/inet.h): Likewise.
56059         * modules/byteswap (byteswap.h): Likewise.
56060         * modules/configmake (configmake.h): Likewise.
56061         * modules/fcntl (fcntl.h): Likewise.
56062         * modules/fnmatch (fnmatch.h): Likewise.
56063         * modules/getopt (getopt.h): Likewise.
56064         * modules/glob (glob.h): Likewise.
56065         * modules/inttypes (inttypes.h): Likewise.
56066         * modules/netinet_in (netinet/in.h): Likewise.
56067         * modules/poll (poll.h): Likewise.
56068         * modules/stdbool (stdbool.h): Likewise.
56069         * modules/stdint (stdint.h): Likewise.
56070         * modules/sys_select (sys/select.h): Likewise.
56071         * modules/sys_socket (sys/socket.h): Likewise.
56072         * modules/sys_stat (sys/stat.h): Likewise.
56073         * modules/sysexits (sysexits.h): Likewise.
56074         * modules/unistd (unistd.h): Likewise.
56075         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56076         Add a "DO NOT EDIT" comment to the generated file.
56077         (func_import): Likewise for gnulib-comp.m4.
56078
56079 2006-10-07  Bruno Haible  <bruno@clisp.org>
56080
56081         * lib/gl_sublist.h: New file.
56082         * lib/gl_sublist.c: New file.
56083
56084 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56085
56086         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
56087         name (relative to the original working directory) and the file
56088         name component (relative to the temporary working directory).  All
56089         callers changed.
56090         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
56091         * lib/mkdir-p.c (make_dir_parents): Likewise.
56092         * lib/mkdir-p.h (make_dir_parents): Likewise.
56093
56094 2006-10-06  Eric Blake  <ebb9@byu.net>
56095
56096         Define several macros for use by the clean-temp module.
56097         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
56098         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
56099         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
56100
56101         * lib/clean-temp.h (close_stream_temp): New declaration.
56102         * lib/clean-temp.c (includes): Pull in headers according to what
56103         other modules are in use.
56104         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
56105
56106 2006-10-06  Bruno Haible  <bruno@clisp.org>
56107
56108         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
56109         instead of fopen, fwriteerror.
56110
56111 2006-10-06  Bruno Haible  <bruno@clisp.org>
56112
56113         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
56114         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
56115         int.
56116         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
56117         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
56118         Return an error indicator.
56119         Suggested by Eric Blake.
56120
56121 2006-10-06  Bruno Haible  <bruno@clisp.org>
56122
56123         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
56124         Reported by Eric Blake.
56125
56126 2006-10-06  Bruno Haible  <bruno@clisp.org>
56127
56128         * modules/closeout (Description): Mention stderr too.
56129
56130 2006-10-06  Bruno Haible  <bruno@clisp.org>
56131         and Paul Eggert  <eggert@cs.ucla.edu>
56132
56133         * lib/closeout.c (close_stdout): Also close stderr.
56134         * lib/closeout.h: Update comment.
56135
56136 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56137
56138         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
56139         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
56140         * lib/dirchownmod.c: Include lchown.h.
56141         * lib/lchown.c: Don't include files that lchown.h now includes.
56142         Don't declare chown, since lchown.h now does that.
56143         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
56144         (lchown): Define to rpl_chown if lchown is declared but
56145         does not exist.  Declare using a prototype if lchown is not
56146         declared.  Add a copyright notice.
56147         * lib/mkstemp.h: Include <unistd.h>.
56148         * lib/openat.c: Include lchown.h.
56149
56150         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
56151         we now test for that separately.
56152         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56153         rather than O_NOFOLLOW, when testing whether it's possible to
56154         avoid a race condition reliably.
56155         * lib/savewd.c (savewd_chdir): Likewise.
56156
56157         Remove macros that are no longer needed now that stdint.h is
56158         reliable.
56159         * lib/fsusage.c (UINTMAX_MAX): Remove.
56160         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56161         * lib/utimecmp.c (SIZE_MAX): Remove.
56162
56163         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56164
56165         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56166         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56167         O_NOATIME works.
56168
56169 2006-10-05  Bruno Haible  <bruno@clisp.org>
56170
56171         * lib/gl_list.h (gl_sortedlist_search_from_to,
56172         gl_sortedlist_indexof_from_to): New declarations.
56173         (gl_list_implementation): New fields sortedlist_search_from_to,
56174         sortedlist_indexof_from_to.
56175         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56176         inline functions.
56177         * lib/gl_list.c (gl_sortedlist_search_from_to,
56178         gl_sortedlist_indexof_from_to): New functions.
56179         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56180         function.
56181         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56182         (gl_array_sortedlist_search_from_to): New function.
56183         (gl_array_list_implementation): Update.
56184         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56185         function.
56186         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56187         (gl_carray_sortedlist_search_from_to): New function.
56188         (gl_carray_list_implementation): Update.
56189         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56190         gl_linked_sortedlist_indexof_from_to): New functions.
56191         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56192         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56193         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56194         gl_tree_sortedlist_indexof_from_to): New functions.
56195         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56196         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56197         Update.
56198         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56199         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56200         Update.
56201
56202 2006-10-05  Bruno Haible  <bruno@clisp.org>
56203
56204         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56205         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56206         (struct gl_list_implementation): Add fields search_from_to,
56207         indexof_from_to. Remove fields search, indexof.
56208         (gl_list_search): Use the search_from_to method.
56209         (gl_list_search_from, gl_list_search_from_to): New functions.
56210         (gl_list_indexof): Use the indexof_from_to method.
56211         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56212         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56213         (gl_list_search_from, gl_list_search_from_to): New functions.
56214         (gl_list_indexof): Use the indexof_from_to method.
56215         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56216         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56217         gl_array_indexof. Add start_index, end_index arguments.
56218         (gl_array_search_from_to): Renamed from gl_array_search. Add
56219         start_index, end_index arguments.
56220         (gl_array_remove, gl_array_list_implementation): Update.
56221         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56222         gl_carray_indexof. Add start_index, end_index arguments.
56223         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56224         start_index, end_index arguments.
56225         (gl_carray_remove, gl_carray_list_implementation): Update.
56226         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56227         gl_linked_search. Add start_index, end_index arguments.
56228         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56229         start_index, end_index arguments.
56230         (gl_linked_remove): Update.
56231         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56232         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56233         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56234         field to 'size_t'.
56235         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56236         gl_tree_search. Add start_index, end_index arguments.
56237         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56238         start_index, end_index arguments.
56239         (gl_tree_remove): Update.
56240         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56241         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56242         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56243         function.
56244         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56245         gl_tree_search. Add start_index, end_index arguments.
56246         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56247         start_index, end_index arguments.
56248         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56249         Update.
56250         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56251
56252 2006-10-05  Bruno Haible  <bruno@clisp.org>
56253
56254         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56255
56256         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56257         fwriteerror_temp): New declarations.
56258         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56259         (descriptors): New variable.
56260         (cleanup): First, close the descriptors.
56261         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56262         fclose_temp, fwriteerror_temp): New functions.
56263
56264 2006-10-04  Jim Meyering  <jim@meyering.net>
56265
56266         * lib/fts.c (fts_open): Tiny comment change.
56267
56268 2006-10-04  Bruno Haible  <bruno@clisp.org>
56269
56270         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56271         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56272         gl_LOCK_BODY.
56273         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56274         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56275         gl_LOCK_EARLY_BODY.
56276         (gl_LOCK): Require gl_LOCK_BODY.
56277
56278 2006-10-04  Bruno Haible  <bruno@clisp.org>
56279
56280         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56281         (gl_oset_search_atleast): New declaration.
56282         (struct gl_oset_implementation): Add field 'search_atleast'.
56283         (gl_oset_search_atleast): New inline function.
56284         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56285         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56286         (gl_array_oset_implementation): Update.
56287         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56288         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56289         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56290
56291 2006-10-04  Bruno Haible  <bruno@clisp.org>
56292
56293         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56294
56295 2006-10-03  Bruno Haible  <bruno@clisp.org>
56296
56297         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56298         from gl_avltreehash_list_implementation.
56299
56300 2006-10-03  Bruno Haible  <bruno@clisp.org>
56301
56302         * lib/gl_oset.c (gl_oset_add): Fix return type.
56303
56304 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56305
56306         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56307
56308 2006-10-02  Eric Blake  <ebb9@byu.net>
56309
56310         * modules/strnlen (Depends-on): Add extensions.
56311
56312 2006-10-02  Eric Blake  <ebb9@byu.net>
56313
56314         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56315         definition in 2.60+.
56316
56317 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56318
56319         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56320         checks.
56321
56322 2006-10-02  Bruno Haible  <bruno@clisp.org>
56323
56324         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56325         to the AUTOMAKE_OPTIONS.
56326         Reported by Jim Meyering.
56327
56328 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56329
56330         Work around bug in Solaris 10 /proc file system:
56331         /proc/self/fd/NNN/.. isn't the parent directory of
56332         the directory whose file descriptor is NNN.  This needs to
56333         be worked around at run time, not compile time, since a
56334         program might be built on Solaris 8, where things work, and
56335         run on Solaris 10.
56336         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56337         to use the following interface instead:
56338         (OPENAT_BUFFER_SIZE): New macro.
56339         (openat_proc_name): New function.
56340         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56341         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56342         Likewise.
56343         * lib/openat-proc.c: New file.
56344         * modules/openat (Files): Add lib/openat-proc.c.
56345         (Depends-on): Add same-inode, stdbool.
56346         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56347
56348 2006-09-29  Bruno Haible  <bruno@clisp.org>
56349
56350         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56351         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56352         argument. Set stdout_closed before testing for ferror, not after.
56353         (fwriteerror, fwriteerror_no_ebadf): New functions.
56354
56355 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56356
56357         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56358
56359 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56360
56361         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56362         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56363
56364 2006-09-28  Jim Meyering  <jim@meyering.net>
56365
56366         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56367         Include <unistd.h>.
56368
56369 2006-09-28  Bruno Haible  <bruno@clisp.org>
56370
56371         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56372         * modules/linkedhash-list (Depends-on): Likewise.
56373         * modules/rbtreehash-list (Depends-on): Likewise.
56374
56375 2006-09-28  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/strndup.h: Simplify the redefinition of strndup.
56378         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56379         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56380
56381 2006-09-28  Bruno Haible  <bruno@clisp.org>
56382
56383         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56384         * lib/gl_linkedhash_list.c: Likewise.
56385         * lib/gl_rbtreehash_list.c: Likewise.
56386
56387 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56388
56389         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56390         getaddrinfo.
56391
56392         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56393         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56394         it causes <stdio_ext.h> to cause a compile-time error.
56395         Problem reported by Nelson H. F. Beebe.
56396         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56397         of HAVE_DECL___PENDING.
56398
56399         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56400         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56401         declaration.
56402
56403 2006-09-27  Jim Meyering  <jim@meyering.net>
56404
56405         This file could end up with a definition for a function
56406         named __strndup, rather than rpl_strndup on a system with
56407         incomplete weak_alias support.
56408         * lib/strndup.c (strndup): Rename from __strndup.
56409         Remove #defines that used to map __strndup to strndup.
56410         Don't use K&R prototypes.
56411         Remove LIBC-related code, since this file is not sync'd with glibc.
56412         * lib/strndup.h: Revamp, accordingly.
56413         * m4/strndup.m4: Modernize.
56414
56415 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56416
56417         * modules/savewd (Depends-on): Add 'raise'.
56418         * lib/savewd.c: Include <signal.h>, for 'raise'.
56419
56420 2006-09-26  Jim Meyering  <jim@meyering.net>
56421
56422         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56423         when we detect Darwin 8.7.0's acl_get_file bug.
56424         Rearrange to perform the new (below) run-test while $LIBS
56425         contains any acl-related library.  Set USE_ACL at the end.
56426         (gl_ACL_GET_FILE): New function.
56427
56428 2006-09-26  Eric Blake  <ebb9@byu.net>
56429
56430         * lib/verror.c: Include <config.h> unconditionally.
56431
56432 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56433
56434         * modules/clock-time (Maintainer): Add self.
56435         * modules/getlogin_r (Depends-on): Add extensions.
56436
56437 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56438
56439         * modules/clock-time: New module.
56440         * modules/nanosleep (Depends-on): Add clock-time.
56441         * modules/gethrxtime (Depends-on): Likewise.
56442         * modules/gettime (Depends-on): Likewise.
56443         * modules/settime (Depends-on): Likewise.
56444
56445         * modules/fts-lgpl: Depend on openat.
56446         * modules/mkancesdirs: Depend on savewd.
56447         * modules/mkdir-p: Likewise.
56448
56449 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56450
56451         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56452
56453         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56454         `gl_have_arbitrary_file_name_length_limit' to
56455         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56456         actually works between configure runs.
56457
56458 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56459             Bruno Haible  <bruno@clisp.org>
56460
56461         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56462
56463 2006-09-25  Jim Meyering  <jim@meyering.net>
56464
56465         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56466         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56467
56468 2006-09-25  Eric Blake  <ebb9@byu.net>
56469
56470         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56471         exec's in 2006-09-18 patch when shuffling fds.
56472
56473 2006-09-25  Bruno Haible  <bruno@clisp.org>
56474
56475         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56476         Reported by Jim Meyering.
56477
56478 2006-09-24  Jim Meyering  <jim@meyering.net>
56479
56480         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56481         compare a pointer against a literal "0".  That caused failures with
56482         at least HP-UX's hpcc.
56483
56484 2006-09-22  Simon Josefsson  <jas@extundo.com>
56485
56486         * modules/gc-sha1:
56487         * modules/gc-md4:
56488         * modules/gc-hmac-sha1:
56489         * modules/gc-hmac-md5:
56490         * modules/gc-des:
56491         * modules/gc-arcfour: Distribute more files.
56492
56493 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56494
56495         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56496         (gl_linked_iterator_from_to): Initialize struct completely.
56497         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56498         (gl_tree_iterator_from_to): Likewise
56499         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56500         * lib/gl_array_list.c [lint] (gl_array_iterator)
56501         (gl_array_iterator_from_to): Likewise.
56502         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56503         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56504         (gl_carray_iterator_from_to): Likewise.
56505
56506         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56507         * lib/md4.c (md4_process_block): Remove unused variable.
56508         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56509         parentheses for clarity.
56510
56511 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56512
56513         * modules/bison-i18n (Depends-on): Add gettext.
56514
56515 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56516
56517         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56518         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56519         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56520         also add missing comma that caused broken test.
56521         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56522         stdlib.h, for `abort'.
56523         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56524         variables.
56525         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56526         include unistd.h if present, for `rmdir'.
56527         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56528         variables.
56529         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
56530         in the process include standard headers for prototypes.
56531         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
56532         gets declared on GNU/Linux.
56533         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56534         unistd.h, for `rmdir'.
56535         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56536
56537         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56538         always true.
56539         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56540
56541         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56542
56543 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56544
56545         * gnulib-tool (func_version): Create output all at once.  This
56546         may help avoid triggering unnecessary SIGPIPEs, and at any
56547         rate it doesn't hurt.
56548
56549 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56550             Bruno Haible  <bruno@clisp.org>
56551
56552         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56553         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56554         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56555
56556         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56557         (gl_FUNC_VASPRINTF): Invoke it.
56558
56559 2006-09-22  Bruno Haible  <bruno@clisp.org>
56560
56561         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56562         getloadavg.c as first argument.
56563
56564 2006-09-22  Bruno Haible  <bruno@clisp.org>
56565
56566         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56567         at the beginning of the gl_INIT macro.
56568         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56569         gl_GETLOADAVG.
56570
56571 2006-09-22  Bruno Haible  <bruno@clisp.org>
56572
56573         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56574         module.
56575         Suggested by Ralf Wildenhues.
56576
56577 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56578
56579         Import this patch from libc:
56580
56581         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56582
56583         * lib/regex_internal.c (re_string_reconstruct): Handle
56584         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56585         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56586         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56587         re_string_context_at.
56588
56589         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56590         now requires it.
56591         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56592         gl_REGEX now does it for us.
56593         (gl_REGEX): Add test taken from
56594         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56595
56596         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
56597         Check that large offsets work.  Modernize Autoconf usages.
56598         Prefer "yes" to mean a good thing rather than a bad.
56599         Don't put "#define mkstemp" in config.h, as this might interfere
56600         with standard system headers that "#define mkstemp mkstemp64".
56601
56602         * modules/mkstemp (Depends-on): Add extensions, so that
56603         mkstemp is visible on some platforms.
56604         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
56605         (Include): Change to "mkstemp.h" from <stdlib.h>.
56606         (Files): Add mkstemp.h.
56607
56608         * lib/mkstemp.h: New file, since some standard headers
56609         #define mkstemp.
56610         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
56611         Include "mkstemp.h".
56612         Make the _LIBC code resemble glibc original more,
56613         e.g., use K&R style.
56614         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
56615         (mkstemp): Remove, since mkstemp.h does this for us.
56616         * lib/stdlib--.h: Include mkstemp.h.
56617
56618         Import this patch from libc:
56619
56620         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56621
56622         * lib/tempname.c (__gen_tempname): Change attempts_min
56623         into a macro.  Use preprocessor to decide how to initialize
56624         attempts [Coverity CID 67].
56625
56626 2006-09-20  Bruno Haible  <bruno@clisp.org>
56627
56628         * lib/mkdtemp.c: Import from libc.
56629         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56630                 * sysdeps/posix/tempname.c (__gen_tempname): Change
56631                 attempts_min into a macro.  Use preprocessor to decide how to
56632                 initialize attempts [Coverity CID 67].
56633         2001-11-27  Paul Eggert  <eggert@twinsun.com>
56634                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
56635                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
56636
56637 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56638
56639         * gnulib-tool (func_exit): New function, to allow to pass the
56640         exit status portably through the trap.  Use everywhere.
56641         (--help, --version): Signal a write error.
56642         (trap): catch SIGPIPE, for write errors.
56643         Exit at the end of the trap, with the correct exit status.
56644
56645 2006-09-19  Karl Berry  <karl@gnu.org>
56646
56647         * doc/gnulib.texi: note about the license texinfo files.
56648
56649 2006-09-19  Eric Blake  <ebb9@byu.net>
56650
56651         * gnulib-tool: Avoid space-tab.
56652
56653 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56654
56655         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
56656         that prevented coreutils 6.1 from building.  Problem reported
56657         by Petter Reinholdtsen.
56658
56659 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56660
56661         * gnulib-tool (avoidlist): Fix typo that broke options like
56662         --avoid=lock that are used by coreutils bootstrap.
56663
56664 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
56665
56666         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
56667         more systematically.
56668
56669 2006-09-18  Jim Meyering  <jim@meyering.net>
56670
56671         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
56672
56673 2006-09-18  Bruno Haible  <bruno@clisp.org>
56674
56675         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
56676
56677 2006-09-18  Bruno Haible  <bruno@clisp.org>
56678
56679         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
56680         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
56681         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
56682         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
56683         * m4/gettext.m4: Require autoconf >= 2.52.
56684         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
56685         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
56686         of gl_cv_header_inttypes_h.
56687
56688 2006-09-18  Bruno Haible  <bruno@clisp.org>
56689
56690         * lib/javaversion.c: Include configmake.h.
56691
56692 2006-09-18  Bruno Haible  <bruno@clisp.org>
56693
56694         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
56695         avoid that the while loops be executed in a subshell.
56696
56697 2006-09-18  Bruno Haible  <bruno@clisp.org>
56698
56699         * MODULES.html.sh (func_module): Break long lines.
56700         Suggested by Bruce Korb <bkorb@gnu.org>.
56701
56702 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56703
56704         Speed up by a factor of 1.12.
56705         * gnulib-tool (nl): New variable.
56706         (func_import): Rewrite include directive extraction to only read each
56707         directive once.
56708
56709 2006-09-17  Bruno Haible  <bruno@clisp.org>
56710
56711         * modules/javaversion (Makefile.am): Remove DEFS setting.
56712         (Depends-on): Add configmake, for PKGDATADIR definition.
56713
56714 2006-09-17  Bruno Haible  <bruno@clisp.org>
56715
56716         * gnulib-tool (func_create_testdir): Rewrite all files at once.
56717
56718 2006-09-17  Bruno Haible  <bruno@clisp.org>
56719
56720         * gnulib-tool (func_append): New function, stolen from libtool.m4.
56721         (func_modules_transitive_closure, func_modules_add_dummy,
56722         func_modules_to_filelist, func_import, func_create_testdir,
56723         func_create_megatestdir, ...): Use it wherever possible.
56724         Suggested by Ralf Wildenhues.
56725
56726 2006-09-16  Karl Berry  <karl@gnu.org>
56727
56728         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
56729         to avoid sectioning errors.
56730         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
56731         [ifinfo]: blank line after @center-ed titles.
56732         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
56733         Spell FSF address consistently with others.
56734         (These changes approved by rms.)
56735
56736 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56737
56738         Speed up by a factor of 1.61.
56739         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
56740         already checked module names again.
56741
56742 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56743
56744         Speed up by a factor of 1.13.
56745         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
56746         for new_files, and the input to func_add_or_update.
56747
56748 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56749
56750         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
56751         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
56752
56753 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56754
56755         * modules/mkancesdirs (Depends-on): Add fcntl.
56756         * modules/savewd: New file.
56757         * MODULES.html.sh (File system functions): Add savewd.
56758
56759         * modules/configmake (Makefile.am): Add support for the
56760         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
56761
56762 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56763
56764         * m4/savewd.m4: New file.
56765
56766 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56767
56768         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
56769         (dirchownmod): New arg FD.  All callers changed.
56770         Use FD rather than opening the directory ourself, as opening is
56771         now the caller's responsibility.
56772         * lib/dirchownmod.h: Likewise.
56773         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
56774         hosts that require <sys/types.h> before <sys/stat.h>.  Include
56775         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
56776         (test_dir): Remove.
56777         (mkancesdirs): Return length of prefix of FILE that has already
56778         been made, or -2 if there is a child doing the work.  Redo
56779         algorithm so that it is O(N) rather than O(N**2).  Optimize away
56780         ".", and treat ".." specially since it might stray back into
56781         already-created areas.  Use a subprocess if necessary.  New arg
56782         WD; all users changed.  MAKE_DIR function should now return 1
56783         if it creates a directory that is not readable.  Return -2 if
56784         a child process is spun off.
56785         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
56786         Adjust signature to match code.
56787         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
56788         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
56789         all users changed.
56790         * lib/savewd.c, lib/savewd.h: New files.
56791
56792 2006-09-15  Jim Meyering  <jim@meyering.net>
56793
56794         * modules/rename-dest-slash: New module.
56795         * MODULES.html.sh (posix_compat): Add it here.
56796
56797         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
56798
56799 2006-09-15  Jim Meyering  <jim@meyering.net>
56800
56801         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
56802         file.
56803
56804         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
56805
56806 2006-09-15  Jim Meyering  <jim@meyering.net>
56807
56808         * lib/rename-dest-slash.c (has_trailing_slash): Use
56809         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
56810         (rpl_rename_dest_slash): Perform the cheaper trailing slash
56811         test before testing whether SRC is a directory.
56812         Suggestions from Bruno Haible.
56813
56814         Avoid a warning about an unused variable.
56815         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
56816         into the #ifdef block where it's used.
56817
56818         * lib/rename-dest-slash.c: New file.
56819
56820 2006-09-14  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/allocsa.c: Include <config.h> unconditionally.
56823         * lib/asnprintf.c: Likewise.
56824         * lib/asprintf.c: Likewise.
56825         * lib/c-strcasecmp.c: Likewise.
56826         * lib/c-strcasestr.c: Likewise.
56827         * lib/c-strncasecmp.c: Likewise.
56828         * lib/c-strstr.c: Likewise.
56829         * lib/classpath.c: Likewise.
56830         * lib/clean-temp.c: Likewise.
56831         * lib/concatpath.c: Likewise.
56832         * lib/copy-file.c: Likewise.
56833         * lib/csharpcomp.c: Likewise.
56834         * lib/csharpexec.c: Likewise.
56835         * lib/execute.c: Likewise.
56836         * lib/fatal-signal.c: Likewise.
56837         * lib/findprog.c: Likewise.
56838         * lib/fwriteerror.c: Likewise.
56839         * lib/gl_array_list.c: Likewise.
56840         * lib/gl_array_oset.c: Likewise.
56841         * lib/gl_avltree_list.c: Likewise.
56842         * lib/gl_avltree_oset.c: Likewise.
56843         * lib/gl_avltreehash_list.c: Likewise.
56844         * lib/gl_carray_list.c: Likewise.
56845         * lib/gl_linked_list.c: Likewise.
56846         * lib/gl_linkedhash_list.c: Likewise.
56847         * lib/gl_list.c: Likewise.
56848         * lib/gl_oset.c: Likewise.
56849         * lib/gl_rbtree_list.c: Likewise.
56850         * lib/gl_rbtree_oset.c: Likewise.
56851         * lib/gl_rbtreehash_list.c: Likewise.
56852         * lib/imaxabs.c: Likewise.
56853         * lib/imaxdiv.c: Likewise.
56854         * lib/javacomp.c: Likewise.
56855         * lib/javaexec.c: Likewise.
56856         * lib/javaversion.c: Likewise.
56857         * lib/linebreak.c: Likewise.
56858         * lib/localcharset.c: Likewise.
56859         * lib/lock.c: Likewise.
56860         * lib/mbchar.c: Likewise.
56861         * lib/mbswidth.c: Likewise.
56862         * lib/mkdtemp.c: Likewise.
56863         * lib/pipe.c: Likewise.
56864         * lib/printf-args.c: Likewise.
56865         * lib/printf-parse.c: Likewise.
56866         * lib/progname.c: Likewise.
56867         * lib/progreloc.c: Likewise.
56868         * lib/readlink.c: Likewise.
56869         * lib/sh-quote.c: Likewise.
56870         * lib/stpcpy.c: Likewise.
56871         * lib/stpncpy.c: Likewise.
56872         * lib/strcasecmp.c: Likewise.
56873         * lib/strcasestr.c: Likewise.
56874         * lib/strcspn.c: Likewise.
56875         * lib/striconv.c: Likewise.
56876         * lib/strncasecmp.c: Likewise.
56877         * lib/strnlen1.c: Likewise.
56878         * lib/strstr.c: Likewise.
56879         * lib/strtok_r.c: Likewise.
56880         * lib/tls.c: Likewise.
56881         * lib/tmpdir.c: Likewise.
56882         * lib/unicodeio.c: Likewise.
56883         * lib/unsetenv.c: Likewise.
56884         * lib/vasnprintf.c: Likewise.
56885         * lib/vasprintf.c: Likewise.
56886         * lib/wait-process.c: Likewise.
56887         * lib/xallocsa.c: Likewise.
56888         * lib/xsetenv.c: Likewise.
56889         * lib/xstriconv.c: Likewise.
56890
56891 2006-09-13  Simon Josefsson  <jas@extundo.com>
56892
56893         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
56894         that internally, suggested by Ralf Wildenhues
56895         <Ralf.Wildenhues@gmx.de>.
56896
56897 2006-09-13  Simon Josefsson  <jas@extundo.com>
56898
56899         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
56900         @LIBOBJS@.
56901         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56902
56903 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
56904
56905         * lib/_fpending.c: Include <config.h> unconditionally, since we no
56906         longer worry about uses that don't define HAVE_CONFIG_H.
56907         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
56908         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
56909         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
56910         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
56911         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
56912         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
56913         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
56914         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
56915         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
56916         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
56917         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
56918         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
56919         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
56920         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
56921         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
56922         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
56923         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
56924         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
56925         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
56926         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
56927         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
56928         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
56929         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
56930         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
56931         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
56932         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
56933         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
56934         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
56935         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
56936         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
56937         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
56938         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
56939         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
56940         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
56941         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
56942         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
56943         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
56944         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
56945         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
56946         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
56947         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
56948         Likewise.
56949
56950 2006-09-13  Eric Blake  <ebb9@byu.net>
56951
56952         * lib/getopt.c: Fix typo in last commit.
56953
56954 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56955
56956         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
56957         dgettext.
56958
56959 2006-09-12  Jim Meyering  <jim@meyering.net>
56960
56961         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
56962         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
56963         Reported by Nelson H. F. Beebe.
56964
56965 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56966
56967         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
56968         program_invocation_name and program_invocation_short_name are
56969         initialized.
56970         * lib/argp-namefrob.h: Move declarations of program_invocation_name
56971         and program_invocation_short_name to argp.h, so they are visible
56972         to user programs.
56973         * lib/argp.h: Likewise
56974
56975 2006-09-10  Bruno Haible  <bruno@clisp.org>
56976
56977         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
56978         m4/inttypes_h.m4, m4/uintmax_t.m4.
56979
56980 2006-09-10  Bruno Haible  <bruno@clisp.org>
56981
56982         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
56983         gl_AC_TYPE_UINTMAX_T.
56984
56985 2006-09-10  Bruno Haible  <bruno@clisp.org>
56986
56987         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
56988
56989 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56990
56991         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
56992         convention.  Text proposed by Bruno Haible.
56993         (struct argp_option): Document the use of N_() wrappers.
56994
56995         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
56996         '\v', and translate the two parts separately, instead of feeding
56997         the whole string to gettext.  This allows to exclude
56998         '\v' from the strings visible to the translator by writing doc
56999         strings as N_("..") "\v" N_("..").
57000
57001 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
57002
57003         * config/srclist.txt: Undo latest change; the bug was fixed.
57004
57005 2006-09-09  Bruno Haible  <bruno@clisp.org>
57006
57007         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
57008         assignments if building a library without libtool.
57009         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
57010         in func_emit_lib_Makefile_am.
57011         (func_import): When building a static library libfoo.a, arrange to
57012         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
57013         (func_create_testdir): Likewise.
57014         * modules/gc (configure.ac, Makefile.am): If building statically,
57015         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
57016         * modules/iconvme (configure.ac, Makefile.am): Likewise.
57017         * modules/striconv (configure.ac, Makefile.am): Likewise.
57018         Based on a suggestion by Ralf Wildenhues.
57019
57020 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57021
57022         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57023         Check for unistd.h too, since Autoconf doesn't assume POSIX.
57024         Also:
57025
57026         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57027         Add year_2050_test to catch glibc bug 2821
57028         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57029
57030         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57031         Prefer #ifdef to #if.
57032
57033         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
57034         Return from 'main' instead of calling 'exit'.
57035
57036 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57037
57038         * lib/mktime.c (guess_time_tm): Fix bug where mktime
57039         returned the maximum time_t value rather than (time_t) -1.
57040         Problem originally reported by William Bardwell
57041         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57042
57043         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57044         Moved to here ...
57045         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57046         ... from here.
57047
57048 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57049
57050         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
57051         2821 is fixed.
57052
57053 2006-09-08  Jim Meyering  <jim@meyering.net>
57054
57055         Don't make generated files read-only.  That would bother too many
57056         people.  However, do retain the ability to work when targets are
57057         read-only: remove the destination and temporary files before writing
57058         them (when generated via sed or echo), or by using the -f option for
57059         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
57060         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57061         * modules/byteswap, modules/configmake, modules/fcntl:
57062         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57063         * modules/localcharset, modules/netinet_in, modules/poll:
57064         * modules/stdbool, modules/stdint, modules/sys_select:
57065         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57066
57067 2006-09-08  Jim Meyering  <jim@meyering.net>
57068
57069         Avoid new build failure on FreeBSD 6.0.
57070         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
57071         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
57072         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
57073
57074 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57075
57076         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
57077
57078 2006-09-07  Jim Meyering  <jim@meyering.net>
57079
57080         Fix global typo in last change: use chmod u-w, not chmod u-x.
57081         Spotted by Paul Eggert and Bruce Korb.
57082         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57083         * modules/byteswap, modules/configmake, modules/fcntl:
57084         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57085         * modules/localcharset, modules/netinet_in, modules/poll:
57086         * modules/stdbool, modules/stdint, modules/sys_select:
57087         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57088
57089 2006-09-06  Jim Meyering  <jim@meyering.net>
57090
57091         Make generated files be read-only.
57092         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
57093         Ensure that each generated file is now read-only.
57094         * modules/argz: Likewise.
57095         * modules/arpa_inet: Likewise.
57096         * modules/byteswap: Likewise.
57097         * modules/configmake: Likewise.
57098         * modules/fcntl: Likewise.
57099         * modules/fnmatch: Likewise.
57100         * modules/getopt: Likewise.
57101         * modules/glob: Likewise.
57102         * modules/inttypes: Likewise.
57103         * modules/netinet_in: Likewise.
57104         * modules/poll: Likewise.
57105         * modules/stdbool: Likewise.
57106         * modules/stdint: Likewise.
57107         * modules/sys_select: Likewise.
57108         * modules/sys_socket: Likewise.
57109         * modules/sys_stat: Likewise.
57110         * modules/sysexits: Likewise.
57111         * modules/localcharset: Same as above, but continue using temporary
57112         file named "t-$@" (why different?) rather than the "$@-t" used
57113         everywhere else.
57114
57115         * modules/sysexits (Makefile.am): Replace literal occurrences
57116         of "sysexit.h" more readable, and more consistent, "$@".
57117
57118 2006-09-06  Bruno Haible  <bruno@clisp.org>
57119
57120         * modules/striconv: New file.
57121         * modules/xstriconv: New file.
57122         * MODULES.html.sh (Internationalization functions): Add striconv,
57123         xstriconv.
57124
57125 2006-09-06  Bruno Haible  <bruno@clisp.org>
57126
57127         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
57128         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
57129         not using libtool correctly.
57130
57131 2006-09-06  Bruno Haible  <bruno@clisp.org>
57132
57133         * lib/striconv.h: New file.
57134         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
57135         iconvstring.c.
57136         * lib/xstriconv.h: New file.
57137         * lib/xstriconv.c: New file.
57138
57139 2006-09-06  Bruno Haible  <bruno@clisp.org>
57140
57141         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57142         lib_..._LDFLAGS.
57143
57144 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57145
57146         * lib/argz_.h: Sync from Libtool.
57147
57148         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
57149                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57150
57151         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
57152
57153 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57154
57155         * modules/trim: New file.
57156
57157 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57158
57159         * lib/trim.h: New file.
57160         * lib/trim.c: New file.
57161
57162 2006-09-05  Bruno Haible  <bruno@clisp.org>
57163
57164         * MODULES.html.sh (String handling): Add trim.
57165
57166 2006-09-04  Karl Berry  <karl@gnu.org>
57167
57168         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57169         until next release.
57170
57171 2006-09-03  Bruno Haible  <bruno@clisp.org>
57172
57173         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57174         correctly.
57175
57176 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57177
57178         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57179         not gl_GETLOADAVG.  Omit unneeded semicolons.
57180         Problems reported by Ralf Wildenhues in
57181         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57182         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57183         at the end, which is the usual gnulib style.
57184
57185         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57186         of doing all the work ourselves.
57187         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57188         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57189
57190 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57191
57192         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57193         Problem reported by Ralf Wildenhues in
57194         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57195
57196         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57197         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57198
57199 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57200
57201         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57202         yesterday's patch by changing test -n to test -z.
57203
57204 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57205
57206         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57207         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57208         the former is now obsolescent.
57209
57210         * modules/chdir-long (Depends-on): Add fcntl.
57211
57212 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57213
57214         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57215         obsolescent, and programs should use gnulib instead.
57216         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57217         but with prefixes changed.
57218
57219 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57220
57221         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57222         or stdbool.h, because they might not exist while configuring.
57223
57224         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57225         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57226         does that for us.
57227         (O_DIRECTORY): Remove.
57228
57229 2006-08-31  Eric Blake  <ebb9@byu.net>
57230
57231         * gnulib-tool: Don't let emacs change spaces to TAB.
57232
57233 2006-08-31  Bruno Haible  <bruno@clisp.org>
57234
57235         * gnulib-tool: When calling func_import more than once, do it in a
57236         subshell.
57237         Reported by Eric Blake <ebb9@byu.net>.
57238
57239 2006-08-31  Bruno Haible  <bruno@clisp.org>
57240
57241         * gnulib-tool (nl): Remove variable.
57242         (sed_transform_lib_file): Use more robust test for config-h module.
57243         (func_import): Fix typo in 2006-08-25 patch.
57244
57245 2006-08-31  Bruno Haible  <bruno@clisp.org>
57246
57247         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57248         specified, augment Makefile.am variables instead of assigning them.
57249
57250 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57251
57252         Work around a bug in both the Linux and SunOS 64-bit kernels:
57253         nanosleep mishandles sleeps for longer than 2**31 seconds.
57254         Problem reported by Frank v Waveren in
57255         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57257         Check for nanosleep bug.
57258         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57259
57260 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57261
57262         Work around a bug in both the Linux and SunOS 64-bit kernels:
57263         nanosleep mishandles sleeps for longer than 2**31 seconds.
57264         Problem reported by Frank v Waveren in
57265         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57266         * lib/nanosleep.c (BILLION): New constant.
57267         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57268         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57269         implementation.
57270
57271 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57272
57273         * modules/nanosleep (Depends-on): Add gettime.
57274
57275 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57276         and Simon Josefsson  <jas@extundo.com>
57277         and Oskar Liljeblad  <oskar@osk.mine.nu>
57278
57279         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57280         * gnulib-tool (func_import): New license type 'unmodifiable license
57281         text'.
57282         * modules/fdl: Use it.  Longer description.
57283         * module/gpl, module/lgpl: New files.
57284
57285 2006-08-30  Jim Meyering  <jim@meyering.net>
57286
57287         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57288         shadowing the parameter.
57289
57290 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57291
57292         Sync from Libtool:
57293
57294         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57295
57296         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57297         sharing with gnulib.  Report by Eric Blake.
57298
57299 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57300
57301         * modules/isapipe: New file.
57302         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57303
57304 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57305
57306         * modules/configmake (Makefile.am): Add a comment, and omit
57307         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57308         by Bruno Haible.
57309
57310 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57311
57312         * m4/isapipe.m4: New file.
57313
57314 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57315
57316         * lib/isapipe.c, lib/isapipe.h: New files.
57317
57318 2006-08-29  Jim Meyering  <jim@meyering.net>
57319
57320         * modules/configmake (Makefile.am): Make configmake.h depend on
57321         Makefile.  Otherwise, a stale configmake.h could hang around.
57322
57323 2006-08-29  Eric Blake  <ebb9@byu.net>
57324
57325         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57326         resolution of upstream bug 3044.
57327
57328 2006-08-29  Bruno Haible  <bruno@clisp.org>
57329
57330         * modules/localcharset (Depends-on): Add configmake.
57331         (Makefile.am): Remove setting of LIBDIR through DEFS.
57332
57333 2006-08-29  Bruno Haible  <bruno@clisp.org>
57334
57335         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57336         defined.
57337
57338 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57339
57340         * modules/fcntl: New file.
57341         * modules/chdir-safer (Depends-on): Add fcntl.
57342         * modules/fts: Likewise.
57343         * modules/mkdir-p: Likewise.
57344
57345         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57346         This undoes the most recent change, since we're now addressing the
57347         problem in a different way.
57348
57349         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57350         into output, since the output might be called Makefile.am even
57351         if $makefile_name is something different.
57352         (func_import): Use $makefile_am rather than
57353         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57354         empty.
57355
57356         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57357
57358 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57359
57360         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57361         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57362         recent change to stdint.m4, since we're now addressing the problem in a
57363         different way.
57364
57365 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57366
57367         * m4/fcntl_h.m4: New file.
57368
57369 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         * lib/fcntl_.h: New file.
57372         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57373         the fcntl module.
57374         * lib/dirchownmod.c: Likewise.
57375         * lib/fts.c: Likewise.
57376
57377         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57378         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57379         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57380         just before including <inttypes.h>, to avoid circular inclusion.
57381
57382 2006-08-28  Jim Meyering  <jim@meyering.net>
57383
57384         * doc/visibility.texi: Actually read and correct the grammar of the
57385         sentence affected by yesterday's change.
57386
57387 2006-08-28  Eric Blake  <ebb9@byu.net>
57388
57389         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57390         needs wrapper.
57391
57392 2006-08-28  Eric Blake  <ebb9@byu.net>
57393
57394         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57395
57396 2006-08-28  Eric Blake  <ebb9@byu.net>
57397
57398         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57399
57400 2006-08-28  Bruno Haible  <bruno@clisp.org>
57401
57402         * modules/c-strstr: New file, from GNU gettext.
57403         * MODULES.html.sh (String handling): Add c-strstr.
57404
57405 2006-08-28  Bruno Haible  <bruno@clisp.org>
57406
57407         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57408         macros.
57409         Reported by Eric Blake.
57410
57411 2006-08-28  Bruno Haible  <bruno@clisp.org>
57412
57413         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57414         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57415         * lib/vasprintf.c: Include errno.h, limits.h.
57416         (EOVERFLOW): New fallback definition.
57417         (vasprintf): Test here whether the string length is > INT_MAX.
57418         * lib/vsnprintf.c: Include errno.h, limits.h.
57419         (EOVERFLOW): New fallback definition.
57420         (vsnprintf): Fix bug when generated string was too long for the buffer.
57421         Test here whether the string length is > INT_MAX.
57422
57423 2006-08-28  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/inttypes_.h (SCNX*): Remove definitions.
57426         Reported by Eric Blake.
57427
57428 2006-08-28  Bruno Haible  <bruno@clisp.org>
57429
57430         * lib/c-strstr.h: New file, from GNU gettext.
57431         * lib/c-strstr.c: New file, from GNU gettext.
57432
57433 2006-08-28  Bruno Haible  <bruno@clisp.org>
57434
57435         * gnulib-tool: Reorder some statements.
57436
57437 2006-08-28  Bruno Haible  <bruno@clisp.org>
57438
57439         * gnulib-tool: New option --makefile-name.
57440         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57441         $makefile_name.
57442         (func_import): Write $makefile_name to the cache file, and read it from
57443         there unless explicitly specified. Use $makefile_name as file name
57444         instead of Makefile.am. Adjust the recommendations accordingly.
57445
57446 2006-08-28  Bruno Haible  <bruno@clisp.org>
57447
57448         * gnulib-tool (func_verify_module): Check against misapplying patch.
57449
57450 2006-08-28  Bruno Haible  <bruno@clisp.org>
57451
57452         * gnulib-tool (func_relativize, func_relconcat): New functions.
57453         Give an error if --local-dir is given with --update.
57454         Remove trailing slashes from $local_gnulib_dir.
57455         (func_import): Store the relativized $local_gnulib_dir in
57456         gnulib-cache.m4, and read it from there if not specified explicitly.
57457
57458 2006-08-28  Bruno Haible  <bruno@clisp.org>
57459
57460         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57461         is the current directory. Respect also $local_gnulib_dir.
57462
57463 2006-08-28  Bruno Haible  <bruno@clisp.org>
57464             Simon Josefsson  <jas@extundo.com>
57465
57466         BeOS portability.
57467         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57468
57469 2006-08-27  Jim Meyering  <jim@meyering.net>
57470
57471         * doc/visibility.texi: Remove duplicate word: "pointer".
57472
57473 2006-08-26  Bruno Haible  <bruno@clisp.org>
57474
57475         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57476         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57477         (Makefile.am): Create inttypes.h from inttypes_.h.
57478         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57479
57480         * modules/imaxabs: New file.
57481
57482         * modules/imaxdiv: New file.
57483
57484 2006-08-26  Bruno Haible  <bruno@clisp.org>
57485
57486         * m4/inttypes.m4: New file.
57487         * m4/_inttypes_h.m4: Remove file.
57488         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57489         PRI_MACROS_BROKEN.
57490         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57491
57492         * m4/imaxabs.m4: New file.
57493
57494         * m4/imaxdiv.m4: New file.
57495
57496 2006-08-26  Bruno Haible  <bruno@clisp.org>
57497
57498         * lib/inttypes_.h: New file.
57499         * lib/inttypes.h: Remove file.
57500         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57501
57502         * lib/imaxabs.c: New file.
57503
57504         * lib/imaxdiv.c: New file.
57505
57506 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57507
57508         New config-h module, so that "make" output needn't be cluttered
57509         by -DHAVE_CONFIG_H.
57510         * MODULES.html.sh (Support for building libraries and executables):
57511         Add config-h.
57512         * modules/config-h: New file.
57513         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57514         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57515         the config-h module is used.
57516
57517         New configmake module, so that "make" output needn't be cluttered
57518         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57519         * MODULES.html.sh (Support for building libraries and executables):
57520         Add configmake.
57521         * modules/configmake: New file.
57522
57523 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57524
57525         * m4/config-h.m4: New file.
57526
57527 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57528
57529         * config/srclist.txt: Add elisp-comp.
57530
57531 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57532
57533         * MODULES.html.sh (Support for building libraries and executables):
57534         Add elisp-comp.
57535         * build-aux/elisp-comp: New file.
57536         * modules/elisp-comp: New file.
57537
57538 2006-08-24  Bruno Haible  <bruno@clisp.org>
57539
57540         * gnulib-tool (func_create_testdir): Use non-default values of
57541         sourcebase and m4base.
57542
57543 2006-08-24  Bruno Haible  <bruno@clisp.org>
57544
57545         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57546         HTML structure.
57547
57548 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57549
57550         * modules/openat (Depends-on): Add lchown.
57551
57552 2006-08-23  Bruno Haible  <bruno@clisp.org>
57553
57554         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57555         of gl_LOCK_EARLY instead of gl_LOCK.
57556
57557 2006-08-23  Bruno Haible  <bruno@clisp.org>
57558
57559         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57560         on OSF/1 to no.
57561         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57562
57563 2006-08-23  Bruno Haible  <bruno@clisp.org>
57564
57565         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57566         as unusable.
57567
57568         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57569         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57570         (gl_LOCK): New macro.
57571
57572 2006-08-22  Simon Josefsson  <jas@extundo.com>
57573
57574         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57575         to md5 module.
57576
57577 2006-08-22  Simon Josefsson  <jas@extundo.com>
57578
57579         * MODULES.html.sh: Add "Support for maintaining and release
57580         projects".
57581
57582         * build-aux/gnupload: New file, from coreutils.
57583
57584 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57585
57586         Avoid the need for AC_LIBSOURCES in m4 macros.
57587         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57588         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57589         * modules/check-version (EXTRA_DIST): Add check-version.h.
57590         * modules/crc (EXTRA_DIST): Add crc.h.
57591         * modules/des (EXTRA_DIST): Add des.h.
57592         * modules/gc (EXTRA_DIST): Add gc.h.
57593         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57594         * modules/getline (EXTRA_DIST): Add getline.h.
57595         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
57596         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
57597         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
57598         * modules/md2 (EXTRA_DIST): Add md2.h.
57599         * modules/md4 (EXTRA_DIST): Add md4.h.
57600         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
57601         * modules/read-file (EXTRA_DIST): Add read-file.h.
57602         * modules/readline (EXTRA_DIST): Add readline.h.
57603         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
57604         rijndael-api-fst.h.
57605
57606 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57607
57608         * m4/rijndael.m4 (gl_ARCFOUR):
57609         * m4/arctwo.m4 (gl_ARCTWO):
57610         * m4/check-version.m4 (gl_CHECK_VERSION):
57611         * m4/crc.m4 (gl_CRC):
57612         * m4/des.m4 (gl_DES):
57613         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
57614         * m4/gc.m4 (gl_GC):
57615         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
57616         * m4/getline.m4 (gl_FUNC_GETLINE):
57617         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
57618         * m4/hmac-md5.m4 (gl_HMAC_MD5):
57619         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
57620         * m4/md2.m4 (gl_MD2):
57621         * m4/md4.m4 (gl_MD4):
57622         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
57623         * m4/read-file.m4 (gl_FUNC_READ_FILE):
57624         * m4/readline.m4 (gl_FUNC_READLINE):
57625         * m4/rijndael.m4 (gl_RIJNDAEL):
57626         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57627         to get the necessary .h files and whatnot.
57628
57629 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57630
57631         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
57632         gnulib rather than the other way around.
57633         * config/srclistvars.sh (COREUTILS): Remove.
57634
57635 2006-08-22  Jim Meyering  <jim@meyering.net>
57636
57637         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
57638
57639         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
57640
57641 2006-08-22  Eric Blake  <ebb9@byu.net>
57642
57643         * modules/regexprops-generic: New file.
57644         * MODULES.html.sh (Support for building documentation): List it.
57645
57646 2006-08-22  Eric Blake  <ebb9@byu.net>
57647
57648         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
57649         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57650         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
57651         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57652
57653 2006-08-22  Bruno Haible  <bruno@clisp.org>
57654
57655         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
57656         and lib_LTLIBRARIES like the other lib_* variables.
57657
57658 2006-08-22  Bruno Haible  <bruno@clisp.org>
57659
57660         * build-aux/x-to-1.in: New file, from GNU gettext.
57661
57662 2006-08-22  Bruno Haible  <bruno@clisp.org>
57663
57664         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
57665         <utmpx.h> exists.
57666
57667 2006-08-22  Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
57670         <utmpx.h> exists.
57671
57672 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57673
57674         BeOS portability.
57675         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
57676         exist.
57677         Problem reported by Bruno Haible.
57678
57679 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57680
57681         Avoid the need for AC_LIBSOURCES in m4 macros.
57682         * modules/acl (EXTRA_DIST): Add acl.h.
57683         * modules/argmatch (Files): Add m4/argmatch.m4.
57684         (configure.ac): Add gl_ARGMATCH.
57685         (EXTRA_DIST): Renamed from lib_SOURCES, for
57686         consistency with the other modules.  Remove argmatch.c.
57687         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
57688         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
57689         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
57690         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
57691         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
57692         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
57693         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
57694         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
57695         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
57696         * modules/closeout (EXTRA_DIST): Add closeout.h.
57697         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
57698         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
57699         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
57700         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
57701         dirname.h; remove basename.c and stripslash.c.
57702         * modules/exclude (EXTRA_DIST): Add exclude.h.
57703         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
57704         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
57705         * modules/file-type (EXTRA_DIST): Add file-type.h.
57706         * modules/filemode (EXTRA_DIST): Add filemode.h.
57707         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
57708         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57709         * modules/fpending (EXTRA_DIST): Add __fpending.h.
57710         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
57711         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
57712         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
57713         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
57714         * modules/getdate (EXTRA_DIST): Add getdate.c.
57715         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
57716         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
57717         * modules/getpass (EXTRA_DIST): Add getpass.h.
57718         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
57719         * modules/group-member (EXTRA_DIST): Add group-member.h.
57720         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
57721         * modules/hash (EXTRA_DIST): Add hash.h.
57722         * modules/human (EXTRA_DIST): Add human.h.
57723         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
57724         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
57725         * modules/lchown (EXTRA_DIST): Add lchown.h.
57726         * modules/long-options (EXTRA_DIST): Add long-options.h.
57727         * modules/lstat (EXTRA_DIST): Add lstat.h.
57728         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
57729         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
57730         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
57731         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
57732         * modules/memxor (EXTRA_DIST): Add memxor.h.
57733         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
57734         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
57735         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
57736         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
57737         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
57738         * modules/physmem (EXTRA_DIST): Add physmem.h.
57739         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
57740         * modules/posixver (EXTRA_DIST): Add posixver.h.
57741         * modules/quote (EXTRA_DIST): Add quote.h.
57742         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
57743         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
57744         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
57745         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
57746         regex_internal.h regexec.c.
57747         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
57748         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
57749         * modules/same (EXTRA_DIST): Add same.h.
57750         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
57751         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
57752         * modules/savedir (EXTRA_DIST): Add savedir.h.
57753         * modules/sha1 (EXTRA_DIST): Add sha1.h.
57754         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
57755         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
57756         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
57757         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
57758         * modules/strdup (EXTRA_DIST): Add strdup.h.
57759         * modules/strftime (EXTRA_DIST): Add strftime.h.
57760         * modules/strndup (EXTRA_DIST): Add strndup.h.
57761         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
57762         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
57763         * modules/time_r (EXTRA_DIST): Add time_r.h.
57764         * modules/timespec (EXTRA_DIST): Add timespec.h.
57765         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
57766         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
57767         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
57768         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
57769         * modules/userspec (EXTRA_DIST): Add userspec.h.
57770         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
57771         * modules/utimens (EXTRA_DIST): Add utimens.h.
57772         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
57773         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
57774         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
57775         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
57776         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
57777         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
57778         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
57779         * modules/yesno (EXTRA_DIST): Add yesno.h.
57780
57781 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
57782
57783         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
57784
57785         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
57786         * m4/dev-ino.m4, same-inode.m4: Remove.
57787
57788         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
57789         * m4/acl.m4 (AC_FUNC_ACL):
57790         * m4/backupfile.m4 (gl_BACKUPFILE):
57791         * m4/c-strtod.m4 (gl_C99_STRTOLD):
57792         * m4/canon-host.m4 (gl_CANON_HOST):
57793         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
57795         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
57796         * m4/cloexec.m4 (gl_CLOEXEC):
57797         * m4/close-stream.m4 (gl_CLOSE_STREAM):
57798         * m4/closeout.m4 (gl_CLOSEOUT):
57799         * m4/dirfd.m4 (gl_FUNC_DIRFD):
57800         * m4/dirname.m4 (gl_DIRNAME):
57801         * m4/exclude.m4 (gl_EXCLUDE):
57802         * m4/exitfail.m4 (gl_EXITFAIL):
57803         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
57804         * m4/file-type.m4 (gl_FILE_TYPE):
57805         * m4/filemode.m4 (gl_FILEMODE):
57806         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
57807         * m4/fpending.m4 (gl_FUNC_FPENDING):
57808         * m4/fprintftime.m4 (gl_FPRINTFTIME):
57809         * m4/fts.m4 (gl_FUNC_FTS):
57810         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
57811         * m4/getdate.m4 (gl_GETDATE):
57812         * m4/gethrxtime.m4 (gl_GETHRXTIME):
57813         * m4/getpagesize.m4 (gl_GETPAGESIZE):
57814         * m4/getpass.m4 (gl_FUNC_GETPASS):
57815         * m4/gettime.m4 (gl_GETTIME):
57816         * m4/getugroups.m4 (gl_GETUGROUPS):
57817         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
57818         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
57819         * m4/hard-locale.m4 (gl_HARD_LOCALE):
57820         * m4/hash.m4 (gl_HASH):
57821         * m4/idcache.m4 (gl_IDCACHE):
57822         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
57823         * m4/lchown.m4 (gl_FUNC_LCHOWN):
57824         * m4/long-options.m4 (gl_LONG_OPTIONS):
57825         * m4/lstat.m4 (gl_FUNC_LSTAT):
57826         * m4/md5.m4 (gl_MD5):
57827         * m4/memcasecmp.m4 (gl_MEMCASECMP):
57828         * m4/memcoll.m4 (gl_MEMCOLL):
57829         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
57830         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
57831         * m4/memxor.m4 (gl_MEMXOR):
57832         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
57833         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
57834         * m4/modechange.m4 (gl_MODECHANGE):
57835         * m4/mountlist.m4 (gl_MOUNTLIST):
57836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57837         * m4/openat.m4 (gl_FUNC_OPENAT):
57838         * m4/pathmax.m4 (gl_PATHMAX):
57839         * m4/physmem.m4 (gl_PHYSMEM):
57840         * m4/posixtm.m4 (gl_POSIXTM):
57841         * m4/posixver.m4 (gl_POSIXVER):
57842         * m4/quote.m4 (gl_QUOTE):
57843         * m4/quotearg.m4 (gl_QUOTEARG):
57844         * m4/readtokens.m4 (gl_READTOKENS):
57845         * m4/readutmp.m4 (gl_READUTMP):
57846         * m4/regex.m4 (gl_REGEX):
57847         * m4/safe-read.m4 (gl_SAFE_READ):
57848         * m4/safe-write.m4 (gl_SAFE_WRITE):
57849         * m4/same.m4 (gl_SAME):
57850         * m4/save-cwd.m4 (gl_SAVE_CWD):
57851         * m4/savedir.m4 (gl_SAVEDIR):
57852         * m4/settime.m4 (gl_SETTIME):
57853         * m4/sha1.m4 (gl_SHA1):
57854         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
57855         * m4/stat-macros.m4 (gl_STAT_MACROS):
57856         * m4/stat-time.m4 (gl_STAT_TIME):
57857         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
57858         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
57859         * m4/strdup.m4 (gl_FUNC_STRDUP):
57860         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
57861         * m4/strndup.m4 (gl_FUNC_STRNDUP):
57862         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
57863         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
57864         * m4/time_r.m4 (gl_TIME_R):
57865         * m4/timespec.m4 (gl_TIMESPEC):
57866         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
57867         * m4/unlinkdir.m4 (gl_UNLINKDIR):
57868         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
57869         * m4/userspec.m4 (gl_USERSPEC):
57870         * m4/utimecmp.m4 (gl_UTIMECMP):
57871         * m4/utimens.m4 (gl_UTIMENS):
57872         * m4/xalloc.m4 (gl_XALLOC):
57873         * m4/xgetcwd.m4 (gl_XGETCWD):
57874         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
57875         * m4/xreadlink.m4 (gl_XREADLINK):
57876         * m4/xstrtod.m4 (gl_XSTRTOD):
57877         * m4/yesno.m4 (gl_YESNO):
57878         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57879         to get the necessary .h files and whatnot.
57880
57881 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
57882             Bruno Haible  <bruno@clisp.org>
57883
57884         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
57885         /bin/sh understanding of '!' conditional negation.
57886
57887 2006-08-21  Jim Meyering  <jim@meyering.net>
57888
57889         * modules/openat (Depends-on): Really alphabetize.
57890
57891         * modules/acl (Depends-on): Add error and quote.
57892
57893         * check-module (find_included_lib_files): Add at-func.c to the
57894         ok-to-include-more-than-once white list.
57895
57896         * modules/openat (Depends-on): Add lstat.  Alphabetize.
57897
57898 2006-08-21  Bruno Haible  <bruno@clisp.org>
57899
57900         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57901         Emit a pkgdata_DATA variable only if some snippets add contents to it.
57902         Reported by Martin Lambers <marlam@marlam.de>.
57903
57904 2006-08-21  Bruno Haible  <bruno@clisp.org>
57905
57906         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
57907         specify an installation location, don't emit a noinst_LIBRARIES or
57908         noinst_LTLIBRARIES assignment.
57909
57910 2006-08-21  Bruno Haible  <bruno@clisp.org>
57911
57912         BeOS portability.
57913         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
57914         BeOS has mbrtowc() but no <wctype.h>.
57915
57916 2006-08-21  Bruno Haible  <bruno@clisp.org>
57917
57918         BeOS portability.
57919         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
57920         exist.
57921
57922 2006-08-21  Bruno Haible  <bruno@clisp.org>
57923
57924         BeOS portability.
57925         * lib/mbchar.h: Include <wctype.h> only if it exists.
57926
57927 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57928
57929         Remove files that are no longer needed by their respective modules.
57930         * m4/obstack.m4: Remove.
57931         * m4/strerror_r.m4: Remove.
57932         * m4/uint32_t.m4: Remove.
57933         * m4/uintptr_t.m4: Remove.
57934         * m4/ullong_max.m4: Remove.
57935         * m4/xstrtoimax.m4: Remove.
57936         * m4/xstrtoumax.m4: Remove.
57937
57938         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
57939         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
57940         dependencies now capture this.
57941
57942         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
57943         Do not use AC_LIBSOURCES, since gnulib modules now do this.
57944         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
57945         * m4/human.m4 (gl_HUMAN): Likewise.
57946         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
57947         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
57948
57949         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
57950
57951         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
57952         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
57953         stdint.
57954         * m4/human.m4 (gl_HUMAN): Likewise.
57955         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
57956         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
57957         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57958         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57959         * m4/xstrtol (gl_XSTRTOL): Likewise.
57960
57961         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
57962         AC_TYPE_LONG_LONG_INT.
57963         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
57964         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
57965         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
57966         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
57967
57968         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
57969         on stdbool.
57970
57971         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
57972         (gl_PREREQ_XSTRTOUL): Remove.
57973
57974         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
57975
57976         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
57977         mode.
57978
57979 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57980
57981         Add and change modules to make it easier for coreutils to use
57982         gnulib-tool.
57983         * modules/backupfile (Files): Remove m4/d-ino.m4.
57984         (Depends-on): Add d-ino.
57985         * modules/cycle-check (Depends-on): Add stdint.
57986         (lib_SOURCES): Add cycle-check.h.
57987         * modules/d-ino: New module.
57988         * modules/d-type: New module.
57989         * modules/error (Files): Remove m4/strerror_r.m4.
57990         * modules/filemode (Files): Add m4/st_dm_mode.m4.
57991         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57992         m4/inttypes_h.m4, m4/uintmax_t.m4.
57993         (Depends-on): Add stdint.
57994         (lib_SOURCES): Add fsusage.h.
57995         * modules/getcwd (Files): Remove d-ino.m4.
57996         (Depends-on): Add d-ino.
57997         * modules/getndelim2 (Depends-on): Add stdint.
57998         * modules/glob (Files): Remove m4/d-type.m4.
57999         (Depends-on): Add d-type.
58000         * modules/host-os: New module.
58001         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
58002         m4/inttypes_h.m4, m4/uintmax_t.m4.
58003         * Depends-on: Add stdint.
58004         (lib_SOURCES): Add human.h.
58005         * modules/inttostr (Files): Remove m4/intmax_t.m4,
58006         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
58007         m4/uintmax_t.m4, m4/ulonglong.m4.
58008         (Depends-on): Add stdint.
58009         (EXTRA_DIST): Add inttostr.h.
58010         * modules/lchmod: New module.
58011         * modules/link-follow: New module.
58012         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
58013         (Depends-on): Add lchmod.
58014         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
58015         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
58016         (Depends-on): Add stdint.
58017         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
58018         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
58019         (Depends-on): Add stdint.
58020         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
58021         * modules/perl: New module.
58022         * modules/regex (Depends-on): Add stdint.
58023         * modules/rmdir-errno: New module.
58024         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58025         m4/intmax_t.m4.
58026         (Depends-on): Add stdint.
58027         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58028         m4/uintmax_t.m4.
58029         (Depends-on): Add stdint.
58030         * modules/unlink-busy: New module.
58031         * modules/utimecmp (Depends-on): Add stdint.
58032         * modules/uptime: New module.
58033         * modules/winsz-ioctl: New module.
58034         * modules/winsz-termios: New module.
58035         * modules/xnanosleep (Depends-on): Add nanosleep.
58036         * modules/ullong_max: Remove.
58037         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
58038         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
58039         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
58040         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
58041         (Depends-on): Add inttypes.
58042         (lib_SOURCES): Add xstrtol.h.
58043         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
58044         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
58045         * MODULES.html.sh: Move 'assert' into the assert section.
58046         Move 'dummy' into the linking section.
58047         Remove ullong_max.
58048         Add section for compatibility checks for POSIX:2001 functions,
58049         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
58050         winsz-ioctl, and winsz-termios into it.
58051         Add lchmod.
58052         Add top-level Misc section and put host-os, perl, and uptime
58053         into it.
58054
58055 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58056
58057         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
58058         now assume the stdint module.  Do not include inttypes.h.
58059         * lib/fsusage.h: Likewise.
58060         * lib/getndelim2.c: Likewise.
58061         * lib/human.h: Likewise.
58062         * lib/inttostr.h: Likewise.
58063         * lib/obstack.c: Likewise.
58064         * lib/regex_internal.h: Likewise.
58065         * lib/tempname.c: Likewise.
58066         * lib/utimecmp.c: Likewise.
58067         * lib/xstrtol.h: Likewise.
58068
58069         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
58070
58071         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
58072         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
58073         * lib/xtime.h: Likewise.
58074
58075 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58076
58077         * modules/openat (Files): Add lib/fchmodat.c.
58078         Fixes problem reported by Jay Youngman.
58079
58080 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58081
58082         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
58083         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
58084
58085 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
58086             Bruno Haible  <bruno@clisp.org>
58087
58088         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
58089         and is a script that invokes bison. Tighten the code. Add comments.
58090
58091 2006-08-18  Jim Meyering  <jim@meyering.net>
58092
58093         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
58094         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
58095         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
58096         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
58097
58098 2006-08-18  Bruno Haible  <bruno@clisp.org>
58099
58100         * modules/bison-i18n: New file.
58101         * MODULES.html.sh (Internationalization functions): Add it.
58102
58103 2006-08-18  Bruno Haible  <bruno@clisp.org>
58104
58105         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
58106         sys/statvfs.h. When getmntinfo was found, check its declaration and
58107         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
58108
58109 2006-08-18  Bruno Haible  <bruno@clisp.org>
58110
58111         * m4/bison-i18n.m4: New file, from bison.
58112
58113 2006-08-18  Bruno Haible  <bruno@clisp.org>
58114
58115         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
58116         (ME_DUMMY): Treat "kernfs" as a dummy.
58117         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
58118
58119 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58120
58121         Update from coreutils.
58122
58123         2006-08-15  Jim Meyering  <jim@meyering.net>
58124
58125         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
58126
58127         2006-01-17  Jim Meyering  <jim@meyering.net>
58128
58129         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
58130
58131         2006-01-11  Jim Meyering  <jim@meyering.net>
58132
58133         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
58134         Check for the lchmod function.
58135
58136 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58137
58138         Update from coreutils.
58139
58140         * lib/__fpending.h: Add copyright notice.
58141         * lib/fprintftime.h: Likewise.
58142         * lib/savedir.c: Use (C) in copyright notice.
58143         * lib/savedir.h: Likewise.
58144
58145         2006-08-15  Jim Meyering  <jim@meyering.net>
58146
58147         * lib/at-func.c: New file, with the logic of all emulated at-functions.
58148         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
58149         in support of the EXPECTED_ERRNO macro.
58150         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
58151         definitions.  Instead, define the appropriate symbols and include
58152         "at-func.c".
58153         * lib/mkdirat.c (mkdirat): Likewise.
58154         * lib/fchmodat.c (fchmodat): Likewise.
58155         (ENOSYS): Remove definition.
58156         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58157         it.  Don't include "unistd--.h" -- it wasn't ever used.
58158
58159         2006-01-17  Jim Meyering  <jim@meyering.net>
58160
58161         Rewrite fts.c not to change the current working directory,
58162         by using openat, fstatat, fdopendir, etc..
58163
58164         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58165         (HAVE_OPENAT_SUPPORT): Define.
58166         [_LIBC] (fchdir): Don't undef or define; no longer used.
58167         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58168         Now, this `function' always succeeds, and consumes its file descriptor
58169         parameter -- so callers must not close such FDs.  Update callers.
58170         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58171         (diropen): Add parameter, SP.  Adjust all callers.
58172         Implement using diropen_fd, rather than open.
58173         (fts_open): Initialize new member, fts_cwd_fd.
58174         Remove fts_rft-setting code.
58175         (fts_close): Close fts_cwd_fd, if necessary.
58176         (__opendir2): Define in terms of opendir or opendirat,
58177         depending on whether the FST_NOCHDIR flag is set.
58178         (fts_build): Since fts_safe_changedir consumes its FD, and since
58179         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58180         and close the dup'd file descriptor upon failure.
58181         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58182         (fts_safe_changedir): Tweak semantics to reflect that this function
58183         now calls cwd_advance_fd and hence consumes its FD argument.
58184         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58185         [struct FTS] (fts_rft): Remove now-unused member.
58186         [struct FTS] (fts_cycle.state): Improve comment.
58187
58188         * lib/openat.c (openat_needs_fchdir): New function.
58189         * lib/openat.h (openat_needs_fchdir): Declare it.
58190
58191 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58192
58193         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58194         Problem and fix reported by Pádraig Brady in
58195         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58196
58197 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58198
58199         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58200
58201 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58202
58203         * lib/memcoll.c (memcoll): Optimize for the common case where the
58204         arguments are bytewise equal.
58205
58206 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58207
58208         * doc/regexprops-generic.texi: Add a copyright notice.
58209
58210 2006-08-15  Bruno Haible  <bruno@clisp.org>
58211
58212         * modules/tmpdir (License): Change to LGPL.
58213
58214 2006-08-15  Bruno Haible  <bruno@clisp.org>
58215
58216         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58217         module.
58218
58219 2006-08-14  Simon Josefsson  <jas@extundo.com>
58220
58221         * config/srclist.txt: Add gnupload.
58222
58223 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58224
58225         Change copyright notice from LGPL 2 to GPL 2, since that's the
58226         standard form used in the gnulib repository.
58227         * tests/test-lock.c: Likewise.
58228         * tests/test-stdint.c: Likewise.
58229         * tests/test-tls.c: Likewise.
58230
58231         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58232         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58233         Add copyright notice.
58234
58235         * check-module: Add copyright notice.  Output a copyright
58236         notice if "--version" is specified.
58237         * modules/COPYING: New file.
58238         * tests/test-getaddrinfo.c: Add copyright notice.
58239         * tests/test-verify.c: Likewise.
58240
58241 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58242
58243         Change copyright notice from LGPL 2 to GPL 2, since that's the
58244         standard form used in the gnulib repository.
58245         * lib/lock.c: LGPL -> GPL.
58246         * lib/lock.h: Likewise.
58247         * lib/strnlen1.c: Likewise.
58248         * lib/strnlen1.h: Likewise.
58249         * lib/tls.c: Likewise.
58250         * lib/tls.h: Likewise.
58251         * lib/tmpdir.c: Likewise.
58252
58253         * lib/TODO: Remove; this belongs only in coreutils.
58254
58255 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58256
58257         Add copyright notices to long-enough files that lack them, since
58258         otherwise the files aren't clearly free.  Use the same notice that
58259         getdate.texi already uses.
58260         * doc/alloca-opt.texi: Add copyright notice.
58261         * doc/alloca.texi: Likewise.
58262         * doc/ctime.texi: Likewise.
58263         * doc/functions.texi: Likewise.
58264         * doc/gcd.texi: Likewise.
58265         * doc/gnulib-tool.texi: Likewise.
58266         * doc/inet_ntoa.texi: Likewise.
58267         * doc/visibility.texi: Likewise.
58268
58269         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58270         * doc/quote.texi: Add copyright notice.
58271
58272         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58273         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58274         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58275         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58276         is now obsolete, and give a pointer to the Sun list.
58277         Add copyright notice.
58278
58279 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58280
58281         * config/srclistvars.sh: Add copyright notice.
58282
58283 2006-08-14  Eric Blake  <ebb9@byu.net>
58284
58285         Import the following change from libc:
58286
58287         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58288
58289         Upstream bug 2997.
58290         * lib/misc/error.c: Add space between program name and message if file
58291         name is missing.
58292
58293 2006-08-12  Karl Berry  <karl@gnu.org>
58294
58295         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58296         remove, these originate in gnulib now.
58297
58298 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58299
58300         * doc/Makefile (standards.info standards.html standards.dvi):
58301         Also depend on make-stds.texi.
58302
58303 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58304
58305         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58306         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58307
58308         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58309         in wchar_t.  Problem reported by Eric Blake.
58310
58311         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58312         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58313         Also, help the compiler to keep LEN in a register.
58314
58315 2006-08-11  Eric Blake  <ebb9@byu.net>
58316
58317         * users.txt: Sort.  Add tar.
58318
58319 2006-08-11  Bruno Haible  <bruno@clisp.org>
58320
58321         * users.txt: New file.
58322
58323 2006-08-11  Bruno Haible  <bruno@clisp.org>
58324
58325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58326         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58327
58328 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58329
58330         * modules/snprintf (Depends-on): Remove minmax.
58331         (Maintainer): Add self and Bruno.
58332
58333 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58334
58335         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58336         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58337         (EOVERFLOW): Define if the system does not.
58338         Do not include "minmax.h"; it wasn't used.
58339         (snprintf): Don't assume size_t promotes to an unsigned type.
58340         Fix bug when generated string was too long for the buffer: the
58341         buffer's contents are supposed to be the initial prefix of the
58342         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58343         exceeds INT_MAX; do the check ourselves.
58344
58345         Import the following changes from libc:
58346
58347         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58348
58349         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58350         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58351         set wc to the byte which couldn't be converted.
58352         (re_string_reconstruct): Don't clear valid_raw_len before calling
58353         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58354         tip_context using re_string_context_at.
58355
58356         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58357
58358         * lib/posix/regex.h: g++ still cannot handled [restrict].
58359
58360         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58361
58362         * lib/posix/regex.h: Remove special handling for VMS.
58363
58364 2006-08-10  Jim Meyering  <jim@meyering.net>
58365
58366         * modules/same-inode: New module.
58367         * modules/dev-ino: New module.
58368         * modules/cycle-check: Depend on these modules, rather than simply
58369         including their .h files.
58370         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58371         required via m4/cycle-check.m4.
58372         * modules/same: Depend on new same-inode module, rather than
58373         including same-inode.h.
58374         * modules/chdir-safer: New file.
58375
58376         * modules/chown (Depends-on): Add stat-macros.
58377
58378 2006-08-10  Jim Meyering  <jim@meyering.net>
58379
58380         * m4/cycle-check.m4: New file.
58381         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58382         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58383
58384 2006-08-10  Eric Blake  <ebb9@byu.net>
58385
58386         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58387         in from original proposal.
58388
58389 2006-08-10  Eric Blake  <ebb9@byu.net>
58390         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58391
58392         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58393         namespace.
58394
58395 2006-08-10  Bruno Haible  <bruno@clisp.org>
58396
58397         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58398         as well.
58399
58400 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58401
58402         Sync from coreutils.
58403
58404         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58405
58406         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58407         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58408
58409 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58410
58411         * modules/restrict: Remove; no longer needed now that we assume
58412         Autoconf 2.59 or later.
58413         * MODULES.html.sh: Remove 'restrict'.
58414         * modules/argp (Depends-on): Remove 'restrict'.
58415         * modules/base64 (Depends-on): Likewise.
58416         * modules/gc (Depends-on): Likewise.
58417         * modules/getaddrinfo (Depends-on): Likewise.
58418         * modules/glob (Depends-on): Likewise.
58419         * modules/inet_ntop (Depends-on): Likewise.
58420         * modules/inet_pton (Depends-on): Likewise.
58421         * modules/memxor (Depends-on): Likewise.
58422         * modules/regex (Depends-on): Likewise.
58423         * modules/strtok_r (Depends-on): Likewise.
58424         * modules/time_r (Depends-on): Likewise.
58425
58426 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58427
58428         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58429         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58430         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58431         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58432         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58433         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58434         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58435         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58436
58437         Merge from coreutils.
58438         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58439         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58440         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58441         * m4/time_r.m4 (gl_TIME_R): Likewise.
58442
58443 2006-08-09  Karl Berry  <karl@gnu.org>
58444
58445         * config/srclist.txt: no more gettext-tools, per Bruno.
58446
58447 2006-08-08  Eric Blake  <ebb9@byu.net>
58448
58449         * modules/verror: New module.
58450         * MODULES.html.sh: Document it.
58451
58452 2006-08-08  Eric Blake  <ebb9@byu.net>
58453
58454         * lib/verror.h, lib/verror.c: New files.
58455
58456 2006-08-08  Eric Blake  <ebb9@byu.net>
58457
58458         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58459         verror_at_line output complies with GNU Coding Standards even when
58460         file is NULL.
58461
58462 2006-08-07  Bruno Haible  <bruno@clisp.org>
58463
58464         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58465         versions of AIX.
58466         Reported by Ralf Wildenhues.
58467
58468 2006-08-07  Bruno Haible  <bruno@clisp.org>
58469
58470         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58471         in an AC_DEFUN. Needed so that the autoconf snippets can use
58472         AC_REQUIRE.
58473
58474 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58475
58476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58477         Initialize pkgdata_DATA.
58478         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58479         overriding it.
58480
58481 2006-08-06  Eric Blake  <ebb9@byu.net>
58482
58483         * lib/error.h: Fold in some upstream changes from glibc.
58484         * lib/error.c: Likewise.
58485
58486 2006-08-04  Bruno Haible  <bruno@clisp.org>
58487
58488         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58489         Make the mostlyclean-local rule depend on mostlyclean-generic.
58490         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58491
58492 2006-07-31  Bruno Haible  <bruno@clisp.org>
58493
58494         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58495         <stdlib.h>, <string.h>.
58496
58497 2006-07-30  Bruno Haible  <bruno@clisp.org>
58498
58499         * modules/readlink (License): Change to LGPL.
58500
58501 2006-07-30  Bruno Haible  <bruno@clisp.org>
58502
58503         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58504         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58505         set PKGDATADIR to point to it.
58506
58507 2006-07-30  Bruno Haible  <bruno@clisp.org>
58508
58509         * modules/csharpexec (configure.ac): Comment out macro invocation.
58510         * modules/javaexec (configure.ac): Likewise.
58511         * modules/javacomp-script (configure.ac): Likewise.
58512
58513         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58514
58515 2006-07-30  Bruno Haible  <bruno@clisp.org>
58516
58517         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58518         linked-list.
58519
58520 2006-07-30  Bruno Haible  <bruno@clisp.org>
58521
58522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58523
58524 2006-07-30  Bruno Haible  <bruno@clisp.org>
58525
58526         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58527         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58528         get removed.
58529
58530 2006-07-29  Bruno Haible  <bruno@clisp.org>
58531
58532         Make it possible for gnulib-tool to work with locally modified or
58533         augmented gnulib repositories.
58534         * gnulib-tool (func_usage): Document --local-dir option.
58535         (local_gnulib_dir): New variable.
58536         Handle --local-dir option.
58537         (func_lookup_file): New function.
58538         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58539         (func_get_description, func_get_filelist, func_get_description,
58540         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58541         func_get_automake_snippet, func_get_include_directive,
58542         func_get_license, func_get_maintainer): Use func_lookup_file.
58543         (func_import, func_create_testdir): Use func_lookup_file.
58544
58545 2006-07-29  Bruno Haible  <bruno@clisp.org>
58546
58547         * modules/setenv (Depends-on): Add unistd.
58548
58549 2006-07-29  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58552
58553 2006-07-29  Bruno Haible  <bruno@clisp.org>
58554
58555         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58556
58557 2006-07-29  Bruno Haible  <bruno@clisp.org>
58558
58559         * gnulib-tool (import, update): If there is no Makefile.am, look at
58560         aclocal.m4, instead of bailing out.
58561
58562 2006-07-29  Bruno Haible  <bruno@clisp.org>
58563
58564         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58565         Categorize the options by when they are useful.
58566
58567 2006-07-29  Bruno Haible  <bruno@clisp.org>
58568
58569         * gnulib-tool (func_usage): Document option --no-libtool.
58570         Handle option --no-libtool.
58571         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58572         for changed semantics of $libtool variable.
58573         (func_import): Likewise. If libtool is not used, show this through
58574         an option --no-libtool.
58575         (func_create_testdir): Update.
58576
58577 2006-07-29  Bruno Haible  <bruno@clisp.org>
58578
58579         * gnulib-tool (func_import): Extend error message about missing
58580         --doc-base.
58581
58582 2006-07-29  Bruno Haible  <bruno@clisp.org>
58583
58584         * gnulib-tool (func_import): Don't create the $docbase directory if
58585         there is no file to store there.
58586
58587 2006-07-29  Bruno Haible  <bruno@clisp.org>
58588
58589         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58590         relevant, look for configure.ac there, not in the current directory.
58591         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58592
58593 2006-07-29  Bruno Haible  <bruno@clisp.org>
58594
58595         * gnulib-tool (SORT): New variable.
58596         (func_usage): Undocument --assume-autoconf option.
58597         Remove --assume-autoconf option handling.
58598         (autoconf_minversion): Determine from the contents of configure.ac.
58599         (func_import): Remove autoconf_minversion handling.
58600         Suggested by Eric Blake.
58601
58602 2006-07-29  Bruno Haible  <bruno@clisp.org>
58603
58604         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
58605
58606 2006-07-29  Bruno Haible  <bruno@clisp.org>
58607
58608         * config/srclist.txt (*setenv.[ch]): Remove rules.
58609
58610 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58611
58612         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
58613
58614 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58615
58616         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
58617         arpa/inet.h.
58618
58619 2006-07-28  Simon Josefsson  <jas@extundo.com>
58620
58621         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
58622         * modules/inet_pton (Depends-on): Likewise.
58623
58624 2006-07-28  Simon Josefsson  <jas@extundo.com>
58625
58626         * m4/netinet_in_h.m4: New file.
58627
58628 2006-07-28  Simon Josefsson  <jas@extundo.com>
58629
58630         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
58631         #include's.
58632
58633 2006-07-28  Simon Josefsson  <jas@extundo.com>
58634
58635         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
58636         #include's.
58637
58638 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
58639
58640         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
58641         setgid on directories only if they set these bits.
58642         * lib/modechange.h: Remove obsolete comment about masks.
58643
58644 2006-07-28  Eric Blake  <ebb9@byu.net>
58645
58646         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
58647         macro expansion.
58648
58649 2006-07-28  Bruno Haible  <bruno@clisp.org>
58650
58651         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
58652
58653 2006-07-28  Bruno Haible  <bruno@clisp.org>
58654
58655         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
58656
58657 2006-07-28  Bruno Haible  <bruno@clisp.org>
58658
58659         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58660         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58661         Define fallbacks.
58662         Avoids link error on FreeBSD 4.x.
58663         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58664
58665         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
58666         encoding.
58667         * lib/mbswidth.c (iswcntrl): Likewise.
58668
58669 2006-07-27  Bruno Haible  <bruno@clisp.org>
58670
58671         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
58672         test.
58673
58674 2006-07-27  Bruno Haible  <bruno@clisp.org>
58675
58676         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
58677         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
58678         defined.
58679
58680 2006-07-26  Eric Blake  <ebb9@byu.net>
58681
58682         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
58683
58684 2006-07-26  Eric Blake  <ebb9@byu.net>
58685
58686         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
58687         like mingw that lack mkstemp.
58688         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
58689         avoid compilation warning on mingw.
58690
58691 2006-07-26  Bruno Haible  <bruno@clisp.org>
58692
58693         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
58694         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
58695         INT_FAST*_MIN, INTPTR_MIN.
58696
58697 2006-07-25  Bruno Haible  <bruno@clisp.org>
58698
58699         * modules/version-etc (Depends-on): Add stdarg.
58700
58701 2006-07-25  Bruno Haible  <bruno@clisp.org>
58702
58703         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
58704         complex commands.
58705
58706 2006-07-25  Bruno Haible  <bruno@clisp.org>
58707
58708         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
58709         defined in <stdarg.h> or config.h.
58710
58711 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
58714         (gl_STDIO_SAFER): Remove.
58715
58716 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
58717
58718         * MODULES.html.sh (File stream based Input/Output):
58719         Add fopen-safer, tmpfile-safer; remove stdio-safer.
58720         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
58721         * modules/fopen-safer, modules/tmpfile-safer: New files.
58722         * modules/stdio-safer: Remove.
58723
58724 2006-07-24  Bruno Haible  <bruno@clisp.org>
58725
58726         * modules/tmpdir: New file.
58727         * MODULES.html.sh (File system functions): Add it.
58728
58729 2006-07-24  Bruno Haible  <bruno@clisp.org>
58730
58731         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
58732         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
58733
58734 2006-07-24  Bruno Haible  <bruno@clisp.org>
58735
58736         * modules/clean-temp: New file.
58737
58738 2006-07-24  Bruno Haible  <bruno@clisp.org>
58739
58740         * m4/tmpdir.m4: New file, from GNU gettext.
58741
58742 2006-07-24  Bruno Haible  <bruno@clisp.org>
58743
58744         * lib/tmpdir.h: New file, from GNU gettext.
58745         * lib/tmpdir.c: New file, from GNU gettext.
58746
58747 2006-07-24  Bruno Haible  <bruno@clisp.org>
58748
58749         * lib/clean-temp.h: New file, from GNU gettext.
58750         * lib/clean-temp.c: New file, from GNU gettext.
58751
58752 2006-07-23  Eric Blake  <ebb9@byu.net>
58753
58754         * modules/stdio-safer (Files): Add tmpfile-safer.c.
58755         (Depends-on): Add binary-io.
58756
58757 2006-07-23  Eric Blake  <ebb9@byu.net>
58758
58759         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
58760
58761 2006-07-23  Eric Blake  <ebb9@byu.net>
58762
58763         * lib/tmpfile-safer.c: New file.
58764         * lib/stdio-safer.h (fopen_safer): Add prototype.
58765         * lib/stdio--.h (tmpfile): Make safer.
58766
58767 2006-07-23  Bruno Haible  <bruno@clisp.org>
58768
58769         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
58770         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
58771         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
58772         gl_linked_remove_at): Use it.
58773
58774 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58775         and Simon Josefsson <jas@extundo.com>
58776
58777         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
58778
58779         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
58780
58781 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58782
58783         * modules/close-stream: New file.
58784         * modules/closeout (Description): Make it clear that it exits
58785         with a diagnostic on error.
58786         (Depends-on): Add close-stream.  Remove fpending, stdbool.
58787         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
58788
58789 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58790
58791         * m4/close-stream.m4: New file.
58792
58793 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58794
58795         * lib/close-stream.c, lib/close-stream.h: New files.
58796
58797 2006-07-22  Bruno Haible  <bruno@clisp.org>
58798
58799         Merge from GNU gettext 0.15.
58800
58801         2006-05-01  Bruno Haible  <bruno@clisp.org>
58802
58803                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
58804
58805         2006-07-22  Bruno Haible  <bruno@clisp.org>
58806
58807                 * modules/javaversion: New file.
58808                 * MODULES.html.sh (Java): Add javaversion.
58809
58810         2006-03-12  Bruno Haible  <bruno@clisp.org>
58811
58812                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
58813
58814         2005-12-04  Bruno Haible  <bruno@clisp.org>
58815
58816                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
58817                 (untested).
58818
58819         2006-06-21  Bruno Haible  <bruno@clisp.org>
58820
58821                 Avoid warnings from recent versions of mcs.
58822                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
58823                 -o, -L, -r any more. Use options documented since mcs-1.0
58824                 instead. Similarly for -g.
58825
58826         2005-12-04  Bruno Haible  <bruno@clisp.org>
58827
58828                 * build-aux/csharpcomp.sh.in: Suffix for resources is
58829                 .resources, not .resource.
58830
58831         2005-07-09  Bruno Haible  <bruno@clisp.org>
58832
58833                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
58834                 add a .dll suffix.
58835                 Reported by Mark Junker <mjscod@gmx.de>.
58836
58837         2006-07-22  Bruno Haible  <bruno@clisp.org>
58838
58839                 * modules/gettext: Upgrade to gettext-0.15.
58840                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
58841                 m4/visibility.m4.
58842                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
58843
58844 2006-07-22  Bruno Haible  <bruno@clisp.org>
58845
58846         Merge from GNU gettext 0.15.
58847
58848         2006-03-25  Bruno Haible  <bruno@clisp.org>
58849
58850                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
58851
58852         2006-07-21  Bruno Haible  <bruno@clisp.org>
58853
58854                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
58855                 "1.1".
58856
58857         2006-05-09  Bruno Haible  <bruno@clisp.org>
58858
58859                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
58860                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
58861                 for the conftestver execution.
58862
58863         2006-05-01  Bruno Haible  <bruno@clisp.org>
58864
58865                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
58866                 optional target-version argument. Verify that the compiler
58867                 groks source of the specified source-version, or add -source
58868                 option as necessary. Verify that the compiler produces
58869                 bytecode in the specified target-version, or add -target and
58870                 -source options as necessary. Make the result of the test
58871                 available as variable CONF_JAVAC. Also log error output in
58872                 config.log.
58873
58874         2006-03-11  Bruno Haible  <bruno@clisp.org>
58875
58876                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
58877
58878         2006-05-09  Bruno Haible  <bruno@clisp.org>
58879
58880                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
58881                 CLASSPATH_SEPARATOR to a semicolon.
58882
58883         2006-03-12  Bruno Haible  <bruno@clisp.org>
58884
58885                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
58886                 available as variable CONF_JAVA, for subsequent autoconf
58887                 tests. Also log error output in config.log.
58888
58889         2006-07-19  Bruno Haible  <bruno@clisp.org>
58890
58891                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
58892                 that getline works on glibc2 systems. Needed to avoid trouble
58893                 in relocatable.c.
58894                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
58895
58896         2005-12-04  Bruno Haible  <bruno@clisp.org>
58897
58898                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
58899                 launcher (untested).
58900
58901         2005-12-04  Bruno Haible  <bruno@clisp.org>
58902
58903                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
58904
58905         2006-07-22  Bruno Haible  <bruno@clisp.org>
58906
58907                 * gettext.m4: Update from GNU gettext-0.15.
58908                 * nls.m4: Likewise.
58909                 * po.m4: Likewise.
58910                 * inttypes-pri.m4: Likewise.
58911                 * inttypes-h.m4: Renamed from inttypes.m4.
58912                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
58913
58914 2006-07-22  Bruno Haible  <bruno@clisp.org>
58915
58916         Merge from GNU gettext 0.15.
58917
58918         2005-07-05  Bruno Haible  <bruno@clisp.org>
58919
58920                 * printf-args.c (printf_fetchargs): Work around broken
58921                 definition of wint_t on mingw.
58922
58923         2005-02-12  Bruno Haible  <bruno@clisp.org>
58924
58925                 * xallocsa.h: Add extern "C" for C++.
58926
58927         2006-05-17  Bruno Haible  <bruno@clisp.org>
58928
58929                 Cygwin portability.
58930                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
58931
58932         2006-04-30  Bruno Haible  <bruno@clisp.org>
58933
58934                 * progreloc.c: Include <mach-o/dyld.h> if available.
58935                 (find_executable): Use _NSGetExecutablePath when possible.
58936
58937         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58938
58939                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
58940                 function.
58941
58942         2005-12-29  Bruno Haible  <bruno@clisp.org>
58943
58944                 * progreloc.c (set_program_name_and_installdir): Fix
58945                 compilation error.
58946
58947         2005-12-04  Bruno Haible  <bruno@clisp.org>
58948
58949                 Cygwin portability.
58950                 * progreloc.c: Include <windows.h> also on Cygwin.
58951                 (find_executable): Add support for Cygwin.
58952                 (set_program_name_and_installdir): Handle also platforms with
58953                 nonempty EXEEXT.
58954
58955         2006-07-11  Bruno Haible  <bruno@clisp.org>
58956
58957                 * javacomp.c: Fix a comment.
58958                 Reported by Jim Meyering.
58959
58960         2006-04-30  Bruno Haible  <bruno@clisp.org>
58961
58962                 * javacomp.h (compile_java_class): Add source_version,
58963                 target_version arguments.
58964                 * javacomp.c: Rewritten to choose only a compiler that
58965                 respects the specified source_version and target_version.
58966
58967         2006-06-27  Bruno Haible  <bruno@clisp.org>
58968
58969                 Assume correct S_ISDIR macro.
58970                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
58971
58972         2006-07-22  Bruno Haible  <bruno@clisp.org>
58973
58974                 * javaversion.h: New file, from GNU gettext.
58975                 * javaversion.c: New file, from GNU gettext.
58976                 * javaversion.java: New file, from GNU gettext.
58977                 * javaversion.class: New file, from GNU gettext.
58978
58979         2006-05-17  Bruno Haible  <bruno@clisp.org>
58980
58981                 Cygwin portability.
58982                 * javaexec.c (execute_java_class): Test for jview program
58983                 also on Cygwin.
58984
58985         2006-04-09  Bruno Haible  <bruno@clisp.org>
58986
58987                 * fatal-signal.c: Don't include string.h.
58988                 (at_fatal_signal): Use a copying loop instead of memcpy.
58989
58990         2005-12-04  Bruno Haible  <bruno@clisp.org>
58991
58992                 * csharpexec.c: Add support for 'clix' launcher (untested).
58993                 (execute_csharp_using_sscli): New function.
58994                 (execute_csharp_program): Call it.
58995
58996         2006-06-21  Bruno Haible  <bruno@clisp.org>
58997
58998                 Avoid warnings from recent versions of mcs.
58999                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
59000                 -o, -L, -r any more. Use options documented since mcs-1.0
59001                 instead. Similarly for -g.
59002
59003         2005-07-09  Bruno Haible  <bruno@clisp.org>
59004
59005                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
59006                 add a .dll suffix.
59007                 Reported by Mark Junker <mjscod@gmx.de>.
59008
59009         2006-06-17  Bruno Haible  <bruno@clisp.org>
59010
59011                 * config.charset: Update for NetBSD 3.0.
59012
59013         2006-05-17  Bruno Haible  <bruno@clisp.org>
59014
59015                 Cygwin portability.
59016                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
59017
59018         2006-05-16  Bruno Haible  <bruno@clisp.org>
59019
59020                 * localcharset.c [CYGWIN]: Include <windows.h>.
59021                 (get_charset_aliases): For Cygwin, return the same CPxxx
59022                 aliases list as under WIN32.
59023                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
59024                 the environment variables. Fall back to GetACP().
59025
59026         2006-04-05  Bruno Haible  <bruno@clisp.org>
59027
59028                 * config.charset: Update Juan Manuel Guerrero's address.
59029
59030         2005-02-12  Bruno Haible  <bruno@clisp.org>
59031
59032                 * allocsa.h: Add extern "C" for C++.
59033
59034         2005-02-10  Bruno Haible  <bruno@clisp.org>
59035
59036                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
59037                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
59038
59039         2006-07-22  Bruno Haible  <bruno@clisp.org>
59040
59041                 * gettext.h: Update to GNU gettext-0.15.
59042
59043 2006-07-22  Bruno Haible  <bruno@clisp.org>
59044
59045         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
59046         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
59047         lib-prefix.m4, longdouble.m4, ssize_t.m4.
59048
59049 2006-07-21  Eric Blake  <ebb9@byu.net>
59050
59051         * modules/stdlib-safer: New file.
59052         * MODULES.html.sh (File stream based Input/Output): Add
59053         stdlib-safer.
59054
59055 2006-07-21  Eric Blake  <ebb9@byu.net>
59056
59057         * lib/stdlib-safer.h: New file from coreutils, required by
59058         stdlib--.h.
59059
59060 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
59061
59062         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
59063
59064 2006-07-20  Bruno Haible  <bruno@clisp.org>
59065
59066         * gnulib-tool: Recognize new option --assume-autoconf.
59067         (autoconf_minversion): New variable.
59068         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
59069
59070 2006-07-20  Bruno Haible  <bruno@clisp.org>
59071
59072         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
59073
59074 2006-07-19  Derek R. Price  <derek@ximbiot.com>
59075
59076         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
59077         Reindent and repaginate.
59078
59079 2006-07-19  Derek Price  <derek@ximbiot.com>
59080
59081         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
59082         Correct grammar.
59083
59084 2006-07-17  Bruno Haible  <bruno@clisp.org>
59085
59086         * modules/list: New file.
59087         * modules/array-list: New file.
59088         * modules/carray-list, modules/carray-list-tests: New files.
59089         * modules/linked-list, modules/linked-list-tests: New files.
59090         * modules/avltree-list, modules/avltree-list-tests: New files.
59091         * modules/rbtree-list, modules/rbtree-list-tests: New files.
59092         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
59093         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
59094         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
59095         * modules/oset: New file.
59096         * modules/array-oset: New file.
59097         * modules/avltree-oset, modules/avltree-oset-tests: New files.
59098         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
59099         * tests/test-carray_list.c: New file.
59100         * tests/test-linked_list.c: New file.
59101         * tests/test-avltree_list.c: New file.
59102         * tests/test-rbtree_list.c: New file.
59103         * tests/test-linkedhash_list.c: New file.
59104         * tests/test-avltreehash_list.c: New file.
59105         * tests/test-rbtreehash_list.c: New file.
59106         * tests/test-avltree_oset.c: New file.
59107         * tests/test-rbtree_oset.c: New file.
59108         * MODULES.html.sh (Container data structures): New section.
59109
59110 2006-07-17  Bruno Haible  <bruno@clisp.org>
59111
59112         * m4/gl_list.m4: New file.
59113
59114 2006-07-17  Bruno Haible  <bruno@clisp.org>
59115
59116         * lib/gl_list.h: New file.
59117         * lib/gl_list.c: New file.
59118         * lib/gl_array_list.h: New file.
59119         * lib/gl_array_list.c: New file.
59120         * lib/gl_carray_list.h: New file.
59121         * lib/gl_carray_list.c: New file.
59122         * lib/gl_linked_list.h: New file.
59123         * lib/gl_linked_list.c: New file.
59124         * lib/gl_anylinked_list1.h: New file.
59125         * lib/gl_anylinked_list2.h: New file.
59126         * lib/gl_avltree_list.h: New file.
59127         * lib/gl_avltree_list.c: New file.
59128         * lib/gl_anyavltree_list1.h: New file.
59129         * lib/gl_anyavltree_list2.h: New file.
59130         * lib/gl_rbtree_list.h: New file.
59131         * lib/gl_rbtree_list.c: New file.
59132         * lib/gl_anyrbtree_list1.h: New file.
59133         * lib/gl_anyrbtree_list2.h: New file.
59134         * lib/gl_anytree_list1.h: New file.
59135         * lib/gl_anytree_list2.h: New file.
59136         * lib/gl_linkedhash_list.h: New file.
59137         * lib/gl_linkedhash_list.c: New file.
59138         * lib/gl_anyhash_list1.h: New file.
59139         * lib/gl_anyhash_list2.h: New file.
59140         * lib/gl_avltreehash_list.h: New file.
59141         * lib/gl_avltreehash_list.c: New file.
59142         * lib/gl_rbtreehash_list.h: New file.
59143         * lib/gl_rbtreehash_list.c: New file.
59144         * lib/gl_anytreehash_list1.h: New file.
59145         * lib/gl_anytreehash_list2.h: New file.
59146
59147         * lib/gl_oset.h: New file.
59148         * lib/gl_oset.c: New file.
59149         * lib/gl_array_oset.h: New file.
59150         * lib/gl_array_oset.c: New file.
59151         * lib/gl_avltree_oset.h: New file.
59152         * lib/gl_avltree_oset.c: New file.
59153         * lib/gl_rbtree_oset.h: New file.
59154         * lib/gl_rbtree_oset.c: New file.
59155         * lib/gl_anytree_oset.h: New file.
59156
59157 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59158
59159         * m4/mkancesdirs.m4: New file.
59160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59161         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59162         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59163         it.
59164
59165 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59166
59167         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59168         * lib/mkancesdirs.h: New files.
59169         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59170         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59171         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59172         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59173         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59174         callers changed.  Revamp internals significantly, by not
59175         attempting to create directories that are temporarily more
59176         permissive than the final results.  Do not attempt to use
59177         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59178         This removes some race conditions, fixes some bugs, and simplifies
59179         things.  Use new dirchownmod function to do owner and mode changes.
59180         * lib/mkdir-p.h: Likewise.
59181         * lib/modechange.c (octal_to_mode): New function.
59182         (struct mode_change): New member mentioned.
59183         (make_node_op_equals): New arg mentioned.  All callers changed.
59184         (mode_compile): Keep track of which mode bits the user has explicitly
59185         mentioned.
59186         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59187         New arg PMODE_BITS, to keep track of which mode bits the user
59188         mentioned; it treats S_ISUID and S_ISGID speciall.
59189         All callers changed.
59190         * lib/modechange.h: Likewise.
59191
59192 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         * MODULES.html.sh: Add mkancestors.
59195         * modules/mkancesdirs: New module.
59196         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59197         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59198         The chdir-safer and afs files are now orphans; I'll remove them
59199         unless someone speaks up.
59200         Add lib/dirchownmod.c, lib/dirchownmod.h.
59201         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59202         Add lchown, mkancesdirs.
59203         (Maintainer): Add self.
59204
59205 2006-07-15  Karl Berry  <karl@gnu.org>
59206
59207         * gnulib-tool: help message wording/arrangement.
59208
59209 2006-07-14  Simon Josefsson  <jas@extundo.com>
59210
59211         * doc/gnulib.texi (Libtool and Windows): New section.
59212
59213 2006-07-12  Simon Josefsson  <jas@extundo.com>
59214
59215         * modules/gendocs (License): Fix license, approved by Karl.
59216
59217 2006-07-12  Eric Blake  <ebb9@byu.net>
59218
59219         * MODULES.html.sh: Add gendocs.
59220
59221 2006-07-11  Eric Blake  <ebb9@byu.net>
59222
59223         * modules/fdl: New module, to install doc/fdl.texi.
59224         * MODULES.html.sh: Add new section for documentation modules.
59225         * gnulib-tool: Avoid space-tab.
59226         (--doc-base): New option, to manage files from doc.
59227
59228 2006-07-11  Eric Blake  <ebb9@byu.net>
59229
59230         * m4/absolute-header.m4: Fix comments to match recent change.
59231
59232 2006-07-11  Eric Blake  <ebb9@byu.net>
59233
59234         * gnulib-tool: List --doc-base before --tests-base.
59235
59236 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59237
59238         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59239
59240 2006-07-11  Bruno Haible  <bruno@clisp.org>
59241
59242         * README: Mention where to put documentation.
59243
59244 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59245
59246         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59247
59248 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59249
59250         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59251         to stdint.m4.
59252
59253 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59254
59255         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59256         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59257         "no/such/file/stdint.h" when there is no such file, so that
59258         the resulting C code can be parsed by dodgy compilers.
59259         Problems reported by Bob Proulx.
59260
59261 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59262
59263         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59264         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59265         macros into the GNU _D_EXACT_NAMLEN.
59266         * lib/savedir.c:  Likewise.
59267         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59268
59269 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59270         and Paul Eggert  <eggert@cs.ucla.edu>
59271
59272         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59273         * m4/savedir.m4:
59274         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59275         macros into the GNU _D_EXACT_NAMLEN.
59276
59277 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59278
59279         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59280         around the absolute name, to work around a problem with the HP-UX
59281         11.23 native C compiler, reported by Bob Proulx.
59282
59283 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59284
59285         * doc/maintain.texi, make-stds.texi: Sync from
59286         <http://savannah.gnu.org/projects/gnustandards>.
59287
59288 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59289
59290         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59291
59292 2006-07-09  Jim Meyering  <jim@meyering.net>
59293
59294         * m4/glob.m4: Remove a doubled word in a comment.
59295
59296 2006-07-09  Jim Meyering  <jim@meyering.net>
59297
59298         * lib/argp-pv.c: Remove a doubled word in a comment.
59299         * lib/check-version.c (check_version): Likewise.
59300         * lib/javacomp.c (compile_java_class): Likewise.
59301
59302 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59303
59304         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59305         for the benefit of people using Autoconf 2.60.  If you want to
59306         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59307         (or m4/onceonly.m4, if pre-2.57) manually.
59308
59309 2006-07-08  Jim Meyering  <jim@meyering.net>
59310
59311         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59312         comment.
59313         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59314         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59315         comment.
59316
59317 2006-07-08  Jim Meyering  <jim@meyering.net>
59318
59319         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59320
59321 2006-07-07  Simon Josefsson  <jas@extundo.com>
59322
59323         * tests/test-crc.c: Change expected crc value, the test vector
59324         were probably computed using the old broken crc.c?
59325
59326 2006-07-06  Simon Josefsson  <jas@extundo.com>
59327
59328         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59329         now the canonical place for the M4 file).
59330
59331         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59332         from the sys_socket dependency now.
59333
59334         * modules/inet_pton (Files): Ditto.
59335
59336         * modules/inet_ntop (Files): Ditto.
59337
59338 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59339
59340         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59341         not gl_PREREQ_GETUSERSHELL.
59342
59343 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59344
59345         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59346         with only one argument, for Autoconf 2.60.
59347         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59348         expand to nothing, so add a shell command to avoid syntax error.
59349         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59350
59351 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59352
59353         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59354
59355 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59356
59357         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59358         no longer needed.  Check for isblank decl.
59359         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59360         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59361         of existence.
59362
59363 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59364
59365         * lib/getloadavg.c: Use __VMS, not VMS.
59366         * lib/getopt.c: Likewise.
59367         * lib/getpagesize.h: Likewise.
59368         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59369         and probably does not work.
59370
59371 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59372
59373         * lib/.cppi-disable: Add wcwidth.
59374         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59375         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59376         (ISGRAPH): Remove.  All uses changed to isgraph.
59377         (FOLD) [!defined _LIBC]: Remove special case.
59378         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59379         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59380         HAVE_ISBLANK.
59381         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59382         case.
59383
59384 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59385
59386         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59387         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59388         brackets.  Other minor changes to suppress some compiler
59389         warnings.
59390
59391 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59392         and Paul Eggert  <eggert@cs.ucla.edu>
59393
59394         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59395         of invoking obsolescent AC_HEADER_DIRENT macro.
59396         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59397         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59398         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59399         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59400         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59401         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59402         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59403         * m4/readdir.m4: Remove; no longer needed.
59404
59405 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59406         and Paul Eggert  <eggert@cs.ucla.edu>
59407
59408         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59409         Don't worry about this obsolete case any more.
59410         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59411         directories.
59412         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59413         worry about this obsolete case any more.
59414         * lib/fts.c: Likewise.
59415         * lib/getcwd.c: Likewise.
59416         * lib/glob.h: Likewise.
59417         * lib/savedir.c: Likewise.
59418
59419 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59420
59421         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59422         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59423         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59424         needed.
59425         All uses removed.
59426         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59427         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59428         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59429         needed.
59430         * m4/getdate.m4 (gl_GETDATE): Likewise.
59431         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59432         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59433         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59434         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59435         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59436         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59437         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59438         needed.
59439
59440 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59441
59442         * lib/memcasecmp.c: Include <limits.h>.
59443         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59444         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59445         Don't assume isdigit succeeds only on '0' through '9'.
59446
59447 2006-07-05  Eric Blake  <ebb9@byu.net>
59448
59449         * modules/getaddrinfo (Depends-on): Add snprintf.
59450
59451 2006-07-05  Eric Blake  <ebb9@byu.net>
59452
59453         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59454         to avoid 'header present but could not be compiled' on cygwin.
59455
59456 2006-07-05  Eric Blake  <ebb9@byu.net>
59457
59458         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59459         missing from netdb.h.
59460         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59461
59462 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59463
59464         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59465         no longer needed.
59466         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59467         * m4/getdate.m4 (gl_GETDATE): Likewise.
59468         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59469         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59470         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59471         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59472         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59473
59474 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59475
59476         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59477         All uses of is_space replaced by isspace.
59478         * lib/exit.h: Don't talk about STDC_HEADERS.
59479         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59480         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59481         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59482         replaced by isprint etc.
59483         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59484         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59485         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59486         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59487         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59488         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59489
59490 2006-07-05  Bruno Haible  <bruno@clisp.org>
59491
59492         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59493         the function exists, before testing against AIX.
59494         Reported by Martin Lambers <marlam@marlam.de>.
59495
59496 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59497
59498         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59499         From Mark D. Baushke.
59500
59501 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59504         to the absolute name, not just one, to bypass Sun C 5.8's
59505         "warning: #include of /usr/include/... may be non-portable".
59506
59507 2006-07-04  Eric Blake  <ebb9@byu.net>
59508
59509         * modules/dirname-tests: New test module.
59510         * tests/test-dirname.c: New file, replacing dirname.c
59511         TEST_DIRNAME section that was recently deleted.
59512
59513 2006-07-04  Bruno Haible  <bruno@clisp.org>
59514
59515         Assume ANSI C header files and <ctype.h> functions.
59516         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59517         (mbsnwidth): Use isprint, iscntrl instead.
59518
59519 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59520
59521         Merge from coreutils.
59522         * MODULES.html.sh: Add xstrtold.
59523         * modules/xstrtold: New file.
59524         * modules/cycle-check (Files): Add lib/same-inode.h.
59525         * modules/dirname (Files): Add m4/double-slash-root.m4.
59526         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59527         * modules/mkdir-p (Files): Add lib/same-inode.h.
59528         * modules/same (Files): Add lib/same-inode.h.
59529
59530 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59531
59532         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59533         This is to keep the terminology clean; POSIX talks about
59534         "absolute pathnames", not "full pathnames", but the GNU
59535         Coding Standards say to use "path" for something else;
59536         so use "absolute" to keep both sides happy.
59537         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59538         Set gl_absolute_header, not gl_full_header_path.
59539         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59540         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59541         All uses changed.
59542
59543         Merge from coreutils.
59544
59545         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59546
59547         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59548         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59549         want to require the building of c-strtod.o.
59550         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59551         needs -lm directly.
59552         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59553
59554         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59555
59556         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59557         --as-needed option if available.  Problem reported by Albert Chin in
59558         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59559         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59560         cc merely issues a bunch of annoying warnings for --as-needed
59561         (this problem was reported by Bob Proulx).  Also, try linking with
59562         -lm to detect a bug in binutils 2.16 (this problem was reported
59563         by Ralf Wildenhues).
59564
59565         2006-06-18  Jim Meyering  <jim@meyering.net>
59566
59567         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59568         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59569         macro.
59570         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59571         also check for glibc-2.4's abort-inducing bug.
59572
59573         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59574         Low-probability clean-up should be to use rmdir to get rid of
59575         the just-created directory, not unlink.
59576
59577         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59578         configure fail, and request a bug report to inform us about it.
59579         Add a comment that, barring reports to the contrary, in 2007 we'll
59580         assume ftruncate is universally available.
59581
59582         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59583
59584         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59585
59586         2006-03-12  Jim Meyering  <jim@meyering.net>
59587
59588         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59589         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59590         * m4/same.m4 (gl_SAME): Likewise.
59591         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59592
59593         2006-03-11  Eric Blake  <ebb9@byu.net>
59594
59595         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
59596         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
59597         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
59598         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
59599
59600 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59601
59602         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
59603         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
59604         reported by Mark D. Baushke, one in
59605         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
59606
59607         Merge from coreutils.
59608
59609         * lib/.cppi-disable: Add stdint_.h.
59610         * lib/.cvsignore: Add stdint.h.
59611
59612         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59613
59614         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
59615         both double and long double versions.
59616         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
59617         * lib/xstrtold.c: New file.
59618         * lib/xstrtod.h (xstrtold): New decl.
59619
59620         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         * lib/filemode.c (setst): Remove.
59623         (strmode): Rewrite to avoid setst.  This makes the code shorter,
59624         (arguably) clearer, and the generated code is a bit smaller on my
59625         Debian GNU/Linux stable x86 host.
59626
59627         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59628
59629         * lib/filemode.c: Include "filemode.h" first, to test the interface.
59630         Assume that filemode.h includes sys/types.h and sys/stat.h.
59631         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
59632         (ftypelet): Reorder to put common cases first, for efficiency.
59633         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
59634         to do 'M'.
59635         (strmode): Renamed from mode_string, and now stores 12 bytes instead
59636         of 10, for compatibility with FreeBSD.  All callers changed.
59637         (filemodestring): Now stores 12 bytes instead of 10, and sets file
59638         types that can't be deduced solely from st_mode.  First arg is now a
59639         const pointer.
59640         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
59641         (strmode): Renamed from mode_string.
59642         (filemodestring): New decl.
59643         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
59644         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
59645         needed.
59646         (S_ISPORT, S_ISWHT): New macros, if not already defined.
59647
59648         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59649
59650         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
59651         fsusage.h now does that.  Include fsusage.h first, to test interface.
59652         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
59653         at most one method (the old code could have generated decls that
59654         didn't conform to C89, not that this was ever exercised).
59655         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
59656
59657         2006-03-19  Jim Meyering  <jim@meyering.net>
59658
59659         Work even in a chroot where d_ino values for entries in "/"
59660         don't match the stat.st_ino values for the same names.
59661         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
59662         number, iterate through all entries again, using lstat instead.
59663         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
59664         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
59665
59666         * lib/getcwd.c (__getcwd): Clarify a comment.
59667         Use memcpy in place of a call to strcpy.
59668
59669         2006-03-12  Jim Meyering  <jim@meyering.net>
59670
59671         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
59672         matches that of the current directory (which we're about to chdir ".."
59673         out of), then save the dev-ino of the parent, instead.
59674
59675         * lib/same-inode.h (SAME_INODE): New file/macro.
59676         * lib/chdir-safer.c (SAME_INODE): Remove definition.
59677         Include "same-inode.h", instead.
59678         * lib/same.c: Likewise.
59679         * lib/cycle-check.h: Include "same-inode.h".
59680         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
59681         * lib/cycle-check.c (SAME_INODE): Remove definition.
59682         * lib/root-dev-ino.h: Include "same-inode.h".
59683
59684         2006-03-11  Eric Blake  <ebb9@byu.net>
59685
59686         * lib/same.c (same_name): s/base_name/last_component/
59687         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
59688         * lib/filenamecat.c (file_name_concat): Likewise.
59689
59690         2006-03-11  Eric Blake  <ebb9@byu.net>,
59691                     Paul Eggert  <eggert@cs.ucla.edu>
59692
59693         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
59694         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
59695         drive prefix.
59696         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
59697         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
59698         (last_component): New method.
59699         * lib/dirname.c (dir_len): Determine when drive letters need a
59700         subsequent slash.  Preserve // when it is special.
59701         (dir_name): Don't append dot when drive letter is absolute.
59702         [TEST_DIRNAME]: Move into a full-blown gnulib test.
59703         * lib/basename.c (base_name): New semantics - malloc the result.
59704         Preserve // when it is special.  Preserve relative files that look
59705         like drive letters.
59706         (base_len): Preserve // when it is special.
59707         (last_component): New method, similar to old base_name semantics.
59708         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
59709         base_name.  Strip redundant slashes from ///.
59710
59711 2006-07-03  Jim Meyering  <jim@meyering.net>
59712
59713         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
59714         macro is used before the first cycle_check call.
59715
59716 2006-07-03  Eric Blake  <ebb9@byu.net>
59717
59718         * modules/dirname (Depends-on): Add xstrndup.
59719
59720 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59721
59722         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
59723         test cases, so that config.log is a bit easier to follow.
59724
59725 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59726
59727         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
59728         both are 64 bits, since this seems to be the tradition, and this
59729         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
59730         we ever run into a host that prefers long long to long in this
59731         case, we'll need another configure-time test.  Problem reported by
59732         Jim Meyering.
59733
59734 2006-07-02  Eric Blake  <ebb9@byu.net>
59735
59736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
59737
59738 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         * modules/inttypes (Depends-on): No longer depends on stdint.
59741         * modules/stdint (Description): Say more about assumptions.
59742         Say that the fast types might differ.  Say macros are used.
59743         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
59744         (Makefile.am): Revise list of substituted symbols to match
59745         new stdint.m4.
59746         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
59747         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
59748         * tests/test-stdint.c (verify_same_types)
59749         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
59750         the code conforms to C99/C89.
59751         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
59752         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
59753
59754 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59755
59756         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
59757         but fix a bug, by requiring at least 64 bits.
59758         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59759         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
59760         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
59761         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
59762
59763         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
59764         changes.  Make 2.59 a prerequisite.  Check and substitute for
59765         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
59766         inttypes.h.  Do not use special include files; just use the
59767         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
59768         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
59769         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
59770         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
59771         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
59772         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
59773         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
59774         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
59775         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
59776         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
59777         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
59778         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
59779         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
59780         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
59781         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
59782         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
59783         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
59784         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
59785         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
59786         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
59787         WINT_MAX.  Check for C99 conformance more strictly, by detecting
59788         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
59789         not check for things that C99 does not require, e.g., int8_t.  If
59790         a test isn't needed unless <stdint.h> isn't working, and is
59791         unlikely to be needed for any other reason, then don't do it
59792         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
59793         size_t, since we assume C89 freestanding at least.  Do not check
59794         for sig_atomic_t, wchar_t, or wint_t, since the code now does
59795         the right thing even if the types are not defined.  Instead use:
59796         (gl_STDINT_TYPE_PROPERTIES): New macro.
59797         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
59798         testing whether <sys/types.h> clashes, as Autoconf does this for
59799         us now.  All uses removed.
59800         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
59801         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
59802         (gl_CHECK_TYPE_SAME):
59803         Remove; no longer needed.
59804         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
59805         exists, since we'll return 0 anyway in that case.
59806         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
59807
59808 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59809
59810         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
59811         possible collision with system files.
59812         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
59813         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
59814         WCHAR_MIN and WCHAR_MAX in this case.
59815         (<stddef.h>): Do not include; no longer needed.
59816         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
59817         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
59818         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
59819         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
59820         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
59821         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
59822         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
59823         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
59824         !defined(__c99))]: Include in this case too, since it's harmless
59825         now.
59826         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
59827         dangerous to do so.
59828         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
59829         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
59830         (_STDINT_MIN, _STDINT_MAX): New macros.
59831         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
59832         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
59833         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
59834         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
59835         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
59836         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
59837         macros, not typedefs; this simplifies things quite a bit.
59838         Use long int for all types narrower than int64_t.
59839         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
59840         Define in terms of long long int or int64_t or long int,
59841         not int64_t or int32_t.  This saves some compile-time testing.
59842         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
59843         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
59844         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
59845         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
59846         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
59847         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
59848         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
59849         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
59850         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
59851         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
59852         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59853         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59854         undef any previous version and define our own version, for
59855         simplicity and consistency with the new macros for types.
59856         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
59857         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
59858         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
59859         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
59860         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
59861         @WINT_T_SUFFIX@ to keep things simple here.
59862         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
59863         Simplify by assuming typical 8/16/32/64 host, since we're
59864         already doing that elsewhere anyway.
59865         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
59866         and assume long long int is 64 bits if available.  This
59867         speeds up 'configure'.
59868
59869 2006-07-01  Eric Blake  <ebb9@byu.net>
59870
59871         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
59872         Reported by Andreas Buening.
59873
59874 2006-07-01  Eric Blake  <ebb9@byu.net>
59875
59876         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
59877
59878 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59879
59880         * lib/getaddrinfo.c: fixed typo
59881
59882 2006-06-29  Jim Meyering  <jim@meyering.net>
59883
59884         * modules/strftime (Maintainer): Add my name, since with the
59885         FPRINTFTIME changes strftime.c has forked from glibc.
59886
59887 2006-06-29  Eric Blake  <ebb9@byu.net>
59888
59889         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
59890
59891 2006-06-29  Eric Blake  <ebb9@byu.net>
59892
59893         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
59894
59895 2006-06-29  Eric Blake  <ebb9@byu.net>
59896
59897         * lib/stat_.h: New file.
59898
59899 2006-06-29  Eric Blake  <ebb9@byu.net>
59900
59901         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
59902         unused static function.
59903
59904 2006-06-29  Eric Blake  <ebb9@byu.net>
59905
59906         * doc/functions.texi (Function Portability): Document missing lstat
59907         on mingw.
59908
59909 2006-06-29  Eric Blake  <ebb9@byu.net>
59910
59911         * MODULES.html.sh: Add sys_stat.
59912         * modules/sys_stat: New module.
59913         * modules/mkstemp (Depends-on): Add sys_stat.
59914
59915 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59916
59917         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
59918
59919 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59920
59921         * m4/c-bs-a.m4: Removed.
59922
59923 2006-06-29  Derek R. Price  <derek@ximbiot.com>
59924
59925         * lib/strftime.c: Assume strftime() exists.
59926
59927 2006-06-29  Derek Price  <derek@ximbiot.com>
59928
59929         * modules/c-bs-a: Removed - \a is C89.
59930         * MODULES.html.sh: Remove c-bs-a.
59931
59932 2006-06-29  Bruno Haible  <bruno@clisp.org>
59933
59934         * modules/wcwidth (License): Change to LGPL.
59935
59936 2006-06-28  Simon Josefsson  <jas@extundo.com>
59937
59938         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
59939         on _WIN32.
59940
59941         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
59942         getnameinfo.
59943
59944 2006-06-28  Simon Josefsson  <jas@extundo.com>
59945
59946         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
59947
59948 2006-06-28  Simon Josefsson  <jas@extundo.com>
59949
59950         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
59951         functions there.  It will succeed on Windows XP, but on Windows
59952         2000 and (presumably) earlier, it will fail, and use the internal
59953         re-implementation.
59954         (use_win32_p): New function.
59955         (getaddrinfo): Use strtoul on servname, to support numeric ports.
59956         Support AI_NUMERICSERV to disable getservbyname.
59957         (getnameinfo): New function, only supports
59958         NI_NUMERICHOST|NI_NUMERICSERV for now.
59959
59960         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
59961         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
59962         getnameinfo.
59963
59964 2006-06-28  Eric Blake  <ebb9@byu.net>
59965
59966         * modules/wcwidth: New file.
59967         * modules/mbchar (Depends-on): Add wcwidth.
59968         * modules/mbswidth (Depends-on): Add wcwidth.
59969         * MODULES.html.sh: Add wcwidth.
59970
59971 2006-06-28  Eric Blake  <ebb9@byu.net>
59972
59973         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
59974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
59975
59976 2006-06-28  Eric Blake  <ebb9@byu.net>
59977
59978         * lib/xvasprintf.h: Fix comments.
59979
59980 2006-06-28  Eric Blake  <ebb9@byu.net>
59981
59982         * lib/mbchar.h (wcwidth): Include wcwidth.h.
59983         * lib/mbswidth.c (wcwidth): Move from here...
59984         * lib/wcwidth.h: ...to this new file.
59985
59986 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59987
59988         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
59989
59990         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
59991         it's obsolete.
59992         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
59993
59994 2006-06-28  Derek R. Price  <derek@ximbiot.com>
59995
59996         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
59997         Autoconf 2.60 says this stuff was obsolete.
59998
59999 2006-06-28  Bruno Haible  <bruno@clisp.org>
60000
60001         * modules/wcwidth (Files): Add m4/wchar_t.m4.
60002
60003 2006-06-28  Bruno Haible  <bruno@clisp.org>
60004
60005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
60006         gt_TYPE_WCHAR_T.
60007
60008 2006-06-28  Bruno Haible  <bruno@clisp.org>
60009
60010         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
60011         declaration for wcwidth.
60012         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
60013
60014 2006-06-28  Bruno Haible  <bruno@clisp.org>
60015
60016         * lib/mkdtemp.c [MINGW]: Include <io.h>.
60017         (mkdir): Define using _mkdir.
60018
60019 2006-06-28  Bruno Haible  <bruno@clisp.org>
60020
60021         * lib/getaddrinfo.h: Fix POSIX URL.
60022         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
60023         _WIN32.
60024         (use_win32_p): Make static.
60025         (getaddrinfo): Reject service name if it is empty or does not consist
60026         solely of decimal digits, or if its value is > 65535.
60027         (getnameinfo): Remove useless casts.
60028
60029 2006-06-27  Simon Josefsson  <jas@extundo.com>
60030
60031         * modules/sys_select: New file, suggested by Bruno Haible, Paul
60032         Eggert and Martin Lambers.
60033
60034 2006-06-27  Simon Josefsson  <jas@extundo.com>
60035
60036         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
60037         Eggert and Martin Lambers.
60038
60039 2006-06-27  Bruno Haible  <bruno@clisp.org>
60040
60041         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
60042         result to 0, not to empty.
60043         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
60044
60045 2006-06-27  Bruno Haible  <bruno@clisp.org>
60046
60047         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
60048
60049 2006-06-26  Simon Josefsson  <jas@extundo.com>
60050
60051         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
60052         present.
60053
60054 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
60055
60056         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
60057         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
60058         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
60059
60060 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
60061
60062         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
60063
60064 2006-06-26  Bruno Haible  <bruno@clisp.org>
60065
60066         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
60067
60068 2006-06-26  Bruno Haible  <bruno@clisp.org>
60069
60070         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
60071
60072 2006-06-26  Bruno Haible  <bruno@clisp.org>
60073
60074         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
60075         SGI C compiler in pre-C99 mode.
60076         Suggested by Mark D. Baushke and Larry Jones.
60077
60078 2006-06-26  Bruno Haible  <bruno@clisp.org>
60079
60080         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
60081         WCHAR_MAX.
60082         Reported by Mark D. Baushke and Larry Jones.
60083
60084 2006-06-26  Bruno Haible  <bruno@clisp.org>
60085
60086         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
60087         in pre-C99 mode.
60088         Suggested by Mark D. Baushke and Larry Jones.
60089
60090 2006-06-23  Simon Josefsson  <jas@extundo.com>
60091             Bruno Haible  <bruno@clisp.org>
60092
60093         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
60094         Emit mostlyclean-local rule.
60095         (func_emit_tests_Makefile_am): Likewise.
60096         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
60097
60098 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
60099
60100         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
60101
60102 2006-06-23  Bruno Haible  <bruno@clisp.org>
60103
60104         * tests/test-stdint.c: Update to match ISO C 99 Technical
60105         Corrigendum 1.
60106
60107 2006-06-23  Bruno Haible  <bruno@clisp.org>
60108
60109         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
60110
60111 2006-06-23  Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/stdint_.h: Treat IRIX like OpenBSD.
60114
60115 2006-06-23  Bruno Haible  <bruno@clisp.org>
60116
60117         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
60118         ISO C 99 Technical Corrigendum 1.
60119
60120 2006-06-22  Simon Josefsson  <jas@extundo.com>
60121
60122         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
60123         MinGW.
60124
60125 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60126
60127         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
60128         needed.  Some compiler complained about some of them.  Problem reported
60129         by Larry Jones in
60130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
60131
60132 2006-06-21  Simon Josefsson  <jas@extundo.com>
60133
60134         * tests/test-getaddrinfo.c: New file.
60135
60136         * modules/getaddrinfo-tests: New file.
60137
60138         * MODULES.html.sh: Add inet_pton.
60139
60140         * modules/inet_pton: New file.
60141
60142 2006-06-21  Simon Josefsson  <jas@extundo.com>
60143
60144         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
60145         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
60146         of using the (limited) gnulib implementation on Windows XP.
60147
60148         * m4/inet_pton.m4: New file.
60149
60150 2006-06-21  Simon Josefsson  <jas@extundo.com>
60151
60152         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60153         variable.
60154
60155         * lib/socket_.h: Don't define WINVER.
60156
60157         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60158         slightly modified to work in gnulib.
60159
60160 2006-06-21  Simon Josefsson  <jas@extundo.com>
60161
60162         * doc/gnulib.texi (Windows sockets): Add.
60163
60164 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60165
60166         * lib/read-file.c (fread_file): Start with buffer allocation of
60167         0 bytes rather than 1 byte; this simplifies the code.
60168         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60169         code to free buffer and save/restore errno.
60170         (internal_read_file): Remove unused local.
60171
60172 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60173
60174         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60175         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60176         Problem reported by Denis Excoffier in
60177         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60178
60179 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60180
60181         * modules/sys_socket, modules/socklen: Include sys/types since
60182         FreeBSD 4.x's sys/socket.h needs it.
60183
60184 2006-06-19  Simon Josefsson  <jas@extundo.com>
60185
60186         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60187
60188 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60189
60190         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60191
60192 2006-06-19  Bruno Haible  <bruno@clisp.org>
60193
60194         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60195         and FULL_PATH_INTTYPES_H in angle brackets.
60196         Reported by Mark D. Baushke <mdb@gnu.org>.
60197
60198 2006-06-17  Eric Blake  <ebb9@byu.net>
60199
60200         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60201         errno.
60202
60203 2006-06-17  Bruno Haible  <bruno@clisp.org>
60204
60205         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60206         <sys/inttypes.h>.
60207
60208 2006-06-17  Bruno Haible  <bruno@clisp.org>
60209
60210         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60211         whether errno is declared. Assume <errno.h> declares errno.
60212
60213 2006-06-17  Bruno Haible  <bruno@clisp.org>
60214
60215         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60216
60217 2006-06-17  Bruno Haible  <bruno@clisp.org>
60218
60219         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60220         problem on Solaris 2.5.1.
60221
60222 2006-06-16  Eric Blake  <ebb9@byu.net>
60223
60224         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60225         * lib/unicodeio.c [!defined errno]: Likewise.
60226         * lib/strtol.c [!defined errno]: Likewise.
60227         * lib/strtod.c [!defined errno]: Likewise.
60228
60229 2006-06-15  Eric Blake  <ebb9@byu.net>
60230
60231         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60232
60233 2006-06-15  Eric Blake  <ebb9@byu.net>
60234
60235         * config/srclist.txt (ssize_t.m4): Lose sync.
60236
60237 2006-06-15  Bruno Haible  <bruno@clisp.org>
60238
60239         * modules/stdint (Files): Include m4/full-header-path.m4,
60240         m4/size_max.m4, m4/wchar_t.m4.
60241         (Makefile.am): Many more substitutions.
60242         * modules/stdint-tests: New file.
60243         * tests/test-stdint.c: New file.
60244
60245 2006-06-15  Bruno Haible  <bruno@clisp.org>
60246
60247         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60248         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60249         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60250         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60251         gl_CHECK_TYPE_SAME): New macros.
60252
60253 2006-06-15  Bruno Haible  <bruno@clisp.org>
60254
60255         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60256
60257 2006-06-15  Bruno Haible  <bruno@clisp.org>
60258
60259         * lib/stdint_.h: Rewritten to be fully auto-configured.
60260         Fixes bug on HP-UX/IA64.
60261
60262 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60263
60264         * lib/getdate.y (__attribute__): Don't define if already defined.
60265         Problem reported by Larry Jones.
60266         * lib/utimens.c (__attribute__): Likewise.
60267
60268 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60269
60270         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60271         reported by Andreas Schwab.
60272
60273 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60274             Bruno Haible  <bruno@clisp.org>
60275
60276         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60277         check for the declaration of strnlen and a run test that exposes the
60278         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60279         rpl_strndup.
60280
60281 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60282             Bruno Haible  <bruno@clisp.org>
60283
60284         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60285
60286 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60287
60288         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60289         compile test, for Tru64 4.0D.
60290
60291 2006-05-28  Karl Berry  <karl@gnu.org>
60292
60293         * config/srclist.txt (printf-args.c): lose sync.
60294
60295 2006-05-26  Martin Lambers  <marlam@marlam.de>
60296
60297         * lib/getpass.c: Updates the test for the native W32 API, and adds
60298         missing includes, thus fixing compilation warnings.
60299
60300 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60301
60302         * lib/exclude.c (exclude_fnmatch): New function.
60303         (excluded_file_name): Call exclude_fnmatch.
60304         * lib/exclude.h (excluded_file_name): New prototype
60305
60306 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60307
60308         * lib/tempname.c (small_open, large_open): New macros.
60309         (__open, __open64) [!_LIBC]: Remove.
60310         (__gen_tempname): Use small_open and large_open instead of __open
60311         and __open64.  This fixes a portability bug on HP-UX 11.11i
60312         reported by Simon Wing-Tang in
60313         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60314
60315 2006-05-24  Bruno Haible  <bruno@clisp.org>
60316
60317         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60318         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60319         Reported by Thorsten Maerz <torte@netztorte.de> via
60320         Aaron Stone <aaron@serendipity.cx>.
60321
60322 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60323
60324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60325         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60326         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60327         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60328         not really conditional on the cache.
60329         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60330
60331 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60332
60333         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60334         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60335         (my_usleep): Don't mishandle maximum value.
60336
60337 2006-05-19  Jim Meyering  <jim@meyering.net>
60338
60339         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60340
60341 2006-05-17  Bruno Haible  <bruno@clisp.org>
60342
60343         Cygwin portability.
60344         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60345
60346 2006-05-17  Bruno Haible  <bruno@clisp.org>
60347
60348         * lib/stdint_.h: Fix recognition of Cygwin.
60349
60350 2006-05-15  Bruno Haible  <bruno@clisp.org>
60351
60352         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60353         on libtool patch by Ralf Wildenhues.
60354
60355 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60356
60357         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60358         test for C99 conformance; (bool) 0.5 is an integer constant
60359         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60360         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60361
60362 2006-05-11  Simon Josefsson  <jas@extundo.com>
60363
60364         * m4/xvasprintf.m4: Fix obvious typo.
60365
60366 2006-05-11  Jim Meyering  <jim@meyering.net>
60367
60368         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60369         James Lemley.
60370
60371 2006-05-10  Simon Josefsson  <jas@extundo.com>
60372
60373         * lib/md4.c: Typo fix, update copyright years.
60374         (K1, K2): Don't use L because it turn computations into 64-bit on
60375         64-bit platforms.
60376
60377 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60378
60379         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60380         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60381         unwanted sign propagation, e.g., on hosts with 64-bit int.
60382         There still are some problems with reeelly weird theoretical hosts
60383         (e.g., 33-bit int) but it's not worth worrying about now.
60384         * lib/sha1.c (rol): Likewise.
60385         (K1, K2, K3, K4): Remove unnecessary L suffix.
60386
60387 2006-05-10  Bruno Haible  <bruno@clisp.org>
60388
60389         * lib/des.c: Cast to avoid warnings.
60390
60391 2006-05-09  Bruno Haible  <bruno@clisp.org>
60392
60393         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60394         (Depends-on): Depend also on xsize, stdarg.
60395         (configure.ac): Add gl_XVASPRINTF.
60396
60397 2006-05-09  Bruno Haible  <bruno@clisp.org>
60398
60399         * m4/xvasprintf.m4: New file.
60400
60401 2006-05-09  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60404         (EOVERFLOW): Define fallback value.
60405         (xstrcat): New function.
60406         (xvasprintf): Recognize the special case of a string concatenation.
60407
60408 2006-05-08  Eric Blake  <ebb9@byu.net>
60409
60410         * gnulib-tool (func_version): Base copyright year on CVS date.
60411         (func_emit_copyright_notice): New function.
60412         (func_emit_lib_Makefile_am): Use it.
60413         (func_emit_tests_Makefile_am): Likewise.
60414         (func_import): Likewise.
60415
60416 2006-05-08  Bruno Haible  <bruno@clisp.org>
60417
60418         * modules/stdarg: New file.
60419         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60420
60421 2006-05-08  Bruno Haible  <bruno@clisp.org>
60422
60423         * m4/stdarg.m4: New file, from GNU gettext.
60424
60425 2006-05-08  Bruno Haible  <bruno@clisp.org>
60426
60427         * config/srclist.txt (build-aux/config.rpath): different from latest
60428         release.
60429
60430 2006-05-08  Bruno Haible  <bruno@clisp.org>
60431
60432         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60433
60434 2006-05-05  Jim Meyering  <jim@meyering.net>
60435
60436         * m4/warning.m4: New file, derived from bison's file by the same name.
60437
60438 2006-05-03  Bruno Haible  <bruno@clisp.org>
60439
60440         * lib/stdint_.h: Shorter URL.
60441         * lib/inttypes.h: Likewise.
60442
60443 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60444
60445         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60446
60447 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60448
60449         * lib/verify.h: Document the internals better.  Most of this change
60450         was written by Bruno Haible.
60451
60452 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60453
60454         * doc/verify.texi: New file, partly based on a proposal by
60455         Bruno Haible.
60456
60457 2006-05-02  Bruno Haible  <bruno@clisp.org>
60458
60459         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60460         test from here...
60461         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60462
60463 2006-04-29  Bruno Haible  <bruno@clisp.org>
60464
60465         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60466         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60467
60468 2006-04-29  Bruno Haible  <bruno@clisp.org>
60469
60470         * gnulib-tool: Make --update option actually work.
60471
60472 2006-04-29  Bruno Haible  <bruno@clisp.org>
60473
60474         * doc/gcd.texi: New file.
60475         * doc/gnulib.texi: Include it.
60476
60477 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60478
60479         * lib/getdate.y (get_date): When adding relative date, start with the
60480         initial time, not with the result of the first mktime call.
60481
60482 2006-04-25  Bruno Haible  <bruno@clisp.org>
60483
60484         * gnulib-tool (func_import): Output the include directives in three
60485         blocks, sorted separately.
60486         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60487
60488 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60489
60490         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60491         to define main with arguments, for C++.  Reported by Eric Blake.
60492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60493         Prefer 'int main ()' to 'int main (void)', for C++.
60494         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60495         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60496         for 'main', for C99 and C++.
60497
60498 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60499
60500         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60501         Don't assume that exit status -1 is valid.
60502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60503         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60504         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60505         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60506         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60507         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60508         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60509         functions can be used without declaring them, or that you can
60510         exit with status -1.
60511         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60512
60513 2006-04-24  Karl Berry  <karl@gnu.org>
60514
60515         * config/srclist.txt (longdouble.m4): sync lost.
60516
60517 2006-04-24  Eric Blake  <ebb9@byu.net>
60518
60519         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60520
60521 2006-04-24  Bruno Haible  <bruno@clisp.org>
60522
60523         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60524         poll() implementation in AIX.
60525         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60526
60527 2006-04-24  Bruno Haible  <bruno@clisp.org>
60528
60529         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
60530         assigned exactly once.
60531
60532 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60533             Bruno Haible  <bruno@clisp.org>
60534
60535         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60536         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60537         for AM_CPPFLAGS.
60538
60539 2006-04-23  Bruno Haible  <bruno@clisp.org>
60540
60541         * modules/copy-file: Depend on unistd.
60542         * modules/execute: Likewise.
60543         * modules/fatal-signal: Likewise.
60544         * modules/findprog: Likewise.
60545         * modules/mkdtemp : Likewise.
60546         * modules/pipe: Likewise.
60547         * modules/wait-process: Likewise.
60548
60549 2006-04-23  Bruno Haible  <bruno@clisp.org>
60550
60551         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60552         condition was already detected.
60553         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60554
60555 2006-04-23  Bruno Haible  <bruno@clisp.org>
60556
60557         * lib/copy-file.c: Include <unistd.h> unconditionally.
60558         * lib/execute.c: Likewise.
60559         * lib/fatal-signal.c: Likewise.
60560         * lib/findprog.c: Likewise.
60561         * lib/mkdtemp.c: Likewise.
60562         * lib/pipe.h: Likewise.
60563         * lib/pipe.c: Likewise.
60564         * lib/wait-process.h: Likewise.
60565
60566 2006-04-23  Bruno Haible  <bruno@clisp.org>
60567
60568         * gnulib-tool (func_usage): Fix --import description. Document
60569         --update.
60570         (func_import): Create temporary file in a temporary directory, if
60571         --dry-run is specified. Silence errors from 'grep' when there are no
60572         m4 files in $m4dir.
60573         (func_create_testdir): Silence errors from 'grep' when there are no
60574         m4 files in $m4dir.
60575         Reported by Karl Berry <karl@freefriends.org>.
60576
60577 2006-04-20  Bruno Haible  <bruno@clisp.org>
60578
60579         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60580         one argument, so that the code will be portable to Autoconf 2.60.
60581         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60582         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60583         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60584
60585 2006-04-19  Derek Price  <derek@ximbiot.com>
60586             Eric Blake  <ebb9@byu.net>
60587
60588         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60589         rather than "/full/path.h".  Update comment to match.  Shorten &
60590         generalize m4_translit call via AS_TR_CPP.
60591
60592 2006-04-19  Derek Price  <derek@ximbiot.com>
60593             Eric Blake  <ebb9@byu.net>
60594
60595         * lib/inttypes.h: Correct grammar in comment.
60596
60597 2006-04-18  Derek Price  <derek@ximbiot.com>
60598             Paul Eggert  <eggert@cs.ucla.edu>
60599
60600         * modules/inttypes: New file.
60601         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
60602
60603 2006-04-18  Derek Price  <derek@ximbiot.com>
60604             Paul Eggert  <eggert@cs.ucla.edu>
60605
60606         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
60607         New files.
60608
60609 2006-04-18  Derek Price  <derek@ximbiot.com>
60610             Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         * lib/inttypes.h: New file.
60613         * lib/strtoimax.c: Assume <inttypes.h>.
60614
60615 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
60616
60617         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
60618         isn't mounted.  Problem reported by Kir Kolyshkin.
60619
60620 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60621
60622         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
60623         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
60624         Derek R. Price.
60625         * lib/regex.h (RE_DUP_MAX): Update comment to match current
60626         implementation.
60627
60628 2006-04-12  Eric Blake  <ebb9@byu.net>
60629
60630         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
60631         is now done automatically by the corresponding Autoconf macro.
60632
60633 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
60634
60635         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
60636         time_r.h.
60637
60638 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60639
60640         Merge regex changes from libc, removing some of our
60641         POSIX-conformance changes that were rejected and redoing them in a
60642         less-intrusive way.
60643
60644         * lib/regcomp.c (re_compile_internal, init_dfa):
60645         Length arg is now size_t, not Idx.  All uses changed.
60646         (peek_token): Forward decl now says internal_function.
60647         (__re_error_msgid, __re_error_msgid_idx):
60648         Now static rather than extern with attribute_hidden.
60649         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
60650         For some reason libc prefers K&R style defns for external functions.
60651         (regerror) [!defined _LIBC]: Likewise.
60652         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
60653         (seek_collating_symbol_entry, lookup_collation_sequence_value):
60654         (build_range_exp, build_collating_symbol):
60655         Use K&R-style defn.
60656         (re_compile_fastmap): Use '\0' to memset, not 0.
60657         (utf8_sb_map): Make the calculations more obvious.
60658         (init_dfa, parse_bracket_exp, build_charclass_op):
60659         Call calloc and cast result, as glibc does.
60660         (init_word_char, fetch_token, peek_token, peek_token_bracket):
60661         (build_range_exp, build_collating_symbol):
60662         Now internal functions.
60663
60664         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
60665
60666         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
60667         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
60668         Don't depend on VMS; depend on __VMS instead, for POSIX
60669         namespace cleanness.
60670         (regoff_t): Define to ssize_t, not long int.
60671
60672         Remove the REG_ macros named below.  Instead, make the old names
60673         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
60674         __USE_GNU_REGEX.
60675         (REG_BACKSLASH_ESCAPE_IN_LISTS):
60676         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
60677         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
60678         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
60679         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
60680         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
60681         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
60682         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
60683         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
60684         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
60685         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
60686         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
60687         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
60688         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
60689         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
60690         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
60691         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
60692         (REG_NREGS):
60693         Remove.  All uses replaced by the old RE_* names.
60694         (RE_BACKSLASH_ESCAPE_IN_LISTS):
60695         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
60696         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
60697         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
60698         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
60699         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
60700         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
60701         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
60702         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
60703         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
60704         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
60705         Don't bother having these macros be independent of each others'
60706         values, since they no longer exist in the POSIX name space.
60707
60708         Rename the following member names back to their old names,
60709         unless !__USE_GNU_REGEX.  All uses changed back.
60710         (buffer): Renamed from re_buffer.
60711         (allocated): Renamed from re_allocated.
60712         (used): Renamed from re_used.
60713         (syntax): Renamed from re_syntax.
60714         (fastmap): Renamed from re_fastmap.
60715         (translate): Renamed from re_translate.
60716         (can_be_null): Renamed from re_can_be_null.
60717         (regs_allocated): Renamed from re_regs_allocated.
60718         (fastmap_accurate): Renamed from re_fastmap_accurate.
60719         (no_sub): Renamed from re_no_sub.
60720         (not_bol): Renamed from re_not_bol.
60721         (not_eol): Renamed from re_not_eol.
60722         (newline_anchor): Renamed from re_newline_anchor.
60723         (num_regs): Renamed from rm_num_regs.
60724         (start): Renamed from rm_start.
60725         (end): Renamed from rm_end.
60726
60727         (free_state): Move up a bit.
60728
60729         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
60730         #define to be empty.
60731         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
60732         when that is what is intended.
60733         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
60734         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
60735         (MAX): New macro.
60736         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
60737         All uses changed back to re_malloc, etc.  It's now the caller's
60738         responsibility to check for overflow; all callers changed.
60739         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
60740         (re_x2nrealloc): Remove.
60741         (free_state): Remove decl.
60742
60743         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
60744         (re_set_registers, re_exec):
60745         Use K&R-style defn.
60746
60747         2006-01-31  Roland McGrath  <roland@redhat.com>
60748
60749         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
60750         Reported by Mike Frysinger <vapier@gentoo.org>.
60751
60752         2006-01-15  Andreas Jaeger  <aj@suse.de>
60753
60754         [BZ #1950]
60755         * lib/regex_internal.c (re_string_reconstruct): Adjust for
60756         build_wcs_upper_buffer change.
60757         (build_wcs_upper_buffer): Change return type.
60758
60759         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
60760
60761         * lib/regex_internal.h: Include <stdint.h> if available.
60762
60763         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
60764
60765         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
60766
60767         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60768
60769         * lib/regcomp.c: Adjust for changed secondary hash function.
60770
60771         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
60772
60773         * lib/regex.h: Pretty printing.
60774         Clean up namespace a bit.
60775
60776         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
60777
60778         * lib/regexec.c (update_cur_sifted_state, check_arrival,
60779         check_arrival_add_next_nodes): Avoid using uninitialized variable.
60780
60781         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
60782                     Ulrich Drepper  <drepper@redhat.com>
60783
60784         [BZ #1302]
60785         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
60786         changed.
60787         (bitset_word_t): Renamed from bitset_word.  All uses changed.
60788
60789         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
60790
60791         [BZ #281]
60792         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
60793         * lib/regcomp.c: Remove unnecessary uses of
60794         unsigned RE_TRANSLATE_TYPE.
60795         * lib/regex_internal.h: Likewise.
60796         * lib/regex_internal.c: Likewise.
60797         * lib/regexec.c: Likewise.
60798         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
60799
60800         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
60801
60802         * lib/regexec.c (find_recover_state): Remove unnecessary
60803         initialization.
60804         (transit_state_bkref): Make DFA a const pointer.
60805         (get_subexp): Likewise.
60806         (check_arrival): Likewise.
60807         (update_cur_sifted_state): Likewise.
60808         (re_search_internal): Likewise.
60809         (prune_impossible_nodes): Likewise.
60810         (acquire_init_state_context): Likewise.
60811         (proceed_next_node): Likewise.
60812         (set_regs): Likewise.
60813         (free_fail_stack_return): Likewise.
60814         (check_arrival_expand_ecl): Mark DFA parameter as const.
60815         (check_arrival_expand_ecl_sub): Likewise.
60816         (check_subexp_limits): Likewise.
60817         (sub_epsilon_src_nodes):  Likewise.
60818         (add_epsilon_src_nodes):  Likewise.
60819         (merge_state_array): Likewise.
60820         (update_regs): Likewise.
60821         (build_trtable): Likewise.
60822         (sift_states_backward): Mark MCTX parameter as const.
60823         (build_sifted_states): Likewise.
60824         (update_cur_sifted_state): Likewise.
60825         (sift_states_mkref): Likewise.
60826         (check_arrival_expand_ecl): Mark eclosure as const.
60827         (check_dst_limits_calc_pos_1): Likewise.
60828         * lib/regex_internal.h (re_match_context_t): Make dfa a const
60829         pointer.
60830
60831         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
60832
60833         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
60834         (transit_state_sb): Likewise.
60835         (transit_state_mb): Likewise.
60836         (sift_states_iter_mb): Likewise.
60837         (check_arrival_add_next_nodes): Likewise.
60838         (check_node_accept_bytes): Change first parameter to pointer-to-const.
60839         [_LIBC] (re_search_2_stub): Use mempcpy.
60840
60841         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
60842         mbrtowc for very simple UTF-8 case.
60843
60844         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
60845         a pointer-to-const.
60846         (re_acquire_state_context): Likewise.
60847         * lib/regex_internal.h: Adjust prototypes.
60848
60849         * lib/regex.c: Prevent using C++ compilers.
60850
60851         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
60852         (re_acquire_state_context): Likewise.
60853
60854 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60855
60856         * modules/regex (Depends-on): Add ssize_t.
60857
60858 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60859
60860         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
60861         translation table.
60862
60863 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60864
60865         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
60866
60867 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
60868             Bruno Haible  <bruno@clisp.org>
60869
60870         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
60871         <sys/types.h> and <inttypes.h>.
60872
60873 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60874
60875         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
60876         `__error_t_defined', so argp.h will not typedef the former.
60877
60878 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
60879
60880         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
60881         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
60882         glibc names.  Even if glibc is changed to conform to POSIX, the
60883         traditional names will be available anyway, since regex depends on
60884         the extensions module.  Also, fix a longstanding typo in the
60885         implementation of Spencer ERE test #75 from grep 2.3.  Problems
60886         reported by Emanuele Giaquinta.  Also, change sense of cached
60887         variable, so that the message makes sense.
60888
60889 2006-03-24  Simon Josefsson  <jas@extundo.com>
60890
60891         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
60892         including some doc fixes.
60893         (base64_encode_alloc): Fix +1 bug on allocation failures.
60894
60895 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60896
60897         * lib/base64.c (base64_encode): Do not read past end of array with
60898         unsanitized input on systems with CHAR_BIT > 8.
60899
60900 2006-03-24  Eric Blake  <ebb9@byu.net>
60901
60902         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
60903
60904 2006-03-22  Karl Berry  <karl@gnu.org>
60905
60906         * config/srclist.txt (*setenv.[ch]): get from coreutils.
60907         * config/srclistvars.sh (COREUTILS): new var.
60908
60909 2006-03-17  Jim Meyering  <jim@meyering.net>
60910
60911         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
60912         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
60913
60914 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60915
60916         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
60917         no longer needs it.  Instead, check that regoff_t is as least
60918         as wide as ptrdiff_t.
60919
60920         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
60921         so that our regex.h stays compatible with the installed regex.
60922         This is helpful for installers who configure --without-included-regex.
60923         Problem reported by Emanuele Giaquinta.
60924
60925 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
60926
60927         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
60928         Typedef to long int, not to off_, as POSIX will likely change
60929         in that direction.
60930
60931 2006-03-15  Eric Blake  <ebb9@byu.net>
60932
60933         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
60934
60935 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
60936
60937         * lib/argp-help.c (validate_uparams): Fix typo
60938         * lib/argp-parse.c (argp_default_options): Consistently begin help
60939         messages with a lowercase letter.
60940
60941 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
60942
60943         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
60944         overrun buffers and shouldn't be used (much as gets shouldn't be
60945         used).
60946         * lib/time_r.c (asctime_r, ctime_r): Likewise.
60947
60948 2006-03-08  Simon Josefsson  <jas@extundo.com>
60949
60950         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
60951         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60952
60953 2006-03-08  Simon Josefsson  <jas@extundo.com>
60954
60955         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
60956         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60957
60958 2006-03-08  Simon Josefsson  <jas@extundo.com>
60959
60960         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
60961         signal that configure disabled the device.
60962
60963 2006-03-08  Simon Josefsson  <jas@extundo.com>
60964
60965         * build-aux/maint.mk: Fix refresh-po, to handle no translated
60966         languages.
60967
60968 2006-03-07  Simon Josefsson  <jas@extundo.com>
60969
60970         * modules/getopt (Depends-on): Add unistd.
60971
60972         * modules/unistd: New file.
60973
60974 2006-03-07  Simon Josefsson  <jas@extundo.com>
60975
60976         * modules/gc-random: New file.
60977
60978 2006-03-07  Simon Josefsson  <jas@extundo.com>
60979
60980         * m4/unistd_h.m4: New file.
60981
60982 2006-03-07  Simon Josefsson  <jas@extundo.com>
60983
60984         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
60985         test to be side-effect free by storing the result in the cache
60986         variable gl_cv_lib_readline, and moving the assignment of
60987         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
60988         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60989
60990 2006-03-07  Simon Josefsson  <jas@extundo.com>
60991
60992         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
60993         error on missing devices (the functions will return an error).
60994
60995         * m4/gc.m4: Move random stuff to gc-random.m4
60996
60997 2006-03-07  Simon Josefsson  <jas@extundo.com>
60998
60999         * lib/unistd_.h: New file.
61000
61001 2006-03-07  Simon Josefsson  <jas@extundo.com>
61002
61003         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
61004
61005 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61006
61007         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
61008         Problem reported by Juan Manuel Guerrero.
61009
61010 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61011
61012         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
61013         the unistd module.
61014         * lib/getlogin_r.c: Likewise.
61015         * lib/getlogin_r.h: Likewise.
61016         * lib/glob.c: Likewise.
61017         * lib/pagealign_alloc.c: Likewise.
61018         * lib/unistd_.h: Remove; no longer needed.
61019
61020 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61021
61022         * MODULES.html.sh (Support for systems lacking POSIX:2001):
61023         Add unistd.
61024         * modules/c-stack (Depends-on): Add unistd.
61025         * modules/getlogin_r: Likewise.
61026         * modules/glob: Likewise.
61027         * modules/pagealign_alloc: Likewise.
61028         * modules/unistd (Files): Remove lib/unistd_.h.
61029         (EXTRA_DIST): Remove.
61030         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
61031         need unistd_.h.
61032         (MOSTLYCLEANFILES): Remove unistd.h-t.
61033
61034 2006-03-03  Simon Josefsson  <jas@extundo.com>
61035
61036         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
61037
61038 2006-03-03  Simon Josefsson  <jas@extundo.com>
61039
61040         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
61041         libidn and bison.
61042
61043 2006-03-03  Simon Josefsson  <jas@extundo.com>
61044
61045         * build-aux/maint.mk: Add indent target.
61046
61047 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
61048
61049         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
61050         our replacement poll.h in any case, to avoid a differing
61051         declaration from a system header.  Seen on AIX.
61052
61053 2006-03-01  Simon Josefsson  <jas@extundo.com>
61054
61055         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
61056         <kasal@ucw.cz>.
61057
61058 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61059
61060         * modules/gettime (Depends-on): Add extensions module.
61061         * modules/nanosleep (Depends-on): Likewise.
61062         * modules/settime (Depends-on): Likewise.
61063
61064 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61065
61066         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
61067         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
61068         pedantically.
61069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61070         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
61071
61072         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
61073         not "==".  Reported by Ralf Wildenhues.
61074
61075 2006-03-01  Karl Berry  <karl@gnu.org>
61076
61077         * doc/Copyright/request-*: new files, synced from gnuorg.
61078
61079 2006-03-01  Karl Berry  <karl@gnu.org>
61080
61081         * config/srclist.txt (Copyright/*): new entries.
61082
61083 2006-02-28  Simon Josefsson  <jas@extundo.com>
61084
61085         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
61086
61087 2006-02-27  Simon Josefsson  <jas@extundo.com>
61088
61089         * lib/base64.h: Indent #define's.  From Jim Meyering
61090         <jim@meyering.net>.
61091
61092 2006-02-27  Jim Meyering  <jim@meyering.net>
61093
61094         Revert the change of 2006-02-24, so these files can continue
61095         to be sync'd from gettext.
61096         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
61097         of `config.h'.
61098
61099 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61100
61101         * modules/intprops: New file.
61102         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61103         Add intprops.
61104         * modules/getloadavg (Files): Remove lib/intprops.h.
61105         (Depends-on): Add intprops.
61106         * modules/human: Likewise.
61107         * modules/inttostr: Likewise.
61108         * modules/openat: Likewise.
61109         * modules/sig2str: Likewise.
61110         * modules/userspec: Likewise.
61111         * modules/utimecmp: Likewise.
61112         * modules/xnanosleep: Likewise.
61113         * modules/xstrtol: Likewise.
61114
61115 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
61116
61117         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
61118         * modules/lock-tests (TESTS): Use $(EXEEXT).
61119         * modules/tls-tests: Likewise.
61120         * modules/argp-tests: Likewise.
61121         (check_PROGRAMS): New var, replacing...
61122         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
61123
61124 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61125
61126         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
61127         `config.h'.
61128
61129 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61130
61131         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
61132
61133 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61134
61135         Sync from coreutils.
61136         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
61137         gl_CHDIR_SAFER.
61138
61139 2006-02-22  Jim Meyering  <jim@meyering.net>
61140
61141         Sync from coreutils.
61142         * m4/chdir-safer.m4: New file.
61143
61144 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61145
61146         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
61147         AT_FDCWD exceeds INT_MAX.
61148         * lib/openat.h (AT_FDCWD): Likewise.
61149
61150 2006-02-17  Eric Blake  <address@hidden>
61151
61152         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61153
61154 2006-02-16  Simon Josefsson  <jas@extundo.com>
61155
61156         * modules/getaddrinfo (Depends-on): Add sys_socket.
61157
61158 2006-02-15  Simon Josefsson  <jas@extundo.com>
61159
61160         * build-aux/maint.mk: Add dsyntax-check rule.
61161
61162 2006-02-15  Eric Blake  <ebb9@byu.net>
61163
61164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61165         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61166         'present but cannot compile' warnings on cygwin.
61167         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61168         use ws2tcpip.h if sys/socket.h works.
61169         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61170         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61171
61172 2006-02-14  Simon Josefsson  <jas@extundo.com>
61173
61174         * modules/maintainer-makefile (Files): Rename.
61175
61176         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61177         and (the local) Makefile.cfg to maint-cfg.mk.
61178
61179         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61180         to the latter.
61181
61182         * modules/maintainer-makefile: New module.
61183
61184         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61185         severaly stripped to make it possible to build it up from scratch
61186         with reliable tests.
61187
61188         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61189         fixes to permit overriding the default actions when configure and
61190         makefile are not available.
61191
61192 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61193
61194         Sync from coreutils.
61195         * modules/lstat (Depends-on): Don't depend on xalloc.
61196         (License): Change from GPL to LGPL, since this is now simply a
61197         replacement for a libc function.
61198
61199 2006-02-14  Jim Meyering  <jim@meyering.net>
61200
61201         Sync from coreutils.
61202
61203         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61204         failure on deficient systems, and simplify gnulib lgpl dependencies.
61205         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61206         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61207
61208         * lib/xalloc-die.c: Remove unused definition of N_.
61209
61210 2006-02-14  Jim Meyering  <jim@meyering.net>
61211
61212         Sync from coreutils.
61213         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61214         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61215         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61216         double-quote uses of that variable, to accommodate the rare case in
61217         which getmntent is available in none of the libraries checked.  This
61218         happens at least on FreeBSD 5.0.
61219
61220 2006-02-13  Simon Josefsson  <jas@extundo.com>
61221
61222         * gnulib-tool (Usage): Fix --import, from
61223         karl@freefriends.org (Karl Berry).
61224
61225 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61226
61227         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61228
61229 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61230
61231         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61232         "autoupdate" on 2005-12-12.
61233
61234 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61235
61236         * modules/closeout (Depends-on): Remove atexit.
61237
61238 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61239
61240         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61241         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61242
61243 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61246         __EXTENSIONS__ if this causes compilation to fail.  Problem
61247         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61248         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61249
61250 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61253         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61255         All uses changed.
61256
61257 2006-01-26  Simon Josefsson  <jas@extundo.com>
61258
61259         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61260         prototype is visible on mingw32.
61261
61262         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61263         for mingw32.
61264
61265         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61266         mingw32).
61267
61268 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61269
61270         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61271         attempt to open for write; this always fails, at least on POSIX
61272         hosts.  This reinstates the 2006-01-09 change, which was
61273         inadvertently removed.
61274
61275 2006-01-26  Bruno Haible  <bruno@clisp.org>
61276
61277         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61278         Reported by Paul Eggert.
61279
61280 2006-01-26  Bruno Haible  <bruno@clisp.org>
61281             Paul Eggert  <eggert@cs.ucla.edu>
61282
61283         * lib/stdbool_.h (_Bool)
61284         [(! (defined __cplusplus || defined __BEOS__)
61285           && !defined __GNUC__
61286           && !(defined __HP_cc || defined __xlc__
61287                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61288                || defined __sgi))]:
61289         #define to signed char in these cases too; this simplifies
61290         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61291         etc., separately) and makes it more conservative.
61292
61293 2006-01-25  Simon Josefsson  <jas@extundo.com>
61294
61295         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61296         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61297         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61298
61299 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61300
61301         * lib/argp-namefrob.h: Bugfix. Remove stray #
61302
61303 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61304
61305         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61306         so that we test the test.
61307         Check for yet another HP-UX cc bug involving *bool |= bool.
61308
61309 2006-01-25  Karl Berry  <karl@gnu.org>
61310
61311         * config/srclist.txt (vasnprintf.c): sync lost.
61312
61313 2006-01-25  Jim Meyering  <jim@meyering.net>
61314
61315         Sync from the stable (b5) branch of coreutils:
61316
61317         * lib/fts.c (fts_children): Don't let close() clobber errno from
61318         failed fchdir().
61319
61320         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61321         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61322         a dangling symlink.  That can also happen at least for ELOOP.
61323         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61324         FYI, this bug predates the inclusion of fts.c in coreutils.
61325
61326         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61327         in their own block, so pre-c99 compilers don't object.
61328
61329         Avoid the double-free (first in fts_read, second in fts_close) that
61330         would occur when an `active' directory is made inaccessible (e.g.,
61331         via chmod a-x) during a traversal.
61332         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61333         before returning.  Reproduce this failure by
61334         mkdir -p a/b; cd a; chmod a-x . b
61335         Reported by Stavros Passas.
61336
61337 2006-01-25  Jim Meyering  <jim@meyering.net>
61338
61339         * lib/fileblocks.c: Remove more useless parentheses.
61340         * lib/readutmp.h: Likewise.
61341
61342 2006-01-25  Bruno Haible  <bruno@clisp.org>
61343
61344         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61345         warnings.
61346         Reported by Paul Eggert.
61347
61348 2006-01-25  Bruno Haible  <bruno@clisp.org>
61349
61350         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61351         rid of a trap command. For Solaris sh.
61352         Reported by Mark D. Baushke <mdb@gnu.org>.
61353
61354 2006-01-24  Simon Josefsson  <jas@extundo.com>
61355
61356         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61357         Bruno.
61358
61359 2006-01-24  Karl Berry  <karl@gnu.org>
61360
61361         * config/srclist.txt (argp-namefrob.h): sync lost.
61362
61363 2006-01-24  Jim Meyering  <jim@meyering.net>
61364
61365         * modules/openat (Files): Add lib/intprops.h.
61366         From Mark D. Baushke.
61367
61368 2006-01-24  Jim Meyering  <jim@meyering.net>
61369
61370         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61371         Reported by Mark D. Baushke.
61372
61373 2006-01-24  Jim Meyering  <jim@meyering.net>
61374
61375         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61376
61377 2006-01-24  Bruno Haible  <bruno@clisp.org>
61378
61379         * modules/strnlen (Maintainer): Change from glibc to all.
61380
61381 2006-01-24  Bruno Haible  <bruno@clisp.org>
61382
61383         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61384         Patch by Paul Eggert.
61385
61386 2006-01-24  Bruno Haible  <bruno@clisp.org>
61387
61388         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61389         already has it.
61390         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61391         2005-11-26.
61392
61393         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61394         'signed char' to avoid problems with the built-in _Bool type.
61395         Reported by Paul Eggert on 2005-11-26.
61396
61397 2006-01-24  Bruno Haible  <bruno@clisp.org>
61398
61399         * gnulib-tool (func_import): Avoid constructing complicated sed
61400         expressions inside backquote.
61401         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61402
61403 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61404
61405         These changes imported from libc.
61406         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61407         test and two separate function calls.
61408         * lib/strndup.c (__strndup): Add libc_hidden_def.
61409
61410 2006-01-23  Simon Josefsson  <jas@extundo.com>
61411
61412         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61413         Remove the test_*_SOURCES variable: automake infers it by default.
61414         * modules/tls-tests: Likewise.
61415
61416 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61417
61418         Work around porting bugs reported by Dieter in
61419         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61420         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61421         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61422         Include "getopt.h" first, to check interface.
61423         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61424         !HAVE_DECL_GETENV.
61425         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61426         (__strndup): Revert to K&R-style function dfns, the glibc style.
61427         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61428         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61429         Include strnlen.h first, to get prototype properly.
61430         (strnlen): Renamed from __strnlen.
61431         Remove weak alias.
61432
61433 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61434
61435         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61436
61437 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61438
61439         * config/srclist.txt: Adjust to reflect glibc reorganization.
61440         This affects only comments.
61441
61442 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61443
61444          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61445          Reported by Bruce Korb <bkorb@gnu.org>.
61446
61447 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61448
61449         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61450         to pacify gcc -Wswitch-default.
61451
61452 2006-01-22  Bruno Haible  <bruno@clisp.org>
61453
61454         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61455         temporary buffer for sprintf, take into account the precision also
61456         for 'd', 'i', 'u', 'o', 'x', 'X'.
61457
61458 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61459
61460         * modules/argp-tests: New module
61461         * tests/test-argp.c: New file
61462         * tests/test-argp-2.sh: New file
61463
61464 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61465
61466         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61467         (__argp_base_name): Removed
61468         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61469         typo.
61470         (__argp_base_name): Provide macro definition or extern declaration
61471         depending on the configuration
61472
61473 2006-01-20  Simon Josefsson  <jas@extundo.com>
61474
61475         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61476
61477 2006-01-20  Simon Josefsson  <jas@extundo.com>
61478
61479         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61480
61481 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61482
61483         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61484         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61485         Suggested by Bruno Haible.
61486
61487 2006-01-20  Karl Berry  <karl@gnu.org>
61488
61489         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61490         until changes propagate, I guess.
61491
61492 2006-01-19  Simon Josefsson  <jas@extundo.com>
61493
61494         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61495
61496 2006-01-19  Simon Josefsson  <jas@extundo.com>
61497
61498         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61499
61500 2006-01-19  Simon Josefsson  <jas@extundo.com>
61501
61502         * gnulib-tool: Set check_PROGRAMS.
61503
61504         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61505         modules/des-tests, modules/gc-arcfour-tests,
61506         modules/gc-arctwo-tests, modules/gc-des-tests,
61507         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61508         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61509         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61510         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61511         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61512         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61513         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61514         test_*_SOURCES.
61515
61516 2006-01-18  Simon Josefsson  <jas@extundo.com>
61517
61518         * modules/socklen (Depends-on): Depend on sys_socket.
61519
61520 2006-01-18  Simon Josefsson  <jas@extundo.com>
61521
61522         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61523         modules/des-tests, modules/gc-arcfour-tests,
61524         modules/gc-arctwo-tests, modules/gc-des-tests,
61525         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61526         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61527         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61528         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61529         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61530         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
61531         $(EXEEXT) to automake TESTS variable, for mingw32.
61532
61533 2006-01-17  Simon Josefsson  <jas@extundo.com>
61534
61535         * modules/socklen (Include): Need sys/socket.h.
61536
61537 2006-01-17  Bruno Haible  <bruno@clisp.org>
61538
61539         * modules/ssize_t (Include): Add <sys/types.h>.
61540
61541 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61542
61543         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61544         it's not portable and it doesn't work with cross-compiles.
61545         Problem reported by Bruno Haible.  Fix missing-$ typo in
61546         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61547         -zignore from being used with Sun's C compiler.
61548
61549 2006-01-12  Simon Josefsson  <jas@extundo.com>
61550
61551         * lib/base64.c: Fix warning, reported by Bruno Haible
61552         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61553
61554 2006-01-12  Bruno Haible  <bruno@clisp.org>
61555
61556         * modules/ldd: New file.
61557         * build-aux/ldd.sh.in: New file.
61558         * MODULES.html.sh (Support for building libraries and executables): Add
61559         ldd.
61560
61561 2006-01-12  Bruno Haible  <bruno@clisp.org>
61562
61563         * m4/ldd.m4: New file.
61564
61565 2006-01-12  Bruno Haible  <bruno@clisp.org>
61566
61567         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61568         endless loop while replacing $auxdir with build-aux.
61569
61570 2006-01-11  Simon Josefsson  <jas@extundo.com>
61571
61572         * lib/stdint_.h (SIZE_MAX): Add missing (.
61573
61574 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61575
61576         Sync from coreutils.
61577         * lib/md5.c: Fix commentary typos.
61578         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61579         * lib/md5.h (__attribute__): Remove; unused.
61580         * lib/sha1.c: Fix commentary to match md5 better.
61581         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61582         so that we don't need to worry about alignment.  All uses changed.
61583         This merges the 2005-10-28 md5 change into sha1.
61584
61585 2006-01-11  Jim Meyering  <jim@meyering.net>
61586
61587         Sync from coreutils.
61588         * lib/md5.c (OP): Fix spacing.
61589
61590 2006-01-11  Bruno Haible  <bruno@clisp.org>
61591
61592         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61593         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61594         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61595
61596 2006-01-11  Bruno Haible  <bruno@clisp.org>
61597
61598         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61599         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
61600         the "early" section as well.
61601
61602 2006-01-11  Bruno Haible  <bruno@clisp.org>
61603
61604         Avoid "ar: no archive members specified" error on MacOS X.
61605         * gnulib-tool (func_modules_add_dummy): New function.
61606         (func_import, func_create_testdir): Invoke it.
61607
61608 2006-01-11  Bruno Haible  <bruno@clisp.org>
61609
61610         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
61611         with $auxdir in AC_CONFIG_FILES statements.
61612
61613 2006-01-11  Bruno Haible  <bruno@clisp.org>
61614
61615         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61616         Initialize also noinst_HEADERS to empty.
61617
61618 2006-01-11  Bruno Haible  <bruno@clisp.org>
61619
61620         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
61621         variables.
61622         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
61623         autoreconf.
61624
61625 2006-01-11  Bruno Haible  <bruno@clisp.org>
61626
61627         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
61628         overridable by the user.
61629         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61630
61631 2006-01-10  Simon Josefsson  <jas@extundo.com>
61632
61633         * modules/sys_socket: New file.
61634
61635 2006-01-10  Simon Josefsson  <jas@extundo.com>
61636
61637         * m4/sys_socket_h.m4: New file.
61638
61639 2006-01-10  Simon Josefsson  <jas@extundo.com>
61640
61641         * lib/socket_.h: New file.
61642
61643 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61644
61645         * modules/readutmp (Maintainer): Add myself.
61646
61647 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61648
61649         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
61650         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
61651         People who are still concerned with buggy memcmp implementations
61652         can invoke gl_FUNC_MEMCMP themselves.
61653
61654 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * lib/regex_internal.h (BITSET_WORD_BITS):
61657         Work around a bug in 64-bit PGC (before version 6.1-2), where the
61658         preprocessor mishandles large unsigned values as if they were signed.
61659         Problem reported by Claudio Fontana in
61660         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
61661
61662 2006-01-10  Jim Meyering  <jim@meyering.net>
61663
61664         Avoid the double-free (first in fts_read, second in fts_close) that
61665         would occur when an `active' directory is made inaccessible (e.g.,
61666         via chmod a-x) during a traversal.
61667         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61668         before returning.  Reproduce this failure by
61669         mkdir -p a/b; cd a; chmod a-x . b
61670         Reported by Stavros Passas.
61671
61672         Sync from coreutils.
61673         * lib/sha1.c: Tweak grammar in a comment.
61674
61675 2006-01-10  Jim Meyering  <jim@meyering.net>
61676
61677         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
61678         Patch by Joerg Sonnenberger.
61679
61680 2006-01-10  Bruno Haible  <bruno@clisp.org>
61681
61682         * modules/readutmp: Depend on module free.
61683         * modules/strtok_r: Depend on module restrict.
61684
61685 2006-01-10  Bruno Haible  <bruno@clisp.org>
61686
61687         * modules/gettext (configure.ac): Add an invocation of
61688         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
61689
61690 2006-01-10  Bruno Haible  <bruno@clisp.org>
61691
61692         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
61693         Reported by Werner Lemberg <wl@gnu.org>.
61694
61695 2006-01-10  Bruno Haible  <bruno@clisp.org>
61696
61697         * lib/localcharset.c: Update from GNU gettext.
61698
61699 2006-01-10  Bruno Haible  <bruno@clisp.org>
61700
61701         * lib/argp.h (__const): Remove macro. Use const instead.
61702         * lib/argp-fmtstream.h (__const): Likewise.
61703         * lib/glob_.h (__const): Remove macro.
61704         * lib/glob-libc.h: Use const instead of __const.
61705
61706 2006-01-10  Bruno Haible  <bruno@clisp.org>
61707
61708         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
61709         variable.
61710         Needed to avoid an automake error regarding the 'gettext' module.
61711
61712 2006-01-09  Simon Josefsson  <jas@extundo.com>
61713
61714         * modules/inet_ntop (Depends-on): Add restrict.
61715
61716 2006-01-09  Simon Josefsson  <jas@extundo.com>
61717
61718         * modules/gc-rijndael-tests (License): Put under LGPL.
61719
61720         * modules/gc-des-tests (License): Likewise.
61721
61722         * modules/gc-arcfour-tests (License): Likewise.
61723
61724         * modules/gc-arctwo-tests (License): Likewise.
61725
61726         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
61727
61728         * modules/gc-hmac-sha1-tests (Files): Likewise.
61729
61730         * modules/gc-hmac-md5-tests (License): Likewise.
61731
61732         * modules/gc-sha1-tests (License): Likewise.
61733
61734         * modules/gc-md5-tests (License): Likewise.
61735
61736         * modules/gc-md4-tests (License): Likewise.
61737
61738         * modules/gc-md2-tests (License): Likewise.
61739
61740         * modules/gc-tests (License): Likewise.
61741
61742         * modules/des-tests (License): Likewise.
61743
61744         * modules/md4-tests (License): Likewise.
61745
61746         * modules/md2-tests (License): Likewise.
61747
61748 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61749
61750         Sync from coreutils:
61751
61752         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
61753         * modules/lib-ignore: New file.
61754         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
61755         chdir-safer.m4, lchmod.m4.
61756         * modules/openat: Add mkdirat.c, openat-priv.h.
61757
61758 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61759
61760         Sync from coreutils.
61761         * m4/lib-ignore.m4: New file.
61762         * m4/lchmod.m4: New file.
61763
61764 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61765
61766         Sync from coreutils.
61767         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
61768         for write access: POSIX says that must fail.
61769         * lib/fts.c (diropen): Likewise.
61770         * lib/save-cwd.c (save_cwd): Likewise.
61771         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
61772         well, for minor improvements on hosts that lack O_DIRECTORY.
61773         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
61774         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
61775         Fall back on chown if open failed with EACCES.
61776
61777         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
61778         Report an error at compile-time if only a 1-second nominal clock
61779         resolution is found.
61780
61781         * lib/lchmod.h: New file.
61782         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
61783         (make_dir_parents): Use lchown rather than chown, and
61784         lchmod rather than chmod.
61785
61786         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
61787         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
61788         "proc" reported by n0dalus.
61789
61790         * lib/mountlist.c: Include <limits.h>.
61791         (dev_from_mount_options)
61792         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
61793         New function.  It no longer assumes "dev=" has the System V meaning
61794         on Linux (since it doesn't).  It also parses "dev=" more carefully.
61795         (read_file_system_list)
61796         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
61797         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
61798         dev= in that case.
61799
61800         * lib/posixtm.h (PDS_PRE_2000): New macro.
61801         * lib/posixtm.c (year): Arg is now syntax_bits rather than
61802         allow_century.  All usages changed.  Reject dates outside the range
61803         1969-1999 if PDS_PRE_2000 is used.
61804
61805 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61806
61807         Sync from coreutils.
61808         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
61809         (Time of day items): Mention the possibility of leap seconds.
61810         Problem reported by Dr. David Alan Gilbert.
61811
61812 2006-01-09  Jim Meyering  <jim@meyering.net>
61813
61814         Sync from coreutils.
61815
61816         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
61817
61818         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
61819
61820         * lib/modechange.c (mode_compile): Reject an invalid mode string
61821         that starts with an octal digit.  From Andreas Gruenbacher.
61822
61823         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
61824         and dup to open_safer and dup_safer, respectively.
61825         (openat_permissive): Fix typo in comment.
61826
61827         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
61828         "gettext.h"; either no longer needed or are guaranteed by openat.h.
61829         (_): Remove; no longer needed.
61830         (openat): Renamed from rpl_openat; no need for rpl_openat
61831         since openat.h renames openat for us.
61832         Replace most of the body with a call to openat_permissive,
61833         to avoid duplicate code.
61834         Port to (probably hypothetical) environments were mode_t is
61835         wider than int.
61836         (openat_permissive): Require mode arg, so that we can check
61837         types better.  Put it just after flags.  Change cwd failure
61838         indicator from pointer-to-bool to pointer-to-errno-value.
61839         All callers changed.
61840         Invoke openat_save_fail and/or openat_restore_fail if
61841         cwd_errno is null, so that openat can call us.
61842         (openat_permissive, fdopendir, fstatat, unlinkat):
61843         Simplify errno handling to avoid some duplicate code,
61844         as it's OK to set errno on success.
61845         * lib/openat.h: Revamp code so that function macros depend on
61846         __OPENAT_PREFIX only, not also on AT_FDCWD.
61847         (openat_ro): Remove.  Caller changed to use openat_permissive.
61848         (openat_permissive): Now a macro, if not a function.
61849         (openat_restore_fail, openat_save_fail): Now always functions,
61850         since mkdirat needs them even if __OPENAT_PREFIX is defined.
61851
61852         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
61853         and openat.c.
61854         * lib/mkdirat.c: Include openat-priv.h.
61855         Remove definitions of macros defined therein.
61856         * lib/openat.c: Likewise.
61857
61858         * lib/mkdirat.c (mkdirat): New file and function.
61859         * lib/openat.h (mkdirat): Declare.
61860
61861         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
61862
61863         * lib/openat.h (openat_permissive): Declare.
61864         (openat_ro): Define.
61865
61866         * lib/openat.c (EXPECTED_ERRNO): New macro.
61867         (openat_permissive): New function -- used in remove.c rewrite.
61868         (all functions): Set errno just before returning, only if there
61869         was an actual failure.
61870         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
61871
61872         Emulate openat-family functions using Linux's procfs, if possible.
61873         Idea and some code based on Ulrich Drepper's glibc changes.
61874
61875         * lib/openat.c: (BUILD_PROC_NAME): New macro.
61876         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
61877         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
61878         before falling back on save_cwd and restore_cwd.
61879         (fdopendir, fstatat, unlinkat): Likewise.
61880
61881         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
61882         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
61883
61884         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
61885         as second argument to va_arg.  Otherwise, some versions of gcc
61886         warn that `if this code is reached, the program will abort'.
61887
61888 2006-01-09  Jim Meyering  <jim@meyering.net>
61889
61890         Sync from coreutils.
61891         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
61892         Require openat-priv.h.
61893
61894 2006-01-09  Bruno Haible  <bruno@clisp.org>
61895
61896         * modules/strnlen (Include): Use strnlen.h.
61897
61898 2006-01-09  Bruno Haible  <bruno@clisp.org>
61899
61900         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
61901
61902 2006-01-09  Bruno Haible  <bruno@clisp.org>
61903
61904         * lib/sysexit_.h (EX_OK): New macro.
61905         Suggested by Martin Lambers <marlam@marlam.de>.
61906
61907 2006-01-09  Bruno Haible  <bruno@clisp.org>
61908
61909         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
61910         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
61911
61912 2006-01-09  Bruno Haible  <bruno@clisp.org>
61913
61914         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
61915         numbers.
61916
61917 2006-01-09  Bruno Haible  <bruno@clisp.org>
61918
61919         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
61920         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
61921         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
61922         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
61923
61924 2006-01-09  Bruno Haible  <bruno@clisp.org>
61925
61926         * build-aux/javacomp.sh.in: New file, moved from lib/.
61927         * modules/javacomp-script (Files): Update.
61928         (configure.ac): Add AC_CONFIG_FILES invocation.
61929         (EXTRA_DIST): Remove variable.
61930
61931         * build-aux/javaexec.sh.in: New file, moved from lib/.
61932         * modules/javaexec (Files): Update.
61933         (configure.ac): Add AC_CONFIG_FILES invocation.
61934         (EXTRA_DIST): Remove javaexec.sh.in.
61935
61936         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
61937         * modules/csharpcomp-script (Files): Update.
61938         (configure.ac): Add AC_CONFIG_FILES invocation.
61939         (EXTRA_DIST): Remove variable.
61940
61941         * build-aux/csharpexec.sh.in: New file, moved from lib/.
61942         * modules/csharpexec (Files): Update.
61943         (configure.ac): Add AC_CONFIG_FILES invocation.
61944         (EXTRA_DIST): Remove csharpexec.sh.in.
61945
61946 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61947
61948         Sync from coreutils.
61949
61950         Add POSIX ACL support
61951         * lib/acl.h (copy_acl, set_acl): Add declarations.
61952         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
61953         systems other than Linux.
61954         (chmod_or_fchmod): New function: use fchmod when possible,
61955         and chmod otherwise.
61956         (file_has_acl): Add a POSIX ACL implementation, with a
61957         Linux-specific subcase.
61958         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
61959         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
61960         acls are unsupported.
61961         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
61962         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
61963         are unsupported.
61964
61965 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
61966
61967         Sync from coreutils.
61968         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61969
61970 2006-01-07  Bruno Haible  <bruno@clisp.org>
61971
61972         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
61973         gl_EARLY.
61974
61975 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61976
61977         * lib/strftime.c (tzname): Don't declare if it is already #defined.
61978         Problem reported for Mingw by Mark Junker.
61979
61980 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61981
61982         * README: Gnulib normally doesn't generate a tarball.
61983
61984 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
61985
61986         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
61987         long int, not int, for nanosecond counts, so that people who are
61988         used to POSIX struct timespec won't be surprised.  Reported by Jim
61989         Meyering.
61990
61991 2005-12-28  Bruno Haible  <bruno@clisp.org>
61992
61993         * build-aux/config.rpath: Update from GNU gettext.
61994
61995 2005-12-16  Jim Meyering  <jim@meyering.net>
61996
61997         * modules/fprintftime: New module.
61998         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
61999
62000 2005-12-16  Jim Meyering  <jim@meyering.net>
62001
62002         * m4/fprintftime.m4: New file.
62003
62004 2005-12-16  Jim Meyering  <jim@meyering.net>
62005
62006         * lib/fprintftime.c, lib/fprintftime.h: New files.
62007
62008 2005-12-15  Simon Josefsson  <jas@extundo.com>
62009
62010         * modules/socklen (configure.ac): Fix M4 macro name, to align with
62011         new m4/socklen.m4.
62012
62013 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62014
62015         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
62016         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
62017
62018 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62019
62020         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
62021         * lib/argp-help.c (fill_in_uparams): Check if the constructed
62022         struct uparams is valid. Fall back to the default values if it is
62023         not.
62024
62025 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62026
62027         * modules/argp (Files): Add argp-pin.c
62028         (Depends-on): dirname
62029         (lib_SOURCES): Add argp-pin.c
62030
62031 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62032
62033         * m4/argp.m4:  Check if program_invocation_name and
62034         program_invocation_short_name are declared and define appropriate
62035         macros if they are not.
62036
62037 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62038
62039         * lib/argp-help.c (__argp_base_name): New function
62040         (__argp_short_program_name): Rewrite using __argp_base_name
62041         * lib/argp-namefrob.h: Define program_invocation_name and
62042         program_invocation_short_name if requested
62043         (__argp_base_name): Add prototype
62044         * lib/argp-parse.c (argp_def): Use gettext wrappers
62045         (argp_default_parser): Use __argp_base_name
62046         * lib/argp-pin.c: New file. Defines program_invocation_name and
62047         program_invocation_short_name on systems that lack them.
62048
62049 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62050
62051         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
62052         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62053         porting problem reported by Georg Schwarz in
62054         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62055
62056 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62057
62058         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
62059         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62060         porting problem reported by Georg Schwarz in
62061         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62062
62063 2005-12-05  Bruno Haible  <bruno@clisp.org>
62064
62065         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
62066         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
62067         Reported by Mark Junker <mjscod@gmx.de>.
62068
62069 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
62070
62071         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
62072         Use implementation from Albert Chin, with some
62073         comments/corrections by Stepan Kasal and myself.
62074
62075 2005-12-02  Bruno Haible  <bruno@clisp.org>
62076
62077         * gnulib-tool (func_import): Accept GPLed build tool modules when
62078         --lgpl is given.
62079         * modules/csharpcomp-script: New file.
62080         * modules/csharpcomp: Depend on it.
62081         * modules/javacomp-script: New file.
62082         * modules/javacomp: Depend on it.
62083         Suggested by Simon Josefsson.
62084
62085 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62086
62087         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
62088         statement, to work around an HP-UX 10.20 compiler bug reported by
62089         Peter O'Gorman.
62090
62091 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62092
62093         * modules/savedir (Depends-on): Add openat.
62094
62095 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62096
62097         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
62098         (uintmax_t) [defined uintmax_t]: Do not declare.
62099         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
62100         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
62101         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
62102         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
62103         sake of portability to weird hosts that C allows (though we don't
62104         know of any practical examples).
62105
62106         * lib/savedir.h (fdsavedir): New decl.
62107         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
62108         contains most of the former guts of savedir.
62109         (savedir): Use savedirstream.
62110         Include "openat.h".
62111
62112 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62113
62114         * modules/obstack (Files): Add m4/ulonglong.m4.
62115         Problem reported by Davide Angelocola.
62116
62117 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62118
62119         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
62120         coreutils no longer futzes with rounding modes.
62121
62122 2005-11-14  Jim Meyering  <jim@meyering.net>
62123
62124         * lib/mkstemp-safer.c: Include <config.h>, required for possible
62125         replacement of mkstemp.
62126
62127 2005-11-10  Simon Josefsson  <jas@extundo.com>
62128
62129         * lib/readline.c: Remove EOL.
62130
62131 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62132
62133         * modules/gethrxtime (Depends-on): Add gettime.
62134
62135 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62136
62137         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
62138         or gettimeofday; no longer needed.
62139
62140 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
62143         time business.
62144         (gethrxtime) [! (HAVE_NANOUPTIME
62145         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
62146         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
62147         our own approximation.
62148
62149 2005-11-08  Eric Blake  <ebb9@byu.net>
62150
62151         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62152
62153 2005-11-08  Eric Blake  <ebb9@byu.net>
62154
62155         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62156
62157 2005-11-04  Bruno Haible  <bruno@clisp.org>
62158
62159         * gnulib-tool: Implement --update mode.
62160
62161 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62162
62163         Fix porting problem reported by Theodoros V. Kalamatianos.
62164         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62165         Don't assume that futimes failing means we must fail.
62166
62167 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62168
62169         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62170         variables to suggest the intended function of the PATH_MAX check.
62171
62172 2005-10-30  Kean Johnston  <jkj@sco.com>
62173
62174         Trivial changes to support SCO systems.
62175         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62176         as PATH_MAX.
62177         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62178         where __ptr is null when no I/O is pending.
62179
62180 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62181
62182         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62183         leave errno alone.  Problem reported by Dmitry V. Levin.
62184
62185 2005-10-28  Simon Josefsson  <jas@extundo.com>
62186
62187         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62188         Test more.
62189
62190         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62191
62192         * modules/md2, modules/md2-tests: New files.
62193
62194 2005-10-28  Simon Josefsson  <jas@extundo.com>
62195
62196         * m4/inet_ntop.m4: More tests.
62197
62198         * m4/gc-md2.m4, md2.m4: New file.
62199
62200 2005-10-28  Simon Josefsson  <jas@extundo.com>
62201
62202         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62203         "restrict" keywords, as per POSIX.  Protect the function
62204         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62205         Don't use K&R prototypes.  Check the sprintf return values.
62206         Re-define EAFNOSUPPORT if not present.  Indent.
62207
62208         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62209         suggested by Bruno Haible <bruno@clisp.org>.
62210
62211         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62212
62213         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62214
62215         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62216         libgcrypt).
62217
62218         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62219
62220         * lib/md2.h, lib/md2.c: New files.
62221
62222 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62223
62224         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62225         errno alone.  Problem reported by Frederic Jolliton.
62226
62227 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * modules/verify (License): Change from GPL to LGPL.  This is a
62230         tiny module and there are apparently near-equivalents that are
62231         under the BSD license.
62232
62233 2005-10-24  Simon Josefsson  <jas@extundo.com>
62234
62235         * modules/sha1: Relicense to LGPL.
62236
62237 2005-10-24  Simon Josefsson  <jas@extundo.com>
62238
62239         * lib/md4.h: Shrink buffer size, now that we changed the type.
62240
62241 2005-10-23  Simon Josefsson  <jas@extundo.com>
62242
62243         * gnulib-tool (func_import): Fix --tests-base.
62244
62245 2005-10-22  Simon Josefsson  <jas@extundo.com>
62246
62247         * modules/arcfour (Depends-on): Need stdint.
62248
62249 2005-10-22  Simon Josefsson  <jas@extundo.com>
62250
62251         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62252         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62253
62254 2005-10-22  Simon Josefsson  <jas@extundo.com>
62255
62256         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62257         suggested by Bruno Haible <bruno@clisp.org>.
62258
62259 2005-10-22  Simon Josefsson  <jas@extundo.com>
62260
62261         * lib/crc.h: Include stddef.h, for size_t.
62262
62263 2005-10-22  Simon Josefsson  <jas@extundo.com>
62264
62265         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62266         arcfour_context struct (simplify test vector testing in GNU
62267         Shishi).
62268
62269 2005-10-21  Simon Josefsson  <jas@extundo.com>
62270
62271         * modules/des, modules/des-tests: New files.
62272
62273         * modules/gc-des, modules/gc-des-tests: New files.
62274
62275         * tests/test-des.c, tests/test-gc-des.c: New file.
62276
62277 2005-10-21  Simon Josefsson  <jas@extundo.com>
62278
62279         * modules/arctwo, modules/arctwo-tests: New files.
62280
62281         * tests/test-arctwo.c: New file.
62282
62283         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62284
62285         * tests/test-gc-arctwo.c: New file.
62286
62287 2005-10-21  Simon Josefsson  <jas@extundo.com>
62288
62289         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62290         Bruno Haible <bruno@clisp.org>.
62291
62292         * m4/gc-des.m4: New file.
62293
62294 2005-10-21  Simon Josefsson  <jas@extundo.com>
62295
62296         * m4/arctwo.m4: New file.
62297
62298         * m4/gc-arctwo.m4: New file.
62299
62300 2005-10-21  Simon Josefsson  <jas@extundo.com>
62301
62302         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62303         block.
62304
62305 2005-10-21  Simon Josefsson  <jas@extundo.com>
62306
62307         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62308         <bruno@clisp.org>.
62309
62310         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62311
62312         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62313         Bruno Haible <bruno@clisp.org>.
62314
62315         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62316         <bruno@clisp.org>.
62317
62318 2005-10-21  Simon Josefsson  <jas@extundo.com>
62319
62320         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62321
62322 2005-10-21  Simon Josefsson  <jas@extundo.com>
62323
62324         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62325
62326 2005-10-21  Simon Josefsson  <jas@extundo.com>
62327
62328         * lib/des.h, lib/des.c: New files.
62329
62330         * lib/gc-gnulib.c: Support DES.c
62331
62332 2005-10-21  Simon Josefsson  <jas@extundo.com>
62333
62334         * lib/arctwo.h, lib/arctwo.c: New files.
62335
62336         * lib/gc-gnulib.c: Support ARCTWO.
62337
62338 2005-10-21  Simon Josefsson  <jas@extundo.com>
62339
62340         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62341         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62342
62343 2005-10-21  Simon Josefsson  <jas@extundo.com>
62344
62345         * gnulib-tool (func_import, func_create_testdir): Define automake
62346         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62347         Makefile.am snippet),
62348         suggested by Bruno Haible <bruno@clisp.org>.
62349
62350         * modules/gc (Makefile.am): Use it.
62351
62352 2005-10-21  Bruno Haible  <bruno@clisp.org>
62353
62354         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62355         patch.
62356
62357 2005-10-19  Simon Josefsson  <jas@extundo.com>
62358
62359         * tests/test-gc-rijndael.c: New file.
62360
62361         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62362
62363 2005-10-19  Simon Josefsson  <jas@extundo.com>
62364
62365         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62366         interface too.
62367
62368 2005-10-19  Simon Josefsson  <jas@extundo.com>
62369
62370         * tests/test-gc-arcfour.c: New file.
62371
62372         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62373
62374 2005-10-19  Simon Josefsson  <jas@extundo.com>
62375
62376         * modules/gc-md4, modules/gc-md4-tests: New file.
62377
62378         * tests/test-gc-md4.c: New file.
62379
62380 2005-10-19  Simon Josefsson  <jas@extundo.com>
62381
62382         * m4/gc-md4.m4: New file.
62383
62384 2005-10-19  Simon Josefsson  <jas@extundo.com>
62385
62386         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62387         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62388         <kasal@ucw.cz>.
62389
62390 2005-10-19  Simon Josefsson  <jas@extundo.com>
62391
62392         * m4/gc-arcfour.m4: New file.
62393
62394         * m4/gc-rijndael.m4: New file.
62395
62396 2005-10-19  Simon Josefsson  <jas@extundo.com>
62397
62398         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62399
62400 2005-10-19  Simon Josefsson  <jas@extundo.com>
62401
62402         * lib/gc-gnulib.c: Support ARCFOUR.
62403
62404 2005-10-19  Simon Josefsson  <jas@extundo.com>
62405
62406         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62407         support.
62408
62409         * lib/gc.h: Add ECB enum type.
62410
62411         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62412
62413 2005-10-18  Simon Josefsson  <jas@extundo.com>
62414
62415         * tests/test-md5.c: New file.
62416
62417         * modules/md5-tests: New file.
62418
62419 2005-10-18  Simon Josefsson  <jas@extundo.com>
62420
62421         * tests/test-md4.c: New file.
62422
62423         * modules/md4, modules/md4-tests: New files.
62424
62425 2005-10-18  Simon Josefsson  <jas@extundo.com>
62426
62427         * m4/md4.m4: New file.
62428
62429 2005-10-18  Simon Josefsson  <jas@extundo.com>
62430
62431         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62432
62433 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62434
62435         * gnulib-tool (func_create_testdir): Omit the second check whether
62436         BUILT_SOURCES in nonempty.
62437
62438 2005-10-17  Simon Josefsson  <jas@extundo.com>
62439
62440         * tests/test-rijndael.c: New file.
62441
62442 2005-10-17  Simon Josefsson  <jas@extundo.com>
62443
62444         * modules/sha1: Depend on stdint instead of md5.
62445
62446         * modules/md5: Depend on stdint, remove uint32_t.
62447
62448 2005-10-17  Simon Josefsson  <jas@extundo.com>
62449
62450         * modules/gc-sha1-tests: New file.
62451
62452         * tests/test-gc-sha1.c: New file.
62453
62454 2005-10-17  Simon Josefsson  <jas@extundo.com>
62455
62456         * m4/md5.m4: Remove call to uint32_t.m4.
62457
62458 2005-10-17  Simon Josefsson  <jas@extundo.com>
62459
62460         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62461
62462         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62463         md5.h.
62464
62465         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62466
62467         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62468
62469 2005-10-17  Simon Josefsson  <jas@extundo.com>
62470
62471         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62472
62473 2005-10-17  Simon Josefsson  <jas@extundo.com>
62474
62475         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62476
62477 2005-10-17  Simon Josefsson  <jas@extundo.com>
62478
62479         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62480
62481         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62482
62483 2005-10-17  Bruno Haible  <bruno@clisp.org>
62484
62485         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62486         that it can also be used in a test.
62487
62488 2005-10-16  Bruno Haible  <bruno@clisp.org>
62489
62490         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62491         TESTS_ENVIRONMENT, so that individual tests can augment it.
62492
62493         * gnulib-tool (func_create_testdir): Use an intermediate target for
62494         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62495         macros, like $(ALLOCA_H), which cannot be passed through the command
62496         line.
62497
62498 2005-10-15  Simon Josefsson  <jas@extundo.com>
62499
62500         * modules/rijndael-tests: New file.
62501
62502         * modules/rijndael: New file.
62503
62504 2005-10-15  Simon Josefsson  <jas@extundo.com>
62505
62506         * m4/rijndael.m4: New file.
62507
62508 2005-10-15  Simon Josefsson  <jas@extundo.com>
62509
62510         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62511
62512         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62513
62514 2005-10-14  Simon Josefsson  <jas@extundo.com>
62515
62516         * tests/test-arcfour.c: New file.
62517
62518         * modules/arcfour, modules/arcfour-tests: New files.
62519
62520 2005-10-14  Simon Josefsson  <jas@extundo.com>
62521
62522         * m4/arcfour.m4: New file.
62523
62524 2005-10-14  Simon Josefsson  <jas@extundo.com>
62525
62526         * lib/arcfour.h, lib/arcfour.c: New files.
62527
62528 2005-10-14  Roland McGrath  <roland@redhat.com>
62529
62530         Import from libc.  [BZ #1331]
62531         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
62532         macro argument.
62533         Reported by Matej Vela <vela@debian.org>.
62534
62535 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62538         include <wchar.h>; no longer needed.
62539
62540 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62541
62542         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62543
62544 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62545         and  Ulrich Drepper  <drepper@redhat.com>
62546
62547         Import from libc.
62548         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62549         instead of inline stream orientation test and two separate
62550         function calls.  Pay no attention to USE_IN_LIBIO.
62551
62552 2005-10-13  Simon Josefsson  <jas@extundo.com>
62553
62554         * modules/gc-hmac-md5-tests: New file.
62555
62556         * tests/test-gc-hmac-sha1.c: New file.
62557
62558         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62559
62560         * modules/gc-hmac-md5-tests: New file.
62561
62562         * tests/test-gc-md5.c: New file.
62563
62564         * modules/gc-md5-tests: New file.
62565
62566 2005-10-13  Simon Josefsson  <jas@extundo.com>
62567
62568         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62569         Move memory allocation outside of loop.
62570
62571 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62572
62573         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62574         intermediate directory is in a read-only file system.  Problem
62575         reported by Eric Blake.
62576
62577 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62578
62579         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62580
62581 2005-10-12  Simon Josefsson  <jas@extundo.com>
62582
62583         * tests/test-hmac-sha1.c: New file.
62584
62585         * modules/hmac-sha1-tests: New file.
62586
62587         * modules/hmac-sha1: New file.
62588
62589 2005-10-12  Simon Josefsson  <jas@extundo.com>
62590
62591         * modules/gc-sha1: New file.
62592
62593 2005-10-12  Simon Josefsson  <jas@extundo.com>
62594
62595         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
62596
62597         * tests/test-gc-pbkdf2-sha1.c: New file.
62598
62599 2005-10-12  Simon Josefsson  <jas@extundo.com>
62600
62601         * modules/gc-md5, modules/gc-hmac-md5: New files.
62602
62603         * modules/gc (Files): Remove md5, memxor and hmac files.
62604
62605 2005-10-12  Simon Josefsson  <jas@extundo.com>
62606
62607         * m4/gc-pbkdf2-sha1.m4: New file.
62608
62609         * m4/gc-hmac-sha1.m4: New file.
62610
62611         * m4/gc-sha1: New file.
62612
62613         * m4/hmac-sha1.m4: New file.
62614
62615 2005-10-12  Simon Josefsson  <jas@extundo.com>
62616
62617         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
62618
62619         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
62620
62621 2005-10-12  Simon Josefsson  <jas@extundo.com>
62622
62623         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
62624         suggested by Bruno Haible <bruno@clisp.org>.
62625
62626 2005-10-12  Simon Josefsson  <jas@extundo.com>
62627
62628         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
62629
62630 2005-10-12  Simon Josefsson  <jas@extundo.com>
62631
62632         * lib/gc-pbkdf2-sha1.c: New file.
62633
62634         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
62635
62636 2005-10-12  Simon Josefsson  <jas@extundo.com>
62637
62638         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
62639
62640         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
62641
62642 2005-10-12  Simon Josefsson  <jas@extundo.com>
62643
62644         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
62645         GC_USE_HMAC_MD5, respectively.
62646
62647         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
62648         (gc_md5): Fix typo.
62649
62650         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
62651
62652         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
62653
62654         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
62655
62656 2005-10-12  Bruno Haible  <bruno@clisp.org>
62657
62658         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
62659         Reported by Stepan Kasal <kasal@ucw.cz>.
62660
62661 2005-10-11  Simon Josefsson  <jas@extundo.com>
62662
62663         * tests/test-crc.c: New file.
62664
62665         * modules/crc, modules/crc-tests: New files.
62666
62667 2005-10-11  Simon Josefsson  <jas@extundo.com>
62668
62669         * m4/crc.m4: New file.
62670
62671 2005-10-11  Simon Josefsson  <jas@extundo.com>
62672
62673         * lib/gc.h: Add gc_hash and gc_hash_buffer.
62674
62675         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
62676
62677         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
62678
62679 2005-10-11  Simon Josefsson  <jas@extundo.com>
62680
62681         * lib/crc.h, lib/crc.c: New files.
62682
62683         * lib/gc.h (gc_hash_buffer): Add doc.
62684
62685 2005-10-11  Bruno Haible  <bruno@clisp.org>
62686
62687         * modules/c-strcasestr: New file.
62688         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
62689
62690 2005-10-11  Bruno Haible  <bruno@clisp.org>
62691
62692         * modules/c-strcase: New file.
62693         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
62694
62695 2005-10-11  Bruno Haible  <bruno@clisp.org>
62696
62697         * lib/strcasecmp.c: Include limits.h.
62698         (strcasecmp): Avoid integer overflow on exotic platforms.
62699         * lib/strncasecmp.c: Include limits.h.
62700         (strncasecmp): Avoid integer overflow on exotic platforms.
62701         Reported by Paul Eggert.
62702
62703 2005-10-11  Bruno Haible  <bruno@clisp.org>
62704
62705         * lib/c-strcasestr.h: New file, from GNU gettext.
62706         * lib/c-strcasestr.c: New file, from GNU gettext.
62707
62708 2005-10-11  Bruno Haible  <bruno@clisp.org>
62709
62710         * lib/c-strcase.h: New file, from GNU gettext.
62711         * lib/c-strcasecmp.c: New file, from GNU gettext.
62712         * lib/c-strncasecmp.c: New file, from GNU gettext.
62713
62714 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62715
62716         * modules/mempcpy (License): GPL -> LGPL.
62717         * modules/strchrnul (License): Likewise.
62718         * modules/sysexits (License): Likewise.
62719
62720 2005-10-08  Simon Josefsson  <jas@extundo.com>
62721
62722         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
62723
62724 2005-10-07  Simon Josefsson  <jas@extundo.com>
62725
62726         * m4/memxor.m4: Remove gl_C_RESTRICT call.
62727
62728 2005-10-06  Simon Josefsson  <jas@extundo.com>
62729
62730         * tests/test-hmac-md5.c: New file.
62731
62732         * modules/hmac-md5-tests: New file.
62733
62734         * modules/hmac-md5: New file.
62735
62736 2005-10-06  Simon Josefsson  <jas@extundo.com>
62737
62738         * m4/hmac-md5.m4: New file.
62739
62740         * m4/memxor.m4: Require gl_C_RESTRICT.
62741
62742 2005-10-06  Simon Josefsson  <jas@extundo.com>
62743
62744         * lib/memxor.c (memxor): Avoid casts and warnings.
62745
62746 2005-10-06  Simon Josefsson  <jas@extundo.com>
62747
62748         * lib/hmac-md5.c: New file.
62749
62750         * lib/hmac.h: New file.
62751
62752 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62753
62754         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
62755         promotes to int, not unsigned int, to catch the AIX 5.3
62756         compiler bug.
62757
62758 2005-10-05  Simon Josefsson  <jas@extundo.com>
62759
62760         * modules/memxor: New file.
62761
62762         * modules/iconv (Files): Move config.rpath to havelib, it is used
62763         there.
62764
62765         * modules/havelib (Files): Add config.rpath.
62766
62767 2005-10-05  Simon Josefsson  <jas@extundo.com>
62768
62769         * m4/memxor.m4: New file.
62770
62771 2005-10-05  Simon Josefsson  <jas@extundo.com>
62772
62773         * lib/memxor.c (memxor): Fix compiler error.
62774
62775         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
62776         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
62777
62778         * lib/memxor.h, lib/memxor.c: New files.
62779
62780         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
62781         we assume all systems have it, suggested by Jim Meyering
62782         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
62783         any systems lack sys/socket.h; mingw32 is known to lack it, but we
62784         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
62785         same reasons.
62786
62787 2005-10-05  Simon Josefsson  <jas@extundo.com>
62788
62789         * config/srclist.txt: Add glibc bug 1423 for md5.h.
62790
62791 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
62792
62793         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
62794         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
62795         needed, since the source code now assumes these .h files.
62796
62797 2005-10-05  Derek Price  <derek@ximbiot.com>
62798
62799         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
62800
62801 2005-10-05  Bruno Haible  <bruno@clisp.org>
62802
62803         * modules/stdint (License): Change to LGPL.
62804
62805 2005-10-04  Simon Josefsson  <jas@extundo.com>
62806
62807         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
62808         D. Baushke" <mdb@gnu.org>.
62809
62810 2005-10-04  Bruno Haible  <bruno@clisp.org>
62811
62812         * lib/verify.h (verify_true): Provide alternative definition for C++.
62813
62814 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
62815
62816         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
62817         (SSIZE_MAX): New macro, if not already defined.
62818         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
62819         than 2 GiB.
62820
62821 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62822
62823         Sync from coreutils.
62824         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
62825         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
62826         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
62827         ULLONG_MAX doesn't work with 2.7.2.1.
62828
62829 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62830
62831         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
62832         From Ben Pfaff.
62833
62834         * modules/exclude (Depends-on): Depend on verify.
62835         * modules/strtoimax (Depends-on): Likewise.
62836         * modules/utimecmp (Depends-on): Likewise.
62837
62838 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         * lib/exclude.c: Include verify.h.
62841         (verify): Remove.  All callers changed to use verify.h's version.
62842         * lib/strtoimax.c: Likewise.
62843         * lib/utimecmp.c: Likewis.e
62844
62845         Sync from coreutils.
62846         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
62847         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
62848         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
62849         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
62850         bother returning ENOSYS if settimeofday or stime fails; just let
62851         them return whatever errno they want to return.
62852         * lib/utimens.c: Include unistd.h, for dup2.
62853         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
62854         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
62855
62856 2005-10-02  Jim Meyering  <jim@meyering.net>
62857
62858         Sync from coreutils.
62859         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
62860         from glibc-2.2.5 that fails for read-only files.
62861
62862 2005-10-02  Jim Meyering  <jim@meyering.net>
62863
62864         Sync from coreutils.
62865         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
62866         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
62867         `#if HAVE_CONFIG_H'.
62868         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
62869         Remove AT_FDCWD test.
62870         Do not consume the fd unless successful.
62871         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
62872         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
62873         block, so that we don't even try to compile it if settimeofday is
62874         available.  This works around a compilation failure on OSF1 V5.1,
62875         due to stime requiring a `long int*' while tv_sec is `int'.
62876
62877 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
62878
62879         Sync from coreutils.
62880         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
62881         against `yes', rather than just testing for nonempty.
62882
62883 2005-10-01  Simon Josefsson  <jas@extundo.com>
62884
62885         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
62886         and Darwin.
62887
62888         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
62889         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
62890         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
62891         freeaddrinfo and gai_strerror are declared by the POSIX headers.
62892         Check if struct addrinfo is declared.
62893
62894 2005-10-01  Simon Josefsson  <jas@extundo.com>
62895
62896         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
62897         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
62898         AI_* and EAI_* definitions.  Protect function declarations.
62899
62900 2005-10-01  Jim Meyering  <jim@meyering.net>
62901
62902         Sync from coreutils.
62903
62904         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
62905         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
62906         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
62907         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62908         in the inet and nsl libraries.  Required on Solaris 5.7.
62909
62910 2005-10-01  Jim Meyering  <jim@meyering.net>
62911
62912         Sync from coreutils.
62913         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
62914         in the inet and nsl libraries.  Required on Solaris 5.7.
62915
62916 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
62917
62918         * lib/getdelim.c (getdelim): Remove unused variables.
62919
62920 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
62921
62922         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
62923         so that the code works even with ancient cpp.  Portability problem
62924         with GCC 2.7.2.1 reported by Thomas M.Ott.
62925
62926 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
62927
62928         * modules/regex (Depends-on): Add strcase.
62929
62930         * modules/gethostname (Licence): Change from GPL to LGPL, since
62931         gethostname.c is a trivial implementation of a standard library
62932         function.
62933         * modules/poll (License): Change from GPL to LGPL, since it's
62934         derived from LGPL code.
62935
62936 2005-09-27  Jim Meyering  <jim@meyering.net>
62937
62938         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
62939         HAVE_CONFIG_H.
62940
62941         * lib/intprops.h (signed_type_or_expr__): Define.
62942         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
62943         for unsigned types.
62944
62945 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
62946
62947         * lib/verify.h (verify_expr): Remove, replacing with:
62948         (verify_true): New macro that returns true instead of void.
62949         (verify_type__): Remove.
62950         (verify): Use verify_true rather than verify_type__.
62951
62952 2005-09-26  Bruno Haible  <bruno@clisp.org>
62953
62954         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
62955         is necessary.
62956         (lib_SOURCES): Remove mbchar.c.
62957         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
62958         (Files): Add m4/mbrtowc.m4.
62959         * modules/mbiter: Likewise.
62960         * modules/mbuiter: Likewise.
62961
62962 2005-09-26  Bruno Haible  <bruno@clisp.org>
62963
62964         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
62965         compile mbchar.c if they are not both present.
62966         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
62967         * m4/mbiter.m4 (gl_MBITER): Likewise.
62968         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
62969         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
62970         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
62971
62972 2005-09-25  Jim Meyering  <jim@meyering.net>
62973
62974         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
62975         also uses socklen_t.
62976
62977 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
62978
62979         * lib/utimens.c (ENOSYS): Define if not already defined.
62980         (futimens): Support having a null PATH if the file descriptor
62981         is nonnegative.
62982
62983         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
62984         Remove.
62985         (__attribute): Define to empty unless GCC 3.1 or later.
62986         This works around a core dump on OpenBSD 3.4, which has GCC
62987         2.95.3, which dumps core when given __attribute__(()).  It also
62988         simplifies other tests, since we really don't want to bother with
62989         worrying about which ancient version of GCC supported what.
62990         Original problem reported by Yoann Vandoorselaere, with part of
62991         the fix suggested by Derek Price.
62992
62993 2005-09-24  Jim Meyering  <jim@meyering.net>
62994
62995         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
62996         so we can once again use a positive bitfield width of 1 -- now we
62997         don't have to explain why we were using a bitfield width of 2.
62998
62999 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63000
63001         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
63002         and similarly for the other external symbols.  Problem reported
63003         by James Gallager.
63004
63005         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
63006         bug reported by Jim Meyering.
63007
63008         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
63009         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
63010         not needed, since socklen is a prerequisite module.
63011
63012 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63013
63014         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
63015         Problem reported by Eric Blake.
63016         (getaddrinfo): Initialize se so that it's not garbage.
63017         Redo internal storage allocation so that it doesn't make unportable
63018         assumptions about alignment.
63019         Fix a memory leak.
63020
63021         * lib/utimens.c (futimens): Use futimesat if available.
63022         Prefer it to futimes since it doesn't have the futimes bug.
63023
63024         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
63025         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
63026         Instead, declare a function that returns a pointer to an array,
63027         and use verify_type__ to declare the size of the array.
63028         Problem and germ of a solution reported by Bruno Haible.
63029         (verify_type__): Use 2, not 1, for bitfield size, to avoid
63030         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
63031
63032 2005-09-23  Jim Meyering  <jim@meyering.net>
63033
63034         Sync from coreutils.
63035         Correct build failure (socklen_t not defined) on at least
63036         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
63037         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
63038
63039 2005-09-23  Jim Meyering  <jim@meyering.net>
63040
63041         * modules/getaddrinfo (Depends-on): Add socklen.
63042
63043 2005-09-23  Bruno Haible  <bruno@clisp.org>
63044
63045         * tests/test-verify.c: New file.
63046
63047 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63048
63049         Sync from coreutils.
63050
63051         * modules/argmatch (Depends-on): Add verify.
63052         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
63053         unistd-safer.
63054         * modules/save-cwd (Depends-on): Likewise.
63055
63056         * modules/openat (Files): Add lib/openat-die.c.
63057         (Depends-on): Remove error, exitfail.
63058         Add dirname.
63059
63060         * modules/verify: New file.
63061         * MODULES.html.sh (Diagnostics <assert.h>): New section,
63062         with "verify" module.
63063
63064 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63065
63066         Sync from coreutils.
63067
63068         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
63069         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
63070         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
63071         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
63072         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
63073         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
63074         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
63075         Don't bother checking for string.h, stdlib.h, unistd.h.
63076         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
63077         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
63078         module's job.
63079         * m4/jm-macros.m4 (gl_MACROS): Likewise.
63080         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
63081
63082         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
63083         (gl_GETDATE): Use it.
63084
63085         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
63086
63087 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63088
63089         Sync from coreutils.
63090
63091         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
63092         stat-time.h.
63093         * lib/argmatch.h: Include verify.h
63094         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
63095         (ARGMATCH_ASSERT): Remove; unused.
63096         * lib/canonicalize.c: Assume STDC_HEADERS.
63097         * lib/exclude.c: Include "strcase.h".
63098         * lib/regex_internal.h [!defined _LIBC]: Likewise.
63099         * lib/getusershell.c: Include stdio--.h rather than stdio.h
63100         and stdio-safer.h.
63101         (getusershell): Call fopen, not fopen_safer.
63102         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
63103         Do not include unistd-safer.h.
63104         (save_cwd): Don't call fd_safer; no longer needed
63105         now that we include fcntl--.h.
63106
63107         * lib/getdate.y (relative_time): New type.
63108         (RELATIVE_TIME_0): New constant.
63109         (parser_control): Use relative_time instead of doing it ourselves.
63110         (%union): Add new relative_time rel member.
63111         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
63112         Now typeless.
63113         (relunit, relunit_snumber): Now of type rel.
63114         (zone, rel, relunit, get_date): Adjust to above changes.
63115
63116         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
63117         Do not include unistd-safer.h.
63118         (getloadavg): Don't call fd_safer; no longer needed
63119         now that we include fcntl--.h.
63120
63121         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
63122         (make_dir_parents): Treat ENOSYS like EEXIST.
63123
63124         Improve quality of diagnostics on restore_cwd failure.
63125         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
63126         (make_dir_parents): Last arg is now int * (for errno), not bool *.
63127         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
63128         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
63129         each time through the loop.  Do not diagnose restore_cwd failure;
63130         that is the caller's job (and perhaps the caller does not care).
63131
63132         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
63133         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
63134         If the file already exists but is not a directory, don't bother
63135         to try to make its parents.
63136         Close potential file descriptor leak if we can't chdir("/") (!).
63137         Don't always return true if chdir($PWD) fails; return true only
63138         if the requested action was done successfully (except for the
63139         chdir($PWD)).
63140         Don't log final directory unless we actually made it.
63141         Refactor to avoid duplicate code to fix up permissions.
63142         Don't attempt to fix up parent permissions if chdir($PWD) fails.
63143
63144         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
63145         to make it a bit faster and (I hope) clearer.
63146         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
63147         Fix bug in formats like %2N.
63148
63149         * lib/verify.h: New file.
63150
63151 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63152
63153         Sync from coreutils.
63154         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63155
63156 2005-09-22  Jim Meyering  <jim@meyering.net>
63157
63158         Sync from coreutils.
63159
63160         * m4/lstat.m4 (gl_FUNC_LSTAT):
63161         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63162         Remove obsolete comment.
63163         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63164         * m4/xstrtod.m4: Likewise.
63165
63166         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63167
63168 2005-09-22  Jim Meyering  <jim@meyering.net>
63169
63170         Sync from coreutils.
63171
63172         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63173
63174         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63175         the .tm_year member, since otherwise gcc-4.0 would now warn about
63176         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63177
63178         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63179         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63180
63181         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63182         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63183         when run in a time zone for which daylight savings time is in effect
63184         for the starting date.
63185
63186         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63187         stop us from restricting permissions of just-created absolute-named
63188         directories.
63189         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63190         to restore initial working directory.
63191         * lib/mkdir-p.c (make_dir_parents): New parameter:
63192         different_working_dir, to tell caller if/when we change the working
63193         directory and are unable to return to the initial one.
63194         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63195         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63196         `return false'.  This fixes a bug introduced on 2004-07-30.
63197
63198         * lib/openat.c (fdopendir): Be sure to close the supplied
63199         file descriptor before returning.  This makes our replacement
63200         implementation a little closer to Solaris's, where fdopendir
63201         ties the file descriptor to the returned DIR* pointer.
63202         * lib/openat.c (unlinkat): New function.
63203         * lib/openat.h (unlinkat): Add prototype.
63204         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63205         (openat_restore_fail): Rename from openat_restore_die.
63206         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63207
63208         Provide an alternative to exiting immediately upon save_cwd or
63209         restore_cwd failure.  Now, an application can arrange e.g.,
63210         to perform a longjump in that case.
63211         * lib/openat.c: Include dirname.h.
63212         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63213         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63214         and openat_restore_die rather than calling error directly.
63215         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63216
63217         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63218         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63219         define.
63220
63221         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63222         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63223                             int utc, int nanoseconds);
63224         Background:
63225         date should not have to allocate a megabyte of virtual memory to
63226         handle a format argument like +%1048575T.  When implemented with
63227         strftime, it must allocate such a buffer, use strftime to fill it
63228         in, print it, then free it.
63229         With fprintftime, it simply prints everything and exits.
63230         With no need for memory allocation, that's one fewer way to fail.
63231         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63232         optional field width, not before, so we accept %9:z, not %:9z.
63233         (my_strftime): Be sure to use L_('x') for literals.
63234
63235         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63236         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63237         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63238         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63239         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63240         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63241         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63242         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63243         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63244         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63245         * lib/xgethostname.c, lib/xreadlink.c:
63246         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63247
63248         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63249         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63250         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63251         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63252         and don't include <sys/file.h>).
63253
63254 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63255
63256         Sync from coreutils.
63257
63258         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63259         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63260         [!LDAV_DONE]: Avoid unused variable warning.
63261
63262 2005-09-21  Bruno Haible  <bruno@clisp.org>
63263
63264         * lib/unicodeio.h (unicode_to_mb): New declaration.
63265
63266 2005-09-20  Derek Price  <derek@ximbiot.com>
63267
63268         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63269         getaddrinfo.h.
63270
63271 2005-09-20  Bruno Haible  <bruno@clisp.org>
63272
63273         * gnulib-tool: Remove trailing slashes from the values specified for
63274         --source-base, --m4-base, --tests-base, --aux-dir.
63275         Suggested by Simon Josefsson <jas@extundo.com>.
63276
63277 2005-09-20  Bruno Haible  <bruno@clisp.org>
63278
63279         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63280         func_modules_to_filelist, func_import, func_create_testdir): Make all
63281         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63282         change when gnulib-tool is invoked in a different locale.
63283
63284 2005-09-19  Simon Josefsson  <jas@extundo.com>
63285
63286         * m4/socklen.m4: Fix typo.
63287
63288 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63289
63290         Use a consistent style for including <config.h>.
63291         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63292         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63293         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63294         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63295         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63296         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63297         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63298         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63299         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63300         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63301         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63302         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63303         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63304         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63305         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63306         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63307         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63308         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63309         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63310         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63311         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63312         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63313         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63314         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63315         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63316         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63317         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63318         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63319         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63320         lib/xstrtoumax.c, lib/yesno.c:
63321         Standardize inclusion of config.h.
63322         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63323         lib/inttostr.h:  Removed inclusion of config.h from header files.
63324         * lib/inttostr.c:  Adjusted in-tree users.
63325         * lib/timespec.h: Remove superfluous warning to include config.h.
63326         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63327         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63328         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63329         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63330         config.h with HAVE_CONFIG_H.
63331
63332 2005-09-19  Jim Meyering  <jim@meyering.net>
63333
63334         * modules/pathmax (License): Change to LGPL.
63335
63336 2005-09-19  Derek Price  <derek@ximbiot.com>
63337
63338         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63339
63340 2005-09-19  Bruno Haible  <bruno@clisp.org>
63341
63342         * gnulib-tool (import): Provide default for --tests-base.
63343
63344 2005-09-19  Bruno Haible  <bruno@clisp.org>
63345
63346         * doc/quote.texi: New file, extracted from gnulib.texi.
63347         * doc/ctime.texi: New file, extracted from gnulib.texi.
63348         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63349         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63350         * doc/gnulib.texi: Include them.
63351
63352 2005-09-18  Bruno Haible  <bruno@clisp.org>
63353
63354         Portability fix.
63355         * gnulib-tool (func_readlink): New function.
63356         (func_ln_if_changed): Use it.
63357
63358 2005-09-18  Bruno Haible  <bruno@clisp.org>
63359
63360         * gnulib-tool: Support --with-tests also with --import.
63361         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63362         (func_import): Use variables $testsbase and $inctests. Emit a
63363         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63364         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63365         SUBDIRS += $testsdir.
63366         (func_create_testdir): Update.
63367
63368 2005-09-18  Bruno Haible  <bruno@clisp.org>
63369
63370         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63371         instead of $dry_run.
63372         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63373         (func_ln_if_changed): Don't handle dry-run here.
63374         (func_import): In dry-run mode, detect more precisely which actions
63375         would be performed, and don't use "...ing" verbs.
63376
63377 2005-09-18  Bruno Haible  <bruno@clisp.org>
63378
63379         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63380         (func_import): Use join on two temporary files instead of three nested
63381         loops, in order to determine which files are new or old.
63382
63383 2005-09-18  Bruno Haible  <bruno@clisp.org>
63384
63385         * gnulib-tool (func_import): Comment out code that spits out the
63386         new files with --dry-run.
63387
63388 2005-09-18  Bruno Haible  <bruno@clisp.org>
63389
63390         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63391
63392 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63393
63394         * lib/stat-time.h: New file.
63395         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63396         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63397         in a different way.
63398         (timespec_cmp): New function.
63399         * lib/utimecmp.c: Include stat-time.h.
63400         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63401         members exist, not on the obsolescent ST_MTIM_NSEC.
63402         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63403
63404 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63405
63406         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63407
63408 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63409
63410         * MODULES.html.sh (File system functions): Add stat-time.
63411         * modules/stat-time: New file.
63412         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63413         is now done in a different way, by the stat-time module.
63414         * modules/utimecmp (Depends-on): Add stat-time.
63415
63416 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63417
63418         * m4/st_mtim.m4: Remove.  Superseded by...
63419         * m4/stat-time.m4: New file.
63420         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63421         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63422
63423 2005-09-15  Derek Price  <derek@ximbiot.com>
63424
63425         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63426
63427 2005-09-15  Derek Price  <derek@ximbiot.com>
63428
63429         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63430         * lib/regex_internal.c: Ditto, using this...
63431         (__GNUC_PREREQ): ...new macro.
63432         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63433         using...
63434         (__GNUC_PREREQ): ...this new macro.
63435
63436         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63437
63438 2005-09-15  Derek Price  <derek@ximbiot.com>
63439             Paul Eggert  <eggert@cs.ucla.edu>
63440
63441         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63442         changes, consolidating in...
63443         * lib/regex_internal.h: ...this file.
63444
63445 2005-09-13  Jim Meyering  <jim@meyering.net>
63446
63447         * lib/canon-host.c: Filter through gnu indent and reword comments
63448         slightly.
63449         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63450
63451 2005-09-13  Derek Price  <derek@ximbiot.com>
63452
63453         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63454         failure.
63455         Reported by Jim Meyering  <jim@meyering.net>.
63456
63457 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63458
63459         * lib/base64.c: Typo.
63460         (base64_encode): Put b64str in initialized data section.
63461
63462 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63463
63464         Merge glibc and coreutils changes into gnulib, plus a few
63465         extra fixes.
63466         * lib/md5.c: Use #error rather than a string.
63467         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63468         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63469         (__attribute__): Define to empty for non recent-GCC.
63470         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63471         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63472         Renamed from their non-__ counterparts, with new macros replacing
63473         them if not _LIBC.  Add __THROW attribute.
63474         (rol): Remove.
63475         (struct md5_ctx): Align buffer if using GCC.
63476         * lib/sha1.h (struct sha1_ctx): Likewise.
63477         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63478         The old name was backwards.
63479         (NOTSWAP): Remove; not used.
63480         (rol): New macro, moved here from md5.h.
63481         (sha1_process_block): Remove a FIXME that doesn't make sense.
63482
63483 2005-09-12  Derek Price  <derek@ximbiot.com>
63484
63485         Return usable errors from canon-host.
63486         * lib/canon-host.h: New file.
63487         * lib/canon-host.c (canon_host): Wrap...
63488         (canon_host_r): ...this new function, which now relies exclusively on
63489         getaddrinfo.
63490         (ch_strerror): New function.
63491         (last_cherror): New global.
63492         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63493         interface.
63494         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63495         void *.
63496         (freeaddrinfo): Free ai->ai_canonname when set.
63497
63498 2005-09-12  Derek Price  <derek@ximbiot.com>
63499
63500         Make canon-host require getaddrinfo.
63501         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63502         AC_LIBSOURCE canon-host.h.  Call...
63503         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63504         gl_GETADDRINFO.
63505         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63506
63507 2005-09-12  Derek Price  <derek@ximbiot.com>
63508
63509         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63510         LGPL.
63511         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63512
63513 2005-09-12  Derek Price  <derek@ximbiot.com>
63514
63515         * lib/gai_strerror.c: Include config.h when available.  Include
63516         getaddrinfo.h before other headers to test interface.
63517         Reported by Larry Jones <lawrence.jones@ugs.com>.
63518
63519 2005-09-12  Derek Price  <derek@ximbiot.com>
63520             Paul Eggert  <eggert@cs.ucla.edu>
63521
63522         * modules/glob (Files): Add glob-libc.h.
63523
63524 2005-09-12  Derek Price  <derek@ximbiot.com>
63525             Paul Eggert  <eggert@cs.ucla.edu>
63526
63527         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63528         glob_.h, glob-libc.h.
63529         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
63530
63531 2005-09-12  Derek Price  <derek@ximbiot.com>
63532             Paul Eggert  <eggert@cs.ucla.edu>
63533
63534         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63535         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63536         protecting things that should be done only in gnulib contexts.
63537         * lib/glob_.h: New file, containing only the glob things needed for
63538         gnulib.
63539         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63540         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63541         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63542         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63543         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63544         and to respect the namespace rules better.
63545
63546 2005-09-08  Simon Josefsson  <jas@extundo.com>
63547
63548         * modules/socklen: New file.
63549
63550 2005-09-08  Simon Josefsson  <jas@extundo.com>
63551
63552         * m4/socklen.m4: New file.
63553
63554 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63555
63556         * modules/utimens (Files): Add m4/utimbuf.m4, since
63557         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63558         Reported by Sergey Poznyakoff.
63559
63560 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63561
63562         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63563         definitions, since that's the preferred style in glibc.
63564         Fix a minor spacing issue, and update copyright notice to match
63565         glibc's.
63566
63567 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63568
63569         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63570
63571 2005-09-06  Simon Josefsson  <jas@extundo.com>
63572
63573         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63574         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63575
63576 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63577
63578         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63579         warning.
63580
63581 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * config/srclist.txt: Add glibc bug 1302.
63584
63585 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63586
63587         Change bitset word type from unsigned int to unsigned long int,
63588         as this has better performance on typical 64-bit hosts.
63589         Port bitset code to hosts with unusual word sizes.
63590         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63591         (build_collating_symbol):
63592         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63593         argument is a bitset.  This is merely a style issue, but it makes
63594         it clearer that an entire array is expected.
63595         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
63596         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
63597         Port to the case where bitset_word is not the same as unsigned int.
63598         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63599         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
63600         Likewise.
63601         * lib/regexec.c (check_dst_limits_calc_pos_1,
63602         check_subexp_matching_top):
63603         (build_trtable, group_nodes_into_DFAstates):
63604         Likewise.
63605         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
63606         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
63607         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
63608         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
63609         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
63610         * lib/regcomp.c (optimize_subexps, lower_subexp):
63611         Work even if bitset_word has holes in its bitwise representation.
63612         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
63613         * lib/regexec.c (check_dst_limits_calc_pos_1,
63614         check_subexp_matching_top):
63615         Likewise.
63616         * lib/regex_internal.c (re_string_reconstruct):
63617         Don't assume UCHAR_MAX == 255.
63618         * lib/regex_internal.h (bitset_set_all): Likewise.
63619         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
63620         All uses changed.
63621         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
63622         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
63623         All uses changed.
63624         (BITSET_WORD_MAX): New macro.
63625         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
63626         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
63627         (bitset_empty, bitset_copy):
63628         Prefer sizeof (bitset) to multiplying it out ourselves.
63629         (bitset_not_merge): Remove; unused.
63630         (bitset_contain): Return bool, not unsigned int with one bit on.
63631         All callers changed.
63632         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
63633         alignment than re_node_set; do this by defining a new internal
63634         type struct dests_alloc and using it to allocate memory.
63635
63636 2005-09-05  Bruno Haible  <bruno@clisp.org>
63637
63638         * gnulib-tool (func_import): Fix comparison in handling of symbolic
63639         links.
63640
63641 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
63642
63643         * modules/size_max (Makefile.am): Add size_max.h
63644
63645 2005-09-04  Derek Price  <derek@ximbiot.com>
63646
63647         * gnulib-tool (func_import): Fix reversed $symbolic logic.
63648
63649 2005-09-03  Simon Josefsson  <jas@extundo.com>
63650
63651         * gnulib-tool: Fix typo.
63652
63653 2005-09-03  Simon Josefsson  <jas@extundo.com>
63654
63655         * config/srclist.txt: Add glibc bug 1293.
63656
63657 2005-09-03  Derek Price  <derek@ximbiot.com>
63658
63659         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
63660         From Larry Jones <lawrence.jones@ugs.com>.
63661
63662 2005-09-02  Simon Josefsson  <jas@extundo.com>
63663
63664         * modules/socklen: New file.
63665
63666 2005-09-02  Simon Josefsson  <jas@extundo.com>
63667
63668         * modules/havelib: New module.
63669
63670         * modules/gettext, modules/iconv, modules/lock, modules/readline:
63671         Use havelib.
63672
63673 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63674
63675         Check for arithmetic overflow when calculating sizes, to prevent
63676         some buffer-overflow issues.  These patches are conservative, in the
63677         sense that when I couldn't determine whether an overflow was possible,
63678         I inserted a run-time check.
63679         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
63680         macros.
63681         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
63682         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
63683         (re_xnrealloc, re_x2nrealloc): New inline functions.
63684         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
63685         parse_bracket_exp):
63686         (build_equiv_class, build_charclass): Check for arithmetic overflow
63687         in size expression calculations.
63688         * lib/regex_internal.c (re_string_realloc_buffers):
63689         (build_wcs_upper_buffer, re_node_set_add_intersect):
63690         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
63691         (re_dfa_add_node, register_state): Likewise.
63692         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
63693         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
63694         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
63695         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
63696
63697 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
63698
63699         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
63700         m4/ulonglong.m4.  Problem reported by Martin Lambers.
63701
63702 2005-09-02  Bruno Haible  <bruno@clisp.org>
63703
63704         Support for lib vs. lib64 distinction on biarch platforms.
63705         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
63706         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
63707         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
63708
63709 2005-09-02  Bruno Haible  <bruno@clisp.org>
63710
63711         * gnulib-tool (import): In the other first-use case, provide defaults
63712         as well.
63713
63714 2005-09-02  Bruno Haible  <bruno@clisp.org>
63715
63716         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
63717         patches not yet found in the latest gettext release.
63718
63719 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63720
63721         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
63722         to avoid a collision with bits/local_lim.h in glibc.
63723         All uses changed.  Problem reported by Dmitry V. Levin in
63724         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
63725
63726         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
63727         bugs in int versus size_t comparisons.
63728         (re_string_context_at): Fix bug where the code assumed that
63729         Idx is signed.
63730
63731         Use bool where appropriate.
63732         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
63733         All callers changed.
63734         (calc_eclosure_iter): Likewise, for ROOT arg.
63735         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
63736         (build_charclass_op): Likewise, for NON_MATCH arg.
63737         * lib/regex_internal.c (re_string_allocate, re_string_construct):
63738         (re_string_construct_common): Likewise, for ICASE arg.
63739         * lib/regexec.c (re_search_2_stub, re_search_stub):
63740         Likewise, for RET_LEN arg.
63741         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
63742         (set_regs): Likewise, for FL_BACKTRACK arg.
63743         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
63744         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
63745         (calc_eclosure_iter, parse_bracket_exp):
63746         Use bool for internal variables that are booleans.
63747         * lib/regexec.c (re_search_internal, check_matching,
63748         proceed_next_node):
63749         (set_regs, build_sifted_states, sift_states_bkref):
63750         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
63751         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
63752         (find_collation_sequence_value):
63753         Likewise.
63754         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
63755         (re_node_set_compare):
63756         Return bool, not int. All callers changed.
63757         * lib/regexec.c (check_halt_node_context, check_dst_limits):
63758         (build_trtable, check_node_accept): Likewise.
63759         * lib/regex_internal.h: Include stdbool.h.
63760
63761         Fix bugs uncovered when converting to bool.
63762         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
63763         failure instead of charging ahead blindly.
63764         * lib/regex_internal.c (register_state): Likewise.
63765         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
63766         for freeing internal storage.
63767         (group_nodes_into_DFA_states): Use unsigned int, not int, for
63768         bitset pieces used as boolean, to avoid undefined behavior
63769         on hosts that do int overflow checking.
63770
63771 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
63772
63773         * config/srclist.txt: Add glibc bugs 1285-1287.
63774
63775 2005-09-01  Jim Meyering  <jim@meyering.net>
63776
63777         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
63778         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
63779         Require gl_STAT_MACROS, too.
63780
63781 2005-09-01  Bruno Haible  <bruno@clisp.org>
63782
63783         * gnulib-tool (import): In the first-use case, provide defaults.
63784
63785 2005-09-01  Bruno Haible  <bruno@clisp.org>
63786
63787         * gnulib-tool (func_import): Remove the .tmp files.
63788
63789 2005-09-01  Bruno Haible  <bruno@clisp.org>
63790
63791         * gnulib-tool (func_import): Fix handling of symbolic links.
63792
63793 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63794
63795         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
63796         old glibc regex code mishandles strings longer than 2**31 bytes.
63797         This patch fixes this when the regex code is used in gnulib
63798         (i.e., outside glibc).
63799
63800         This patch should not affect the use of the regex code inside
63801         glibc.  No doubt this problem also needs to be handled for glibc
63802         as well, but the result will be an incompatible change to the
63803         glibc ABI, and the old ABI will have to be supported too.  That
63804         can be the the subject for another patch.
63805
63806         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
63807         governing whether the rest of this patch is active.  By default,
63808         the macro is disabled and the patch has no effect.
63809         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
63810         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
63811         (struct re_pattern_buffer, re_search, re_search_2, re_match):
63812         (re_match_2, re_set_registers): Use the new types.
63813         * lib/regex_internal.h (Idx, re_hashval_t): New types.
63814         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
63815         New macros.
63816         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
63817         (re_string_context_at, bin_tree_t, re_dfastate_t):
63818         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
63819         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
63820         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
63821         (re_string_char_size_at, re_string_wchar_at):
63822         (re_string_elem_size_at):
63823         Use the new types and macros to port to 64-bit hosts.
63824         Use unsigned types for internal values, so that the code
63825         mostly works even for arrays larger than SSIZE_MAX.
63826         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
63827         (search_duplicated_node, calc_eclosure_iter, fetch_number):
63828         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
63829         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
63830         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
63831         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
63832         (calc_inveclosure, parse_dup_op, build_range_exp):
63833         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
63834         (fetch_number, create_token_tree, mark_opt_subexp):
63835         Likewise.
63836         * lib/regex_internal.c (re_string_construct_common,
63837         create_ci_newstate):
63838         (create_cd_newstate, re_string_allocate, re_string_construct):
63839         (re_string_realloc_buffers, build_wcs_upper_buffer):
63840         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
63841         (re_string_reconstruct, re_string_peek_byte_case):
63842         (re_string_fetch_byte_case, re_string_context_at):
63843         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
63844         (re_node_set_init_copy, re_node_set_add_intersect):
63845         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
63846         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
63847         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
63848         (re_acquire_state, re_acquire_state_context, register_state):
63849         Likewise.
63850         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
63851         search_cur_bkref_entry):
63852         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
63853         (re_search_internal, re_search_2_stub, re_search_stub)
63854         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
63855         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
63856         (update_cur_sifted_state, check_dst_limits):
63857         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63858         (check_subexp_limits, sift_states_bkref, merge_state_array):
63859         (check_subexp_matching_top, get_subexp, get_subexp_sub):
63860         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
63861         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
63862         (expand_bkref_cache, check_node_accept_bytes):
63863         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
63864         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
63865         (acquire_init_state_context, check_halt_node_context):
63866         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
63867         (sift_states_backward, clean_state_log_if_needed):
63868         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
63869         (find_recover_state, transit_state_sb, transit_state_mb):
63870         (transit_state_bkref, build_trtable, match_ctx_clean):
63871         Likewise.
63872         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
63873         to work around an assumption that REG_MISSING is negative.
63874
63875         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
63876         (seek_collating_symbol_entry) [defined _LIBC]:
63877         (lookup_collation_sequence_value) [defined _LIBC]:
63878         (build_range_exp, build_collating_symbol) [defined _LIBC]:
63879         Use prototypes rather than old-style function definitions.
63880         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
63881         (transit_state_sb) [0]:
63882         (find_collation_sequence_value) [defined _LIBC]: Likewise.
63883
63884         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
63885         rm_eo.
63886
63887         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
63888         (optimize_subexps, lower_subexp):
63889         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
63890         since the signed shift might overflow.  Use 1u<<31 instead.
63891         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63892         Likewise.
63893         * lib/regexec.c (check_dst_limits_calc_pos_1,
63894         check_subexp_matching_top): Likewise.
63895
63896         * lib/regcomp.c (optimize_subexps, lower_subexp):
63897         Use CHAR_BIT rather than 8, for clarity.
63898         * lib/regexec.c (check_dst_limits_calc_pos_1):
63899         (check_subexp_matching_top): Likewise.
63900         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
63901         have to worry about portability issues when shifting it left.
63902         Remove no-longer-needed test for table_size > 0.
63903         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
63904         in a word, as the resulting behavior is undefined.
63905         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
63906         in one case, a <= should have been an <, and in another case the
63907         whole test was missing.
63908         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
63909         the standard name CHAR_BIT.
63910         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
63911         this is not true on one's complement and signed-magnitude hosts.
63912
63913         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
63914         next_last_offset.
63915         (struct re_dfa_t): Remove unused member states_alloc.
63916         * lib/regcomp.c (init_dfa): Don't initialize unused members.
63917
63918 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63919
63920         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
63921         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
63922         and large-file glibc and in 32-bit large-file Solaris.
63923
63924 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63925
63926         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
63927         lengths fit in regoff_t; this isn't true if regoff_t is the same
63928         width as size_t.
63929         * lib/regex.c (re_search_internal): 5th arg is LAST_START
63930         (= START + RANGE) instead of RANGE.  This avoids overflow
63931         problems when regoff_t is the same width as size_t.
63932         All callers changed.
63933         (re_search_2_stub): Check for overflow when adding the
63934         sizes of the two strings.
63935         (re_search_stub): Check for overflow when adding START
63936         to RANGE; if it occurs, substitute the extreme value.
63937
63938 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
63939
63940         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
63941
63942 2005-08-31  Jim Meyering  <jim@meyering.net>
63943
63944         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
63945         a pointer-to-const.
63946         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
63947         (register_state): Likewise.
63948         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
63949         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
63950         (group_nodes_into_DFAstates): Likewise.
63951
63952 2005-08-31  Jim Meyering  <jim@meyering.net>
63953
63954         * check-module: Add a FIXME comment.
63955
63956 2005-08-31  Eric Blake  <ebb9@byu.net>
63957
63958         * modules/unistd-safer (Files): Add unistd--.h.
63959         * modules/stdio-safer (Files): Add stdio--.h.
63960
63961 2005-08-31  Derek Price  <derek@ximbiot.com>
63962
63963         * lib/getdelim.c (getdelim): Return EOF on EOF.
63964         Reported by Larry Jones <lawrence.jones@ugs.com>.
63965
63966 2005-08-31  Bruno Haible  <bruno@clisp.org>
63967
63968         Avoid unnecessary diffs in the generated lib/Makefile.am.
63969         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
63970         the generated files.
63971         (func_import): Don't set cmd.
63972
63973 2005-08-31  Bruno Haible  <bruno@clisp.org>
63974
63975         * lib/strstr.c: Include <stddef.h>, for NULL.
63976         * lib/strcasestr.c: Likewise.
63977         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63978
63979 2005-08-31  Bruno Haible  <bruno@clisp.org>
63980
63981         * gnulib-tool: New option --macro-prefix.
63982         (func_import): Use macro_prefix.
63983         (import): Handle option --macro-prefix.
63984
63985 2005-08-31  Bruno Haible  <bruno@clisp.org>
63986
63987         * gnulib-tool (import): Rename most ac_* variables to cached_*.
63988         Also use new variables cached_lgpl, cached_libtool.
63989
63990 2005-08-31  Bruno Haible  <bruno@clisp.org>
63991
63992         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
63993         always instantiating them.
63994
63995 2005-08-31  Bruno Haible  <bruno@clisp.org>
63996
63997         * gnulib-tool (func_import): Read the previous cached settings
63998         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
63999         earlier added by gnulib but are now dropped. Warn when a gnulib file
64000         overwrites a non-gnulib file.
64001
64002 2005-08-31  Bruno Haible  <bruno@clisp.org>
64003
64004         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
64005         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
64006         projects that don't keep autogenerated files in CVS. Put into
64007         actioncmd only the specified modules, not the transitive closure.
64008
64009 2005-08-31  Bruno Haible  <bruno@clisp.org>
64010
64011         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
64012         Create directories that shall be filled.
64013         (import): Don't look for gl_* macros in configure.ac. Recurse across
64014         all directories containing a gnulib-cache.m4 files, if meaningful.
64015
64016 2005-08-31  Bruno Haible  <bruno@clisp.org>
64017
64018         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
64019         (import): Set seen_libtool when we see gl_LIBTOOL.
64020
64021 2005-08-31  Bruno Haible  <bruno@clisp.org>
64022
64023         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
64024         declaration macro definitions from generated gnulib.m4.
64025
64026 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
64027
64028         * lib/iconvme.h: Add prototype for iconv_alloc.
64029
64030 2005-08-29  Simon Josefsson  <jas@extundo.com>
64031
64032         * lib/iconvme.c: Fix errno.
64033
64034 2005-08-29  Bruno Haible  <bruno@clisp.org>
64035
64036         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
64037         that it works when the directory contains spaces.
64038
64039 2005-08-29  Bruno Haible  <bruno@clisp.org>
64040
64041         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
64042
64043 2005-08-29  Bruno Haible  <bruno@clisp.org>
64044
64045         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
64046         Emit more advice.
64047
64048 2005-08-29  Bruno Haible  <bruno@clisp.org>
64049         and Stepan Kasal  <kasal@ucw.cz>
64050
64051         * check-module: If more parameters are given, check each of them
64052         separately; add more exceptions, as noted by Jim Meyering.
64053         (check_module): New procedure.
64054         (%exempt_header): Now contains all exceptions.
64055
64056 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
64057
64058         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
64059
64060 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64061
64062         * lib/iconvme.c: Split iconv_string into iconv_alloc.
64063
64064 2005-08-28  Bruno Haible  <bruno@clisp.org>
64065
64066         * m4/gnulib-tool.m4: New file.
64067
64068 2005-08-27  Jim Meyering  <jim@meyering.net>
64069
64070         * modules/unistd-safer (Files): Add pipe-safer.c.
64071         * modules/fcntl-safer (Files): Add creat-safer.c.
64072
64073 2005-08-27  Jim Meyering  <jim@meyering.net>
64074
64075         * m4/stdlib-safer.m4: New file.  From coreutils.
64076         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
64077         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
64078         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
64079         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
64080         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
64081
64082 2005-08-27  Jim Meyering  <jim@meyering.net>
64083
64084         * lib/fopen-safer.c: Merge minor changes from coreutils.
64085         * lib/dup-safer.c: Likewise.
64086         * lib/fd-safer.c: Likewise.
64087
64088         Merge from coreutils.
64089         * lib/stdio--.h: New file.
64090         * lib/stdlib--.h: New file.
64091         * lib/mkstemp-safer.c: New file.
64092
64093         GNU tar needs these.
64094         * lib/pipe-safer.c: New file.
64095         * lib/creat-safer.c: New file.
64096         * lib/fcntl--.h (creat): Define to creat_safer.
64097         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
64098         * lib/unistd--.h (pipe): Define to pipe_safer.
64099         * lib/unistd-safer.h: Declare pipe_safer.
64100
64101 2005-08-26  Simon Josefsson  <jas@extundo.com>
64102
64103         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
64104         Haible <bruno@clisp.org>.
64105
64106 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
64107
64108         * lib/regex_internal.h: Remove all references to
64109         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
64110         or better.
64111         (bitset_not, bitset_merge, bitset_not_merge):
64112         (bitset_mask, re_string_allocate, re_string_construct):
64113         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
64114         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
64115         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
64116         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
64117         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64118         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64119         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
64120         (re_acquire_state_context):
64121         Remove unnecessary forward decls.
64122         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
64123         Put __attribute at function definition,
64124         now that the function decl has been removed.
64125         * lib/regex_internal.c (re_string_peek_byte_case):
64126         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
64127         Likewise.
64128
64129 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
64130
64131         * m4/regex.m4: Add AC_PREREQ(2.50).
64132         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
64133
64134 2005-08-25  Simon Josefsson  <jas@extundo.com>
64135
64136         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
64137         __fsetlocking.
64138
64139 2005-08-25  Simon Josefsson  <jas@extundo.com>
64140
64141         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
64142         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
64143         GLIBC specific code.
64144
64145 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64146
64147         Make regex safe for g++.  This fixes one real bug (an "err"
64148         that should have been "*err").  g++ problem reported by
64149         Sam Steingold.
64150         * lib/regex_internal.h (re_calloc): New macro, consistent with
64151         re_malloc etc.  All callers of calloc changed to use re_calloc.
64152         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64153         not int.  All callers changed.
64154         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64155         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64156         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64157         (find_recover_state): Change "err" to "*err"; this fixes what
64158         appears to be a real bug.
64159         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64160         versus int.
64161
64162 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64163
64164         * modules/regex (Depends-on): Add malloc, since the code
64165         assumes that !malloc(0) means failure.
64166
64167 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64168
64169         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64170
64171         alloca modernization/simplification for regex.
64172         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64173         needs to be at the start of the file, and can be moved into
64174         regex_internal.h and simplified.
64175         * lib/regex_internal.h: Include <alloca.h>.
64176         (__libc_use_alloca) [!defined _LIBC]: New macro.
64177         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64178         now works outside glibc.
64179
64180 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64181
64182         * config/srclist.txt: Add glibc bugs 1241, 1245.
64183
64184 2005-08-25  Jim Meyering  <jim@meyering.net>
64185
64186         * lib/open-safer.c: Include <config.h>.
64187         Otherwise, we'd lose LARGEFILE support in any file using
64188         e.g. "fcntl--.h"
64189
64190 2005-08-25  Bruno Haible  <bruno@clisp.org>
64191
64192         * m4/minmax.m4: Require autoconf 2.52.
64193         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64194         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64195         alternatives of translit over the alphabet.
64196         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64197
64198 2005-08-24  Simon Josefsson  <jas@extundo.com>
64199
64200         * tests/test-getpass.c: New file.
64201
64202 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64203
64204         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64205         for GNU regex features.
64206
64207 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64208
64209         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64210         * lib/regex.h (regerror): Likewise.
64211
64212         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64213         requires this.  (The code never needed it.)
64214
64215         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64216         All uses of recently-renamed identifiers changed to use the new,
64217         POSIX-compliant names.  The code will build and run just fine
64218         without these changes, but it's better to eat our own dog food
64219         and use the standard-conforming names.
64220
64221         * lib/regex.h: Fix a multitude of POSIX name space violations.
64222         These changes have an effect only for programs that define
64223         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64224         do not change anything for programs compiled in the normal way.
64225         Also, there is no effect on the ABI.
64226
64227         (_REGEX_SOURCE): New macro.
64228         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64229         defined and _GNU_SOURCE is not; this fixes a name space violation.
64230
64231         Rename the following macros to obey POSIX requirements.
64232         The old names are still visible as macros if _REGEX_SOURCE is defined.
64233         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64234         RE_BACKSLASH_ESCAPE_IN_LISTS.
64235         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64236         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64237         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64238         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64239         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64240         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64241         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64242         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64243         (REG_INTERVALS): renamed from RE_INTERVALS.
64244         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64245         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64246         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64247         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64248         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64249         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64250         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64251         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64252         RE_UNMATCHED_RIGHT_PAREN_ORD.
64253         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64254         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64255         (REG_DEBUG): renamed from RE_DEBUG.
64256         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64257         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64258         unusual, since we can't clash with the POSIX REG_ICASE.
64259         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64260         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64261         (REG_NO_SUB): renamed from RE_NO_SUB.
64262         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64263         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64264         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64265         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64266         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64267         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64268         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64269         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64270         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64271         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64272         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64273         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64274         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64275         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64276         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64277         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64278         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64279         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64280         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64281         (REG_FIXED): Renamed from REGS_FIXED.
64282         (REG_NREGS): Renamed from RE_NREGS.
64283
64284         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64285         of other REG_* macros, since POSIX says the user is allowed to
64286         #undef these macros selectively.
64287
64288         (reg_errcode_t): Update comment stating what other tables need
64289         to be consistent.
64290
64291         Rename the following enum values to obey POSIX requirements.
64292         The old names are still visible as macros.
64293         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64294         is not defined, since GNU is supposed to be a superset of POSIX as
64295         much as possible, and since we want reg_errcode_t to be a signed
64296         type for implementation consistency.
64297         (_REG_NOERROR): Renamed from REG_NOERROR.
64298         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64299         (_REG_BADPAT): Renamed from REG_BADPAT.
64300         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64301         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64302         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64303         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64304         (_REG_EBRACK): Renamed from REG_EBRACK.
64305         (_REG_EPAREN): Renamed from REG_EPAREN.
64306         (_REG_EBRACE): Renamed from REG_EBRACE.
64307         (_REG_BADBR): Renamed from REG_BADBR.
64308         (_REG_ERANGE): Renamed from REG_ERANGE.
64309         (_REG_ESPACE): Renamed from REG_ESPACE.
64310         (_REG_BADRPT): Renamed from REG_BADRPT.
64311         (_REG_EEND): Renamed from REG_EEND.
64312         (_REG_ESIZE): Renamed from REG_ESIZE.
64313         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64314         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64315         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64316         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64317         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64318
64319         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64320         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64321         changed.  But support the old name if the new one is not defined
64322         and if _REGEX_SOURCE.
64323
64324         Change the following member names in struct re_pattern_buffer.
64325         The old names are still supported if !_REGEX_SOURCE.
64326         The new names are always supported, regardless of _REGEX_SOURCE.
64327         (re_buffer): Renamed from buffer.
64328         (re_allocated): Renamed from allocated.
64329         (re_used): Renamed from used.
64330         (re_syntax): Renamed from syntax.
64331         (re_fastmap): Renamed from fastmap.
64332         (re_translate): Renamed from translate.
64333         (re_can_be_null): Renamed from can_be_null.
64334         (re_regs_allocated): Renamed from regs_allocated.
64335         (re_fastmap_accurate): Renamed from fastmap_accurate.
64336         (re_no_sub): Renamed from no_sub.
64337         (re_not_bol): Renamed from not_bol.
64338         (re_not_eol): Renamed from not_eol.
64339         (re_newline_anchor): Renamed from newline_anchor.
64340
64341         Change the following member names in struct re_registers.
64342         The old names are still supported if !_REGEX_SOURCE.
64343         The new names are always supported, regardless of _REGEX_SOURCE.
64344         (rm_num_regs): Renamed from num_regs.
64345         (rm_start): Renamed from start.
64346         (rm_end): Renamed from end.
64347
64348         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64349         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64350         Prepend __ to parameter names.
64351
64352         Undo yesterday's changes.
64353
64354 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64355
64356         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64357         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64358         lib/regex.c.
64359
64360 2005-08-24  Jim Meyering  <jim@meyering.net>
64361
64362         Sync from coreutils.
64363         * m4/fcntl-safer.m4: New file.
64364
64365         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64366         and object files for this module.
64367
64368 2005-08-24  Jim Meyering  <jim@meyering.net>
64369
64370         Sync from coreutils.
64371         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64372
64373 2005-08-24  Jim Meyering  <jim@meyering.net>
64374
64375         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64376         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64377
64378 2005-08-24  Jim Meyering  <jim@meyering.net>
64379
64380         * modules/fcntl-safer: New module.
64381         * modules/fts (Depends-on): Add fcntl-safer.
64382         * MODULES.html.sh (File descriptor based Input/Output):
64383         Add fcntl-safer.
64384
64385 2005-08-24  Bruno Haible  <bruno@clisp.org>
64386
64387         Support for unit test modules.
64388         * modules/README: Mention tests modules.
64389         * modules/TEMPLATE-TESTS: New file.
64390         * gnulib-tool: New options --extract-tests-module, --with-tests and
64391         --tests-base (unused for the moment).
64392         (testsbase, inctests): New variables.
64393         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64394         (func_verify_module): Exclude TEMPLATE-TESTS.
64395         (func_verify_nontests_module, func_verify_tests_module): New functions.
64396         (func_get_dependencies): Add implicit dependency for tests modules.
64397         (func_get_tests_module): New function.
64398         (func_modules_transitive_closure): When --with-tests was specified,
64399         include the unit tests as well, unless explicitly avoided.
64400         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64401         (func_emit_tests_Makefile_am): New function.
64402         (func_create_testdir): When --with-tests was specified, emit a
64403         tests/ directory.
64404         * MODULES.html.sh (Future developments): Update.
64405
64406 2005-08-24  Bruno Haible  <bruno@clisp.org>
64407
64408         * modules/tls-tests: New file.
64409         * tests/test-tls.c: New file, from GNU gettext.
64410
64411 2005-08-24  Bruno Haible  <bruno@clisp.org>
64412
64413         * modules/lock-tests: New file.
64414         * tests/test-lock.c: New file, from GNU gettext.
64415
64416 2005-08-24  Bruno Haible  <bruno@clisp.org>
64417
64418         * lib/lock.h: Add multiple inclusion guard.
64419         * lib/tls.h: Add multiple inclusion guard.
64420
64421 2005-08-24  Bruno Haible  <bruno@clisp.org>
64422
64423         * gnulib-tool: Add support for the --aux-dir option to
64424         --create-testdir, --create-megatestdir, --test, --megatest.
64425         (func_create_testdir, func_create_megatestdir): Optionally emit a
64426         AC_CONFIG_AUX_DIR directive.
64427         (create-testdir, create-megatestdir, test, megatest): Provide a
64428         default value for $auxdir.
64429
64430 2005-08-24  Bruno Haible  <bruno@clisp.org>
64431
64432         * gnulib-tool (import): Use compound statement instead of subshell
64433         where possible.
64434
64435 2005-08-24  Bruno Haible  <bruno@clisp.org>
64436
64437         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64438
64439 2005-08-24  Bruno Haible  <bruno@clisp.org>
64440
64441         * gnulib-tool (func_version): Update.
64442
64443 2005-08-24  Bruno Haible  <bruno@clisp.org>
64444
64445         * gnulib-tool (func_import, func_create_testdir,
64446         func_create_megatestdir): Quote all autoconf macro arguments.
64447
64448 2005-08-24  Bruno Haible  <bruno@clisp.org>
64449
64450         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64451         option --force, because --force causes the aclocal.m4 of each
64452         subdirectory to be newer than the corresponding config.h.in.
64453
64454 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64455
64456         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64457         All contents moved to gl_REGEX.
64458         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64459         assume that it does.
64460
64461 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64462
64463         * lib/regex.h (REG_NOSYS)
64464         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64465         Define, since POSIX requires it as of 2001.
64466         (_REG_ENOSYS)
64467         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64468         New private symbol, used to keep the enum signed in all cases.
64469         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64470         Youngman in
64471         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64472
64473         * lib/regex_internal.c (re_string_skip_chars, register_state):
64474         (calc_state_hash):
64475         Remove forward decls; no longer needed now that we use prototypes.
64476         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64477         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64478         (clean_state_log_if_needed): Likewise.
64479
64480 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64481
64482         * config/srclist.txt: Add glibc bugs 1231-1233.
64483
64484 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64485
64486         Fix problems reported by Sam Steingold in
64487         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64488         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64489         assumed that reg_errcode_t is a signed type, which is not
64490         necessarily true if _XOPEN_SOURCE is not defined.
64491         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64492         since some compilers warn about it otherwise.
64493
64494 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64495
64496         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64497         (init_word_char, create_initial_state, duplicate_node_closure):
64498         (fetch_token, peek_token_bracket, build_range_exp):
64499         (build_collating_symbol): Remove forward decls; no longer needed
64500         now that we use prototypes.
64501
64502         * lib/regcomp.c:
64503         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64504         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64505         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64506         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64507         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64508         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64509         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64510         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64511         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64512         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64513         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64514         (build_charclass, build_charclass_op, fetch_number, create_tree):
64515         (create_token_tree, mark_opt_subexp, duplicate_tree):
64516         Use prototypes rather than old-style definitions.
64517
64518         * lib/regex_internal.c:
64519         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64520         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64521         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64522         (re_string_reconstruct, re_string_peek_byte_case):
64523         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64524         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64525         (re_node_set_init_copy, re_node_set_add_intersect):
64526         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64527         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64528         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64529         (re_acquire_state, re_acquire_state_context, register_state):
64530         (create_ci_newstate, create_cd_newstate, free_state):
64531         Likewise.
64532         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64533         re_search_2):
64534         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64535         (re_search_internal, prune_impossible_nodes):
64536         (acquire_init_state_context, check_matching, static):
64537         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64538         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64539         (update_regs, sift_states_backward, build_sifted_states):
64540         (clean_state_log_if_needed, merge_state_array):
64541         (update_cur_sifted_state, add_epsilon_src_nodes):
64542         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64543         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64544         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64545         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64546         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64547         (check_arrival, check_arrival_add_next_nodes):
64548         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64549         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64550         (check_node_accept_bytes, check_node_accept, extend_buffers):
64551         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64552         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64553         (sift_ctx_init):
64554         Likewise.
64555
64556         * lib/regex_internal.h:
64557         (re_string_allocate, re_string_construct, re_string_reconstruct):
64558         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64559         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64560         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64561         (re_string_context_at, re_string_peek_byte_case):
64562         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64563         is defined, since we now use prototypes always.
64564
64565         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64566         C89 or better.  All uses removed.
64567
64568 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         * config/srclist.txt: Add glibc bugs 1220-1227.
64571
64572 2005-08-20  Jim Meyering  <jim@meyering.net>
64573
64574         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64575         of unused local, dfa.
64576
64577 2005-08-20  Bruno Haible  <bruno@clisp.org>
64578
64579         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64580
64581 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64582
64583         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64584         (re_node_set_insert_last, re_dfa_add_node):
64585         Rename local variables to avoid GCC shadowing warnings.
64586
64587 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64588
64589         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64590         [defined lint]: Suppress bogus uninitialized-variable warnings.
64591
64592         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64593         and let the caller return REG_ESPACE if out of space.  This
64594         removes an uninitialied-variable warning with GCC 4.0.1, and also
64595         avoids taking the address of a local variable.  All callers
64596         changed.
64597
64598 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
64601         $LIBCSRC/posix/regexec.c.
64602         Add glibc bug 1217 for regcomp.c.
64603
64604 2005-08-19  Jim Meyering  <jim@meyering.net>
64605
64606         * lib/regexec.c (proceed_next_node): Redo local variables to
64607         avoid GCC shadowing warnings.
64608
64609 2005-08-18  Bruno Haible  <bruno@clisp.org>
64610
64611         * lib/strstr.c (strstr): Fix return value in multibyte case.
64612         * lib/strcasestr.c (strcasestr): Likewise.
64613
64614 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64615
64616         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
64617
64618 2005-08-17  Jim Meyering  <jim@meyering.net>
64619
64620         Make the %s format (seconds since the epoch) work for a negative
64621         number and when used with a zero-padded field width, e.g. %015s.
64622
64623         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
64624         label so that it precedes the code to set `digits'.  Otherwise,
64625         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
64626         print `00-22'.  Now, it prints `-0022', as it should.
64627
64628 2005-08-17  Bruno Haible  <bruno@clisp.org>
64629
64630         * modules/strstr (Files): Add m4/mbrtowc.m4.
64631         (Depends-on): Add mbuiter.
64632
64633 2005-08-17  Bruno Haible  <bruno@clisp.org>
64634
64635         * modules/strcasestr: New file.
64636         * MODULES.html.sh (String handling, based on ANSI C 89): Add
64637         strcasestr.
64638
64639 2005-08-17  Bruno Haible  <bruno@clisp.org>
64640
64641         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
64642
64643 2005-08-17  Bruno Haible  <bruno@clisp.org>
64644
64645         * modules/mbuiter: New file.
64646         * MODULES.html.sh (Extended multibyte and wide character utilities):
64647         Add mbuiter.
64648
64649 2005-08-17  Bruno Haible  <bruno@clisp.org>
64650
64651         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
64652         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
64653
64654 2005-08-17  Bruno Haible  <bruno@clisp.org>
64655
64656         * m4/strcasestr.m4: New file.
64657
64658 2005-08-17  Bruno Haible  <bruno@clisp.org>
64659
64660         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
64661         * lib/strstr.c: Completely rewritten, with multibyte locale support.
64662
64663 2005-08-17  Bruno Haible  <bruno@clisp.org>
64664
64665         * lib/strcasestr.h: New file.
64666         * lib/strcasestr.c: New file.
64667
64668 2005-08-17  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/strcasecmp.c: Use mbuiter.h.
64671
64672 2005-08-17  Bruno Haible  <bruno@clisp.org>
64673
64674         * lib/mbuiter.h: New file.
64675
64676 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
64677
64678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
64679         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
64680         and gl_GETOPT are both invoked via different paths (as happens
64681         with GNU tar CVS because it uses both argp and getopt), the former
64682         wins.
64683
64684 2005-08-16  Bruno Haible  <bruno@clisp.org>
64685
64686         * modules/tls: New file.
64687         * MODULES.html.sh (Multithreading): Add tls.
64688
64689 2005-08-16  Bruno Haible  <bruno@clisp.org>
64690
64691         * modules/strnlen1: New file.
64692         * MODULES.html.sh (String handling): Add strnlen1.
64693
64694 2005-08-16  Bruno Haible  <bruno@clisp.org>
64695
64696         * modules/strcase (Files): Add m4/mbrtowc.m4.
64697         (Depends-on): Add strnlen1, mbchar.
64698
64699 2005-08-16  Bruno Haible  <bruno@clisp.org>
64700
64701         * modules/mbiter: New file.
64702         * MODULES.html.sh (Extended multibyte and wide character utilities):
64703         Add mbiter.
64704
64705 2005-08-16  Bruno Haible  <bruno@clisp.org>
64706
64707         * modules/mbfile: New file.
64708         * MODULES.html.sh (Extended multibyte and wide character utilities):
64709         Add mbfile.
64710
64711 2005-08-16  Bruno Haible  <bruno@clisp.org>
64712
64713         * modules/mbchar: New file.
64714         * MODULES.html.sh (Extended multibyte and wide character utilities):
64715         New section.
64716
64717 2005-08-16  Bruno Haible  <bruno@clisp.org>
64718
64719         * m4/tls.m4: New file, from GNU gettext.
64720
64721 2005-08-16  Bruno Haible  <bruno@clisp.org>
64722
64723         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
64724         always.
64725         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
64726
64727 2005-08-16  Bruno Haible  <bruno@clisp.org>
64728
64729         * m4/mbiter.m4: New file.
64730
64731 2005-08-16  Bruno Haible  <bruno@clisp.org>
64732
64733         * m4/mbfile.m4: New file.
64734
64735 2005-08-16  Bruno Haible  <bruno@clisp.org>
64736
64737         * m4/mbchar.m4: New file.
64738
64739 2005-08-16  Bruno Haible  <bruno@clisp.org>
64740
64741         * lib/tls.h: New file, from GNU gettext.
64742         * lib/tls.c: New file, from GNU gettext.
64743
64744 2005-08-16  Bruno Haible  <bruno@clisp.org>
64745
64746         * lib/strnlen1.h: New file.
64747         * lib/strnlen1.c: New file.
64748
64749 2005-08-16  Bruno Haible  <bruno@clisp.org>
64750
64751         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
64752         (mbi_init): Update.
64753         (mbi_avail, mbi_advance): Let the iteration end before the terminating
64754         NUL byte, not after it.
64755
64756 2005-08-16  Bruno Haible  <bruno@clisp.org>
64757
64758         * lib/strcase.h (strcasecmp): Add note in comments.
64759         * lib/strncasecmp.c: Use code from strcasecmp.c.
64760         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
64761         (strcasecmp): Work correctly in multibyte locales.
64762
64763 2005-08-16  Bruno Haible  <bruno@clisp.org>
64764
64765         * lib/mbiter.h: New file.
64766
64767 2005-08-16  Bruno Haible  <bruno@clisp.org>
64768
64769         * lib/mbfile.h: New file.
64770
64771 2005-08-16  Bruno Haible  <bruno@clisp.org>
64772
64773         * lib/mbchar.h: New file.
64774         * lib/mbchar.c: New file.
64775
64776 2005-08-16  Bruno Haible  <bruno@clisp.org>
64777
64778         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
64779         the valid ones. Makes the comparison operations transitive:
64780         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
64781         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
64782
64783 2005-08-15  Simon Josefsson  <jas@extundo.com>
64784
64785         * modules/ssize_t (License): Change to 'unlimited'.
64786
64787         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
64788
64789 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64790
64791         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
64792         Add comments for each pending glibc patch.
64793
64794 2005-08-15  Bruno Haible  <bruno@clisp.org>
64795
64796         * lib/regex.h (__restrict_arr): Don't define to __restrict if
64797         __cplusplus is defined.
64798
64799 2005-08-14  Jim Meyering  <jim@meyering.net>
64800
64801         Sync from coreutils.
64802
64803         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
64804         Use the hash-table-based cycle-detection code not just when
64805         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
64806         Reported by James Youngman in
64807         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
64808         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
64809         FTS_TIGHT_CYCLE_CHECK.
64810         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
64811         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
64812         once again.
64813         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
64814         * lib/fts.c (fd_safer): Remove decl.
64815         Include fcntl--.h rather than unistd-safer.h
64816         (fts_safe_changedir): Don't call fd_safer; no longer needed
64817         now that we include fcntl--.h.
64818
64819 2005-08-12  Simon Josefsson  <jas@extundo.com>
64820
64821         * modules/getndelim2: Use ssize_t module.
64822         * modules/getnline: Likewise.
64823         * modules/safe-read: Likewise.
64824         * modules/xreadlink: Likewise.
64825
64826         * modules/ssize_t: New file.
64827
64828 2005-08-12  Simon Josefsson  <jas@extundo.com>
64829
64830         * m4/readline.m4: Look for termcap, curses or ncurses if required.
64831
64832 2005-08-12  Simon Josefsson  <jas@extundo.com>
64833
64834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64835         ssize_t.
64836
64837 2005-08-12  Simon Josefsson  <jas@extundo.com>
64838
64839         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
64840         readline, getdelim and check_version.
64841         (Support for systems lacking ISO C 99: Sizes of integer types):
64842         Add size_max.
64843
64844 2005-08-12  Bruno Haible  <bruno@clisp.org>
64845
64846         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
64847
64848 2005-08-11  Simon Josefsson  <jas@extundo.com>
64849
64850         * modules/readline: New file.
64851
64852         * modules/strnlen (Files): Add strnlen.h.
64853
64854 2005-08-11  Simon Josefsson  <jas@extundo.com>
64855
64856         * m4/readline.m4: New file.
64857
64858 2005-08-11  Simon Josefsson  <jas@extundo.com>
64859
64860         * lib/readline.h, readline.c: New file.
64861
64862 2005-08-11  Simon Josefsson  <jas@extundo.com>
64863
64864         * doc/gnulib.texi (Initial import, Finishing touches): Mention
64865         gl_AVOID.
64866
64867 2005-08-11  Bruno Haible  <bruno@clisp.org>
64868
64869         * lib/strnlen.h (strnlen): Change parameter name to match comment.
64870
64871 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
64872
64873         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
64874
64875 2005-08-10  Simon Josefsson  <jas@extundo.com>
64876
64877         * tests/test-iconvme.c: New file.
64878
64879 2005-08-10  Simon Josefsson  <jas@extundo.com>
64880
64881         * m4/strnlen.m4: New file.
64882
64883         * m4/strndup.m4: Don't check for strnlen declaration, done in
64884         strnlen.m4.
64885
64886 2005-08-10  Simon Josefsson  <jas@extundo.com>
64887
64888         * lib/strndup.c: Use strnlen.h.
64889
64890         * lib/strnlen.h: New file.
64891
64892 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64893
64894         * README: Typos.
64895
64896 2005-08-02  Simon Josefsson  <jas@extundo.com>
64897
64898         * modules/readline: New file.
64899
64900 2005-08-02  Simon Josefsson  <jas@extundo.com>
64901
64902         * modules/getdelim: New file.
64903
64904         * modules/getline: Rewrite, don't use getndelim2.
64905
64906 2005-08-02  Simon Josefsson  <jas@extundo.com>
64907
64908         * m4/getline.m4: Separate out getdelim stuff into separate module.
64909
64910         * m4/getdelim.m4: New file.
64911
64912 2005-08-02  Simon Josefsson  <jas@extundo.com>
64913
64914         * lib/getline.h, getline.c: Rewrite.
64915
64916         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
64917
64918 2005-07-31  Bruno Haible  <bruno@clisp.org>
64919
64920         * lib/lock.h (gl_lock_initializer): New macro.
64921         (gl_lock_define_initialized): Use it.
64922         (gl_rwlock_initializer): New macro.
64923         (gl_rwlock_define_initialized): Use it.
64924         (gl_recursive_lock_initializer): New macro.
64925         (gl_recursive_lock_define_initialized): Use it.
64926
64927 2005-07-30  Karl Berry  <karl@gnu.org>
64928
64929         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
64930         Report from Ben Pfaff, regarding getopt.
64931
64932 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
64933
64934         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
64935         normal way.
64936         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
64937         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
64938         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
64939         (gl_GETOPT): Use the new macros.  Most of the implementation
64940         is moved to the new macros.  This is for programs like Emacs
64941         that don't want all the functionality of gl_GETOPT.
64942
64943 2005-07-26  Bruno Haible  <bruno@clisp.org>
64944
64945         * m4/lock.m4: Update from GNU gettext.
64946
64947 2005-07-26  Bruno Haible  <bruno@clisp.org>
64948
64949         * lib/lock.h: Update from GNU gettext.
64950         * lib/lock.c: Update from GNU gettext.
64951
64952 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
64953
64954         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
64955         obsolescent AC_TRY_RUN.  Include the default includes files, for
64956         'exit'.
64957
64958 2005-07-24  Bruno Haible  <bruno@clisp.org>
64959
64960         * modules/visibility: New file.
64961         * MODULES.html.sh (Misc): Add visibility.
64962
64963 2005-07-24  Bruno Haible  <bruno@clisp.org>
64964
64965         * m4/visibility.m4: New file.
64966
64967 2005-07-24  Bruno Haible  <bruno@clisp.org>
64968
64969         * doc/visibility.texi: New file.
64970
64971 2005-07-22  Bruno Haible  <bruno@clisp.org>
64972
64973         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
64974         $(ALLOCA_H), redundant through BUILT_SOURCES.
64975         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
64976         redundant through BUILT_SOURCES.
64977         * modules/byteswap (Makefile.am): Remove explicit dependency on
64978         $(BYTESWAP_H), redundant through BUILT_SOURCES.
64979         * modules/fnmatch (Makefile.am): Remove explicit dependency on
64980         $(FNMATCH_H), redundant through BUILT_SOURCES.
64981         * modules/getopt (Makefile.am): Remove explicit dependency on
64982         $(GETOPT_H), redundant through BUILT_SOURCES.
64983         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
64984         redundant through BUILT_SOURCES.
64985         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
64986         redundant through BUILT_SOURCES.
64987         * modules/stdbool (Makefile.am): Remove explicit dependency on
64988         $(STDBOOL_H), redundant through BUILT_SOURCES.
64989         * modules/stdint (Makefile.am): Remove explicit dependency on
64990         $(STDINT_H), redundant through BUILT_SOURCES.
64991         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
64992         Remove explicit dependency on $(SYSEXITS_H).
64993         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
64994
64995 2005-07-18  Simon Josefsson  <jas@extundo.com>
64996
64997         * lib/check-version.c (check_version): Accept identical versions too.
64998
64999 2005-07-18  Bruno Haible  <bruno@clisp.org>
65000
65001         * modules/lock: New file.
65002         * MODULES.html.sh (Multithreading): New section.
65003
65004 2005-07-18  Bruno Haible  <bruno@clisp.org>
65005
65006         * m4/lock.m4: New file, from GNU gettext.
65007
65008 2005-07-18  Bruno Haible  <bruno@clisp.org>
65009
65010         * lib/lock.h: New file, from GNU gettext.
65011         * lib/lock.c: New file, from GNU gettext.
65012
65013 2005-07-18  Bruno Haible  <bruno@clisp.org>
65014
65015         * lib/lock.h (gl_once_t): New type.
65016         (gl_once_define, gl_once): New macros.
65017         * lib/lock.c (fresh_once): New variable.
65018         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
65019         functions.
65020
65021 2005-07-16  Simon Josefsson  <jas@extundo.com>
65022
65023         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
65024         workaround, suggested by Bruno.
65025
65026 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65027
65028         * modules/xalloc (Depends-on): Add xalloc-die.
65029         * modules/xvasprintf (Depends-on): Add xalloc-die.
65030
65031 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65032
65033         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
65034         with a minor change.
65035
65036 2005-07-15  Bruno Haible  <bruno@clisp.org>
65037
65038         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
65039         When using lib/poll.c, define poll as rpl_poll.
65040
65041 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
65042
65043         * modules/argp (Depends-on): Remove unlocked-io.
65044
65045 2005-07-14  Derek Price  <derek@ximbiot.com>
65046
65047         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
65048         for glob symlink bug.
65049
65050 2005-07-14  Bruno Haible  <bruno@clisp.org>
65051
65052         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
65053         Instead, test for *_unlocked function declarations directly.
65054
65055 2005-07-11  Simon Josefsson  <jas@extundo.com>
65056
65057         * modules/size_max: New file.
65058
65059         * modules/xsize: Depend on size_max module for size_max.m4.
65060
65061 2005-07-11  Simon Josefsson  <jas@extundo.com>
65062
65063         * lib/size_max.h: New file.
65064
65065 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
65066
65067         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
65068         copyright symbol and the year.
65069         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
65070         (version_etc_va): Use parameterized copyright notice.
65071         Reword to conform to the current GNU coding standards.
65072
65073 2005-07-11  Karl Berry  <karl@gnu.org>
65074
65075         * doc/gnulib.texi (Quoting): new node.
65076         (Initial import): more info, from Patrice.
65077
65078 2005-07-11  Bruno Haible  <bruno@clisp.org>
65079
65080         * gnulib-tool (func_usage): Document option --avoid.
65081         (Command line options): Handle --avoid.
65082         (func_acceptable): New function.
65083         (func_modules_transitive_closure): Use it.
65084
65085 2005-07-11  Bruno Haible  <bruno@clisp.org>
65086
65087         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
65088         Reported by Jim Meyering.
65089
65090 2005-07-10  Bruno Haible  <bruno@clisp.org>
65091
65092         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
65093         Needed when size_t is smaller than 'unsigned int'.
65094         Reported by Paul Eggert.
65095
65096 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65097
65098         * modules/argp (Depends-on): Add unlocked-io
65099
65100 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65101
65102         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
65103         block of defines.
65104
65105 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65106
65107         * config/srclist.txt: Comment out regcomp.c, since we have a porting
65108         fix now.
65109
65110 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
65111         and Paul Eggert  <eggert@cs.ucla.edu>
65112
65113         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
65114         in wint_t, not wchar_t.  Remove now-unnecessary cast.
65115
65116 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65117
65118         * modules/regex (Files): Add lib/regex_internal.c,
65119         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
65120         (Depends-on): Add extensions.
65121         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
65122
65123 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65124
65125         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
65126         pathconf.
65127         * m4/same.m4 (gl_SAME): Likewise.
65128         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
65129
65130         * m4/regex.m4: Adjust to new libc regex implementation.
65131         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
65132         all the .c and .h parts of (the new) regex.
65133         Quote the m4 stuff better.
65134         Check for RE_ICASE bug of old gnulib.
65135         Check for REG_STARTEND of recent libc.
65136         Rename local variables from jm_* to gl_*.
65137         Quote operand of "test -f".
65138         Say "recent enough" version of libc, not "version 2".
65139         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
65140         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
65141         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
65142         Remove check for btowc, isascii.
65143         Require AM_LANGINFO_CODESET.
65144
65145 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65146
65147         * lib/regex.c, regex.h: Sync from libc.
65148         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
65149         * lib/regexec.c:
65150         New files, synced from libc, except that regex_internal.h
65151         currently has a small porting fix.
65152
65153 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65154
65155         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65156         regex_internal.c, regexec.c.
65157         Add regex_internal.h too, but as a comment, since the libc version
65158         is currently broken in gnulib mode.
65159
65160 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65161
65162         Support programs like Emacs that use gnulib but not gettext.
65163         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65164         * modules/gettext-h: New file.
65165         * modules/gettext (Files): Remove lib/gettext.h.
65166         (Depends-on): Add gettext-h.
65167         (Makefile.am): Remove lib_SOURCES.
65168         * modules/argmatch, modules/c-stack, modules/closeout:
65169         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65170         * modules/execute, modules/file-type, modules/getaddrinfo:
65171         * modules/getopt, modules/human, modules/javacomp:
65172         * modules/javaexec, modules/mkdir-p, modules/obstack:
65173         * modules/openat, modules/pagealign_alloc, modules/pipe:
65174         * modules/quotearg, modules/regex, modules/rpmatch:
65175         * modules/unicodeio, modules/userspec, modules/version-etc:
65176         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65177         * modules/xsetenv:
65178         Depend on gettext-h, not gettext.
65179
65180 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65181
65182         * gnulib-tool (func_import): Add support for 'public domain' license.
65183         * modules/alloca, modules/atexit, modules/memmove:
65184         Now public domain, not GPL.
65185         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65186         * modules/realloc, modules/strerror, modules/strtod:
65187         Now LGPL, not GPL.
65188
65189 2005-07-05  Bruno Haible  <bruno@clisp.org>
65190
65191         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65192         autoconf CVS. Needed for mingw.
65193
65194 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65195
65196         Remove the dependency of the strftime module on the tzset module.
65197         * modules/strftime (Depends-on): Remove dependency on tzset.
65198
65199 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65200
65201         Remove the dependency of the strftime module on the tzset module.
65202         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65203         gl_FUNC_TZSET_CLOBBER.
65204
65205 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65206
65207         Remove the dependency of the strftime module on the tzset module.
65208         * lib/strftime.c (my_strftime)
65209         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65210         Copy the input structure, to work around some of the bug with
65211         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65212         Solaris releases, you should also use the tzset module, but we won't
65213         require it as a dependency any more since we don't want LGPLed code
65214         to depend on GPLed code.
65215
65216 2005-07-02  Jim Meyering  <jim@meyering.net>
65217
65218         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65219         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65220         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65221         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65222
65223 2005-07-02  Jim Meyering  <jim@meyering.net>
65224
65225         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65226
65227 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65228
65229         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65230         declares only 'struct timespec;' (!).
65231
65232 2005-07-01  Jim Meyering  <jim@meyering.net>
65233
65234         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65235         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65236         * lib/save-cwd.c, tempname.c:
65237         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65238         and don't include <sys/file.h>).
65239
65240 2005-06-29  Jim Meyering  <jim@meyering.net>
65241
65242         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65243         type name.  Use the variable name instead.
65244         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65245         Likewise.
65246
65247 2005-06-28  Simon Josefsson  <jas@extundo.com>
65248
65249         * modules/check-version (Files): Add check-version.m4.
65250
65251 2005-06-28  Simon Josefsson  <jas@extundo.com>
65252
65253         * m4/check-version.m4: New file, suggested by Jim Meyering
65254         <jim@meyering.net>.
65255
65256 2005-06-28  Simon Josefsson  <jas@extundo.com>
65257
65258         * lib/check-version.h, lib/check-version.c: New files.
65259
65260 2005-06-28  Simon Josefsson  <jas@extundo.com>
65261
65262         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65263         collision with global variable.  Better indentation.  Don't
65264         increment buffer pointer beyond buffer end.  Based on comments
65265         from Paul Eggert <eggert@cs.ucla.edu>.
65266
65267         * lib/base64.h: Indent.
65268
65269 2005-06-28  Simon Josefsson  <jas@extundo.com>
65270
65271         * doc/gnulib.texi (Library version handling): New section.
65272
65273 2005-06-28  Jim Meyering  <jim@meyering.net>
65274
65275         * check-module (find_included_lib_files): Hard-code another
65276         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65277         but modules/fts-lgpl (correctly) does not list those files.
65278
65279         * modules/canonicalize (Files): Add lib/pathmax.h.
65280
65281 2005-06-25  Simon Josefsson  <jas@extundo.com>
65282
65283         * modules/check-version: New file.
65284
65285 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65286
65287         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65288         initializer of struct addrinfo, as an indication that we don't
65289         care how many members the structure has.
65290
65291 2005-06-24  Derek Price  <derek@ximbiot.com>
65292         and Bruno Haible  <bruno@clisp.org>
65293
65294         Remove stat module & update lstat.
65295         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65296         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65297         * m4/stat.m4: Remove this file.
65298
65299 2005-06-24  Derek Price  <derek@ximbiot.com>
65300         and Bruno Haible  <bruno@clisp.org>
65301
65302         Remove stat module & update lstat.
65303         * lib/stat.c: Remove this file...
65304         (slash_aware_lstat): ...moving this content and its support...
65305         * lib/lstat.c (rpl_lstat): ...into here.
65306         * lib/lstat.h: New file.
65307
65308 2005-06-24  Derek Price  <derek@ximbiot.com>
65309         and Bruno Haible  <bruno@clisp.org>
65310
65311         Remove stat module & update lstat.
65312         * config/srclist.txt (libc sources): Remove stat.
65313
65314 2005-06-24  Derek Price  <derek@ximbiot.com>
65315         and Bruno Haible  <bruno@clisp.org>
65316
65317         Remove stat module & update lstat.
65318         * MODULES.html.sh (stat): Remove.
65319         * MODULES.html: Regenerated.
65320         * modules/lstat (Description): Correct function name.
65321         (Files): Add "lstat.h".
65322         (Depends-on): Remove stat, add xalloc, stat-macros.
65323         * modules/stat: Remove this file.
65324         (Include): Add "lstat.h", remove <sys/stat.h>.
65325
65326 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65329         (ranged_convert): Don't save conversion in a temporary struct.
65330         This causes a warning with GCC 4.0.0, and anyway in the typical
65331         case it's not worth the extra 100 bytes or so of code.
65332         (ranged_convert, __mktime_internal): When calling a function via a
65333         pointer P, use P () rather than (*P) (), as we now assume C89 or
65334         better.
65335
65336 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65337
65338         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65339         "who -r" failed to give output.  Problem reported by Tim Waugh.
65340
65341         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65342         (xcalloc): Use it to avoid needless tests.
65343         Problem reported by Jim Meyering.
65344
65345 2005-06-20  Derek Price  <derek@ximbiot.com>
65346
65347         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65348         unnecessary for Autoconfs > 2.59c.
65349
65350 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65351
65352         * lib/argp.h (__option_is_short): Check upper limit of
65353         __key. Isprint() requires its argument to have the value
65354         of an unsigned char or EOF.
65355
65356 2005-06-16  Jim Meyering  <jim@meyering.net>
65357
65358         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65359         when either N or S is zero.
65360
65361 2005-06-16  Derek Price  <derek@ximbiot.com>
65362
65363         * m4/bison.m4: Declare YACC & YFLAGS precious.
65364
65365 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65366
65367         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65368         multibyte string or pattern, fall back on unibyte matching.
65369         Problem reported by James Youngman.
65370
65371 2005-06-08  Bruno Haible  <bruno@clisp.org>
65372
65373         * modules/csharpcomp: New file.
65374         * MODULES.html.sh (C#): Add csharpcomp.
65375
65376 2005-06-08  Bruno Haible  <bruno@clisp.org>
65377
65378         * m4/csharpcomp.m4: New file, from GNU gettext.
65379
65380 2005-06-08  Bruno Haible  <bruno@clisp.org>
65381
65382         * lib/csharpcomp.h: New file, from GNU gettext.
65383         * lib/csharpcomp.c: New file, from GNU gettext.
65384         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65385
65386 2005-06-08  Bruno Haible  <bruno@clisp.org>
65387
65388         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65389         warning on mingw.
65390
65391 2005-06-07  Derek Price  <derek@ximbiot.com>
65392
65393         Sync from CVS.
65394         * lib/glob_.h: Indent nested #ifdef.
65395
65396 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65397
65398         Sync from coreutils.
65399         Use "file name" when talking about file names, instead of "filename"
65400         or "path", as per the GNU coding standards.
65401         * lib/mkdir-p.c: Renamed from makepath.c.
65402         (make_dir_parents): Renamed from make_path.  All callers changed.
65403         * lib/mkdir-p.h: Likewise.  All includers changed.
65404         * lib/filenamecat.c: Renamed from path-concat.c.
65405         (file_name_concat): Renamed from path_concat.  All callers changed.
65406         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65407         * lib/filenamecat.h: Likewise.  All includers changed.
65408         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65409         in comments or local variable names.
65410         * lib/basename.c: Likewise.
65411         * lib/canonicalize.c, canonicalize.h: Likewise.
65412         * lib/dirname.c, dirname.h: Likewise.
65413         * lib/euidaccess.c: Likewise.
65414         * lib/exclude.c: Likewise
65415         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65416         * lib/fsusage.c, fsuage.h: Likewise.
65417         * lib/fts.c, fts_.h: Likewise.
65418         * lib/getcwd.c: Likewise.
65419         * lib/getloadavg.c: Likewise.
65420         * lib/mkstemp.c: Likewise.
65421         * lib/mountlist.c, mountlist.h: Likewise.
65422         * lib/openat.c, openat.h: Likewise.
65423         * lib/readlink-stub.c: Likewise.
65424         * lib/readutmp.c, readutmp.h: Likewise.
65425         * lib/rename.c: Likewise.
65426         * lib/rmdir.c: Likewise.
65427         * lib/same.c: Likewise.
65428         * lib/savedir.c: Likewise.
65429         * lib/stripslash.c: Likewise.
65430         * lib/tempname.c: Likewise.
65431         * lib/xreadlink.c: Likewise.
65432         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65433         All uses changed.
65434         * lib/exclude.h: Likewise.
65435
65436         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65437         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65438         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65439         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65440         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65441         files have been getting away with it for years (MORE/BSD 4.3
65442         is extinct now).
65443         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65444         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65445
65446         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65447         Define to 256, not 255, as per modern POSIX.
65448
65449 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65450
65451         Sync from coreutils.
65452         Use "file name" when talking about file names, instead of "filename"
65453         or "path", as per the GNU coding standards.
65454         * MODULES.html.sh: mkdir-p renamed from makepath.
65455         filenamecat renamed from path-concat.
65456         * modules/filenamecat: Renamed from modules/path-concat.
65457         (Files): filenamecat.h and filenamecat.c renamed from
65458         path-concat.h and path-concat.c.
65459         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65460         (Include): filenamecat.h, not path-concat.h.
65461         * modules/mkdir-p: Renamed from modules/makepath.
65462         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65463         makepath.c.
65464         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65465         (Include): mkdir-p.h, not makepath.h.
65466
65467 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65468
65469         Sync from coreutils.
65470         * m4/mkdir-p.m4: Renamed from makepath.m4.
65471         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65472         Rename files from makepath.c to mkdir-p.c, and from
65473         makepath.h to mkdir-p.h.
65474         * m4/filenamecat.m4: Renamed from path-concat.m4.
65475         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65476         Rename files from path-concat.c to filenamecat.c,
65477         and from path-concat.h to filenamecat.h.
65478         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65479         "file name" in local variables or comments.
65480         * m4/rename.m4: Likewise.
65481
65482 2005-06-01  Bruno Haible  <bruno@clisp.org>
65483
65484         * modules/csharpexec: New file.
65485         * MODULES.html.sh (C#): New section.
65486
65487 2005-06-01  Bruno Haible  <bruno@clisp.org>
65488
65489         * m4/csharp.m4: New file, from GNU gettext.
65490         * m4/csharpexec.m4: New file, from GNU gettext.
65491
65492 2005-06-01  Bruno Haible  <bruno@clisp.org>
65493
65494         * lib/csharpexec.h: New file, from GNU gettext.
65495         * lib/csharpexec.c: New file, from GNU gettext.
65496         * lib/csharpexec.sh.in: New file, from GNU gettext.
65497
65498 2005-05-31  Derek Price  <derek@ximbiot.com>
65499             Paul Eggert  <eggert@cs.ucla.edu>
65500
65501         Sync from cvs.
65502         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65503
65504 2005-05-31  Derek Price  <derek@ximbiot.com>
65505             Paul Eggert  <eggert@cs.ucla.edu>
65506
65507         Sync from cvs.
65508         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65509
65510 2005-05-29  Derek Price  <derek@ximbiot.com>
65511
65512         * config/srclist.txt (glob_.h, glob.c): Add these files.
65513
65514 2005-05-29  Derek Price  <derek@ximbiot.com>
65515
65516         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65517         * modules/glob: New file.
65518         * modules/getlogin_r: Add link to POSIX spec in description.
65519
65520 2005-05-29  Derek Price  <derek@ximbiot.com>
65521             Paul Eggert  <eggert@cs.ucla.edu>
65522
65523         * m4/glob.m4: New file.
65524
65525 2005-05-29  Derek Price  <derek@ximbiot.com>
65526             Paul Eggert  <eggert@cs.ucla.edu>
65527
65528         * lib/glob_.h, lib/glob.c: New files.
65529
65530 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65531
65532         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65533         * modules/fts-lgpl (Depends-on): Remove gettext.
65534
65535 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65538         and don't require gt_INTTYPES_PRI.
65539
65540 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65543
65544         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65545         the configuration hassle isn't worth it.
65546         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65547         (LONGEST_MODIFIER, PRIuMAX): Remove.
65548
65549 2005-05-27  Bruno Haible  <bruno@clisp.org>
65550
65551         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65552
65553 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65554
65555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65556         _POSIX_PTHREAD_SEMANTICS for Solaris.
65557
65558 2005-05-25  Derek Price  <derek@ximbiot.com>
65559
65560         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65561
65562 2005-05-25  Derek Price  <derek@ximbiot.com>
65563             Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65566         * lib/getlogin_r.c, getlogin_r.h: New files.
65567
65568 2005-05-25  Bruno Haible  <bruno@clisp.org>
65569             Derek Price  <derek@ximbiot.com>
65570
65571         * lib/getlogin_r.h: Simplify API documentation.
65572
65573 2005-05-23  Derek Price  <derek@ximbiot.com>
65574
65575         * modules/minmax (Files): Add m4/minmax.m4.
65576         (configure.ac): Add gl_MINMAX.
65577
65578 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65579
65580         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65581         so that unistd-safer.h (GPL'ed code) need not be included.
65582
65583 2005-05-22  Bruno Haible  <bruno@clisp.org>
65584
65585         * m4/minmax.m4: New file.
65586         Based on a patch by Derek Price <derek@ximbiot.com>.
65587
65588 2005-05-22  Bruno Haible  <bruno@clisp.org>
65589
65590         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65591         (INT64_MIN): Fix definition.
65592         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65593
65594         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65595         NEED_SIGNED_INT_TYPES.
65596
65597         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
65598         HAVE_SYSTEM_INTTYPES.
65599
65600 2005-05-22  Bruno Haible  <bruno@clisp.org>
65601
65602         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
65603         Also include <sys/param.h> if it defines MIN, MAX.
65604         Based on a patch by Derek Price <derek@ximbiot.com>.
65605
65606 2005-05-21  Jim Meyering  <jim@meyering.net>
65607
65608         * modules/fts (Files): Add m4/inttypes-pri.m4.
65609         (Depends-on): Add lstat and remove gettext.  Alphabetize.
65610
65611 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65612
65613         New fts module.
65614         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
65615         (setup_dir, free_dir): New functions.
65616         (enter_dir, leave_dir): Define trivial
65617         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
65618         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
65619         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
65620         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
65621         Move to fts-cycle.c.
65622         (fts_open): Use setup_dir.
65623         (fts_close): Use free_dir.
65624         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
65625         This adds a label and some gotos, but the alternatives were messier.
65626         Check for memory allocation failure when entering a dir.
65627         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
65628         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
65629         (FTS): New member fts_cycle, that is a union that contains the
65630         old active_dir_ht and cycle_state.  All uses changed to mention
65631         fts_cycle.ht and fts_cycle.state.
65632         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
65633         fts.c, with the following changes:
65634         (setup_dir, free_dir): New functions.
65635         (enter_dir): Now returns bool.  Return true if successful, false
65636         if memory exhausted.  All callers changed.
65637         Do not bother partly cleaning up on
65638         memory allocation failure; that is free_dir's job.
65639         However, free ad if hash_insert fails, to avoid memory leak.
65640         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
65641         fts->fts_options to see which union member to use.
65642
65643 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65644
65645         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
65646         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
65647
65648 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65649
65650         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
65651
65652 2005-05-20  Jim Meyering  <jim@meyering.net>
65653
65654         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
65655         Now a macro, to pacify GCC.
65656
65657 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65658
65659         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
65660         of -1.
65661
65662 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65663
65664         * lib/chown.c (rpl_chown): Return -1 on failure.
65665
65666 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65667
65668         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
65669         Don't check for stddef.h.
65670         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
65671         don't use its results.
65672         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
65673         since we include them unconditionally.  Don't require
65674         AM_STDBOOL_H, since stdbool is a prerequisite.
65675         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
65676         since we assume C89 or better.
65677         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
65678         as we don't use their results.
65679         Don't check for fchdir, memmove, memset, strrchr, as we use
65680         them unconditionally.
65681         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
65682         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
65683
65684 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
65687         Include <stddef.h> unconditionally, since we assume C89 now.
65688         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
65689         * lib/fts.c: Include fts_.h first, to check interface.
65690         Do not include intprops.h; no longer needed.
65691         Include cycle-check.h and hash.h, since fts_.h no longer does.
65692         Remove unnecessary casts of closedir to void.
65693         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
65694         decide whether to decrement nlinks.
65695         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
65696         (FTS): Use struct hash_table * instead of Hash_table, so that
65697         we no longer need to include hash.h here.
65698
65699 2005-05-18  Jim Meyering  <jim@meyering.net>
65700
65701         * modules/dirfd (License): Change to LGPL.  Most of the code
65702         is already in the public domain.
65703
65704 2005-05-18  Jim Meyering  <jim@meyering.net>
65705
65706         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
65707         Reported by Yoann Vandoorselaere.
65708
65709 2005-05-17  Jim Meyering  <jim@meyering.net>
65710
65711         * m4/fts.m4: New file, from coreutils.
65712
65713 2005-05-17  Jim Meyering  <jim@meyering.net>
65714
65715         * lib/fts.c, lib/fts_.h: New files, from coreutils.
65716
65717 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65718
65719         Sync from coreutils.
65720         * m4/unlinkdir.m4: New file.
65721
65722 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         Sync from coreutils.
65725         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
65726         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
65727         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
65728         White space changes only.
65729         * lib/makepath.c (make_path): Port to hosts where leading "//" is
65730         special.
65731         * lib/yesno.c: Include getline.h, not ctype.h.
65732         (yesno): Don't remove leading white space; POSIX doesn't allow it.
65733         Use getline to remove arbitrary restriction on response length.
65734
65735 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * config/srclist-update: Spell out "Street" in FSF postal
65738         mail address; this is the style the FSF seems to prefer.
65739
65740         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
65741         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
65742         this updates FSF postal mail address.
65743
65744         Sync from coreutils.
65745         * modules/unlinkdir: New file.
65746         * modules/yesno (Depends-on): Add getline.
65747         * MODULES.html.sh (File system functions): Add unlinkdir.
65748
65749 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65750
65751         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
65752         lib/strsep.h:
65753         Change the initial comment to refer to GPL, not LGPL.
65754         gnulib-tool will change it to LGPL as needed.
65755
65756         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
65757         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
65758         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
65759         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
65760         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
65761         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
65762         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
65763         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
65764         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
65765         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
65766         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
65767         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
65768         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
65769         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
65770         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
65771         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
65772         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
65773         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
65774         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
65775         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
65776         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
65777         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
65778         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
65779         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
65780         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
65781         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
65782         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
65783         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
65784         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
65785         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
65786         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
65787         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
65788         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
65789         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
65790         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
65791         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
65792         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
65793         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
65794         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
65795         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
65796         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
65797         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
65798         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
65799         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
65800         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
65801         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
65802         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
65803         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
65804         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
65805         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
65806         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
65807         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
65808         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
65809         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
65810         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
65811         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
65812         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
65813         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
65814         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
65815         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
65816         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
65817         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
65818         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
65819         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
65820         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
65821         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
65822         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
65823         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
65824         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
65825         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
65826         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
65827         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
65828         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
65829         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
65830         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
65831         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
65832         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
65833         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
65834         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
65835         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
65836         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
65837         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
65838         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
65839         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
65840         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
65841         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
65842         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
65843         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
65844         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
65845         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
65846         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
65847         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
65848         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
65849         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
65850         lib/yesno.c, lib/yesno.h:
65851         Update FSF postal mail address.
65852
65853 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
65856         tests/test-memmem.c, tests/test-stpncpy.c:
65857         Update FSF postal mail address.
65858
65859 2005-05-13  Bruno Haible  <bruno@clisp.org>
65860
65861         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
65862         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
65863         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
65864         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
65865         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
65866         Add support for 64-bit integers in the MSVC compiler.
65867
65868 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65869
65870         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
65871
65872 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
65873
65874         * gnulib-tool (func_import): Sort and uniquify recommended includes.
65875
65876 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
65877
65878         * doc/getdate.texi (General date syntax): Don't say that date
65879         date --iso-8601=ns generates acceptable dates; it doesn't yet.
65880         Problem reported by Nic Ferrier.
65881
65882 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65883
65884         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
65885         specified in ai_socktype. Fix invalid ai_protocol
65886         check. ai_protocol is usually set to 0 or depending on
65887         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
65888         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
65889         ai_socktype / ai_protocol in the returned addrinfo structure.
65890
65891 2005-05-10  Simon Josefsson  <jas@extundo.com>
65892
65893         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
65894         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65895
65896 2005-05-10  Karl Berry  <karl@gnu.org>
65897
65898         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
65899         (from http://www.gnu.org/licenses).
65900         * doc/COPYING.LIB: also rename to COPYING.LESSER.
65901         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
65902         fdl.texi suffices.
65903
65904 2005-05-10  Karl Berry  <karl@gnu.org>
65905
65906         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
65907         (COPYING.DOC): remove.
65908
65909         * config/srclist-update: new FSF address.
65910
65911 2005-05-10  Derek Price  <derek@ximbiot.com>
65912
65913         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
65914         possible.
65915
65916 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65917             Bruno Haible  <bruno@clisp.org>
65918
65919         * modules/inet_ntop: New file.
65920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65921         inet_ntop.
65922
65923 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65924             Bruno Haible  <bruno@clisp.org>
65925
65926         * m4/inet_ntop.m4: New file.
65927
65928 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65929             Bruno Haible  <bruno@clisp.org>
65930
65931         * lib/inet_ntop.h: New file.
65932         * lib/inet_ntop.c: New file, from glibc with modifications.
65933
65934 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
65935
65936         * modules/time_r (License): Change to LGPL.
65937         * modules/extensions (License): Change to LGPL.  Actually,
65938         the license is more permissive than that, but currently gnulib-tool
65939         doesn't know how to handle more-permissive licenses.
65940
65941         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
65942         Problem reported by Dave Love.
65943
65944 2005-05-08  Jim Meyering  <jim@meyering.net>
65945
65946         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
65947         blank.
65948
65949 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
65950
65951         * modules/argmatch (Depends-on): Add stdbool.
65952         * modules/backupfile (Depends-on): Likewise.
65953         * modules/chdir-long (Depends-on): Likewise.
65954         * modules/closeout (Depends-on): Likewise.
65955         * modules/cycle-check (Depends-on): Likewise.
65956         * modules/dirname (Depends-on): Likewise.
65957         * modules/fnmatch (Depends-on): Likewise.
65958         * modules/fsusage (Depends-on): Likewise.
65959         * modules/fwriteerror (Depends-on): Likewise.
65960         * modules/getcwd (Depends-on): Likewise.
65961         * modules/getloadavg (Depends-on): Likewise.
65962         * modules/hard-locale (Depends-on): Likewise.
65963         * modules/makepath (Depends-on): Likewise.
65964         * modules/mountlist (Depends-on): Likewise.
65965         * modules/nanosleep (Depends-on): Likewise.
65966         * modules/posixtm (Depends-on): Likewise.
65967         * modules/quotearg (Depends-on): Likewise.
65968         * modules/readtokens (Depends-on): Likewise.
65969         * modules/readtokens0 (Depends-on): Likewise.
65970         * modules/readutmp (Depends-on): Likewise.
65971         * modules/save-cwd (Depends-on): Likewise.
65972         * modules/strftime (Depends-on): Likewise.
65973         * modules/userspec (Depends-on): Likewise.
65974         * modules/utimecmp (Depends-on): Likewise.
65975         * modules/xgetcwd (Depends-on): Likewise.
65976         * modules/xnanosleep (Depends-on): Likewise.
65977         * modules/xstrtod (Depends-on): Likewise.
65978         * modules/yesno (Depends-on): Likewise.
65979
65980 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65981
65982         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
65983         needless checks.
65984
65985 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
65986
65987         Merge from coreutils.  Among other things,
65988         add bulletproofing for cases where stdin, stdout, or stderr are closed.
65989         * lib/fd-safer.c: New file.
65990         * lib/fcntl-safer.h, open-safer.c: Remove.
65991         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
65992         * lib/dup-safer.c: Include unistd-safer.h first.
65993         Don't include errno.h.
65994         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
65995         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
65996         * lib/file-type.c: Rely on file-type.h change.
65997         * lib/getloadavg.c: Include unistd-safer.h.
65998         (getloadavg): Use safer open.
65999         * lib/getusershell.c: Include "stdio-safer.h".
66000         (getusershell): Use safer fopen.
66001         * lib/long-options.c (long_options): Use NULL rather than 0.
66002         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
66003         'free'.
66004         * lib/modechange.c: Likewise.
66005         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
66006         (MODE_DONE): New constant.
66007         (struct mode_change): Remove 'next' member.
66008         (make_node_op_equals): New function; like the old one of the
66009         same name, except it allocates an array.
66010         (mode_compile, mode_create_from_ref): Use it.
66011         (mode_compile): Allocate result as an array, not a linked list.
66012         Parse octal string ourself, so that we catch mistakes like "+0".
66013         (mode_adjust): Arg is an array, not a linked list.
66014         * lib/modechange.c: Include stat-macros.h, xalloc.h.
66015         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
66016         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
66017         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
66018         Remove.  This is now stat-macros.h's job.
66019         (talloc): Remove.  All callers replaced by xalloc, so that
66020         our invokers don't have to worry about reporting memory failures.
66021         (make_node_op_equals): Remove.
66022         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66023         New constants.
66024         (struct mode_change): Moved here from modechange.h.
66025         (mode_append_entry): Remove.
66026         (mode_compile): Remove MASKED_OPS arg, since it encouraged
66027         apps to have incorrect behavior.  Use simpler algorithm for head
66028         and tail.  Don't futz with umask; that's now the job of mode_adjust.
66029         Detect more invalid usages rather than having somewhat-random behavior.
66030         Don't insert an "a=" action, as that leads to incorrect behavior.
66031         (mode_compile, mode_create_from_ref): Return NULL on error instead
66032         of an enum, since now there's only one way to have an error.  All
66033         callers changed.
66034         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
66035         at the correct time.  Simplify calculation of "+u" and its ilk.
66036         Don't mishandle "+X".
66037         (mode_free): Remove "register" and localize decls.
66038         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66039         (struct mode_change): Move to modechange.c; callers don't
66040         need to see this stuff.
66041         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
66042         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
66043         (mode_change, mode_adjust): Reflect the new signatures noted above.
66044         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
66045         that might redefine system include files.
66046         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
66047         (my_usleep): Use NULL rather than (void *) 0.
66048         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
66049         Use siginterrupt to specify that system calls should be interrupted.
66050         (rpl_nanosleep): Move initialization of suspended closer to call of
66051         my_usleep.
66052         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
66053         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
66054         (desirable_utmp_entry): New function.
66055         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
66056         using x2nrealloc, to simplify logic.
66057         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
66058         size calculation.  Do not assume utmp file is a regular file.
66059         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
66060         (READ_UTMP_CHECK_PIDS): New constant.
66061         * lib/save-cwd.c: Include unistd-safer.h.
66062         (save_cwd): Use fd_safer.
66063         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
66064         [!_LIBC] Include "stat-macros.h" instead.
66065         * lib/unistd-safer.h (fd_safer): New decl.
66066
66067 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66068
66069         * modules/getloadavg (Depends-on): Add unistd-safer.
66070         * modules/getusershell (Depends-on): Add stdio-safer.
66071         * modules/lstat (Depends-on): Remove xalloc.
66072         * modules/mkstemp (Depends-on): Add stat-macros.
66073         * modules/modechange (Depends-on): Remove xstrtol.
66074         Add stat-macros, xalloc.
66075         * modules/save-cwd (Depends-on): Add unistd-safer.
66076         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
66077         * modules/unistd-safer (Files): Add lib/fd-safer.c
66078         (Makefile.am): Remove lib_SOURCES.
66079
66080         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
66081         Remove fcntl-safer; unistd-safer supersedes it.
66082
66083 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66084
66085         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
66086         AC_HEADER_STAT.
66087         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
66088         (gl_PREREQ_CHOWN): Remove.
66089         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
66090         it.  Don't require AC_HEADER_STAT.
66091         (gl_PREREQ_LSTAT): Remove.
66092         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
66093         Don't require AC_HEADER_STAT.
66094         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
66095         (gl_PREREQ_RMDIR): Remove.
66096         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
66097         mention stat-macros.h or AC_HEADER_STAT, since we'll make
66098         the stat-macros module a prerequisite.
66099         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
66100         * m4/filemode.m4 (gl_FILEMODE): Likewise.
66101         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
66102         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
66103         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
66104         variable names.
66105         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
66106         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
66107         variable prefixes.
66108         * m4/fcntl-safer.m4: Remove.
66109         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
66110         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
66111         Invoke gl_PREREQ_FD_SAFER.
66112         (gl_PREREQ_FD_SAFER): New macro.
66113         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
66114         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
66115         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
66116         Remove duplicate call to AC_LIBOBJ(readutmp).
66117         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
66118
66119         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
66120         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
66121
66122 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66123
66124         * MODULES.html.sh (Misc): Add byteswap.
66125
66126 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66127
66128         * modules/getcwd (Depends-on): Add extensions.
66129         * modules/openat (Depends-on): Likewise.
66130
66131 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66132
66133         * modules/byteswap: New file.
66134
66135 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66136
66137         * m4/byteswap.m4: New file.
66138
66139 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66140
66141         * lib/byteswap_.h: New file.
66142
66143 2005-04-25  Karl Berry  <karl@gnu.org>
66144
66145         * m4/gettext.m4: Update from GNU gettext 0.14.4.
66146
66147 2005-04-25  Albert Chin  <china@thewrittenword.com>
66148
66149         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
66150         Toolkit C bug.
66151
66152 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66153
66154         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66155         (func_ln_if_changed) Remove forcibly for no error message
66156         in case file does not exist.
66157
66158 2005-04-19  Simon Josefsson  <jas@extundo.com>
66159
66160         * gnulib-tool (Options): Make --symlink mean --symbolic.
66161
66162 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66163
66164         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66165
66166 2005-04-16  Simon Josefsson  <jas@extundo.com>
66167
66168         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66169
66170 2005-04-15  Simon Josefsson  <jas@extundo.com>
66171
66172         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66173
66174 2005-04-15  Simon Josefsson  <jas@extundo.com>
66175
66176         * gnulib-tool: Rename --symlink to --symbolic.
66177
66178 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66179
66180         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66181         symbolic links to files instead of copying/moving.  Add --aux-dir,
66182         specifying directory relative --dir where auxiliary build tools
66183         are placed.
66184
66185 2005-04-14  Bruno Haible  <bruno@clisp.org>
66186
66187         * modules/allocsa (License): Change to LGPL.
66188         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66189
66190 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66191
66192         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66193         that "UTC +1 second" continues to work.  Problem reported
66194         by Dmitry V. Levin.
66195         (relunit_snumber): New rule.
66196         (relunit): Use it.
66197
66198 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66199
66200         * lib/getdate.y (universal_time_zone_table): New constant.
66201         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66202         universal_time_zone_table.
66203         (lookup_zone): Prefer universal_time_zone_table to
66204         local_time_zone_table, so that "GMT" time stamps are allowed in
66205         London during the summer.  Problem reported by Ian Abbott.
66206
66207 2005-04-12  Jim Meyering  <jim@meyering.net>
66208
66209         * lib/human.c (humblock): Set *options even when returning due to
66210         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66211         warning from gcc-4.
66212
66213 2005-04-09  Jim Meyering  <jim@meyering.net>
66214
66215         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66216         -Wuninitialized: initialize tm0.tm_year.
66217
66218 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66219
66220         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66221         count, since there's no maximum.  All uses changed.
66222         Add member dsts_seen.
66223         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66224         not being INT_MAX.
66225         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66226         Use pc_rels_seen to decide whther a date is absolute.
66227
66228         * lib/getdate.y (number): Don't overwrite year.
66229         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66230         check.
66231
66232 2005-04-02  Simon Josefsson  <jas@extundo.com>
66233
66234         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66235         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66236
66237 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66238
66239         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66240         where no absolute path name can be longer than PATH_MAX.
66241
66242 2005-03-27  Jim Meyering  <jim@meyering.net>
66243
66244         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66245
66246 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66247
66248         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66249         "one's complement" -> "ones' complement" in comment, as per Knuth.
66250         "value of type" -> "type or expression" in comment.
66251         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66252
66253 2005-03-26  Jim Meyering  <jim@meyering.net>
66254
66255         Comment nits.
66256         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66257         Correct typos: s/or/of/.
66258
66259 2005-03-26  Jim Meyering  <jim@meyering.net>
66260
66261         * modules/check-include-files: Move to ../ and rename to...
66262         * check-module: ...this.
66263
66264 2005-03-25  Jim Meyering  <jim@meyering.net>
66265
66266         * modules/xvasprintf (Files): Add xalloc.h.
66267
66268 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66269
66270         * modules/gettext (Files): config/config.rpath ->
66271         build-aux/config.rpath
66272         * modules/iconv (Files): Likewise.
66273         Problem reported by Oskar Liljeblad.
66274
66275 2005-03-23  Jim Meyering  <jim@meyering.net>
66276
66277         * modules/check-include-files: New script to check for
66278         missing dependencies, multiple includes, etc.
66279
66280         * modules/c-strtold (Depends-on): Add xalloc.
66281         * modules/c-strtod (Depends-on): Add xalloc.
66282         * modules/hash (Depends-on): Add xalloc.
66283         (Files): Remove lib/xalloc.h.
66284
66285         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66286         * modules/userspec (Files): Add lib/inttostr.h.
66287
66288 2005-03-23  Jim Meyering  <jim@meyering.net>
66289
66290         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66291
66292 2005-03-22  Jim Meyering  <jim@meyering.net>
66293
66294         * modules/stat-macros: New module.
66295         * modules/canonicalize, modules/euidaccess, modules/file-type,
66296         * modules/filemode, modules/lchown, modules/makepath,
66297         * modules/rmdir, modules/stat: Depend on new stat-macros module
66298         rather than listing lib/stat-macros.h manually.
66299         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66300
66301 2005-03-22  Jim Meyering  <jim@meyering.net>
66302
66303         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66304
66305 2005-03-22  Bruno Haible  <bruno@clisp.org>
66306
66307         * config/srclist.txt: Replace target directory 'config' with
66308         'build-aux'.
66309         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66310         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66311         ../build-aux/.
66312
66313 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66314
66315         * modules/chdir-long (Depends-on): Add mempcpy.
66316
66317         * modules/acl, modules/backupfile, modules/c-strtod,
66318         modules/c-strtold, modules/canon-host, modules/canonicalize,
66319         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66320         modules/exclude, modules/exitfail, modules/file-type,
66321         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66322         modules/getdate, modules/getline, modules/getpagesize,
66323         modules/getpass, modules/getugroups, modules/group-member,
66324         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66325         modules/inttostr, modules/long-options, modules/makepath,
66326         modules/md5, modules/memcasecmp, modules/memcoll,
66327         modules/modechange, modules/mountlist, modules/path-concat,
66328         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66329         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66330         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66331         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66332         modules/strftime, modules/strndup, modules/strverscmp,
66333         modules/timespec, modules/unlocked-io, modules/userspec,
66334         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66335         modules/yesno:
66336         Remove lib_SOURCES line from Makefile.am section, as this is now
66337         done automatically by the corresponding Autoconf macro.
66338
66339 2005-03-21  Jim Meyering  <jim@meyering.net>
66340
66341         Changes imported from coreutils.
66342
66343         * lib/cycle-check.c: Don't include xalloc.h.
66344
66345         * lib/path-concat.c: Don't include assert.h.
66346         (path_concat): Remove assertion that would have triggered
66347         for ABASE starting with more than one slash.
66348         Reported by Andreas Schwab.
66349
66350         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66351         properly when ABASE is an absolute file name.
66352         Correct the description of this function.
66353         Include <assert.h>.
66354         Add an assertion and a test driver.
66355         This fixes a bug introduced on 2004-07-02.
66356         Andreas Schwab reported the resulting failure of cp --parents:
66357         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66358
66359 2005-03-21  Jim Meyering  <jim@meyering.net>
66360
66361         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66362         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66363
66364 2005-03-21  Jim Meyering  <jim@meyering.net>
66365         and  Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66368         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66369         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66370         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66371         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66372         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66373         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66374         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66375         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66376         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66377         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66378         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66379         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66380         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66381         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66382         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66383         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66384         for these modules.
66385
66386 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66387
66388         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66389         (which shouldn't happen), generate nothing instead of returning 0
66390         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66391
66392 2005-03-16  Bruno Haible  <bruno@clisp.org>
66393
66394         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66395         HAVE_LONGLONG_64BIT.
66396
66397 2005-03-16  Bruno Haible  <bruno@clisp.org>
66398
66399         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66400         HAVE_LONGLONG_64BIT.
66401
66402 2005-03-16  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66405         HAVE_LONGLONG_64BIT.
66406
66407 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66408
66409         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66410         reliably distinguish strftime failure from empty output on POSIX
66411         hosts.
66412
66413 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66414
66415         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66416         (iconv_string): Don't guess a size-zero buffer, as that might cause
66417         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66418         result would be 'too large', where 'too large' is (heuristically)
66419         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66420         overflow concerns.  This will prevent some unwanted malloc failures
66421         when the inputs are very large.
66422
66423 2005-03-15  Karl Berry  <karl@gnu.org>
66424
66425         * config/srclist.txt (config.rpath): from gettext.
66426         * config/config.rpath: update.
66427
66428 2005-03-15  Bruno Haible  <bruno@clisp.org>
66429
66430         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66431         to 'negate'.
66432
66433         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66434         variable.
66435
66436         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66437         results.
66438
66439 2005-03-14  Simon Josefsson  <jas@extundo.com>
66440
66441         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66442         <fx@gnu.org>.
66443
66444 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66445
66446         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66447         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66448         intprops.h.
66449         * lib/strtol.c: Likewise.
66450
66451 2005-03-14  Jim Meyering  <jim@meyering.net>
66452
66453         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66454         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66455         to be nonzero so that we (and caller) can detect the difference
66456         between a valid zero-length expansion and an error return, even
66457         when the underlying strftime fails before writing anything into
66458         that location.
66459
66460 2005-03-14  Bruno Haible  <bruno@clisp.org>
66461
66462         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66463         Update from GNU gettext 0.14.3.
66464
66465 2005-03-10  Jim Meyering  <jim@meyering.net>
66466
66467         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66468
66469 2005-03-10  Jim Meyering  <jim@meyering.net>
66470
66471         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66472         so that this module works on systems without fchdir.
66473
66474 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66475
66476         Factor int-properties macros into a single file, except for
66477         glibc-related files.
66478         * lib/intprops.h: New file.
66479         * lib/getloadavg.c: Include it instead of limits.h.
66480         (INT_STRLEN_BOUND): Remove.
66481         * lib/human.c: Include intprops.h.
66482         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66483         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66484         302/1000.
66485         * lib/inttostr.h: Include intprops.h instead of limits.h.
66486         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66487         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66488         for consistency with intprops.h.
66489         (time_t_is_integer, twos_complement_arithmetic): Use them.
66490         * lib/sig2str.h: Include <signal.h>, intprops.h.
66491         (INT_STRLEN_BOUND): Remove.
66492         * lib/strftime.c (TYPE_SIGNED): Remove.
66493         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66494         * lib/strtol.c: Adjust comments to match intprops.h.
66495         * lib/userspec.c: Include intprops.h.
66496         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66497         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66498         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66499         instead of rolling our own expressions.
66500         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66501
66502         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66503         instead of int.
66504         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66505         the right thing even if adding 1900 would overflow.  Similarly
66506         for tm_mon + 1 and tm_yday + 1.
66507         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66508         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66509         (DO_SIGNED_NUMBER): New macro.
66510         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66511
66512 2005-03-07  Bruno Haible  <bruno@clisp.org>
66513
66514         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66515
66516 2005-03-07  Bruno Haible  <bruno@clisp.org>
66517
66518         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66519
66520 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66521
66522         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66523         (func_import): Only replace files via --import when they have actually
66524         changed.
66525
66526 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66527
66528         * m4/mmap-anon.m4: New file.
66529         * m4/pagealign_alloc.m4: New file.
66530
66531 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66532             Bruno Haible  <bruno@clisp.org>
66533
66534         * modules/pagealign_alloc: New file.
66535         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66536
66537 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66538             Bruno Haible  <bruno@clisp.org>
66539
66540         * lib/pagealign_alloc.h: New file.
66541         * lib/pagealign_alloc.c: New file.
66542
66543 2005-03-03  Bruno Haible  <bruno@clisp.org>
66544
66545         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66546         Use an all-permissive copyright notice, recommended by RMS.
66547
66548 2005-03-02  Bruno Haible  <bruno@clisp.org>
66549
66550         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66551         of AIX, the replacement has to be done only after <string.h> is
66552         included, therefore not in config.h. stpncpy.h does the replacement,
66553         and stpncpy.c uses it.
66554
66555 2005-03-02  Bruno Haible  <bruno@clisp.org>
66556
66557         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66558         stpncpy.c uses it.
66559
66560 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66561
66562         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66563         The workaround isn't strictly needed for POSIX conformance, and
66564         it's too much of a pain to configure and maintain.  We'll ask
66565         people to fix their kernels instead.
66566         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66567         (NANOSLEEP_BUG_WORKAROUND): Remove.
66568         (xnanosleep): Remove the workaround.
66569
66570 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66571
66572         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66573         Reported by Derek Price.
66574         (Include): Add "timespec.h".
66575
66576         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66577
66578 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66579
66580         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66581         to detect nanosleep bug.
66582
66583 2005-03-01  Bruno Haible  <bruno@clisp.org>
66584
66585         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66586
66587 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66588
66589         * modules/gethrxtime: New file.
66590         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66591         (Depends-on): Add gethrxtime.
66592         (configure.ac): Add gl_XNANOSLEEP.
66593         (Makefile.am): Remove lib_SOURCES line.
66594
66595 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66596
66597         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
66598         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
66599
66600 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66601
66602         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
66603         * lib/timespec.h (gettime): Return void, since it always
66604         succeeds now.  All uses changed.
66605         * lib/gettime.c (gettime) Likewise.
66606         [HAVE_NANOTIME]: Prefer nanotime.
66607         Assume gettimeofday succeeds, as POSIX requires.
66608         Assime time () succeeds, since other code already does.
66609         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
66610         (timespec_subtract): Remove.
66611         (NANOSLEEP_BUG_WORKAROUND): New constant.
66612         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
66613         things considerably.  Use it only on GNU/Linux hosts, since the
66614         workaround shouldn't be needed elsewhere.
66615
66616 2005-02-24  Bruno Haible  <bruno@clisp.org>
66617
66618         * modules/gettext (Files): Add m4/glibc2.m4.
66619
66620 2005-02-24  Bruno Haible  <bruno@clisp.org>
66621
66622         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
66623         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
66624         * m4/progtest.m4:
66625         Update from GNU gettext 0.14.2.
66626         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
66627
66628 2005-02-24  Bruno Haible  <bruno@clisp.org>
66629
66630         * lib/localcharset.c: Update from GNU gettext 0.14.2.
66631         * lib/config.charset: Update from GNU gettext 0.14.2.
66632
66633 2005-02-24  Bruno Haible  <bruno@clisp.org>
66634
66635         * lib/gettext.h: Update from GNU gettext 0.14.2.
66636
66637 2005-02-23  Simon Josefsson  <jas@extundo.com>
66638
66639         * m4/iconvme.m4: New file.
66640
66641 2005-02-23  Jim Meyering  <jim@meyering.net>
66642
66643         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
66644         change.
66645         Thanks to Bruno Haible for catching it.
66646
66647 2005-02-22  Simon Josefsson  <jas@extundo.com>
66648
66649         * modules/iconvme: New file.
66650
66651         * MODULES.html.sh: Add iconvme.
66652
66653 2005-02-22  Simon Josefsson  <jas@extundo.com>
66654
66655         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
66656
66657 2005-02-22  Simon Josefsson  <jas@extundo.com>
66658
66659         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
66660
66661 2005-02-22  Jim Meyering  <jim@meyering.net>
66662
66663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
66664         s/ifndef/ifdef/.
66665
66666 2005-02-20  Neil Conway  <neilc@samurai.com>
66667
66668         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
66669         returned by OSX/Darwin if the specified buffer is not large
66670         enough for the hostname.
66671
66672 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66673
66674         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
66675         pass it to _help, otherwise the latter coredumps trying to
66676         dereference state.root_argp.
66677
66678 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66679
66680         * modules/chdir-long (Depends-on): Add memrchr.
66681         * modules/memrchr (Files): Add lib/memrchr.h.
66682         (Include): "memrchr.h".
66683
66684 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
66687
66688 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * lib/memrchr.h: New file.
66691         * lib/chdir-long.c: Include it.
66692         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
66693         Don't bother including stddef.h.
66694
66695 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66696
66697         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
66698         inclusion.
66699         Include <sys/types.h>, for dev_t.
66700         (ME_DUMMY, ME_REMOTE): Move from here....
66701         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
66702         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
66703         Dmitry V. Levin.
66704         Include mountlist.h first, to test the interface.
66705
66706 2005-01-29  Bruno Haible  <bruno@clisp.org>
66707
66708         * lib/progname.c (program_name): Initialize.
66709         Needed when linking statically on MacOS X.
66710
66711 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66712
66713         Sync from coreutils.
66714         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
66715         (Depends-on): Add c-strtod.
66716         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
66717
66718 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66719
66720         Sync from coreutils.
66721         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
66722
66723         Remove files that are specific to coreutils.
66724         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
66725
66726 2005-01-28  Bruno Haible  <bruno@clisp.org>
66727
66728         * modules/javacomp: New file.
66729         * MODULES.html.sh (Java): Add javacomp.
66730
66731 2005-01-28  Bruno Haible  <bruno@clisp.org>
66732
66733         * m4/javacomp.m4: New file, from GNU gettext.
66734
66735 2005-01-28  Bruno Haible  <bruno@clisp.org>
66736
66737         * lib/javacomp.sh.in: New file, from GNU gettext.
66738         * lib/javacomp.h: New file, from GNU gettext.
66739         * lib/javacomp.c: New file, from GNU gettext.
66740
66741 2005-01-26  Simon Josefsson  <jas@extundo.com>
66742
66743         * lib/gai_strerror.c: Use GPL in header.
66744
66745 2005-01-26  Bruno Haible  <bruno@clisp.org>
66746
66747         * modules/javaexec: New file.
66748         * MODULES.html.sh (Java): Add javaexec.
66749
66750 2005-01-26  Bruno Haible  <bruno@clisp.org>
66751
66752         * m4/javaexec.m4: New file, from GNU gettext.
66753
66754 2005-01-26  Bruno Haible  <bruno@clisp.org>
66755
66756         * lib/javaexec.sh.in: New file, from GNU gettext.
66757         * lib/javaexec.h: New file, from GNU gettext.
66758         * lib/javaexec.c: New file, from GNU gettext.
66759
66760 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66761
66762         * modules/lchown (Depends-on): Remove lchown.h
66763
66764 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66765
66766         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
66767         must be defined if the header file was not found, in order
66768         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
66769
66770 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66771
66772         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
66773         initializers for struct pentry_state.
66774         (__argp_error): Check return value of __asprintf
66775         (__argp_failure): Translate error message
66776
66777         * lib/argp-parse.c: Removed braces around the expansion of N_()
66778
66779 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
66782         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
66783         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
66784         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
66785         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
66786         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
66787         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
66788         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
66789         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
66790         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
66791         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
66792         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
66793         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
66794         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
66795         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
66796         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
66797         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
66798         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
66799         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
66800         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
66801         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
66802         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
66803         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
66804         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
66805         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
66806         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
66807         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
66808         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
66809         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
66810         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
66811         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
66812         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
66813         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
66814         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
66815         xstrtol.m4, xstrtoumax.m4, yesno.m4:
66816         Use an all-permissive copyright notice, recommended by RMS.
66817
66818 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * modules/chdir-long (Depends-on): Remove mempcpy.
66821
66822 2005-01-21  Jim Meyering  <jim@meyering.net>
66823
66824         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
66825         same value as for Solaris 9.
66826
66827         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
66828         component length.  This included changing the parameter to be
66829         of type `char *' rather than `char const *'.
66830         * lib/chdir-long.h (chdir_long): Update prototype.
66831
66832         * lib/openat.c (fdopendir, fstatat): New functions.
66833         * lib/openat.h: Include headers required for use of DIR and struct
66834         stat.
66835         [AT_SYMLINK_NOFOLLOW]: Define.
66836         (fdopendir, fstatat): Add prototypes.
66837
66838 2005-01-21  Bruno Haible  <bruno@clisp.org>
66839
66840         * modules/classpath: New file.
66841         * MODULES.html.sh (Java): Add classpath.
66842
66843 2005-01-21  Bruno Haible  <bruno@clisp.org>
66844
66845         * lib/classpath.h: New file, from GNU gettext.
66846         * lib/classpath.c: New file, from GNU gettext.
66847
66848 2005-01-20  Simon Josefsson  <jas@extundo.com>
66849
66850         * modules/version-etc-fsf: New file.
66851
66852 2005-01-20  Simon Josefsson  <jas@extundo.com>
66853
66854         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
66855         * lib/version-etc.c: Remove version_etc_copyright.
66856         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
66857         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
66858
66859 2005-01-20  Simon Josefsson  <jas@extundo.com>
66860
66861         * lib/base64.h (isbase64): Add.
66862
66863         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
66864         using a unsigned prototype, don't inline.
66865         (base64_decode): Use it.
66866
66867 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66868
66869         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
66870         it.
66871
66872 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66873
66874         * lib/save-cwd.c (save_cwd): Remove code to support the case
66875         where fchdir is missing or flaky.
66876
66877 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
66880
66881 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66882
66883         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
66884         AC_LIBSOURCES now does this.
66885         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
66886         with new ullong_max module.
66887
66888 2005-01-19  Bruno Haible  <bruno@clisp.org>
66889
66890         * modules/sh-quote: New file.
66891         * MODULES.html.sh (Executing programs): Add sh-quote.
66892
66893 2005-01-19  Bruno Haible  <bruno@clisp.org>
66894
66895         * lib/sh-quote.h: New file, from GNU gettext.
66896         * lib/sh-quote.c: New file, from GNU gettext.
66897
66898 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66899
66900         Merge from coreutils.
66901         * m4/ullong_max.m4: New file.
66902         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
66903         (gl_MACROS): Assume localeconv exists.
66904
66905 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         Merge changes from coreutils, as described below in several
66908         changelogs dated today.
66909
66910         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
66911         (O_DIRECTORY): Remove; not needed here, since "." must be
66912         a directory.  All uses removed.
66913         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
66914         universal on Suns, and we also need to test for IRIX.
66915         Revamp code to use 'if' rather than '#if'.
66916         Avoid unnecessary comparison of cwd->desc to 0.
66917
66918         * lib/utimens.c (futimens): Robustify the previous patch, by checking
66919         for known valid error numbers rather than observed invalid ones.
66920
66921 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
66922
66923         * modules/ullong_max: New file.
66924
66925         * modules/chdir-long, modules/openat: New files.
66926         * modules/save-cwd (Depends-on): Depend on chdir-long.
66927         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
66928
66929 2005-01-18  Jim Meyering  <jim@meyering.net>
66930
66931         Merge from coreutils.
66932         * m4/chdir-long.m4, m4/openat.m4: New files.
66933         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
66934         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
66935         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
66936         is sane and DOES follow symlinks.  Besides, testing 20 different
66937         systems found no broken chown implementations.
66938         Prompted by a change in rsync's copy of this macro.
66939         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
66940
66941         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
66942
66943         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
66944         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
66945         NULL-means-set-to-current-time semantics.
66946         Remove temporary file immediately, rather than waiting
66947         for configure's at-exit trap code to do it.
66948
66949 2005-01-18  Jim Meyering  <jim@meyering.net>
66950
66951         * lib/version-etc.c (version_etc_copyright): Update copyright date.
66952
66953         * lib/utimens.c (futimens): Account for the fact that futimes
66954         can also fail with errno == ENOSYS or errno == ENOENT.
66955         Patch from Dmitry V. Levin.
66956
66957         Change the name of the robust chdir function from chdir to chdir_long.
66958         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
66959         (restore_cwd): Use chdir_long, not chdir.
66960         * lib/chdir-long.c: Renamed from chdir.c.
66961         * lib/chdir-long.h: Renamed from chdir.h.
66962         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
66963         Hurd.
66964
66965 2005-01-18  Bruno Haible  <bruno@clisp.org>
66966
66967         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
66968         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
66969         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
66970         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
66971         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
66972         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
66973         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
66974         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
66975         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
66976         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
66977         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
66978         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
66979         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
66980         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
66981         Use an all-permissive copyright notice, recommended by RMS.
66982
66983 2005-01-18  Bob Proulx  <bob@proulx.com>
66984
66985         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
66986         simplify offsetof() macro construct to avoid compile failure with
66987         native HP-UX 11.0 ANSI C compiler.
66988
66989 2005-01-17  Bruno Haible  <bruno@clisp.org>
66990
66991         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
66992         redundant because stpncpy.m4 takes care of it.
66993
66994 2005-01-17  Bruno Haible  <bruno@clisp.org>
66995
66996         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
66997
66998 2005-01-17  Bruno Haible  <bruno@clisp.org>
66999
67000         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
67001         used.
67002
67003 2005-01-17  Bruno Haible  <bruno@clisp.org>
67004
67005         * lib/fwriteerror.h (fwriteerror): Change specification to include
67006         fclose.
67007         * lib/fwriteerror.c: Include <stdbool.h>.
67008         (fwriteerror): At the end, close the file stream. Record whether
67009         stdout was already closed.
67010
67011 2005-01-17  Bruno Haible  <bruno@clisp.org>
67012
67013         * lib/execute.c (environ): Declare if needed.
67014         * lib/pipe.c (environ): Likewise.
67015         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
67016
67017 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67018
67019         * modules/argp: Depend on vsnprintf
67020
67021 2005-01-10  Jim Meyering  <jim@meyering.net>
67022
67023         * modules/closeout (Depends-on): Add atexit.
67024
67025 2005-01-06  Bruno Haible  <bruno@clisp.org>
67026
67027         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
67028
67029 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67030
67031         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
67032         definitions to be after all include files, to avoid collisions.
67033         Problem reported by Bob Proulx.
67034
67035 2005-01-04  Jim Meyering  <jim@meyering.net>
67036
67037         Changes imported from coreutils.
67038         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
67039         as the mkstemp template, use a temporary directory and an
67040         8.3-friendly template to avoid trouble on systems like DJGPP.
67041         Reported by Juan M. Guerrero via Stepan Kasal.
67042         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
67043         close. Remove the temporary directory right away, rather than waiting
67044         for configure's at-exit trap code to do it.
67045         Suggestion from Stepan Kasal.
67046
67047 2005-01-01  Simon Josefsson  <jas@extundo.com>
67048
67049         * gnulib-tool: Print #include directives when --import'ing.
67050
67051 2004-12-28  Simon Josefsson  <jas@extundo.com>
67052
67053         * tests/test-base64.c: Include required header files.  Remove
67054         unused variables.
67055
67056 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67057
67058         * modules/error (Depends-on): Remove gettext.
67059
67060 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67061
67062         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
67063         not needed.  This removes a dependency on the gettext module.
67064         [defined _LIBC]: Do not include <libintl.h>; not needed.
67065
67066 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67067
67068         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
67069         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
67070
67071 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67072
67073         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
67074         HAVE_DECL_STRTOLD.
67075
67076 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67077
67078         * modules/getdate (Depends-on): Remove alloca-opt.
67079
67080 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67081
67082         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
67083
67084 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67085
67086         * lib/argp-parse.c: Include <stddef.h>.
67087         (alignof, alignto): New macros.
67088         (parser_init): Don't assume that void * is aligned sufficiently
67089         for struct option.
67090
67091         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
67092         need to extend the stack.
67093         (YYINITDEPTH): New macro, so that the initial stack isn't overly
67094         large.
67095
67096 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67097
67098         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
67099
67100 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67101
67102         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
67103         (2004-10-24) change.  Apparently this was a false alarm.
67104
67105         * modules/getdate: Depend on alloca-opt, not alloca.
67106
67107 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
67110         Remove now-obsolete comment about AIX.
67111         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
67112         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
67113         (YYMAXDEPTH): New macro.
67114
67115 2004-12-18  Simon Josefsson  <jas@extundo.com>
67116
67117         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
67118
67119 2004-12-18  Bruno Haible  <bruno@clisp.org>
67120
67121         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
67122
67123 2004-12-18  Bruno Haible  <bruno@clisp.org>
67124
67125         * lib/fatal-signal.c (fatal_signals): Make non-const.
67126         (init_fatal_signals): New function.
67127         (uninstall_handlers, install_handlers): Ignore signals that were set to
67128         SIG_IGN.
67129         (at_fatal_signal): Call init_fatal_signals.
67130         (init_fatal_signal_set): Likewise. Ignore signals that were set to
67131         SIG_IGN.
67132         Reported by Paul Eggert.
67133
67134 2004-12-18  Bruno Haible  <bruno@clisp.org>
67135
67136         * doc/alloca.texi: New file.
67137         * doc/alloca-opt.texi: New file.
67138
67139 2004-12-17  Jim Meyering  <jim@meyering.net>
67140
67141         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
67142         Otherwise, install-sh could exit with improper exit status when
67143         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
67144
67145 2004-12-16  Simon Josefsson  <jas@extundo.com>
67146
67147         * tests/test-base64.c: Add license.
67148
67149 2004-12-15  Stepan Kasal  <address@hidden>
67150
67151         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
67152
67153 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67154
67155         * modules/getcwd (Files): Add m4/d-ino.m4.
67156         Suggested by Mark D. Baushke.
67157
67158 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67159
67160         * lib/getdate.y (textint): New member "negative".
67161         (time_zone_hhmm): New function.
67162         Expect 14 shift-reduce conflicts, not 13.
67163         (o_colon_minutes): New rule.
67164         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67165         (yylex): Set the "negative" member of signed numbers.
67166
67167 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67168
67169         * doc/getdate.texi (Time of day items, Time zone items):
67170         Describe new formats +00:00, UTC+00:00.
67171
67172 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67173
67174         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67175         spurious "-l"s.  Problem reported by Stepan Kasal.
67176
67177 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67178
67179         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67180         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67181
67182 2004-12-04  Simon Josefsson  <jas@extundo.com>
67183
67184         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67185         Vandoorselaere <yoann@prelude-ids.org>.
67186
67187 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67188
67189         Changes imported from coreutils.
67190         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67191         exist.
67192         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67193
67194 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67195
67196         Changes imported from coreutils.
67197         * lib/hard-locale.c: Assume <locale.h> exists.
67198         Include "strdup.h".
67199         (GLIBC_VERSION): New macro.
67200         (hard_locale): Assume setlocale exists.
67201         Rewrite to avoid #ifdef.
67202         Use strdup rather than malloc + strcpy.
67203         * lib/human.c: Assume <locale.h> exists.
67204         (human_readable): Assume localeconv exists.
67205
67206 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * modules/hard-locale (Depends-on): Add strdup.
67209
67210 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67211
67212         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67213         convert T2, not T.  (Imported from libc.)
67214
67215 2004-11-30  Simon Josefsson  <jas@extundo.com>
67216
67217         * modules/restrict (License): Change to LGPL.
67218
67219 2004-11-30  Simon Josefsson  <jas@extundo.com>
67220
67221         * m4/restrict.m4: Add copyright and copying conditions.
67222
67223 2004-11-30  Simon Josefsson  <jas@extundo.com>
67224
67225         * m4/base64.m4: New file.
67226
67227 2004-11-30  Simon Josefsson  <jas@extundo.com>
67228
67229         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67230         base64.
67231
67232         * tests/test-base64.c: New file.
67233
67234         * modules/base64: New file.
67235
67236 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67237
67238         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67239         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67240
67241         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67242
67243 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67244
67245         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67246         (__getcwd.c): Don't restore errno; glibc doesn't.
67247         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67248         first, falling back to our code only if its results look suspicious.
67249         Ensure that the resulting buffer is only as large as necessary.
67250
67251         * lib/readutmp.c: Include readutmp.h first.
67252         Include <errno.h>, since readutmp.h no longer does that.
67253         * lib/readutmp.h: Don't include <errno.h>,
67254         <sys/param.h>, <time.h>; not needed to establish interface.
67255         (errno): Remove decl.
67256         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67257         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67258         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67259
67260 2004-11-28  Simon Josefsson  <jas@extundo.com>
67261
67262         * lib/base64.h, base64.c: New file.
67263
67264 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67265
67266         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67267
67268 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67269
67270         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67271         (Depends-on): Remove pathmax, same.  Add mempcpy.
67272         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67273         (Makefile.am): Append getcwd.h to lib_SOURCES.
67274         (Include): Add getcwd.h.
67275         (Maintainer): Change from Jim Meyering to "all, glibc",
67276         since getdate now uses intended-for-glibc code.
67277         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67278         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67279
67280 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67281
67282         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67283         HP's ANSI C compiler.
67284         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67285         Declaring int functions causes warnings on some modern systems and
67286         shouldn't be needed to compile on ancient ones.
67287         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67288         defined.
67289
67290         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67291         with the following changes.
67292         (__set_errno): Parenthesize properly.
67293         Include <stdbool.h>.
67294         (MIN, MAX, MATCHING_INO): New macros.
67295         (__getcwd): Define with prototype, not K&R form.
67296         Use heuristics to allocate default buffer on stack if possible.
67297         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67298         behavior, and to avoid the PATH_MAX limit when computing
67299         ../../../../...
67300         Use MATCHING_INO to compare inode number to file.
67301         Check for arithmetic overflow in size calculations.
67302         Fix bug in reallocation of dot array that caused getcwd to fail
67303         on directories nested deeper than 75.
67304         Be more careful about saving errno on error.
67305         Do not use realloc; use only free+malloc, as this is a bit
67306         more flexible and avoids a needless copy operation.
67307         Do not inspect st_dev and st_ino for symbolic links; POSIX
67308         doesn't specify the latter.
67309         Check for closedir errors.
67310         Avoid needless casts.
67311         Use "#ifdef weak_alias" around weak_alias, to be like other
67312         glibc code.
67313         The following changes to getcwd.c have effect only when used in
67314         gnulib; they have no effect inside glibc proper.
67315         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67316         as alloca isn't used.
67317         (alloca, __alloca): Likewise.
67318         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67319         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67320         unconditionally, as gnulib assumes C89 or better.
67321         Do not include <sys/param.h>.
67322         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67323         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67324         better.
67325         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67326         Include <dirent.h> in a way that is compatible with modern Autoconf.
67327         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67328         New macros, if not already defined.
67329         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67330         Use "_LIBC", not "defined _LIBC", for consistency.
67331         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67332         a mempcpy module.
67333         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67334         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67335         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67336         credit only to Jim Meyering and adjust the copyright dates.
67337         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67338         <stdlib.h>, <unistd.h>, "pathmax.h".
67339         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67340         (INITIAL_BUFFER_SIZE): Remove.
67341         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67342
67343 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67344
67345         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67346         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67347         Use the _ONCE methods, for efficiency.
67348         Check for fcntl.h.  In test program, include <errno.h>
67349         and <fcntl.h> if available.  Remove old K&R cruft from
67350         test program.  Check for common errors in GNU/Linux,
67351         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67352         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67353         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67354         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67355         name accordingly.
67356         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67357         accommodate new getcwd.c.
67358         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67359         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67360         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67361         that's all we need now.
67362
67363 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67364
67365         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67366         argp-parse.c depends on getopt internals, that means we should
67367         always use our getopt, to be on the safe side.
67368         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67369         order not to spoil the result of an eventual previous invocation
67370         of gl_GETOPT_SUBSTITUTE.
67371
67372 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67373
67374         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67375         redefinition warnings. To avoid them, include the defines
67376         in `#if !defined __need_getopt ... #endif'. The only place
67377         where __getopt_argv_const is used is in definitions
67378         of getopt_long and getopt_long_only below, which are as well
67379         protected by `#ifndef __need_getopt'.
67380         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67381         __need_getopt after including <stdio.h> and <unistd.h> These
67382         headers might have defined it.
67383
67384 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67385
67386         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67387
67388 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67391         (futimens): New function, which uses futimes if available.
67392         (futimens, utimens): Support timespec==NULL, with same semantics
67393         as utime and utimens.
67394         * lib/utimens.h (futimens): New decl.
67395
67396 2004-11-23  Jim Meyering  <jim@meyering.net>
67397
67398         * lib/getopt_.h: Remove trailing blanks.
67399
67400 2004-11-23  Jim Meyering  <jim@meyering.net>
67401
67402         * lib/__fpending.c: Add comment.
67403
67404 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67405
67406         * modules/canonicalize (Depends-on): Add xreadlink.
67407         Problem reported by James Youngman.
67408
67409 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67410
67411         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67412         New macros.
67413         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67414         optopt): Use them instead of invoking ## directly; otherwise, the
67415         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67416
67417 2004-11-19  Bruno Haible  <bruno@clisp.org>
67418
67419         * lib/strtok_r.c: Move comments from here...
67420         * lib/strtok_r.h: ... to here.
67421
67422 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67423
67424         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67425         implementations that mishandle size_t overflow.
67426
67427 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67428
67429         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67430         might fail.  Problem reported by Yoann Vandoorselaere.
67431         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67432         implementations that mishandle size_t overflow.
67433
67434 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67435
67436         * modules/canon-host (Depends-on): Add strdup.
67437
67438 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67439
67440         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67441
67442 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67443
67444         * lib/canon-host.c: Include "strdup.h".
67445         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67446         Use strdup instead of malloc/strcpy to duplicate strings.
67447
67448         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67449         (human_space_before_unit): New constant.
67450         * lib/human.c (human_readable): Support it.
67451
67452         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67453         (xgetcwd): Set errno correctly when failing.
67454         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67455         the failure is actually due to a PATH_MAX problem.
67456
67457         Further getopt changes to make it more likely that glibc will
67458         buy the changes back.
67459         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67460         (getopt): Use it, so to preserve glibc semantic
67461         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67462         when compiling for libc.
67463         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67464         (getopt_long, getopt_long_only): Use it.
67465
67466         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67467         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67468         (getopt): Argv is now char * const *, as per standard.
67469         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67470         not char *__getopt_argv_const *.
67471         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67472         _getopt_long_only_r): Likewise.
67473         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67474         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67475         _getopt_long_r, _getopt_long_only_r): Likewise.
67476         * lib/getopt_.h (__getopt_argv_const): Remove.
67477         (getopt): Argv is now char * const *, as per standard.
67478
67479         * lib/getdate.y (tORDINAL): New token.
67480         (day, relunit): Allow it for relative times.
67481         (relative_time_table): Use tORDINAL for ordinals.
67482
67483 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67484
67485         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67486         Document that "second" isn't allowed as an ordinal number.
67487
67488 2004-11-16  Jim Meyering  <jim@meyering.net>
67489
67490         * modules/closeout (Depends-on): Add fpending.
67491
67492 2004-11-15  Jim Meyering  <jim@meyering.net>
67493
67494         * lib/closeout.c: Include "__fpending.h" once again.
67495         Include <stdbool.h>.
67496         (close_stdout): Don't fail just because stdout was closed initially,
67497         since some programs don't write to stdout in the normal course of
67498         operation (other than --version and --help), and we don't want this
67499         function to make e.g. `touch file >&-' fail.
67500         But do fail if it was closed and someone has tried to write to it.
67501         E.g., `printf foo >&-' must fail.
67502
67503 2004-11-13  Jim Meyering  <jim@meyering.net>
67504
67505         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67506
67507 2004-11-12  Simon Josefsson  <jas@extundo.com>
67508
67509         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67510         small doc fix is still pending.
67511
67512 2004-11-11  Simon Josefsson  <jas@extundo.com>
67513
67514         * modules/strtok_r: New file.
67515
67516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67517         strtok_r.
67518
67519 2004-11-11  Simon Josefsson  <jas@extundo.com>
67520
67521         * m4/strtok_r.m4: New file.
67522
67523         * m4/getopt.m4: Replace opterr.
67524
67525 2004-11-11  Simon Josefsson  <jas@extundo.com>
67526
67527         * lib/strtok_r.h, strtok_r.c: New file.
67528
67529 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67530
67531         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
67532         of replacing opterr, getopt, etc.  This should handle the
67533         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67534
67535 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67536
67537         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67538         we can stop lying to compilers about the constness of argv when we
67539         are compiled outside glibc.
67540         (getopt, getopt_long, getopt_long_only): Use it.
67541         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67542         _getopt_internal, getopt): Likewise.
67543         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67544         _getopt_long_only_r): Likewise.
67545         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67546         _getopt_long_r, _getopt_long_only_r): Likewise.
67547
67548         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67549         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67550         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67551         the other external symbols.
67552         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67553         declaration, since the above renaming now works around collisions.
67554
67555 2004-11-11  Jim Meyering  <jim@meyering.net>
67556
67557         * lib/linebreak.c: Remove trailing blanks.
67558         * lib/alloca_.h: Likewise.
67559         * lib/acosl.c: Likewise.
67560         * lib/euidaccess.c: Likewise.
67561         * lib/allocsa.h: Likewise.
67562
67563 2004-11-10  Simon Josefsson  <jas@extundo.com>
67564
67565         * m4/getaddrinfo.m4: New file.
67566
67567 2004-11-10  Simon Josefsson  <jas@extundo.com>
67568
67569         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67570
67571 2004-11-10  Simon Josefsson  <jas@extundo.com>
67572
67573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67574         getaddrinfo.
67575
67576         * modules/getaddrinfo: New file.
67577
67578 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67579
67580         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67581
67582 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67583
67584         * lib/mktime.c (SHR): New macro, which is a portable
67585         substitute for >> that should work even on Crays.
67586         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67587         Problem reported by Mark D. Baushke in
67588         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67589         * lib/getdate.y (SHR): Likewise.
67590         (tm_diff): Use it.
67591         * lib/strftime.c (SHR): Likewise.
67592         (tm_diff): Use it.
67593         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67594         quote_these_too, so that right shifts are well defined.  All uses
67595         changed.
67596
67597 2004-11-10  Jim Meyering  <jim@meyering.net>
67598
67599         Ensure that no close failure goes unreported.
67600         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
67601         return early when it seems there's nothing to flush.
67602         Don't include __fpending.h.
67603
67604 2004-11-10  Jim Meyering  <jim@meyering.net>
67605
67606         * modules/closeout (Depends-on): Remove fpending.
67607
67608 2004-11-10  Jim Meyering  <jim@meyering.net>
67609
67610         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
67611
67612 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
67615         gl_FUNC_STRFTIME.
67616         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
67617         and AC_REQUIRE when possible, to avoid duplicate checks.
67618         Check for <wchar.h>.
67619
67620 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67621
67622         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
67623
67624 2004-11-09  Bruno Haible  <bruno@clisp.org>
67625
67626         * m4/sockpfaf.m4: New file.
67627
67628 2004-11-05  Bruno Haible  <bruno@clisp.org>
67629
67630         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
67631         Reported by Mark D. Baushke <mdb@cvshome.org>.
67632
67633 2004-11-04  Bruno Haible  <bruno@clisp.org>
67634
67635         2004-09-11  Bruno Haible  <bruno@clisp.org>
67636                 * allocsa.valgrind: New file.
67637         2004-02-06  Bruno Haible  <bruno@clisp.org>
67638                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
67639                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
67640                 Reported by Christopher Seip <chris.seip@hp.com>.
67641
67642 2004-11-04  Bruno Haible  <bruno@clisp.org>
67643
67644         * modules/allocsa (Files): Add lib/allocsa.valgrind.
67645         (Makefile.am): Distribute it.
67646
67647 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67648
67649         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
67650         with errno == ERANGE if the buffer is too small.
67651         Problem reported by Mark D. Baushke.
67652
67653 2004-11-03  Albert Chin  <china@thewrittenword.com>
67654             Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
67657         equivalent, substitute $ac_type for equivalent type rather than
67658         blindly using uint32_t *always* which won't work if uint32_t is not
67659         available.  Define _UINT32_T to work around typedef of uint32_t if
67660         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
67661         2.5.1.
67662
67663 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67664
67665         * m4/jm-macros.m4: Sync from coreutils.
67666         (gl_MACROS): Check for mbrlen, for pathchk.
67667         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
67668
67669 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67670
67671         * lib/xreadlink.c (MAXSIZE): New macro.
67672         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
67673         size does not exceed MAXSIZE.  Avoid cast.
67674         As suggested by Mark D. Baushke in
67675         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
67676         if readlink fails with buffer size just under MAXSIZE, try again
67677         with MAXSIZE.
67678
67679 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67680
67681         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
67682
67683 2004-11-02  Derek R. Price  <derek@ximbiot.com>
67684         and  Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
67687         (get_date): Overparenthesize to avoid GCC warning.
67688
67689 2004-11-02  Bruno Haible  <bruno@clisp.org>
67690
67691         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
67692         returns void.
67693
67694 2004-11-02  Bruno Haible  <bruno@clisp.org>
67695
67696         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
67697         function returns void.
67698
67699 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
67702         fflush_unlocked, flockfile, funlockfile, funlockfile,
67703         fputs_unlocked, putc_unlocked.
67704
67705 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
67706
67707         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67708         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
67709         already declared.
67710
67711 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67712
67713         * modules/getdate (Files): Add doc/getdate.texi.
67714         (Depends-on): Add setenv, xalloc.
67715
67716 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67717
67718         * lib/getdate.y: Add support for TZ="foo" within a date string.
67719         Fix some bugs near time_t boundaries.  Reject dates with
67720         out-of-range components, e.g., "Sept 31".
67721         Include <stdlib.h>, "setenv.h", "xalloc.h".
67722         (ISDIGIT_LOCALE): Remove; unused.
67723         Note that the TZ and time functions used here are not reentrant.
67724         (mktime_ok, get_tz): New functions.
67725         (TZBUFSIZE): New constant.
67726         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
67727         This requires that we sometimes generate our own TZ="XXX..." setting.
67728
67729 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67730
67731         * doc/getdate.texi: New file, from coreutils with modifications for
67732         the new TZ parsing.
67733
67734 2004-10-27  Derek R. Price  <derek@ximbiot.com>
67735
67736         * lib/mktime.c (not_equal_tm): Remove redundant check.
67737
67738 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67739
67740         * modules/regex (lib_SOURCES): Add regex.c.
67741         Reported by James Youngman in
67742         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
67743
67744 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * lib/getdate.y: Use Bison 1.875 features, and some minor
67747         code cleanups.  This change does not affect semantics.
67748         Don't include <stdlib.h>; no longer needed.
67749         Don't include unlocked-io.h; only the "#if TEST" code uses
67750         stdio, and performance isn't crucial there.
67751         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
67752         Bison 1.875 features as described below.
67753         All uses of "PC." replaced by "pc->".
67754         (YYSTYPE): Add a forward declaration.
67755         (yylex, yyerror): Use full prototypes in forward decls.
67756         Use "%pure-parser" rather than obsolescent "%pure_parser".
67757         Use %parse-param and %lex-param instead of obsolescent
67758         YYPARSE_PARAM and YYLEX_PARAM.
67759         (meridian_table, month_and_day_table, time_units_table,
67760         relative_time_table, time_zone_table, military_table,
67761         lookup_zone, lookup_word, get_date):
67762         Use NULL instead of 0 where appropriate.
67763         (to_hour): Avoid abort (), to avoid a dependency on
67764         stdlib.h.
67765         (yyerror, yylex): Now accepts parser_control * arg.
67766         (main) [TEST]: Use '\0' rather than 0 for char.
67767
67768 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
67771
67772 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
67773
67774         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
67775         It's now the caller's responsibility to handle the case where
67776         !HAVE_GETPAGESIZE && !defined getpagesize.
67777
67778         * lib/mktime.c (leapyear): Arg is long int, not int.
67779
67780 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
67781
67782         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
67783
67784 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67785
67786         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
67787         missing.  Problem reported by James Youngman.
67788
67789 2004-10-16  Simon Josefsson  <jas@extundo.com>
67790
67791         * gnulib-tool: Fix comments.  Fix parse problem.
67792         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
67793
67794 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
67795
67796         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
67797         implementation of getopt_long.  Problem reported by Alexander Taler in:
67798         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
67799
67800 2004-10-15  Bruno Haible  <bruno@clisp.org>
67801
67802         * gnulib-tool: Untabify. Initialize supplied_libname.
67803         (func_usage): More homogenous output.
67804         (func_modules_transitive_closure, func_modules_to_filelist,
67805         func_emit_lib_Makefile_am): New functions.
67806         (func_import): New function, extracted from big case statement. Use
67807         func_get_license, func_modules_transitive_closure,
67808         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
67809         opt_lgpl. Don't use test -a, as it's not portable.
67810         (func_create_testdir): Use func_modules_transitive_closure,
67811         func_modules_to_filelist, func_emit_lib_Makefile_am.
67812
67813 2004-10-15  Bruno Haible  <bruno@clisp.org>
67814
67815         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
67816
67817 2004-10-15  Bruno Haible  <bruno@clisp.org>
67818
67819         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
67820         the portions belonging to each module.
67821         Suggested by Derek Robert Price <derek@ximbiot.com>.
67822
67823 2004-10-12  Simon Josefsson  <jas@extundo.com>
67824
67825         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
67826         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
67827         to real functions.
67828
67829 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67830
67831         * modules/vsnprintf: New file.
67832
67833 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67834
67835         * m4/vsnprintf.m4: New file.
67836
67837 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67838
67839         * lib/vsnprintf.h: New file.
67840         * lib/vsnprintf.c: New file.
67841
67842 2004-10-11  Bruno Haible  <bruno@clisp.org>
67843
67844         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
67845         vsnprintf.
67846
67847 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
67850
67851 2004-10-07  Bruno Haible  <bruno@clisp.org>
67852
67853         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
67854         fits into the provided buffer.
67855
67856 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67857
67858         * lib/diacrit.c, diacrit.h: Add GPL notice.
67859
67860         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
67861         notice.
67862         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
67863         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
67864         This avoids a potential constant-folding bug.
67865
67866 2004-10-05  Bruno Haible  <bruno@clisp.org>
67867
67868         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
67869         for the declaration of strsep.
67870
67871 2004-10-05  Bruno Haible  <bruno@clisp.org>
67872
67873         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
67874
67875 2004-10-04  Simon Josefsson  <jas@extundo.com>
67876
67877         * modules/memmem: New file.
67878         * tests/test-memmem.c: New file.
67879         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
67880
67881 2004-10-04  Simon Josefsson  <jas@extundo.com>
67882
67883         * m4/memmem.m4: New file.
67884
67885 2004-10-04  Simon Josefsson  <jas@extundo.com>
67886
67887         * lib/memmem.h: New file.
67888         * lib/memmem.c: New file, taken from glibc.
67889
67890 2004-10-04  Simon Josefsson  <jas@extundo.com>
67891
67892         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
67893         '#ifdef USE_UNLOCKED_IO'.
67894
67895 2004-10-04  Simon Josefsson  <jas@extundo.com>
67896
67897         * config/srclist.txt: Add memmem from glibc.
67898
67899 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67900
67901         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
67902
67903         * modules/argmatch, modules/argp, modules/closeout, modules/error,
67904         modules/exclude, modules/getdate, modules/getline,
67905         modules/getndelim2, modules/getpass, modules/getpass-gnu,
67906         modules/getusershell, modules/linebuffer, modules/md5,
67907         modules/mountlist, modules/posixtm, modules/readtokens,
67908         modules/readutmp, modules/regex, modules/sha1,
67909         modules/version-etc, modules/yesno:
67910         Remove dependency on unlocked-io.
67911
67912 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
67915
67916         * m4/unlocked-io.m4: Add copyright notice.
67917         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
67918
67919 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67920
67921         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
67922         * lib/xmalloc.c (xmemdup): Likewise.
67923         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
67924         XFREE): Remove these long-obsolescent macros.
67925         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
67926         * lib/xstrdup.c: Remove.
67927
67928         * lib/regex.c (re_comp): Cast gettext return value to char *,
67929         Problem reported by Martin Neitzel via Mark D. Baushke.
67930
67931 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
67932
67933         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
67934         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
67935         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
67936         regex.c, sha1.c, version-etc.c, yesno.c:
67937         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
67938         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
67939         the includer's responsibility.
67940
67941         Sync from coreutils.
67942
67943         * lib/modechange.c (mode_compile): Don't decrement a pointer that
67944         points to the start of a string, as the C Standard says the
67945         resulting behavior is undefined.
67946
67947         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
67948         simple -> simple_backups, numbered_existing ->
67949         numbered_existing_backups, numbered -> numbered_backups
67950         to avoid shadowing problems.  All uses changed.
67951         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
67952         * lib/backupfile.c (check_extension, numbered_backup):
67953         Rename locals to avoid shadowing 'basename'.
67954         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
67955         once.
67956
67957         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
67958         * lib/.cvsignore: Add getopt.h.
67959
67960 2004-10-04  Bruno Haible  <bruno@clisp.org>
67961
67962         * modules/README: New file.
67963         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
67964         not a module.
67965
67966 2004-10-02  Jim Meyering  <jim@meyering.net>
67967
67968         * lib/dirfd.h, getpagesize.h: Add copyright notice.
67969
67970 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67971
67972         * modules/strsep: New file.
67973
67974 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67975
67976         * m4/strsep.m4: New file.
67977
67978 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
67979
67980         * lib/strsep.h: New file.
67981         * lib/strsep.c: New file.
67982
67983 2004-10-01  Simon Josefsson  <jas@extundo.com>
67984
67985         * lib/snprintf.c (snprintf): Handle size==0.
67986
67987 2004-10-01  Simon Josefsson  <jas@extundo.com>
67988             Bruno Haible  <bruno@clisp.org>
67989
67990         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
67991         (snprintf): Declare 'args'.
67992
67993 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         * lib/snprintf.c: Remove comments as to why each header is needed.
67996
67997 2004-10-01  Bruno Haible  <bruno@clisp.org>
67998
67999         * MODULES.html.sh: Add strsep.
68000
68001 2004-09-30  Simon Josefsson  <jas@extundo.com>
68002
68003         * modules/snprintf: New file.
68004
68005 2004-09-30  Simon Josefsson  <jas@extundo.com>
68006
68007         * m4/snprintf.m4: New file.
68008
68009 2004-09-30  Simon Josefsson  <jas@extundo.com>
68010
68011         * lib/snprintf.h, lib/snprintf.c: New files.
68012
68013 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68014
68015         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
68016         (hol_entry_help): Never translate an empty string.
68017         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
68018         * lib/argp.h (OPTION_NO_TRANS): New option.
68019
68020 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68021
68022         * modules/argp (Maintainer): Replace Simon Josefsson
68023         by Sergey Poznyakoff.
68024
68025 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68026
68027         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
68028         changes merged back into glibc.
68029
68030 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68031
68032         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
68033
68034 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68035
68036         * lib/xvasprintf.c: Include xalloc.h.
68037         (xvasprintf): Use xalloc_die, not xmalloc_die.
68038
68039 2004-09-29  Bruno Haible  <bruno@clisp.org>
68040
68041         * modules/alloca-opt: New file, derived from modules/alloca.
68042         * modules/allocsa: Depend on alloca-opt instead of alloca.
68043         * modules/setenv: Likewise.
68044         * modules/vasnprintf: Likewise.
68045         * MODULES.html.sh: Add alloca-opt.
68046
68047 2004-09-28  Simon Josefsson  <jas@extundo.com>
68048
68049         * gnulib-tool: New parameter --lgpl, to asseert that modules are
68050         LGPL, and to replace license template from GPL to LGPL.
68051
68052 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68053
68054         * modules/dummy: Change license to LGPL.
68055
68056 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68057
68058         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
68059
68060 2004-09-24  Simon Josefsson  <jas@extundo.com>
68061
68062         * modules/minmax (License): Change from GPL to LGPL.
68063
68064 2004-09-23  Simon Josefsson  <jas@extundo.com>
68065
68066         * gnulib-tool (--import): Typo.
68067
68068 2004-09-23  Simon Josefsson  <jas@extundo.com>
68069
68070         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
68071
68072 2004-09-22  Bruno Haible  <bruno@clisp.org>
68073
68074         * modules/*: Add 'License' field.
68075         * gnulib-tool: Accept --extract-license option.
68076         (func_get_license): New function.
68077
68078 2004-09-21  Bruno Haible  <bruno@clisp.org>
68079
68080         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
68081         Reported by Simon Josefsson.
68082
68083 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68084
68085         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
68086         gl_AC_TYPE_LONG_LONG.
68087
68088 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68089
68090         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
68091
68092 2004-09-18  Simon Josefsson  <jas@extundo.com>
68093         and  Paul Eggert  <eggert@cs.ucla.edu>
68094
68095         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
68096         calls with autoreconf.  Define GL_LIB.
68097
68098 2004-09-14  Karl Berry  <karl@gnu.org>
68099
68100         * config/srclist.txt: unsync setenv.c, sigh.
68101
68102 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68103
68104         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
68105         Problem reported by Bruno Haible in:
68106         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
68107
68108 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68109
68110         * config/srclist.txt: Comment out argp-pvh.c.
68111
68112 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
68113
68114         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
68115         in case some system header has #define'd it.  Problem reported by
68116         Soeren D. Schulze in
68117         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
68118
68119 2004-09-09  Karl Berry  <karl@gnu.org>
68120
68121         * regex.[ch]: delete from the root.  These were supposed to be
68122                 synced with emacs cvs, but this has not happened for about
68123                 a year, and anyway nothing else uses emacs regex.[ch].
68124                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
68125                 lib/regex[.ch] is untouched.
68126
68127 2004-09-09  Bruno Haible  <bruno@clisp.org>
68128
68129         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
68130
68131 2004-09-09  Bruno Haible  <bruno@clisp.org>
68132
68133         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
68134         modifications.
68135         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
68136
68137 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68138
68139         * modules/xvasprintf: New file.
68140         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
68141
68142 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68143
68144         * lib/xvasprintf.h: New file.
68145         * lib/xvasprintf.c: New file.
68146         * lib/xasprintf.c: New file.
68147
68148 2004-09-08  Bruno Haible  <bruno@clisp.org>
68149
68150         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
68151
68152 2004-09-08  Bruno Haible  <bruno@clisp.org>
68153
68154         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68155         length is > INT_MAX.
68156         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68157         more.
68158
68159 2004-09-08  Bruno Haible  <bruno@clisp.org>
68160
68161         * lib/stdint_.h: New file, taken from GNU clisp.
68162
68163 2004-09-08  Bruno Haible  <bruno@clisp.org>
68164             Oskar Liljeblad  <oskar@osk.mine.nu>
68165
68166         * modules/stdint: New file.
68167         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68168
68169 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68170
68171         Import from coreutils.
68172         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68173         strings on unbounded length.  alloca's performance benefits aren't
68174         that important here.
68175         (V_STRDUP): Remove.
68176         (parse_with_separator): New function, with most of the internals
68177         of the old parse_user_spec.  Allow user to omit both user and group,
68178         for compatibility with FreeBSD.
68179         Clone only the user name, not the entire spec.
68180         Do not set *uid, *gid unless entirely successful.
68181         Avoid memory leak in some failing cases.
68182         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68183         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68184         (parse_user_spec): Rewrite to use parse_with_separator.
68185
68186 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68187
68188         * modules/userspec: Don't depend on alloca.
68189
68190 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68191
68192         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68193
68194 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68195
68196         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68197         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68198         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68199
68200 2004-08-16  Simon Josefsson  <jas@extundo.com>
68201
68202         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68203         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68204         Add --dry-run for --import.
68205         Let user provided command line parameters override configure.ac
68206         settings.
68207
68208 2004-08-12  Simon Josefsson  <jas@extundo.com>
68209
68210         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68211         as discussed with Paul Eggert in threads rooted at
68212         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68213         and
68214         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68215         Before, the test was empty, and relied on ELIDE_CODE in source
68216         code.)
68217         (gl_PREREQ_GETOPT): New macro.
68218         (gl_GETOPT): Use them.
68219
68220 2004-08-12  Simon Josefsson  <jas@extundo.com>
68221
68222         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68223         * lib/getopt_.h: Renamed from getopt.h.
68224
68225 2004-08-12  Simon Josefsson  <jas@extundo.com>
68226
68227         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68228         Change default library name from libfoo to libgnu.
68229         Now, if you have a configure.ac that says:
68230                 gl_SOURCE_BASE(gl)
68231                 gl_M4_BASE(gl/m4)
68232                 gl_MODULES(error getopt etcetera)
68233                 gl_INIT
68234         you can import all you need by running:
68235                 ../gnulib/gnulib-tool --import
68236
68237         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68238         (Makefile.am): Rewrite, use logic from argz.
68239         (Include): Use <getopt.h> instead of "getopt.h".
68240
68241 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * modules/argp (Files): Add m4/unlocked-io.m4.
68244         (Depends-on): Add extensions.
68245
68246 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68247
68248         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68249         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68250         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68251         Check for program_invocation_name, program_invocation_short_name,
68252         flockfile, funlockfile, features.h, _getopt_long_only_r.
68253
68254 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68255
68256         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68257         its complicated substitute.
68258         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68259         and program_invocation_name.
68260         (__argp_basename) [!_LIBC]: Remove; the only use was
68261         replaced by its body.
68262         (__argp_short_program_name): Change condition from
68263         !defined __argp_short_program_name to
68264         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68265         to match argp-namefrob.h.
68266         (__argp_failure): Don't assume strerror_r returns char *.
68267         * lib/argp-parse.c (N_): Define unconditionally.
68268         (argp_default_options): Fill out initializers with 0 to avoid
68269         gcc warnings.
68270
68271 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68272
68273         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68274         getopt1.c.
68275
68276 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68277
68278         Merge from coreutils.
68279
68280         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68281
68282         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68283         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68284
68285 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68286
68287         Merge from coreutils.
68288
68289         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68290         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68291         for Reliant Unix 5.43.
68292
68293         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68294         (union fooround): Use uintmax_t, not long int.
68295         The rest is a merge from libc:
68296         [defined _LIBC]: Include <shlib-compat.h>.
68297         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68298
68299         * lib/settime.c (settime): Recode to avoid warning with
68300         Sun Forte C 6U2.
68301
68302         * lib/strverscmp.c: Convert to UTF-8.
68303
68304 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68305
68306         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68307         m4/uintmax_t.m4.
68308
68309 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68310
68311         * modules/xalloc-die: New file.
68312         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68313
68314         * modules/md5 (Files): Add m4/uint32_t.m4.
68315         * modules/sha1: Renamed from modules/sha.
68316         (Files):
68317         Rename lib/sha.h to lib/sha1.h.
68318         Rename lib/sha.c to lib/sha1.c.
68319         Rename m4/sha.m4 to m4/sha1.m4.
68320         (lib_SOURCES): Likewise.
68321         (configure.ac): Rename gl_SHA to gl_SHA1.
68322         (Include): sha.h -> sha1.h.
68323
68324 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68327         * m4/sha1.m4: Renamed from sha.m4.
68328         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68329
68330 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * lib/obstack.h (obstack_empty_p):
68333         Don't assume that chunk->contents is suitably aligned.
68334         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68335         Likewise. Problem reported by Benno in
68336         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68337
68338         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68339         readable.  This could be improved further but it'd take some work.
68340
68341 2004-08-08  Simon Josefsson  <jas@extundo.com>
68342
68343         * modules/xgethostname (Depends-on): Remove exit and error (not
68344         used).
68345
68346         * modules/getpass-gnu: Add getpass.h.
68347         (Depends-on): Add stdbool.
68348         * modules/getpass: Add getpass.h.
68349
68350 2004-08-08  Simon Josefsson  <jas@extundo.com>
68351
68352         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68353         Check getpass declaration.
68354
68355 2004-08-08  Simon Josefsson  <jas@extundo.com>
68356
68357         * lib/xgethostname.c: Don't include error.h (not used).
68358
68359         * lib/getpass.h: Add.
68360         * lib/getpass.c: Include getpass.h first.
68361
68362 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         * lib/xalloc-die.c: New file.
68365         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68366         All uses removed.
68367         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68368         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68369         xalloc-die.c.
68370         (_, N_, xalloc_die): Move to xalloc-die.c.
68371         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68372         so that we needn't mess with xalloc_msg_memory_exhausted.
68373
68374         * lib/sha1.h: Renamed from sha.h.
68375         (SHA1_H): Renamed from _SHA_H.
68376         (sha1_ctx): Renamed from sha_ctx.
68377         (sha1_init_ctx): Renamed from sha_init_ctx.
68378         (sha1_process_block): Renamed from sha_process_block.
68379         (sha1_process_bytes): Renamed from sha_process_bytes.
68380         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68381         (sha1_read_ctx): Renamed from sha_read_ctx.
68382         (sha1_stream): Renamed from sha_stream.
68383         (sha1_buffer): Renamed from sha_buffer.
68384         * lib/sha1.c: Likewise; renamed from sha.c.
68385         Do not include <sys/types.h>.
68386         Include <stddef.h> rather than <stdlib.h>.
68387
68388 2004-08-08  Bruno Haible  <bruno@clisp.org>
68389
68390         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68391         FILESYSTEM_PREFIX_LEN.
68392         * lib/progreloc.c: Likewise.
68393         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68394
68395 2004-08-06  Simon Josefsson  <jas@extundo.com>
68396
68397         * modules/progname (Depends-on): Don't depend on stdbool.
68398
68399 2004-08-06  Simon Josefsson  <jas@extundo.com>
68400
68401         * modules/getsubopt: New file.
68402         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68403         getsubopt.
68404
68405 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68406
68407         More merge from coreutils.
68408
68409         * m4/utimens.m4, m4/utimecmp.m4: New files.
68410         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68411         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68412         prereq.m4, sha.m4: Import changes from coreutils.
68413
68414 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68415
68416         More merge from coreutils.
68417         * modules/raise, modules/readtokens0, modules/utimens:
68418         * modules/utimecmp, module/xnanosleep: New files.
68419         * modules/strftime: Add lib/strftime.h.
68420         Change include from <time.h> to "strftime.h".
68421         * modules/yesno: Add lib/yesno.h.
68422         * modules/backupfile: Remove lib/addext.c.
68423         * modules/euidaccess: Add stat-macros.h.
68424         * modules/canonicalize, modules/euidaccess,
68425         modules/filemode, modules/lchown, modules/makepath,
68426         modules/rmdir, modules/stat: Likewise.
68427
68428 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68429
68430         Merge from tar.
68431         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68432         SIZE_MAX is a valid preprocessor constant.
68433         (__argp_basename): Change from "#ifndef _LIBC"
68434         to "#ifndef __argp_short_program_name", so that
68435         we don't compile these functions for tar.
68436
68437         More merges from coreutils.
68438         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68439         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68440         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68441         * lib/addext.c: Remove; no longer needed.
68442         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68443         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68444         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68445         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68446         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68447         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68448         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68449         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68450         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68451         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68452         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68453         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68454         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68455         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68456         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68457         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68458         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68459         Import changes from coreutils.
68460
68461 2004-08-05  Simon Josefsson  <jas@extundo.com>
68462
68463         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68464
68465 2004-08-05  Simon Josefsson  <jas@extundo.com>
68466
68467         * m4/getsubopt.m4: New file.
68468
68469 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68470
68471         Merge from coreutils.
68472
68473         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68474         * m4/getcwd-path-max.m4: New files.
68475
68476         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68477         FILESYSTEM_PREFIX_LEN ->
68478         FILE_SYSTEM_PREFIX_LEN.
68479         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68480         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68481         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68482         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68483
68484         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68485         prerequisite modules now handle the DOS stuff.
68486         Don't check for unistd.h.
68487
68488 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68489
68490         Merge from coreutils.
68491
68492         * lib/.gdb-history: Remove; this doesn't belong here.
68493
68494         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68495         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68496         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68497         * lib/getcwd.c: New files.
68498
68499         * lib/dirname.h: Include <stdbool.h>.
68500         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68501         for consistency with POSIX terminology.  All uses changed.
68502         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68503         (strip_trailing_slashes): Use bool for booleans.
68504         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68505
68506         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68507         sometimes returns a positive errno value even when it succeeds.
68508         (print_errno_message) [!LIBC]: Fall back on strerror if
68509         __strerror_r fails.
68510
68511         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68512         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68513         (longest_relative_suffix): New function.
68514         (path_concat): Use it.  Assume first argument is not NULL.
68515         Port to DOS.  Omit redundant separators.
68516         Report an error instead of returning NULL.
68517         Use mempcpy instead of memcpy.
68518         (xpath_concat): Remove: not declared or used.
68519
68520         * lib/same.h: Include <stdbool.h>
68521         (same_name): Return bool, not int.
68522         * lib/same.c (same_name): Likewise.
68523         (errno): Don't declare; we assume C89 or better now.
68524
68525         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68526         if not already defined.
68527
68528         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68529         * lib/dup-safer.c (errno): Likewise.
68530
68531 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         Merge from coreutils.
68534         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68535         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68536         * modules/path-concat: Don't depend on strdup.
68537
68538 2004-08-03  Simon Josefsson  <jas@extundo.com>
68539
68540         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68541         * lib/progname.h: Don't include stdbool.h.
68542
68543 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68544
68545         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68546         * MODULES.html.sh (func_all_modules): Remove fatal.
68547
68548 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68549
68550         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68551
68552 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68553
68554         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68555         working.
68556
68557 2004-08-02  Simon Josefsson  <jas@extundo.com>
68558
68559         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68560         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68561         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68562
68563 2004-08-01  Simon Josefsson  <jas@extundo.com>
68564
68565         * lib/xgetdomainname.c: Include stdlib.h, for free().
68566
68567 2004-07-19  Bruno Haible  <bruno@clisp.org>
68568
68569         * MODULES.html.sh (func_all_modules): Add dummy.
68570
68571 2004-07-16  Simon Josefsson  <jas@extundo.com>
68572
68573         * modules/dummy: New file.
68574
68575 2004-07-16  Simon Josefsson  <jas@extundo.com>
68576
68577         * lib/dummy.c: New file.
68578
68579 2004-07-16  Bruno Haible  <bruno@clisp.org>
68580
68581         * lib/backupfile.h: Add extern "C" for C++.
68582         * lib/closeout.h: Likewise.
68583         * lib/copy-file.h: Likewise.
68584         * lib/findprog.h: Likewise.
68585         * lib/full-write.h: Likewise.
68586         * lib/pathname.h: Likewise.
68587         * lib/progname.h: Likewise.
68588         * lib/stpcpy.h: Likewise.
68589         * lib/stpncpy.h: Likewise.
68590         * lib/strcase.h: Likewise.
68591         * lib/strstr.h: Likewise.
68592         * lib/xalloc.h: Likewise.
68593
68594         * lib/mbswidth.h: Add extern "C" for C++.
68595         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
68596
68597 2004-07-13  Robert Millan  <robertmh@gnu.org>
68598
68599         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
68600
68601 2004-07-09  Simon Josefsson  <jas@extundo.com>
68602
68603         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
68604         failed without this.)
68605
68606 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68607
68608         * modules/chown (Files): Add lib/fchown-stub.c, since
68609         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
68610
68611 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         * lib/fchown-stub.c: New file.
68614
68615 2004-06-24  Jim Meyering  <jim@meyering.net>
68616
68617         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
68618
68619 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68620
68621         * modules/argz: Omit "#include".
68622
68623         * MODULES.html.sh (func_all_modules): Add calloc, to match
68624         2004-06-01 addition of calloc module.
68625
68626 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68627
68628         * m4/argz.m4: New file, which is autoupdated from libtool.
68629
68630 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68631
68632         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
68633         libtool.
68634
68635 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68636
68637         * config/srclist-update: Don't insist on "USA." before the
68638         close-comment, as libtool omits the period and puts the */ on a
68639         separate line.
68640         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
68641         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
68642
68643 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
68644
68645         * modules/argz: New file.
68646         * MODULES.html.sh (func_all_modules): Add argz.
68647
68648 2004-06-12  Jim Meyering  <jim@meyering.net>
68649         and  Paul Eggert  <eggert@cs.ucla.edu>
68650
68651         * modules/hash (Files): Add lib/xalloc.h.
68652         * modules/pipe (Depends-on): Add wait-process.
68653         * modules/stat (Depends-on): Add xalloc.
68654         * modules/userspec (Files): Add lib/userspec.h.
68655         * modules/xstrto
68656
68657         Upgrade from gettext-0.13.
68658         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
68659         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
68660         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
68661
68662 2004-06-10  Jim Meyering  <jim@meyering.net>
68663
68664         * lib/calloc.c: New file.
68665
68666 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68667
68668         * lib/getdate.y (yylex): Allow space between sign and number.
68669         Problem reported by Dan Jacobson.
68670
68671 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68672
68673         Merge from coreutils CVS.
68674
68675         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
68676         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
68677         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
68678         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
68679         xstrtol.m4: Fix copyright date and/or serial number.
68680
68681         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
68682         See if we need an fchown replacement.
68683         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
68684         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
68685         and use the replacement function if we detect either defect.
68686
68687         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
68688         gl_UTIMECMP.
68689
68690 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
68691         and  Jim Meyering  <jim@meyering.net>
68692
68693         Merge from coreutils CVS.
68694
68695         * lib/stat-macros.h: New file, with contents from file-type.h
68696         and coreutils' system.h.
68697         * lib/file-type.c: Include "stat-macros.h".
68698         * lib/file-type.h (file_type): Move all macro definitions to new file,
68699         stat-macros.h.
68700
68701         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
68702         Wrap old code with this conditional.
68703         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
68704         function that does not dereference symlinks.
68705         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
68706
68707         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
68708         dependency problems.
68709         (xreadlink): Accept new arg SIZE, for efficiency.
68710         All decls and uses changed.
68711         * lib/xreadlink.h: Include <stddef.h>, for size_t.
68712
68713         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
68714         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
68715
68716         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
68717         sysexits.h.
68718
68719 2004-06-01  Jim Meyering  <jim@meyering.net>
68720
68721         * m4/calloc.m4: New file.
68722
68723 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
68724
68725         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
68726         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
68727         Also, fix a typo in a diagnostic.
68728
68729 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
68732         or AC_FUNC_REALLOC.
68733
68734 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
68735
68736         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
68737         macros to be defined.
68738         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
68739         the allocator returns NULL because the requested size is zero.
68740
68741 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68742
68743         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
68744         var.  Add comment explaining why libc still defines it.  This
68745         merges the following patch from glibc:
68746         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
68747
68748 2004-05-20  Andreas Schwab  <schwab@suse.de>
68749
68750         * m4/free.m4: Replace free if it not known to work, not the other
68751         way round.
68752
68753 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
68756         present in glibc since revision 1.1 of this file.
68757         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
68758         obstack_alignment_mask, obstack_alloc, obstack_base,
68759         obstack_blank, obstack_blank_fast, obstack_chunk_size,
68760         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
68761         obstack_grow0, obstack_init, obstack_int_grow,
68762         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
68763         obstack_next_free, obstack_object_size, obstack_ptr_grow,
68764         obstack_ptr_grow_fast, obstack_room): Remove declarations of
68765         nonexistent functions.
68766
68767 2004-05-18  Karl Berry  <karl@gnu.org>
68768
68769         * config/srclist.txt: break link for vasnprintf.c.
68770
68771 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68772
68773         Port obstack to the AS/400, where pointers are 16 bytes wide and
68774         you cannot cast an integer to a valid pointer.  This patch is
68775         currently waiting to be integrated into glibc; see
68776         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
68777
68778         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
68779         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
68780         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
68781         (struct obstack): temp member is now a union of a pointer and
68782         an integer, instead of an integer.  All integer uses changed.
68783         This does not affect the physical layout of struct obstack,
68784         except on hosts (like the AS/400) where the size or alignment of
68785         void * is greater than that of ptrdiff_t.
68786         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
68787         __STDC__)]: Store temporary in pointer member of union, not
68788         integer member.
68789         * lib/obstack.c: Include <stddef.h>, for offsetof.
68790         (struct fooalign): Remove; it doesn't need a name.
68791         (union fooround): Change double to long double, and add void *.
68792         (DEFAULT_ALIGNMENT): Use offsetof to compute.
68793         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
68794         not a macro.  Hence the values are always int; so remove all
68795         casts-to-int in uses.
68796
68797 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68798
68799         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
68800         we can get this patch merged into glibc.
68801
68802 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68803             Paul Eggert  <eggert@cs.ucla.edu>
68804
68805         * m4/argp: Depend on alloca.
68806
68807 2004-05-17  Derek R. Price  <derek@ximbiot.com>
68808             Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
68811         freecoding.
68812
68813 2004-05-17  Bruno Haible  <bruno@clisp.org>
68814
68815         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
68816         precision that consists of a '.' followed by an empty digit string.
68817         Patch by Tor Lillqvist <tml@iki.fi>.
68818
68819 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
68822         for backward compatibility with older code.  We need our own
68823         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
68824         it under some other name, and our alloca.h will define it.
68825
68826 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68827             Derek Price  <derek@ximbiot.com>
68828
68829         * lib/alloca.c: Include <alloca.h>, to get our interface.
68830         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
68831         include <alloca.h> first.  Use C89 prototype for alloca; this
68832         requires including <stddef.h> for size_t.  Use extern "C" if C++.
68833         Use #elif for simplicity, since we can assume C89 now.
68834         Don't try to source the system alloca.h since it will not be found
68835         and to prevent recursively including its replacement.
68836         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
68837         * lib/regex.c: Likewise.
68838
68839 2004-05-16  Derek Price  <derek@ximbiot.com>
68840             Paul Eggert  <eggert@cs.ucla.edu>
68841
68842         getline cleanup.  This changes the getndelim2 API: both order of
68843         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
68844         no delimiter).
68845
68846         * lib/getline.c: Don't include stddef.h or stdio.h, since our
68847         interface does that.
68848         (getline): Always use getdelim, so that we don't have two
68849         copies of this code.
68850         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
68851         if available.
68852         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
68853         (GETNDELIM2_MAXIMUM): New macro.
68854         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
68855         instead of the old practice of delim2==0.  All callers changed.
68856         Return -1 on overflow, instead of returning junk.
68857         Do not set *linesize unless allocation succeeds.
68858         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
68859         that we include sys/types.h.
68860         * lib/getnline.h: Likewise.
68861         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
68862         (getndelim2): Reorder arguments.
68863         * lib/getnline.c (getnline, getndelim):
68864         Don't discard the NMAX argument.
68865         (getnline): Invoke getndelim, to avoid code duplication.
68866         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
68867         of (size_t) -1 by callers of the getnline family.
68868
68869 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68870
68871         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
68872         Check for gettimeofday.
68873         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
68874         Check for settimeofday, stime.
68875
68876 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         * lib/nanosleep.c (suspended): Change its type from int to
68879         sig_atomic_t volatile.
68880         (first_call): Make it private to rpl_nanosleep, and have it
68881         be zero initially as that's a bit faster.
68882         (my_usleep): Round up fractional times instead of truncating them,
68883         as this is the usual meaning for 'sleep'.
68884
68885         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
68886         doesn't work.
68887         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
68888         (ENOSYS): Define if not defined.
68889         (settime): Fall back on stime if it exists and settimeofday fails.
68890         But don't bother with fallbacks if a method fails with errno == EPERM.
68891
68892 2004-05-11  Jim Meyering  <jim@meyering.net>
68893
68894         Prior to this change, the save_cwd caller required read access to the
68895         current directory on most systems (ones with the fchdir function).
68896
68897         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
68898         fails, try write-only, and finally, resort to using xgetcwd.
68899
68900 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68901
68902         * lib/obstack.c, obstack.h: Import changes from libc.
68903
68904 2004-04-28  Bruno Haible  <bruno@clisp.org>
68905
68906         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
68907         also implicitly appends .exe to executables.
68908         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
68909         accepts Windows pathnames.
68910         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68911         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68912         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
68913         Treat Cygwin like Windows, since it now accepts Windows pathnames.
68914         Reported by Derek Robert Price <derek@ximbiot.com>.
68915
68916 2004-04-21  Karl Berry  <karl@gnu.org>
68917
68918         * config/srclist.txt (localcharset.c): break sync.
68919
68920 2004-04-20  Paul Eggert  <eggert@twinsun.com>
68921
68922         * m4/host-os.m4: Add a copyright notice.
68923
68924 2004-04-20  Jim Meyering  <jim@meyering.net>
68925
68926         Change UTILS_ to gl_ in AC_DEFINE'd names.
68927         Change utils_- and jm_-prefixed variables, too.
68928         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
68929         UTILS_FUNC_MKDIR_TRAILING_SLASH.
68930         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
68931
68932         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
68933         Don't emit trailing blanks.
68934         Also rename jm_-prefixed variables to have gl_ prefix.
68935
68936         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
68937         Also rename jm_-prefixed variables to have gl_ prefix.
68938
68939         * m4/jm-macros.m4: Reflect the renamings.
68940         * m4/prereq.m4: Likewise.
68941
68942 2004-04-20  Jim Meyering  <jim@meyering.net>
68943
68944         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
68945         memory.
68946
68947 2004-04-20  Jim Meyering  <jim@meyering.net>
68948             Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
68951         memory when realloc fails.
68952
68953 2004-04-19  Jim Meyering  <jim@meyering.net>
68954
68955         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
68956         now that readutmp.c may call `free (0)'.
68957
68958 2004-04-19  Bruno Haible  <bruno@clisp.org>
68959
68960         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
68961         * m4/inttypes_h.m4: Likewise.
68962         * m4/stdint_h.m4: Likewise.
68963         * m4/intmax_t.m4: Likewise.
68964         * m4/uintmax_t.m4: Likewise.
68965
68966 2004-04-18  Jim Meyering  <jim@meyering.net>
68967
68968         * m4/prereq.m4: Don't forbid jm_ prefix.
68969
68970         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
68971         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
68972         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
68973         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
68974         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
68975         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
68976         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
68977         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
68978         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
68979         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
68980         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
68981         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
68982         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
68983         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
68984         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
68985         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
68986         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
68987         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
68988         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
68989
68990 2004-04-18  Jim Meyering  <jim@meyering.net>
68991
68992         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
68993         failure, don't leak memory and do call END_UTMP_ENT.
68994
68995 2004-04-16  Jim Meyering  <jim@meyering.net>
68996
68997         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
68998         coreutils' stat program.
68999         (gl_PREREQ): Don't require jm_PREREQ_STAT.
69000
69001 2004-04-11  Paul Eggert  <eggert@twinsun.com>
69002
69003         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
69004         C89.
69005         (CHAR_BIT): Remove, since we assume C89.
69006         Include <stdint.h> if available, as per current Autoconf CVS advice.
69007
69008 2004-03-31  Jim Meyering  <jim@meyering.net>
69009
69010         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
69011         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
69012         * m4/xalloc.m4: Likewise.
69013
69014 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69015
69016         Merge from coreutils.
69017
69018         * m4/inttostr.m4: New file.
69019         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
69020         Require AM_STDBOOL_H and gl_TIMESPEC instead.
69021         Require gl_CLOCK_TIME.
69022         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
69023
69024 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69025
69026         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
69027         not bool, to be more consistent with Unix conventions.
69028         Suggested by Bruno Haible.
69029
69030         Merge from coreutils.
69031
69032         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
69033         * lib/umaxtostr.c: New files.
69034
69035         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
69036         the usual <time.h> dance.
69037         (get_date): Change signature to support fractional time stamps.
69038         All callers changed.
69039         * lib/getdate.y: Include "getdate.h" first, as we can now
69040         assume C89 and don't need to worry about 'const'.
69041         Similarly, include "unlocked-io.h" near start, not in middle.
69042         Include <limits.h>.
69043         (textint.value): Use long int rather than int.
69044         (textint.digits): Use size_t rather than int.
69045         (BILLION, LOG10_BILLION): New constants.
69046         (parser_control): New member rel_ns.  Members day_ordinal,
69047         time_zone, month, day, hour, minutes, rel_year, rel_month,
69048         rel_day, rel_hour, rel_minutes, rel_seconds
69049         are now long int, not int.  Member seconds is now struct timespec,
69050         not int.  New member timespec_seen.  Members dates_seen, days_seen,
69051         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
69052         not int.
69053         (%union.intval): Now long int, not int.
69054         New member timespec.
69055         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
69056         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
69057         (spec): Now is a timespec or an item list.
69058         (timespec, items): New nonterminals.
69059         (time, rel, relunit, number, get_date):
69060         Add support for fractional seconds.
69061         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
69062         (gmtime, localtime, mktime): Remove decls; not needed with C89.
69063         (to_hour): First arg is now long int, not int.
69064         (to_year): Returns long int, not int.
69065         Don't treat year -70 like 70.
69066         (tm_diff): Returns long int, not int.
69067         (lookup_word): Use bool instead of int when appropriate.
69068         (yylex): Use size_t for count, not int.
69069         Detect overflow when parsing large integer constants.
69070         Add support for fractions.
69071         (get_date): Make pointers 'const' if possible.
69072         Use more-portable code to detect integer overflow.
69073         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
69074         Don't use ctime; it's not reliable if the year has >4 digits.
69075
69076         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
69077         This is for compatibility with BSD.
69078
69079         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
69080         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
69081         From coreutils' system.h.
69082
69083         * lib/userspec.c: Don't include "posixver.h".
69084         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
69085         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
69086         compatible extension.  Simplify code by removing a boolean int
69087         that was always nonzero if a string was nonnull.
69088
69089 2004-03-30  Jim Meyering  <jim@meyering.net>
69090
69091         Merge from coreutils.
69092
69093         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
69094         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
69095         on some systems one must include <grp.h> before it.
69096         Reported by Christian Krackowizer.
69097
69098 2004-03-30  Jim Meyering  <jim@meyering.net>
69099
69100         Merge from coreutils.
69101
69102         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
69103
69104         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
69105         an empty input stream.
69106
69107         * lib/readtokens.c: Include <stdbool.h>.
69108         (readtoken): Use `size_t' rather than int/long.
69109         All callers adjusted.
69110         Use `bool' rather than `int' where appropriate.
69111         Use memset rather than an explicit loop.
69112         Use x2nrealloc rather than xrealloc.
69113         Allow the use of `\0' as a delimiter.
69114         (readtokens): Likewise.
69115         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
69116
69117 2004-03-30  Jim Meyering  <jim@meyering.net>
69118
69119         * m4/realloc.m4: Remove file, since now it does no more than
69120         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
69121         the `configure.ac' section of module/realloc.
69122         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
69123
69124 2004-03-30  Bruno Haible  <bruno@clisp.org>
69125
69126         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
69127         nonnull.
69128
69129 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69130
69131         Merge changes to getloadavg.c from coreutils and Emacs.
69132
69133         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
69134         Define to an expression, not to the empty string.
69135         Include cloexec.h and xalloc.h.
69136         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
69137         Use set_cloexec_flag rather than rolling our own.
69138         * lib/cloexec.c, lib/cloexec.h: New files.
69139
69140 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69141
69142         * m4/cloexec.m4: New file.
69143
69144 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69145
69146         * lib/getopt.h: Sync with libc CVS.
69147
69148 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69149             Bruno Haible  <bruno@clisp.org>
69150
69151         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
69152         mbswidth.
69153
69154 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69155             Bruno Haible  <bruno@clisp.org>
69156
69157         * lib/mbswidth.h: Include <wchar.h> only if
69158         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69159         <wchar.h>.
69160         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69161
69162 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69163
69164         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69165         Sync with libc CVS.
69166         * lib/getopt_int.h: New file, also synced from libc.
69167
69168 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69169
69170         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69171         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69172         Bring back getopt.c, getopt.h, getopt1.c.
69173
69174 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69175
69176         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69177         All uses changed.  Check for sa_sigaction member; this fixes
69178         a bug first reported by Jason Andrade in
69179         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69180
69181 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69182
69183         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69184         '#if' expressions.  Unlike the code it replaces, it does not
69185         depend on (defined _SC_PAGESIZE).  However, it does depend on
69186         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69187         first reported by Jason Andrade in
69188         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69189
69190 2004-02-25  Simon Josefsson  <jas@extundo.com>
69191
69192         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69193
69194 2004-02-25  Simon Josefsson  <jas@extundo.com>
69195
69196         * lib/strdup.h: New file.
69197         * lib/strdup.c: Include it.
69198         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69199         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69200
69201 2004-02-23  Karl Berry  <karl@gnu.org>
69202
69203         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69204         (from fencepost.gnu.org:/gd/gnuorg).
69205
69206 2004-02-23  Karl Berry  <karl@gnu.org>
69207
69208         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69209         * config/srclist.txt: add maintain/standards documents.
69210
69211 2004-02-18  Bruno Haible  <bruno@clisp.org>
69212
69213         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69214         Reported by Derek Robert Price <derek@ximbiot.com>.
69215
69216 2004-02-16  Karl Berry  <karl@gnu.org>
69217
69218         * config/mkinstalldirs, install-sh: update from automake.
69219
69220 2004-02-06  Karl Berry  <karl@gnu.org>
69221
69222         * m4/po.m4: update from gettext 0.14.1.
69223
69224 2004-02-06  Karl Berry  <karl@gnu.org>
69225
69226         * lib/config.charset: update from gettext 0.14.1.
69227
69228 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69229
69230         Add comments and code, prompted by suggestions from Bruno Haible
69231         for sh-quote.
69232         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69233         describing the enum quoting_style values.
69234         * lib/quotearg.c (quotearg_alloc): New function.
69235         (quotearg_buffer_restyled): Treat lone { and } as special.
69236         Treat = as special.  Work around bug with older shells
69237         that "see" a '\' that is really the 2nd byte of a multibyte char.
69238         Quote empty string with shell_quoting_style.
69239
69240 2004-02-03  Bruno Haible  <bruno@clisp.org>
69241
69242         * m4/pipe.m4: New file, from GNU gettext.
69243
69244 2004-02-03  Bruno Haible  <bruno@clisp.org>
69245
69246         * lib/pipe.h: New file, from GNU gettext.
69247         * lib/pipe.c: New file, from GNU gettext.
69248
69249 2004-01-27  Bruno Haible  <bruno@clisp.org>
69250
69251         * m4/execute.m4: New file, from GNU gettext.
69252
69253 2004-01-27  Bruno Haible  <bruno@clisp.org>
69254
69255         * lib/execute.h: New file, from GNU gettext.
69256         * lib/execute.c: New file, from GNU gettext.
69257         * lib/w32spawn.h: New file, from GNU gettext.
69258
69259 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69260
69261         Merge from diffutils.
69262
69263         * lib/file-type.c (file_type): Add typed memory objects.
69264         * lib/file-type.h (S_TYPEISTMO): New macro.
69265
69266         * lib/c-stack.h (c_stack_action): Remove argv argument.
69267         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69268         (die): Don't calculate message unless segv_action returns.
69269         (get_stack_location, min_address_from_argv, max_address_from_argv,
69270         volatile stack_base, volatile_stack_size): Remove.
69271         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69272         that every segmentation violation is a stack overflow.  (Ouch!)
69273         See Debian bug 136249 (still outstanding) for more info about why
69274         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69275
69276 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69277
69278         Exit-status fix from coreutils.
69279
69280         Use exit_failure consistently in place of EXIT_FAILURE,
69281         so that program exit statuses are consistent on failure.
69282
69283         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69284         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69285         * lib/argmatch.h: Comment fix to match the above.
69286         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69287         Now a macro referring to exit_failure, instead of a separate
69288         variable.  Include "exitfail.h" to get it.
69289         * lib/xstrtol.h: Include "exitfail.h".
69290         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69291
69292         * lib/long-options.c (parse_long_options): Use prototype
69293         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69294         for clarity.
69295
69296 2004-01-21  Jim Meyering  <jim@meyering.net>
69297
69298         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69299         so as not to conflict with a different-sized __mktime_internal
69300         function in GNU libc.
69301         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69302         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69303
69304 2004-01-20  Karl Berry  <karl@gnu.org>
69305
69306         * config/config.guess: update from config.
69307
69308         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69309
69310 2004-01-20  Bruno Haible  <bruno@clisp.org>
69311
69312         Safer stack allocation.
69313         * lib/setenv.c: Include allocsa.h.
69314         (alloca): Remove fallback definition.
69315         (freea): Remove macro.
69316         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69317         instead of freea.
69318
69319 2004-01-20  Bruno Haible  <bruno@clisp.org>
69320
69321         * m4/eealloc.m4: New file, from GNU gettext.
69322
69323 2004-01-20  Bruno Haible  <bruno@clisp.org>
69324
69325         * m4/allocsa.m4: New file, from GNU gettext.
69326
69327 2004-01-20  Bruno Haible  <bruno@clisp.org>
69328
69329         * lib/xallocsa.h: New file, from GNU gettext.
69330         * lib/xallocsa.c: New file, from GNU gettext.
69331
69332 2004-01-20  Bruno Haible  <bruno@clisp.org>
69333
69334         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69335
69336 2004-01-20  Bruno Haible  <bruno@clisp.org>
69337
69338         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69339         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69340         specially.
69341
69342 2004-01-20  Bruno Haible  <bruno@clisp.org>
69343
69344         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69345         patch.
69346
69347 2004-01-20  Bruno Haible  <bruno@clisp.org>
69348
69349         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69350
69351 2004-01-20  Bruno Haible  <bruno@clisp.org>
69352
69353         * lib/eealloc.h: New file.
69354
69355 2004-01-20  Bruno Haible  <bruno@clisp.org>
69356
69357         * lib/binary-io.h: Avoid warnings on Cygwin.
69358
69359 2004-01-20  Bruno Haible  <bruno@clisp.org>
69360
69361         * lib/allocsa.h: New file, from GNU gettext.
69362         * lib/allocsa.c: New file, from GNU gettext.
69363
69364 2004-01-18  Karl Berry  <karl@gnu.org>
69365
69366         * doc/gpl.texi, doc/lgpl.texi: new files.
69367
69368 2004-01-18  Karl Berry  <karl@gnu.org>
69369
69370         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69371         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69372
69373 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69374
69375         Merge from coreutils.
69376
69377         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69378         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69379         (gl_DEFAULT_POSIX2_VERSION): Move
69380         the documentation from 'configure' into 'config.hin',
69381         so that 'configure --help' isn't burdened by it and
69382         we don't have to worry about its formatting there.
69383         Reword the documentation so that it's more succinct
69384         and can be run together into a single paragraph.
69385         * m4/same.m4 (gl_SAME): Check for pathconf.
69386
69387 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69388
69389         Merge from coreutils.
69390
69391         * lib/posixver.c: Include posixver.h.
69392
69393         * lib/same.c: Include <stdbool.h>, <limits.h>.
69394         (_POSIX_NAME_MAX): Define if not defined.
69395         (MIN): New macro.
69396         (same_name): If file names are silently truncated, report
69397         that the file names are the same if they are the same after
69398         the silent truncation.
69399
69400         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69401         conversion function.
69402         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69403         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69404         longer needed.
69405
69406 2004-01-15  Jim Meyering  <jim@meyering.net>
69407
69408         Merge from coreutils.
69409
69410         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69411         if no library is required.
69412         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69413         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69414         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69415         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69416         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69417         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69418         value, $ac_cv_search_crypt, if it's "none required".
69419         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69420         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69421         not gl_FUNC_GETLOADAVG.
69422         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69423         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69424
69425 2004-01-15  Jim Meyering  <jim@meyering.net>
69426
69427         Merge from coreutils.
69428
69429         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69430         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69431         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69432
69433         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69434         optional configure-time default.
69435
69436         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69437
69438         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69439
69440 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69441
69442         Merge from coreutils.
69443
69444         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69445         value, $ac_cv_search_nanosleep, if it's "none required".
69446
69447 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69448
69449         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69450         with like-named macro in fnmatch.c.
69451         (EXT): Use an internal constant instead.
69452
69453         Merge fnmatch patches from glibc.
69454         * lib/fnmatch.c (mbsinit): Remove define.
69455         Add libc_hidden_ver (__fnmatch, fnmatch).
69456         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69457         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69458
69459 2004-01-14  Karl Berry  <karl@gnu.org>
69460
69461         * config/install-sh: update from automake.
69462
69463 2004-01-13  Karl Berry  <karl@gnu.org>
69464
69465         * config/install-sh: update from automake.
69466
69467 2004-01-09  Karl Berry  <karl@gnu.org>
69468
69469         * config/install-sh: update from automake.
69470
69471 2004-01-05  Karl Berry  <karl@gnu.org>
69472
69473         * config/config.{sub,guess}: update from config.
69474
69475 2003-12-31  Karl Berry  <karl@gnu.org>
69476
69477         * config/depcomp: update from automake.
69478
69479 2003-12-14  Karl Berry  <karl@gnu.org>
69480
69481         * lib/config.charset: update from gettext-runtime.
69482
69483 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69484
69485         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69486         Bug reported by Alfred M. Szmidt.
69487
69488 2003-12-03  Bruno Haible  <bruno@clisp.org>
69489
69490         * m4/gettext.m4: Upgrade from gettext-0.13.
69491         * m4/po.m4: Upgrade from gettext-0.13.
69492         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69493         * m4/intmax.m4: New file, from gettext-0.13.
69494         * m4/printf-posix.m4: New file, from gettext-0.13.
69495
69496 2003-11-29  Karl Berry  <karl@gnu.org>
69497
69498         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69499
69500 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69501             Bruno Haible  <bruno@clisp.org>
69502
69503         * lib/printf-parse.h: Don't include sys/types.h.
69504         (ARG_NONE): New macro.
69505         (char_directive): Change type of *arg_index fields to size_t.
69506         * lib/printf-parse.c: Don't include sys/types.h.
69507         (SSIZE_MAX): Remove macro.
69508         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69509         Remove unnecessary overflow check.
69510         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69511         fields.
69512
69513 2003-11-25  Bruno Haible  <bruno@clisp.org>
69514
69515         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69516
69517 2003-11-25  Bruno Haible  <bruno@clisp.org>
69518
69519         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69520         gt_TYPE_SSIZE_T.
69521
69522 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69523
69524         * modules/alloca: Remove dependency on xalloc.
69525
69526 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69527
69528         * lib/alloca.c: Remove dependency on xalloc module.
69529         (xalloc_die): Remove.
69530         (memory_full) [!defined emacs]: New macro.
69531         [!defined emacs]: Don't include xalloc.h.
69532         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69533         address arithmetic overflows.  Change datatypes a bit to avoid
69534         unnecessary casts.
69535
69536 2003-11-22  Jim Meyering  <jim@meyering.net>
69537
69538         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69539         s/size/size_t/.
69540
69541 2003-11-21  Karl Berry  <karl@gnu.org>
69542
69543         * config/config.{sub,guess}: update from config.
69544
69545 2003-11-18  Karl Berry  <karl@gnu.org>
69546
69547         * config/config.{sub,guess}: update from config.
69548
69549         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69550
69551 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69552
69553         * README: Mention that S+T cannot overflow if S is the size of
69554         an existing object and T is sufficiently small.
69555
69556 2003-11-17  Jim Meyering  <jim@meyering.net>
69557
69558         On systems without utime and without a utimes function capable of
69559         dealing with a NULL struct utimbuf* argument, this utime replacement
69560         could -- in unusual circumstances -- leak a file descriptor.
69561         * lib/utime.c: Include <unistd.h> and <errno.h>.
69562         (utime_null): Be sure to close `fd' and to preserve errno.
69563         Reported by Geoff Collyer via Arnold Robbins.
69564
69565 2003-11-17  Bruno Haible  <bruno@clisp.org>
69566
69567         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69568         (Depends-on): Add xsize.
69569
69570 2003-11-17  Bruno Haible  <bruno@clisp.org>
69571
69572         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69573
69574 2003-11-17  Bruno Haible  <bruno@clisp.org>
69575
69576         * lib/vasnprintf.c (alloca): Remove fallback definition.
69577         (freea): Remove definition.
69578         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69579         Reported by Paul Eggert.
69580
69581 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69582             Bruno Haible  <bruno@clisp.org>
69583
69584         Protect against address arithmetic overflow.
69585         * lib/printf-args.h: Include stddef.h.
69586         (arguments): Change type of field 'count' to size_t.
69587         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69588         'unsigned int' where appropriate.
69589         * lib/printf-parse.h: Include sys/types.h.
69590         (char_directive): Change type of *arg_index fields to ssize_t.
69591         (char_directives): Change type of fields 'count', max_*_length to
69592         size_t.
69593         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69594         (SSIZE_MAX): Define fallback value.
69595         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
69596         instead of 'int' where appropriate. Check a_allocated, d_allocated
69597         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
69598         * lib/vasnprintf.c: Include xsize.h.
69599         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
69600         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
69601         overflow. Avoid wraparound when converting a width or precision from
69602         decimal to binary.
69603
69604 2003-11-16  Bruno Haible  <bruno@clisp.org>
69605
69606         Update from GNU gettext.
69607         * lib/printf-parse.c: Generalize to it can be compiled for wide
69608         strings.
69609         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
69610         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
69611         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
69612         SNPRINTF): New macros.
69613         Don't include <alloca.h> if the file is used inside libintl.
69614         (local_wcslen): New function, for Solaris 2.5.1.
69615         (VASNPRINTF): Use it instead of wcslen.
69616
69617 2003-11-16  Bruno Haible  <bruno@clisp.org>
69618
69619         * lib/xsize.h (xmax): New function.
69620         (xsum, xsum3, xsum4): Declare as "pure" functions.
69621
69622 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69623
69624         * modules/xalloc (Files): Undo latest change, since xalloc.h
69625         no longer needs SIZE_MAX or PTRDIFF_MAX.
69626
69627 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69628
69629         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
69630         gl_PTRDIFF_MAX.
69631
69632 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69633
69634         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
69635         "return", to pacify some unknown compiler.  Problem reported
69636         by Joerg Schilling.
69637
69638 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69639
69640         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
69641         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
69642         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
69643         heuristic is just as accurate as far as we know, and it removes a
69644         dependency on size_max.m4 and ptrdiff_max.m4.
69645
69646 2003-11-11  Bruno Haible  <bruno@clisp.org>
69647
69648         * modules/xsize (Files): Add m4/size_max.m4.
69649         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
69650
69651 2003-11-11  Bruno Haible  <bruno@clisp.org>
69652
69653         * m4/size_max.m4: New file.
69654         * m4/ptrdiff_max.m4: New file.
69655         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
69656         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
69657         (gl_XALLOC): Invoke it.
69658
69659 2003-11-11  Bruno Haible  <bruno@clisp.org>
69660
69661         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
69662         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
69663         defined.
69664
69665 2003-11-10  Paul Eggert  <eggert@twinsun.com>
69666
69667         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
69668         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
69669         rejected some allocations of exactly SIZE_MAX - 2 bytes.
69670         From Bruno Haible.
69671         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
69672         not (size_t) -1, since it's defined here.
69673
69674 2003-11-09  Karl Berry  <karl@gnu.org>
69675
69676         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
69677
69678 2003-11-06  Paul Eggert  <eggert@twinsun.com>
69679
69680         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
69681         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
69682         Reject sizes of exactly SIZE_MAX bytes.
69683         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
69684         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
69685
69686 2003-11-05  Bruno Haible  <bruno@clisp.org>
69687
69688         * lib/xsize.h: Include limits.h, to avoid a possible collision with
69689         SIZE_MAX defined in <limits.h> on Solaris.
69690
69691 2003-11-04  Jim Meyering  <jim@meyering.net>
69692
69693         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
69694         variable names, rather than @VAR@.
69695         * modules/poll: Likewise.
69696
69697 2003-11-04  Bruno Haible  <bruno@clisp.org>
69698
69699         * modules/xsize: New file.
69700         * modules/linebreak: Depend on xsize.
69701         * MODULES.html.sh (func_all_modules): Add xsize.
69702
69703 2003-11-04  Bruno Haible  <bruno@clisp.org>
69704
69705         * m4/xsize.m4: New file.
69706
69707 2003-11-04  Bruno Haible  <bruno@clisp.org>
69708
69709         * lib/xsize.h: New file.
69710         * lib/linebreak.c: Include xsize.h.
69711         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
69712         argument for overflow.
69713         Suggested by Paul Eggert.
69714
69715 2003-11-03  Karl Berry  <karl@gnu.org>
69716
69717         * config/config.{guess,sub}: update from config.
69718
69719 2003-11-03  Jim Meyering  <jim@meyering.net>
69720
69721         * modules/userspec (lib_SOURCES): Add userspec.h.
69722         (Include): Add "userspec.h".
69723         Improve description.
69724
69725 2003-11-03  Jim Meyering  <jim@meyering.net>
69726
69727         * lib/userspec.c: Include "userspec.h".
69728         * lib/userspec.h: New file.
69729
69730 2003-11-03  Bruno Haible  <bruno@clisp.org>
69731
69732         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
69733
69734 2003-11-03  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
69737         available, to avoid (extremely rare) race condition.
69738         Suggested by Paul Eggert.
69739
69740 2003-11-02  Karl Berry  <karl@gnu.org>
69741
69742         * config/srclist.txt (vasprintf.c): sync broken, sigh.
69743
69744 2003-10-31  Paul Eggert  <eggert@twinsun.com>
69745
69746         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
69747         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
69748         (read_filesystem_list): Set and use me_type_malloced.
69749         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
69750         whatever the type happens to be), for brevity and consistency.
69751         Check for size calculation overflow on Alphas running OSF/1.
69752
69753 2003-10-31  Jim Meyering  <jim@meyering.net>
69754
69755         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
69756
69757         * lib/linebuffer.c: Include <string.h> for declaration of memset.
69758
69759 2003-10-30  Paul Eggert  <eggert@twinsun.com>
69760             Bruno Haible  <bruno@clisp.org>
69761
69762         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
69763         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
69764
69765 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69766
69767         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
69768         netbsd*-gnu*.  Suggested by Robert Millan.
69769
69770 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69771
69772         * modules/group-member: Depend on stdbool.
69773
69774 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69775
69776         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
69777
69778 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69779
69780         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
69781         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
69782         after the 'gnu' in these cases.  This fixes some bugs in the
69783         previous change, and is based on suggestions by Robert Millan.
69784
69785 2003-10-29  Paul Eggert  <eggert@twinsun.com>
69786
69787         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
69788         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
69789         no longer needed.
69790         * lib/quotearg.c (quotearg_n_options): Use it.
69791         * lib/group-member.c: Include <stdbool.h>.
69792         (free_group_info): Arg is now const *; don't free arg.
69793         (get_group_info): Now returns bool and accepts struct group_info *,
69794         rather than returning a malloc'ed struct group_info *.
69795         All uses changed.  Check for overflow in internal size calculation.
69796
69797         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
69798         rather than xmalloc/xrealloc.
69799         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
69800         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
69801         conformance bug: the old code used a pointer after freeing the
69802         storage that it addressed.
69803         * lib/hash.c (hash_initialize): Simplify the code by using
69804         xalloc_oversized rather than doing it by hand.
69805         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
69806         the buffer preserved.  Use free and xmalloc instead.
69807         * lib/quotearg.c (quotearg_n_options): Likewise.
69808         Use a simpler test for size overflow.  Don't use xalloc_oversized
69809         because unsigned int might be wider than size_t (!); this suggests
69810         that we should switch from unsigned int to size_t for slot numbers.
69811
69812 2003-10-28  Paul Eggert  <eggert@twinsun.com>
69813
69814         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
69815         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
69816         NetBSD kernels.  Requested by Richard Stallman.
69817
69818 2003-10-27  Paul Eggert  <eggert@twinsun.com>
69819
69820         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
69821         to allocate the returned structure.  Do not allocate a subarray,
69822         as x2nrealloc will do that.
69823         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
69824         instead of xnrealloc.
69825         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
69826
69827 2003-10-27  Bruno Haible  <bruno@clisp.org>
69828
69829         * lib/stdbool_.h: Better support for BeOS.
69830
69831 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69832
69833         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
69834         now uses inline.
69835
69836 2003-10-26  Paul Eggert  <eggert@twinsun.com>
69837
69838         * lib/xalloc.h (xalloc_oversized): New static inline function, for
69839         callers that want to do their own size-overflow checking.  Include
69840         <stdbool.h>, since xalloc_oversized returns bool.
69841         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
69842         to use xalloc_oversized.
69843
69844         Add two functions x2realloc, x2nrealloc, for programs that grow
69845         arrays dynamically by doubling their sizes.
69846         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
69847         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
69848         New functions.
69849
69850         Port to C99 semantics for 'inline' of external functions.
69851         Bug reported by Bruno Haible.
69852         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
69853         with the old contents of xnmalloc.
69854         (xnmalloc, xmalloc): Use it.
69855         (xnrealloc_inline): New static inline function,
69856         with the old contents of xnrealloc.
69857         (xnrealloc, xrealloc): Use it.
69858
69859         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
69860         that.
69861
69862 2003-10-26  Karl Berry  <karl@gnu.org>
69863
69864         * config/srclist.txt (COPYING.DOC): no longer available from
69865         /gd/gnuorg; don't know where the ultimate source is.
69866
69867 2003-10-25  Paul Eggert  <eggert@twinsun.com>
69868
69869         Fix several address-calculation bugs in the hash modules,
69870         plus some minor code cleanup.
69871
69872         * lib/hash.h: Include <stdbool.h>, for bool.
69873         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
69874         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
69875         hash_get_n_entries, hash_get_max_bucket_length,
69876         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
69877         hash_rehash): Use size_t rather than unsigned.
69878         * lib/hash.c (struct hash_table, hash_get_n_buckets,
69879         hash_get_n_buckets_used, hash_get_n_entries,
69880         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
69881         hash_get_entries, hash_do_for_each, hash_string, is_prime,
69882         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
69883         Likewise.
69884         (SIZE_MAX): Define if not defined.
69885         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
69886         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
69887         hash_print):
69888         Use const * when possible.
69889         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
69890         (check_tuning): Fix bug: if tuning parameters were very close to
69891         0 or 1, rounding errors could have caused subscript violations.
69892         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
69893         (hash_initialize): Add 'fail:' label
69894         to free table and return NULL, and use it to simplify code.
69895         Use calloc rather than clearing the storage ourself.
69896         (hash_initialize, hash_rehash): Check for arithmetic overflow in
69897         buffer size calculations.
69898         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
69899         Include <stddef.h>, for size_t.
69900         * lib/hash-pjw.c (hash_pjw): Likewise.
69901         Switch to method described by Bruno Haible.
69902         Include <limits.h>, for CHAR_BIT.
69903         (SIZE_BITS): New macro.
69904
69905 2003-10-23  Paul Eggert  <eggert@twinsun.com>
69906
69907         * m4/getline.m4 (AM_FUNC_GETLINE):
69908         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
69909         hosts.  Problem reported by Derek Robert Price in
69910         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
69911         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
69912         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
69913
69914 2003-10-21  Paul Eggert  <eggert@twinsun.com>
69915
69916         * lib/getndelim2.c (getndelim2): When size calculation overflows,
69917         ceiling the allocation at NMAX bytes rather than silently
69918         discarding input bytes before NMAX is reached.  This makes
69919         a difference only if NMAX exceeds SIZE_MAX / 2.
69920
69921         * lib/obstack.c: Merge from glibc.
69922         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
69923         Add libc_hidden_def (_obstack_newchunk).
69924         (_obstack_free) [! defined _LIBC]: Remove.
69925         [defined _LIBC]: Make a strong alias from obstack_free, rather than
69926         a clone of the function body.
69927         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
69928         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
69929
69930         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
69931         glibc.
69932         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
69933         arg to memcpy.
69934
69935         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
69936         (obstack_ptr_grow_fast, obstack_int_grow_fast):
69937         Don't use lvalue casts, as GCC plans to remove support for them
69938         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
69939         was also present in the non-GCC version, indicating that this
69940         code had always been buggy and had never been widely used.
69941         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
69942         Use the fast variant of each macro, rather than copying the
69943         definiens of the fast variant; that way, we'll be more likely to
69944         catch future bugs in the fast variants.
69945
69946 2003-10-20  Bruno Haible  <bruno@clisp.org>
69947
69948         * modules/wait-process: New file.
69949         * MODULES.html.sh (func_all_modules): Add wait-process.
69950
69951 2003-10-20  Bruno Haible  <bruno@clisp.org>
69952
69953         * m4/wait-process.m4: New file.
69954
69955 2003-10-20  Bruno Haible  <bruno@clisp.org>
69956
69957         * lib/wait-process.h: New file, from GNU gettext.
69958         * lib/wait-process.c: New file, from GNU gettext.
69959
69960 2003-10-19  Jim Meyering  <jim@meyering.net>
69961
69962         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
69963         HPUX 10.20.
69964
69965 2003-10-18  Karl Berry  <karl@gnu.org>
69966
69967         * config/config.guess: update from config.
69968
69969 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69970
69971         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
69972         (getgroups): First arg is int, not size_t.
69973         Don't let 'free' mangle errno.
69974
69975 2003-10-16  Paul Eggert  <eggert@twinsun.com>
69976
69977         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
69978
69979 2003-10-16  Karl Berry  <karl@gnu.org>
69980
69981         * config/config.{guess,sub}: update from config.
69982
69983 2003-10-16  Jim Meyering  <jim@meyering.net>
69984
69985         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
69986         memcpy.
69987
69988 2003-10-15  Paul Eggert  <eggert@twinsun.com>
69989
69990         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
69991         (SIZE_MAX): Remove.
69992         (new_exclude, add_exclude_file): Initial size no longer needs to
69993         be a power of 2.
69994         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
69995         our own address arithmetic overflow checking.
69996
69997         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
69998         (fnmatch): Do not alloca more than 2000 wide characters;
69999         instead, use malloc for large buffers.
70000         Check for address arithmetic overflow, and return -1
70001         with errno set to ENOMEM in that case.
70002         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
70003         (NEW_PATTERN): Do not alloca more than 8000 bytes;
70004         instead, return -1.  Check for address arithmetic overflow.
70005
70006 2003-10-14  Paul Eggert  <eggert@twinsun.com>
70007
70008         Handle invalid suffixes and overflow independently, so that
70009         callers can treat them independently as needed.  Fix some bugs in
70010         suffix handling, e.g., "100k@" was not diagnosed as an invalid
70011         suffix for a human-readable blocksize.  The major caller-visible
70012         change is the addition of a new
70013         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
70014         that both overflow and suffix chars were found.
70015
70016         * lib/human.c (humblock): Don't check separately for invalid suffix
70017         char; that is xstrtoumax's job (now that its bug is fixed).
70018         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
70019         INTMAX_MAX]: New macros.
70020         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
70021         TYPE_MAXIMUM): New macros.
70022         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
70023         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
70024         if overflow occurs, as it's what __strtol does and it's more useful
70025         in practice.
70026         (__xstrtol): If __strtol reports some error other than ERANGE,
70027         reflect it to the caller as LONGINT_INVALID.  If it reports
70028         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
70029         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
70030         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
70031         value.
70032         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
70033         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
70034         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
70035         [defined UINTMAX_MAX]: New macros.
70036
70037 2003-10-14  Bruno Haible  <bruno@clisp.org>
70038
70039         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
70040
70041 2003-10-14  Bruno Haible  <bruno@clisp.org>
70042
70043         * m4/sig_atomic_t: New file, from GNU gettext.
70044         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
70045
70046 2003-10-14  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
70049         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
70050         Also use volatile where needed.
70051
70052 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70053
70054         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
70055         Change maintainer from Bruno Haible to 'all'.
70056
70057 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70058
70059         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
70060
70061 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70062
70063         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
70064         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
70065         and define in terms of the other primitives.
70066         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
70067         (SIZE_MAX): Define if not already defined.
70068         (array_size_overflow): New function.
70069         (xalloc_die): Abort instead of exiting if 'error' returns.
70070         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
70071         (xmalloc, xrealloc): Use them.
70072         (xcalloc): Check for address arithmetic overflow.
70073         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
70074         a bit faster than strcpy.
70075
70076 2003-10-10  Simon Josefsson  <jas@extundo.com>
70077
70078         * modules/argp (Depends-on): Add restrict and strcase.
70079
70080 2003-10-10  Simon Josefsson  <jas@extundo.com>
70081
70082         * m4/argp.m4: Add AC_C_INLINE.
70083
70084 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70085
70086         Merge getpass from libc, plus a few fixes.
70087
70088         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
70089         Include <stdbool.h>.
70090         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
70091         __fsetlocking to empty.
70092         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
70093         do include <bits/libc-lock.h>.
70094         Do not include <fcntl.h>; not needed.
70095         [_LIBC]: Include <wchar.h>.
70096         (NOTCANCEL_MODE): New macro.
70097         (flockfile, funlockfile) [_LIBC]: New macros.
70098         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
70099         [!_LIBC]: New macros.
70100         (call_fclose): New function.
70101         (getpass): Use it.  Save tty stream separately; this simplifies the
70102         code and makes it more reliable if stdin happens to equal stdout.
70103         Invoke __fsetlocking on tty.
70104         Handle thread cancellation if needed.
70105         Namespace cleanup (use __tcgetattr, __getline).
70106         Use bool for Booleans.
70107         [USE_IN_LIBIO]: Handle wide streams.
70108         [!_LIBC]: Unconditionally do the fseek, since we don't know what
70109         stream might go where.
70110
70111         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
70112         doesn't have to include <stdio.h> before us.
70113         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
70114         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
70115         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
70116         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
70117         if not declared, so that we can use getpass.c code from libc without
70118         rewriting it.
70119         (flockfile, ftrylockfile, funlockfile): New macros.
70120
70121 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70122
70123         * modules/getpass: Depend on stdbool.
70124
70125 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70126
70127         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
70128
70129 2003-10-07  Karl Berry  <karl@gnu.org>
70130
70131         * config/config.{guess,sub}: update from config.
70132
70133 2003-10-06  Jim Meyering  <jim@meyering.net>
70134             Bruno Haible  <bruno@clisp.org>
70135
70136         This lets translators provide better translations for the
70137         "Written by ..." part of --version output.
70138         * lib/version-etc.h: Include stdarg.h.
70139         (version_etc_copyright): Declare as readonly.
70140         (version_etc): Make this function variadic with a NULL-terminated list
70141         of author name strings.
70142         (version_etc_va): New declaration.
70143         * lib/version-etc.c: Include stdarg.h, stdlib.h.
70144         (version_etc_copyright): Declare as readonly.
70145         (version_etc_va): New function. Provide a different translatable string
70146         for each possible number of authors < 10. Abbreviate when there are 10
70147         authors or more.
70148         (version_etc): Make this function variadic. Call version_etc_va.
70149         Suggestion from Gary V. Vaughan.
70150
70151         * lib/long-options.h (parse_long_options): Change prototype: the
70152         authors string is moved to the end and becomes variadic.
70153         * lib/long-options.c: Include stdarg.h.
70154         (parse_long_options): Make this function variadic, too.
70155         Call version_etc_va, not version_etc.
70156
70157 2003-10-06  Bruno Haible  <bruno@clisp.org>
70158
70159         * modules/version-etc-2: Remove file.
70160         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70161
70162 2003-10-06  Bruno Haible  <bruno@clisp.org>
70163
70164         * modules/fatal-signal: New file.
70165         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70166
70167 2003-10-06  Bruno Haible  <bruno@clisp.org>
70168
70169         * m4/fatal-signal.m4: New file.
70170         * m4/signalblocking.m4: New file, from GNU gettext.
70171
70172 2003-10-06  Bruno Haible  <bruno@clisp.org>
70173
70174         * lib/version-etc-2.h: Remove file.
70175         * lib/version-etc-2.c: Remove file.
70176
70177 2003-10-06  Bruno Haible  <bruno@clisp.org>
70178
70179         * lib/fatal-signal.h: New file, from GNU gettext.
70180         * lib/fatal-signal.c: New file, from GNU gettext.
70181
70182 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70183
70184         * README: Rework advice for preventing empty .o files.
70185         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70186         not <sys/types.h>.
70187
70188 2003-10-04  Karl Berry  <karl@gnu.org>
70189
70190         * lib/argp*: update from libc.
70191
70192 2003-10-04  Karl Berry  <karl@gnu.org>
70193
70194         * config/config.{guess,sub}: update from config.
70195
70196 2003-10-02  Bruno Haible  <bruno@clisp.org>
70197
70198         * modules/lchown (Include): Add lchown.h.
70199         * modules/time_r (Include): Use "..." syntax.
70200         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70201
70202 2003-10-01  Simon Josefsson  <jas@extundo.com>
70203
70204         * MODULES.html.sh (func_all_modules): Move gethostname from section
70205         'based on' to section 'lacking' POSIX:2001.
70206
70207 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70208
70209         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70210         to output mode on the same stream.
70211
70212 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70213
70214         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70215         Fix arg typo in previous patch.
70216
70217 2003-09-28  Jim Meyering  <jim@meyering.net>
70218
70219         * lib/error.c: Correct cpp indentation.
70220
70221 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70222
70223         * modules/free: New file.
70224
70225 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70226
70227         * m4/free.m4: New file.
70228
70229 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70230
70231         * lib/minmax.h (MIN, MAX)
70232         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70233         Omit the special code that used __typeof__, since we worry that
70234         it could be more trouble than it's worth.  See:
70235         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70236         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70237
70238         * lib/free.c: New file.
70239
70240 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70241
70242         Trivial fixes to Makefile.am parts of module listings.
70243         * modules/strstr: Append strstr.h to lib_SOURCES.
70244         * modules/strcase: Likewise, for strcase.h.
70245
70246 2003-09-27  Karl Berry  <karl@gnu.org>
70247
70248         * config/mkinstalldirs: update from automake.
70249
70250 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70251
70252         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70253         (error_tail): Do not loop, reallocating temporary buffer, since
70254         the output cannot contain more wide characters than the input
70255         contains bytes, the size must be big enough already.  This avoids
70256         one potential size overflow calculation.  Check for size overflow
70257         when calculating temporary buffer size.  Free temporary buffer
70258         when done, if it was allocated with malloc; this plugs a memory
70259         leak.  Remove casts from void * to pointers, that are no longer
70260         needed now that we're assuming C89 or better.
70261
70262         Merge error changes from glibc.
70263
70264         * lib/error.c, error.h: Update copyright notice header to match glibc.
70265         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70266         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70267         Disable cancellation while printing error.
70268         * lib/error.h: Prepend __ to parameter names.
70269
70270 2003-09-26  Jim Meyering  <jim@meyering.net>
70271
70272         * lib/error.c (error_tail): Move some declarations
70273         into inner scope where the local variables are used.
70274
70275 2003-09-26  Bruno Haible  <bruno@clisp.org>
70276
70277         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70278         stpncpy().
70279         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70280
70281 2003-09-26  Bruno Haible  <bruno@clisp.org>
70282
70283         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70284         (stpncpy): Define as alias for gnu_stpncpy.
70285         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70286
70287 2003-09-25  Simon Josefsson  <jas@extundo.com>
70288
70289         * lib/xgetdomainname.h: New file.
70290         * lib/xgetdomainname.c: New file.
70291
70292 2003-09-25  Simon Josefsson  <jas@extundo.com>
70293             Bruno Haible  <bruno@clisp.org>
70294
70295         * modules/getdomainname: New file.
70296         * modules/xgetdomainname: New file.
70297         * MODULES.html.sh (func_all_modules): Add getdomainname,
70298         xgetdomainname.
70299
70300 2003-09-25  Simon Josefsson  <jas@extundo.com>
70301             Bruno Haible  <bruno@clisp.org>
70302
70303         * m4/getdomainname.m4: New file.
70304
70305 2003-09-25  Simon Josefsson  <jas@extundo.com>
70306             Bruno Haible  <bruno@clisp.org>
70307
70308         * lib/getdomainname.h: New file.
70309         * lib/getdomainname.c: New file.
70310
70311 2003-09-25  Karl Berry  <karl@gnu.org>
70312
70313         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70314
70315 2003-09-25  Karl Berry  <karl@gnu.org>
70316
70317         * config/install-sh: update from automake.
70318
70319 2003-09-25  Bruno Haible  <bruno@clisp.org>
70320
70321         * modules/version-etc-2: New file, from modules/version-etc with
70322         modifications.
70323         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70324
70325 2003-09-25  Bruno Haible  <bruno@clisp.org>
70326
70327         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70328         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70329
70330 2003-09-24  Simon Josefsson  <jas@extundo.com>
70331
70332         * modules/xgethostname: Add xgethostname.h.
70333
70334 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70335
70336         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70337         the buffer associated with the argument.  Bug reported by
70338         Simon Josefsson.
70339
70340 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70341
70342         * README: Document assumptions that 'int' is at least 32 bits
70343         wide, that integer arithmetic is 2's complement without overflow,
70344         that there are no holes in integer values, that adding sizes of
70345         two nonoverlapping objects can't overflow, and that all-bits-zero
70346         yields scalar zero.  Fix spelling and capitalization typos.
70347
70348 2003-09-19  Karl Berry  <karl@gnu.org>
70349
70350         * lib/argp.h: update from libc.
70351
70352 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70353
70354         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70355         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70356         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70357
70358 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70359
70360         * gnulib-tool: Use "test -h", not "test -L", for portability
70361         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70362         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70363         (sed_extract_prog): Issue s commands one-by-one, rather than
70364         using \| in one s command.
70365
70366 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70367
70368         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70369         input error, instead of returning NULL the next time we are called
70370         (and therefore losing track of errno).
70371
70372 2003-09-16  Bruno Haible  <bruno@clisp.org>
70373
70374         * gnulib-tool (func_create_testdir): Warn about duplicated
70375         dependencies.
70376
70377 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70378
70379         * modules/argmatch, modules/fatal, modules/obstack,
70380         modules/xalloc, modules/xgethostname: Sort dependencies by
70381         importance, not alphabetically.
70382
70383 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70384
70385         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70386         fails, so that the caller gets the proper errno.
70387
70388         * lib/readutmp.c (read_utmp): Likewise.
70389         Check for fstat error.  Close stream and free storage
70390         when failing.
70391
70392 2003-09-14  Karl Berry  <karl@gnu.org>
70393
70394         * config/srclist.txt (strdup.c): disable for c89 changes.
70395
70396 2003-09-14  Jim Meyering  <jim@meyering.net>
70397
70398         * lib/getloadavg.c: Correct cpp indentation.
70399         * lib/strdup.c: Likewise.
70400         * lib/vasnprintf.c: Likewise.
70401
70402 2003-09-14  Bruno Haible  <bruno@clisp.org>
70403
70404         * modules/fwriteerror: New file.
70405         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70406
70407 2003-09-14  Bruno Haible  <bruno@clisp.org>
70408
70409         * lib/fwriteerror.h: New file.
70410         * lib/fwriteerror.c: New file.
70411
70412 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70413
70414         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70415         modules/xgethostname, modules/xalloc: Depend on exit.
70416
70417 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70418
70419         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70420
70421         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70422         and AC_MINIX, too, so that their extensions are available.
70423
70424         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70425         This macro has been superseded by gl_BACKUPFILE.
70426
70427         More patches to assume C89 or better.
70428
70429         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70430
70431         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70432         unconditionally.
70433         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70434         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70435         Include <string.h>, <stdlib.h> unconditionally.
70436         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70437         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70438         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70439         headers or for string.h.
70440         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70441         or strtoul.
70442
70443         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70444         headers.
70445         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70446         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70447         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70448         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70449         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70450         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70451         memcpy, memset.
70452         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70453         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70454         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70455         strtol.
70456         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70457         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70458         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70459         strtoul.
70460
70461 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70462
70463         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70464         * lib/obstack.c [!defined _LIBC]: Likewise.
70465         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70466         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70467         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70468
70469         More changes to assume C89 or better.
70470
70471         * lib/error.c (error_tail): Assume vprintf.
70472
70473         * lib/argmatch.c (getenv): Remove decl.
70474         * lib/progreloc.c (get_full_program_name): Define via prototype.
70475         * lib/setenv.c (clearenv): Likewise.
70476         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70477         needed.
70478         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70479         (malloc, memcpy): Remove decls.
70480         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70481         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70482         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70483         (memcpy): Remove macro.
70484         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70485         (__P): Remove.  All uses removed.
70486         (PTR): Remove.  All uses changed to void *.
70487         (CHAR_BIT, NULL): Remove.
70488         (spaces, zeros, memset_space, memset_zero)
70489         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70490         Remove.
70491         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70492         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70493         Define with prototype.
70494         Remove now-unnecessary prototype decl.
70495         (extra_args_spec): Assume ANSI C.  All uses changed.
70496         (extra_args_spec_iso): Remove.
70497         (my_strftime, emacs_strftimeu): Define via prototype.
70498         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70499         unconditionally.
70500         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70501         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70502         (strtoul, strtol): Remove decls.
70503         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70504         LONG_MAX): Remove.
70505         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70506         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70507         (LOCALE_PARAM_PROTO): New macro.
70508         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70509         (INTERNAL (strtol), strtol): Define with a prototype.
70510         (PARAMS): Remove.  All uses removed.
70511         * lib/tempname.c: Include <string.h> unconditionally.
70512         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70513         * lib/xgethostname.c (main): Define with a prototype.
70514         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70515         Include <stdlib.h> unconditionally.
70516         (calloc, malloc, realloc, free): Remove decls.
70517         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70518         Include <stdlib.h> unconditionally.  Sort include file names.
70519         (strtod): Remove.
70520         (xstrtod): Define with a prototype.
70521         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70522         (strtol, strtoul): Remove decls.
70523
70524 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70525
70526         More patches to assume C89 or better.
70527         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70528         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70529         string.h, memchr, STDC_HEADERS.
70530
70531 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70532
70533         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70534         Include <stdlib.h>, <string.h> unconditionally.
70535         Remove now-unnecessary cast to char *.
70536         * lib/strnlen.c: Include <string.h> unconditionally.
70537         * lib/yesno.c (yesno): Define with a prototype.
70538
70539 2003-09-11  Bruno Haible  <bruno@clisp.org>
70540
70541         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70542
70543 2003-09-10  Jim Meyering  <jim@meyering.net>
70544
70545         * lib/error.c: Correct indentation of cpp directives.
70546
70547 2003-09-10  Bruno Haible  <bruno@clisp.org>
70548
70549         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70550         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70551         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70552         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70553         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70554         <stdlib.h> and <string.h> checks.
70555         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70556         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70557
70558 2003-09-10  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/strcspn.c: Include <string.h> unconditionally.
70561         * lib/strpbrk.c: Include <string.h> unconditionally.
70562         * lib/strstr.c: Include <string.h> unconditionally.
70563         * lib/unicodeio.c: Include <string.h> unconditionally.
70564         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70565         * lib/unsetenv.c: Likewise.
70566         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70567         * lib/yesno.c: Include <stdlib.h> unconditionally.
70568         (rpmatch): Add prototype.
70569
70570 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70571
70572         More patches to assume C89 or better.
70573         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70574         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70575         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70576         or for string.h.
70577         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70578         stdlib.h.
70579         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70580         C headers.
70581         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70582         string.h.
70583         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70584         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70585         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70586         or for string.h.
70587         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70588         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70589         C headers.
70590         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70591         memcpy.
70592         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70593         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70594         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70595         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
70596         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
70597         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
70598         string.h, free.
70599         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
70600         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
70601         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
70602         C headers, or for string.h.
70603         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
70604         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
70605         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
70606         headers, memory.h, stdlib.h, string.h, strings.h.
70607         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
70608         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
70609         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
70610         strchr.
70611         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
70612         headers, memory.h, string.h.
70613         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
70614         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
70615         free.
70616         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
70617         headers.
70618         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
70619         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
70620         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
70621         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
70622         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
70623
70624 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70625
70626         More K&R removal.
70627
70628         * lib/acosl.c (main): Use a prototype.
70629         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
70630         tanl.c: Likewise.
70631
70632         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
70633
70634         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
70635         (getopt, etopt_long, getopt_long_only, _getopt_internal)
70636         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
70637         with a prototype.
70638         * lib/getopt.c (const): Remove macro.
70639         Include <string.h> unconditionally.
70640         (my_index): Remove; all uses changed to strchr.
70641         (strlen): Remove decl.
70642         (exchange): Remove forward decl; no longer needed.
70643         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
70644         Define with prototype.
70645         * lib/getopt1.c (const): Remove macro.
70646         (getopt_long, getopt_long_only, main): Define with prototype.
70647
70648         * lib/getugroups.c: Include <string.h> unconditionally.
70649
70650         * lib/getusershell.c: Include <stdlib.h> unconditionally.
70651         (getusershell, setusershell, endusershell, readname, main):
70652         Define with prototypes.
70653
70654         * lib/group-member.c: Include group-member.h first.
70655         Include <stdlib.h> unconditionally.
70656
70657         * lib/hard-locale.c: Include hard-locale.h first.
70658         Include <stdlib.h>, <string.h> unconditionally.
70659
70660         * lib/hash.c (free, malloc): Remove decls.
70661         Include <stdlib.h> unconditionally.
70662
70663         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
70664         (getenv): Do not declare.
70665
70666         * lib/idcache.c: Include <string.h> unconditionally.
70667
70668         * lib/long-options.c: Include long-options.h first, to test interface.
70669         Include <stdlib.h> unconditionally.
70670
70671         * lib/makepath.c: Include makepath.h first, to test interface.
70672         Include <stdlib.h> and <string.h> unconditionally.
70673
70674         * lib/linebuffer.c: Include <stdlib.h>.
70675         (free): Remove decl.
70676
70677         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
70678         stddef.h. rpl_malloc returns void *, not char *.
70679         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
70680         prototype.
70681
70682         * lib/md5.h: Include <limits.h> unconditionally.
70683         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
70684         (__P): Remove; all uses removed.
70685         * lib/md5.c: Include "md5.h" first.
70686         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
70687         md5_buffer, md5_process_bytes, md5_process_block):
70688         Define with prototypes.
70689         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
70690         * lib/sha.c: Include "sha.h" first.
70691         Include <stdlib.h>, <string.h> unconditionally.
70692
70693         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
70694         * lib/memcmp.c (__ptr_t): Likewise.
70695         * lib/memrchr.c (__ptr_t): Likewise.
70696         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
70697         Include <string.h> unconditionally.
70698         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
70699         * lib/memchr.c: Include <stdlib.h> unconditionally.
70700         * lib/memchr.c (LONG_MAX): Remove.
70701         * lib/memrchr.c (LONG_MAX): Likewise.
70702         * lib/memchr.c (__memchr): Define via a prototype.
70703         * lib/memrchr.c (__memrchr): Likewise.
70704         * lib/memcmp.c (__P): Remove, and remove all uses.
70705         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
70706         Remove forward decls; no longer needed.
70707         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
70708         Use types required by C89 in prototype.
70709
70710         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
70711         * lib/savedir.c: Likewise.
70712         * lib/mkdir.c (free): Remove decl.
70713         * lib/rmdir.c (rmdir): Define with a prototype.
70714         * lib/savedir.c: Include savedir.h first, to test interface.
70715
70716         * lib/mktime.c (STDC_HEADERS): Remove.
70717         Include <stdlib.h>, <string.h> unconditionally.
70718
70719         * lib/modechange.c: Include <stdlib.h> unconditionally.
70720         (malloc): Remove decl.
70721
70722         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
70723         (free): Remove decl.
70724
70725         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
70726         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
70727         (This type really should be intptr_t, but that's a C99ism.)
70728         (_obstack_memcpy): Remove: all uses changed to memcpy.
70729         Include <string.h> unconditionally.
70730         (struct obstack): Assume __STDC__ for types of members
70731         chunkfun, freefun, extra_arg.
70732         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
70733         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
70734         obstack_begin, obstack_specify_allocation,
70735         obstack_specify_allocation_with_arg, obstack_chunkfun,
70736         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
70737         Remove unprototyped decls and the macros that use them.
70738         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
70739         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
70740         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
70741         (defined __STDC__ && __STDC__)]:
70742         Remove nonprototyped code.
70743         Include <stdlib.h> unconditionally.
70744         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
70745         _obstack_allocated_p, _obstack_free, obstack_free,
70746         _obstack_memory_used, print_and_abort):
70747         Define using prototypes.
70748         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
70749         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
70750         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
70751         obstack_next_free, obstack_object_size, obstack_room) [0]:
70752         Remove unused, unprototyped code.
70753
70754         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
70755
70756         * lib/physmem.c (physmem_total, physmem_available, main): Define
70757         with prototypes.
70758
70759         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
70760         (main): Define with a prototype.
70761
70762         * lib/posixver.c (getenv): Remove decl.
70763
70764         * lib/putenv.c (malloc): Returns void *, not char *.
70765         Include <string.h> unconditionally.
70766         (strchr, memcpy, NULL): Do not define.
70767
70768         * lib/readtokens.c: Include readtokens.h first, to test interface.
70769         Include <stdlib.h>, <string.h> unconditionally.
70770         (init_tokenbuffer): Define with a prototype.
70771
70772         * lib/regex.c (PARAMS): Remove.  All uses removed.
70773         All uses of _RE_ARGS removed, too.
70774         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
70775         unconditionally.
70776         (bzero): Assume memset exists.
70777         (memcmp, memcpy, NULL): Remove.
70778         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
70779         char, or assignments to local vars of type signed char.
70780         (init_syntax_once, PREFIX(extract_number_and_incr),
70781         PREFIX(print_partial_compiled_pattern),
70782         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
70783         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
70784         PREFIX(regex_grow_registers), PREFIX(regex_compile),
70785         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
70786         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
70787         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
70788         wcs_compile_range, byte_compile_range, truncate_wchar,
70789         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
70790         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
70791         count_mbs_length, wcs_re_match_2_internal,
70792         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
70793         PREFIX(alt_match_null_string_p),
70794         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
70795         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
70796         regfree, PREFIX(extract_number)): Define with prototype.  Remove
70797         now-unnecessary declaration, if any.
70798         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
70799         regcomp, regexec):
70800         Remove now-unnecessary casts among pointer types.
70801         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
70802
70803         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
70804         (free): Remove decl.
70805
70806         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
70807
70808         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
70809         (free): Remove decl.
70810
70811         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
70812         * lib/xgetcwd.c: Likewise.
70813
70814         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
70815         (free): Remove decl.
70816
70817         * lib/strchrnul.c (strchrnul): Define with a prototype.
70818         Fix bug: c_in was not converted to char before searching.
70819
70820         The following changes are not K&R related:
70821
70822         * lib/group-member.h: Include <sys/types.h>, so that this file is
70823         self-contained.
70824         * lib/makepath.h: Likewise.
70825
70826         * lib/getusershell.c (readname, default_index, line_size, readname):
70827         Use size_t, not int, for sizes.
70828         (readname): If the size overflows, report an error instead of
70829         looping forever.
70830
70831 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70832
70833         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
70834         libc.
70835
70836 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70837
70838         * README: New section: portability guidelines.
70839
70840 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70841
70842         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
70843         C89 spec.
70844
70845 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
70846
70847         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
70848
70849 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70850
70851         Assume C89 or better; remove K&R cruft.
70852         A few of these changes were first proposed by Derek Robert Price
70853         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
70854
70855         * lib/addext.c: Include <string.h> unconditionally.
70856         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
70857         Don't declare getenv or malloc.
70858
70859         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
70860         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
70861         (NULL): Remove.
70862         (find_stack_direction, alloca): Use prototypes.
70863
70864         * lib/atexit.c (atexit): Define using a prototype.
70865
70866         * lib/basename.c, dirname.c, stripslash.c:
70867         Include <string.h> unconditionally.
70868
70869         * lib/bcopy.c: Include <stddef.h>.
70870         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
70871
70872         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
70873
70874         * lib/error.h (error, error_at_line, error_print_progname)
70875         [! (defined (__STDC__) && __STDC__)]: Remove decls.
70876         * lib/error.c: Include error.h first, to check interface.
70877         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70878         (VA_START): Remove; all uses changeed to va_start.
70879         (exit, strerror): Remove decls.
70880         (error_print_progname): Prototype uncondionally.
70881         Don't include <errno.h>; no longer needed.
70882         (private_strerror): Remove.
70883         (error_tail): Always define.
70884         (error, error_at_line): Assume C89 or better; always use prototypes.
70885         * lib/fatal.c: Include "fatal.h" first, to test interface.
70886         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
70887         (VA_START): Remove; all uses changed to va_start.
70888         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
70889         this case.
70890         (exit): Remove decl.
70891         (fatal): Prototype unconditionally.  Assume va_start works.
70892         Abort at end, to pacify gcc.
70893
70894         * lib/euidaccess.c (main): Define with a prototype.
70895
70896         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
70897
70898         * lib/exitfail.c: Include <stdlib.h> unconditionally.
70899
70900         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
70901         prototypes.
70902         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
70903         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
70904         (getenv): Remove decl.
70905         (fnmatch): Define using a prototype.
70906         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
70907         (FCT): Define using a prototype.
70908
70909         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
70910
70911         * lib/gethostname.c: Include <stddef.h>.
70912         (gethostname): Define with prototype.  Length is size_t, not int.
70913
70914 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70915
70916         Assume C89 or better; remove K&R cruft.
70917         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
70918         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
70919         string.h, getenv, malloc.
70920         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
70921         headers.
70922         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
70923         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
70924         do not check for strerror.
70925         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
70926         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
70927         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
70928         do not check for doprnt or vprintf.
70929         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
70930         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
70931
70932 2003-09-08  Paul Eggert  <eggert@twinsun.com>
70933
70934         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
70935         getversion.c should have been removed then, but was accidentally
70936         preserved.
70937
70938         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
70939         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
70940
70941 2003-09-08  Karl Berry  <karl@gnu.org>
70942
70943         * config/config.sub, config.guess, srclistvars.sh: update from savannah
70944                 config, forget about prep.
70945
70946         * config/depcomp, missing: update from automake.
70947
70948 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70949
70950         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
70951         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70952
70953 2003-09-07  Paul Eggert  <eggert@twinsun.com>
70954
70955         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
70956         copy_tm_result.  Bug reported by Simon Josefsson in
70957         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
70958
70959 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70960
70961         * m4/time_r.m4: New file.
70962         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
70963         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
70964         is. Check for timegm declaration.
70965         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
70966         Do not check for gmtime_r.
70967         Replace mktime if __mktime_internal does not exist and if mktime
70968         hasn't been replaced already.
70969
70970 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70971
70972         * lib/time_r.c, lib/time_r.h: New files.
70973
70974         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
70975         __localtime_r.
70976         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
70977         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
70978
70979         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
70980         __gmtime_r.
70981         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
70982         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
70983         Include <time_r.h>.
70984
70985         * lib/timegm.c: Switch to glibc implementation, with the following
70986         changes:
70987         [defined HAVE_CONFIG_H]: Include <config.h>.
70988         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
70989         (__mktime_internal) [!defined _LIBC]: New decl.
70990         (__gmtime_r) [!defined _LIBC]: New macro and function.
70991         (timegm): Use a prototype, since gnulib assumes C89.
70992         Do not bother declaring tmp to be const, as it's not really usefu.
70993         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
70994         (timegm): Declare only if HAVE_DECL_TIMEGM.
70995
70996 2003-09-06  Paul Eggert  <eggert@twinsun.com>
70997
70998         * MODULES.html.sh (func_all_modules): Add time_r.
70999         * modules/time_r: New file.
71000         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
71001         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
71002
71003 2003-09-03  Paul Eggert  <eggert@twinsun.com>
71004
71005         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
71006         Bug reported by Lute Kamstra in
71007         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
71008
71009         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
71010         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
71011         course with correspondingly smaller numbers for tomorrow and
71012         yesterday.  From Tadayoshi Funaba.  Originally installed into
71013         sh-utils on 1999-08-07, but the patch got lost (I guess during the
71014         coreutils merge?).
71015
71016 2003-08-31  Simon Josefsson  <jas@extundo.com>
71017
71018         * modules/timegm: New file.
71019         * MODULES.html.sh (func_all_modules): Add timegm.
71020
71021 2003-08-31  Simon Josefsson  <jas@extundo.com>
71022
71023         * m4/timegm.m4: New file.
71024
71025 2003-08-31  Simon Josefsson  <jas@extundo.com>
71026
71027         * lib/timegm.h: New file.
71028         * lib/timegm.c: New file.  Based on
71029         wget-1.8.2/src/http.c:mktime_from_utc.
71030
71031 2003-08-31  Karl Berry  <karl@gnu.org>
71032
71033         * lib/argp.h: update from libc.
71034
71035 2003-08-28  Bruno Haible  <bruno@clisp.org>
71036
71037         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
71038         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
71039         followed by '#define fnmatch fnmatch_posix' gives an error.
71040
71041 2003-08-28  Bruno Haible  <bruno@clisp.org>
71042
71043         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
71044         warning on QNX, which defines O_BINARY to 000000.
71045
71046 2003-08-27  Jim Meyering  <jim@meyering.net>
71047
71048         * m4/mkstemp.m4: Require that the system mkstemp be able to create
71049         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
71050         would fail after 32.  Reported by Danny Levinson.  Details here:
71051         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
71052
71053 2003-08-24  Bruno Haible  <bruno@clisp.org>
71054
71055         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
71056         MSVC7 <stdio.h> is included later.
71057
71058 2003-08-22  Simon Josefsson  <jas@extundo.com>
71059
71060         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
71061
71062 2003-08-20  Karl Berry  <karl@gnu.org>
71063
71064         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
71065
71066 2003-08-20  Bruno Haible  <bruno@clisp.org>
71067
71068         * modules/progname: New file.
71069         * MODULES.html.sh (func_all_modules): Add progname.
71070
71071 2003-08-20  Bruno Haible  <bruno@clisp.org>
71072
71073         * lib/progname.h: New file, from GNU gettext.
71074         * lib/progname.c: New file, from GNU gettext.
71075         * lib/progreloc.c: New file, from GNU gettext.
71076
71077 2003-08-19  Jim Meyering  <jim@meyering.net>
71078
71079         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
71080         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
71081
71082 2003-08-19  Bruno Haible  <bruno@clisp.org>
71083
71084         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
71085         more.
71086
71087 2003-08-19  Bruno Haible  <bruno@clisp.org>
71088
71089         * lib/xstrdup.c: Assume <string.h> exists.
71090
71091 2003-08-18  Paul Eggert  <eggert@twinsun.com>
71092
71093         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
71094         in makefile rules.
71095
71096 2003-08-18  Jim Meyering  <jim@meyering.net>
71097
71098         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
71099         * m4/lib-ld.m4: Likewise.
71100
71101 2003-08-18  Jim Meyering  <jim@meyering.net>
71102
71103         * lib/setenv.h: Indent nested cpp directive.
71104         * lib/vasnprintf.c: Remove trailing blanks.
71105
71106 2003-08-17  Simon Josefsson  <jas@extundo.com>
71107
71108         * modules/xstrndup: New file.
71109         * MODULES.html.sh (func_all_modules): Add xstrndup.
71110
71111 2003-08-17  Simon Josefsson  <jas@extundo.com>
71112
71113         * modules/argp: Fix autoconf macro name. Add more dependencies.
71114
71115 2003-08-17  Simon Josefsson  <jas@extundo.com>
71116
71117         * m4/xstrndup.m4: New file.
71118
71119 2003-08-17  Simon Josefsson  <jas@extundo.com>
71120
71121         * m4/argp.m4: New file.
71122
71123 2003-08-17  Simon Josefsson  <jas@extundo.com>
71124             Bruno Haible  <bruno@clisp.org>
71125
71126         * lib/xstrndup.h: New file.
71127         * lib/xstrndup.c: New file.
71128
71129 2003-08-17  Bruno Haible  <bruno@clisp.org>
71130
71131         * modules/strndup (Files, Include): Add lib/strndup.h.
71132
71133 2003-08-17  Bruno Haible  <bruno@clisp.org>
71134
71135         * modules/euidaccess (Files): Add lib/euidaccess.h.
71136
71137 2003-08-17  Bruno Haible  <bruno@clisp.org>
71138
71139         * lib/strndup.h: New file.
71140
71141 2003-08-17  Bruno Haible  <bruno@clisp.org>
71142
71143         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
71144         like AC_GNU_SOURCE.
71145         * modules/extensions (configure.ac): Comment out the invocation of
71146         gl_USE_SYSTEM_EXTENSIONS.
71147
71148 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71149
71150         Merges from coreutils, etc.
71151         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
71152         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71153         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71154         fixing a typo.
71155         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71156         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71157
71158 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71159
71160         Document merge from coreutils.
71161         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71162         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71163         * modules/utime: Add m4/utimes-null.m4.
71164
71165 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71166
71167         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71168         space, undoing this 2003-08-12 change:
71169         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71170
71171 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71172
71173         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71174         strtoul.c from libc, undoing this 2003-08-12 change:
71175         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71176
71177 2003-08-16  Jim Meyering  <jim@meyering.net>
71178
71179         Merges from coreutils.
71180         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71181         prefix.  Adjust cache variables similarly.  Create 500 rather than
71182         just 300 files, to exercise bug on Darwin6.5, too.
71183         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71184         $missing_dir.
71185         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71186         AM_SYS_POSIX_TERMIOS.
71187         Reported by mkc@mathdogs.com.
71188         Also change use of $am_cv_sys_posix_termios
71189         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71190         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71191         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71192         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71193         in /proc/mounts until it finds one with matching device number.  This
71194         is unnecessary when the FILE argument *is* a mount point.  No stat call
71195         is necessary in that case.  So, disable the statvfs-testing code on
71196         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71197         as RedHat bug# 84846.
71198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71199         to 1MB, so as not to render systems with no stack size limit (e.g.,
71200         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71201         Include <unistd.h>.  On some systems,
71202         it is required for the definition of _SC_PAGESIZE.
71203
71204 2003-08-16  Jim Meyering  <jim@meyering.net>
71205
71206         Merge from coreutils.
71207         * lib/xstrtoimax.c: #else #if -> #elif.
71208         * lib/xstrtoumax.c: Likewise.
71209
71210 2003-08-16  Jim Meyering  <jim@meyering.net>
71211
71212         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71213         * m4/utimes.m4: Removed.
71214         * m4/utimes-null.m4: Renamed from utimes.m4.
71215
71216         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71217         to 1MB, so as not to render systems with no stack size limit (e.g.,
71218         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71219         Include <unistd.h>.  On some systems,
71220         it is required for the definition of _SC_PAGESIZE.
71221
71222 2003-08-16  Jim Meyering  <jim@meyering.net>
71223         and Paul Eggert  <eggert@cs.ucla.edu>
71224
71225         Merges from coreutils, etc.
71226
71227         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71228         using the latest version from cvs.  This avoids problems with #line
71229         directives using a vendor (Sun) compiler.
71230         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71231         Don't set GETGROUPS_LIB here; now it's
71232         done via getgroups.m4's wrapper function.
71233         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71234         rather than just in sh-util/configure.in, so that the
71235         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71236         same.
71237         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71238         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71239         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71240         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71241         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71242         Remove code that is now done by the newly-required macros.
71243         Append $(EXEEXT) to DF_PROG.
71244         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71245         Do not invoke or require the following here,
71246         since prereq.m4 or some gnulib .m4 now does this for us:
71247         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71248         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71249         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71250         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71251         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71252         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71253         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71254         AC_FUNC_OBSTACK.
71255         Do not replace the following functions, as this is now the job
71256         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71257         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71258         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71259         atexit getpass, strdup, getpagesize.
71260         Replace 'raise'.
71261         Do not check for the following functions, as this is now the job
71262         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71263         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71264         setregid.
71265         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71266         Check for sys/sysctl.h.
71267         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71268         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71269         of checking for ssize_t ourselves.
71270
71271         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71272         Require every macro that gnulib/modules/* suggests for us.
71273         (jm_PREREQ_ADDEXT): New macro.
71274         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71275         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71276
71277         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71278         (gl_PHYSMEM): Use it.
71279         Also check for `table' function.
71280         Check for new headers and functions.
71281         Add check for sys/sysmp.h.
71282         With suggestions from Kaveh Ghazi.
71283         Ignore headers that are present but cannot be compiled.  This
71284         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71285         C 5.4.
71286
71287 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71288
71289         Document merge from coreutils.
71290         * modules/userspec: Depend on posixver.
71291         * modules/strftime: Depend on tzset.
71292
71293 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71294
71295         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71296         rather than tab, after '#' in shell-script copyright notices.
71297         Suggested by Bruno Haible.
71298
71299 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71300
71301         * config/srclist-update: Use three spaces, rather than tab, after '#'
71302         in shell-script copyright notices.  Suggested by Bruno Haible.
71303         Remove unnecessary parenthesization in regular expression.
71304
71305 2003-08-15  Jim Meyering  <jim@meyering.net>
71306
71307         Merge from coreutils.
71308         * lib/xgethostname.c: Include <stdlib.h>.
71309         (xghostname): Don't exit for anything other than memory-related
71310         failure; just return NULL.
71311         * lib/userspec.c: Include "posixver.h".
71312         (parse_user_spec): Accept `.' as a separator only
71313         in pre-POSIX-200112 mode.
71314         * lib/strtoimax.c: Use #elif rather than #else #if.
71315         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71316         Remove function, now that we can rely on a working tzset function.
71317         [!_LIBC]: Ensure that the required autoconf test has been run.
71318         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71319         Use underlying_strftime for %r.
71320         * lib/sha.c: Merge in some clean-up and optimization changes from
71321         glibc.
71322         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71323         Ensure that it is a multiple of 64.
71324         Rearrange loop exit tests so as to avoid performing an
71325         additional fread after encountering an error or EOF.
71326         * lib/realloc.c: Update copyright date.
71327
71328 2003-08-15  Jim Meyering  <jim@meyering.net>
71329         and Paul Eggert  <eggert@twinsun.com>
71330
71331         Merge from coreutils.
71332         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71333         member but strut utmpx does not.  Needed for AIX 4.3.3.
71334         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71335
71336 2003-08-15  Jim Meyering  <jim@meyering.net>
71337         and Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         Merges from coreutils, etc.
71340         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71341         Require gl_FUNC_TZSET_CLOBBER.
71342         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71343         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71344         members.
71345
71346 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71347
71348         Help the merge from coreutils.
71349         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71350         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71351         * m4/tzset.m4: Use it too.
71352
71353 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71354
71355         * modules/tzset: New file.
71356
71357 2003-08-14  Jim Meyering  <jim@meyering.net>
71358
71359         Merges from coreutils.
71360         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71361         variable names, rather than @FNMATCH_H@.
71362         * modules/alloca: Likewise for $(ALLOCA_H).
71363
71364         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71365         the three copies of the literal target, `fnmatch.h'.
71366         * modules/alloca (alloca.h): Likewise.
71367
71368 2003-08-14  Jim Meyering  <jim@meyering.net>
71369
71370         Merge from coreutils.
71371         * m4/tzset.m4: New file.
71372         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71373         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71374         otherwise, AIX 5.1 systems would end up using the latter.
71375         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71376         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71377         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71378         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71379
71380 2003-08-14  Jim Meyering  <jim@meyering.net>
71381
71382         Merge from coreutils.
71383         * lib/obstack.h: Whitespace changes.
71384         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71385         and xcalloc return values.
71386         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71387         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71388         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71389         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71390         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71391         error from mntctl.
71392         Use mntctl's return value to drive the entry-processing loop, since
71393         we can't rely on the value of the vmt_length member in the last
71394         entry.  On some systems doing so could result in exhausting
71395         virtual memory.  Based in part on a patch from Mike Jetzer.
71396
71397 2003-08-14  Jim Meyering  <jim@meyering.net>
71398         and Paul Eggert  <eggert@twinsun.com>
71399
71400         Merges from coreutils, plus other fixes.
71401         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71402         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71403         for credits and details.  Thanks to Kaveh Ghazi for helping
71404         to keep these files in sync.
71405         (ARRAY_SIZE): Define it.
71406         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71407         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71408         (memcasecmp): Don't assume size_t fits in unsigned int.
71409         Remove casts and duplicate code.
71410         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71411         (memcpy): Remove definition.
71412         Merge in some clean-up and optimization changes from glibc.
71413         [BLOCKSIZE]: Move definition to top of file.
71414         Ensure that it is a multiple of 64.
71415         Rearrange loop exit tests so as to avoid performing an
71416         additional fread after encountering an error or EOF.
71417         * lib/md5.h (md5_uintptr): Define.
71418         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71419         return to the initial working directory.  Preserve errno
71420         for caller.
71421         * lib/idcache.c: Include "xalloc.h".
71422         (xmalloc, xrealloc): Remove decls.
71423         (getuser): Remove casts no longer required in C89.
71424         * lib/human.c: Include stdio.h, for sprintf.
71425         * lib/group-member.c: Include "xalloc.h".
71426         (xmalloc, xrealloc): Remove decls.
71427         (get_group_info): Remove casts no longer required in C89.
71428         * lib/getusershell.c (readname): Remove casts no longer required in
71429         C89.
71430         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71431         * lib/getline.c: Whitespace fix, from coreutils.
71432
71433 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71434
71435         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71436         Check for isascii.
71437
71438         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71439         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71440         Undo previous (whitespace-only) change.
71441
71442 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71443
71444         * lib/exclude.c: Include <ctype.h>
71445         (IN_CTYPE_DOMAIN): New macro.
71446         (is_space): New fn.
71447         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71448         and empty lines.
71449
71450         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71451         Undo previous (whitespace-only) change.
71452
71453 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71454
71455         * config/srclist-update: Change update back to the old behavior,
71456         leaving whitespace alone.  Use one 'sed' command rather than a
71457         pipeline.
71458         (fixlicense): Now a variable, not a function.
71459         (remove_trailing_blanks): Remove.
71460         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71461         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71462         Undo previous (whitespace-only) change.
71463
71464 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71465
71466         Merge from coreutils.
71467         * modules/euidaccess: Add lib_SOURCES, include for new
71468         file euidaccess.h
71469
71470 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71471
71472         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71473         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71474         Normalize leading white space and remove trailing white space.
71475
71476         Merge from coreutils
71477         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71478
71479         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71480         0.12.1.  These files are now being upgraded automatically by
71481         ../config/srclist-update.
71482
71483 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71484
71485         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71486         Normalize leading white space and remove trailing white space.
71487         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71488         notice, as per ../config/srclist-update.
71489
71490         Merge from coreutils.
71491         * lib/euidaccess.h: New file.
71492         * lib/euidaccess.c: Include it.
71493         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71494         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71495         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71496
71497 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71498
71499         * config/srclist-update: Add copyright notice.
71500         (remove_id_lines, remove_trailing_blanks): New constants.
71501         (fixfile): Use them to normalize spacing a bit in copied files.
71502         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71503         Normalize leading white space and remove trailing white space.
71504
71505         * config/texinfo.tex: Sync with texinfo.
71506
71507         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71508         strtoul.c from libc, to merge coreutils whitespace changes.
71509
71510         * config/srclist.txt: Get the following m4 files from gettext:
71511         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71512         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71513         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71514         wint_t.m4.
71515
71516 2003-08-12  Karl Berry  <karl@gnu.org>
71517
71518         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71519         been made.
71520
71521 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71522
71523         * modules/gnu-source, m4/gnu-source.m4:
71524         Remove; we're assuming Autoconf 2.54 or later now.
71525         Suggested by Bruno Haible.
71526         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71527
71528 2003-08-11  Bruno Haible  <bruno@clisp.org>
71529
71530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
71531
71532 2003-08-11  Bruno Haible  <bruno@clisp.org>
71533
71534         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71535         (vasnprintf): Use it instead of wcslen.
71536
71537 2003-08-11  Bruno Haible  <bruno@clisp.org>
71538
71539         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71540         value to ensure that _Bool promotes to int. Use #define for _Bool when
71541         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71542
71543 2003-08-10  Karl Berry  <karl@gnu.org>
71544
71545         * lib/regex.h: update from libc (whitespace fix).
71546
71547 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71548
71549         Merge some files from coreutils.  These changes were
71550         originally made by Jim Meyering.
71551         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71552         many older Unixes require this.
71553         * lib/alloca.c (alloca): Remove cast to argument of free;
71554         no longer needed in C89.
71555         * lib/alloca_.h, regex.h: Fix white space to match
71556         what GNU indent does.
71557
71558 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71559
71560         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71561         apparently Emacs's Unicode mode got confused before my 2003-08-05
71562         checkin.
71563
71564 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71565
71566         * m4/extensions.m4: New file.
71567         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71568         Require gl_USE_SYSTEM_EXTENSIONS.
71569         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71570         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71571
71572 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71573
71574         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71575         * modules/extensions, modules/gnu-source: New files.
71576         * modules/timespec, modules/unlocked-io: Depend on extensions.
71577
71578 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71579
71580         * modules/restrict: New file.
71581         * MODULES.html.sh (func_all_modules): Add restrict.
71582         * modules/regex: Depend on restrict.
71583
71584 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71585
71586         * m4/restrict.m4: New file.
71587         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71588
71589 2003-08-07  Bruno Haible  <bruno@clisp.org>
71590
71591         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71592         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71593
71594 2003-08-07  Bruno Haible  <bruno@clisp.org>
71595
71596         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
71597         makes the module 'getndelim2' compatible with the module 'getline'.
71598
71599 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71600
71601         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
71602         byte with "\201" to avoid glitches when editing that source file
71603         with multi-gnome-terminal.
71604
71605 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71606
71607         * lib/bumpalloc.h: Remove.
71608
71609 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71610
71611         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
71612         * modules/bumpalloc: Remove.
71613
71614 2003-08-04  Paul Eggert  <eggert@twinsun.com>
71615
71616         * lib/getloadavg.c: Change copyright notice and spacing to conform to
71617         GNU coding style.
71618
71619         Merge from coreutils.
71620         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
71621         1. From glibc.
71622         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
71623         from Karl Berry, implemented by Jim Meyering.
71624         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
71625         from Dmitry V. Levin.
71626         Remove anachronistic cast of xrealloc.
71627         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
71628         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
71629         type. Otherwise, it wouldn't compile with at least /bin/cc on
71630         ymp-cray-unicos9.0.2.X.
71631         Combine two mostly-identical uses of alloca into one.
71632         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
71633
71634 2003-08-04  Dave Love  <d.love@dl.ac.uk>
71635
71636         [From Emacs.]
71637
71638         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
71639         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
71640         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
71641         obsolete NLIST_NAME_UNION.
71642         [__GNU__]: Undef BSD and FSCALE.
71643         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
71644
71645 2003-08-03  Paul Eggert  <eggert@twinsun.com>
71646
71647         * lib/stdbool_.h (_Bool): Make it signed char, instead of
71648         an enum type, so that it's guaranteed to promote to int.  See:
71649         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
71650
71651 2003-08-03  Karl Berry  <karl@gnu.org>
71652
71653         * config/depcomp: update from automake.
71654
71655 2003-07-31  Paul Eggert  <eggert@twinsun.com>
71656
71657         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
71658         (strerror): Don't assume that a printable int fits in 14 bytes.
71659
71660 2003-07-31  Bruno Haible  <bruno@clisp.org>
71661
71662         * modules/getpass-gnu: New file.
71663         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
71664
71665 2003-07-31  Bruno Haible  <bruno@clisp.org>
71666
71667         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
71668
71669 2003-07-24  Karl Berry  <karl@gnu.org>
71670
71671         * config/missing: update from automake.
71672
71673 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
71674             Bruno Haible  <bruno@clisp.org>
71675
71676         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
71677         * lib/getline.c (getline, getdelim): Likewise.
71678         Remove _GNU_SOURCE define; now it's defined in config.h through
71679         m4/getline.m4.
71680
71681 2003-07-23  Karl Berry  <karl@gnu.org>
71682
71683         * config/config.sub: update from prep.
71684
71685 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71686
71687         * modules/xalloc (Depends-on): Add exitfail.
71688         * modules/xmemcoll: Likewise.
71689
71690 2003-07-22  Paul Eggert  <eggert@twinsun.com>
71691
71692         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
71693         over-parenthesization in macros.
71694
71695         Sync with coreutils.
71696
71697         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
71698         required by C99.
71699
71700         Use `exit_failure' for xalloc and xmemcoll instead of their own
71701         private exit-failure variables.
71702         * lib/xalloc.h (xalloc_exit_failure): Remove.
71703         * lib/xmalloc.c: Likewise.  Include exitfail.h.
71704         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
71705         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
71706         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
71707         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
71708
71709 2003-07-20  Jim Meyering  <jim@meyering.net>
71710
71711         * modules/closeout (Depends-on): Add exitfail.
71712         Suggestion from Bruno Haible.
71713
71714 2003-07-19  Karl Berry  <karl@gnu.org>
71715
71716         * config/config.sub: update from prep.
71717
71718 2003-07-18  Paul Eggert  <eggert@twinsun.com>
71719
71720         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
71721         Remove.
71722         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
71723         to test that it can stand by itself.  Include "exitfail.h".
71724         Clients should set exit_failure instead.
71725         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
71726
71727 2003-07-18  Bruno Haible  <bruno@clisp.org>
71728
71729         * modules/getndelim2: New file.
71730         * modules/getline: Share files with module getndelim2.
71731         * modules/getnline: Depend on getndelim2 instead of sharing files with
71732         it. Add getnline.c to lib_SOURCES.
71733         * MODULES.html.sh (func_all_modules): Add getndelim2.
71734
71735 2003-07-18  Bruno Haible  <bruno@clisp.org>
71736
71737         * m4/getndelim2.m4: New file.
71738         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
71739         invoke gl_PREREQ_GETNDELIM2.
71740         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
71741         gl_PREREQ_GETNDELIM2.
71742         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
71743         gl_GETNDELIM2.
71744
71745 2003-07-18  Bruno Haible  <bruno@clisp.org>
71746
71747         * lib/getndelim2.h: New file.
71748         * lib/getndelim2.c: Make into a module of its own. Include config.h,
71749         getndelim2.h.
71750         (getndelim2): Make non-static. Change return type to ssize_t.
71751         * lib/getline.h: Change argument names.
71752         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
71753         * lib/getnline.c: Include getndelim2.h.
71754
71755 2003-07-18  Andreas Schwab  <schwab@suse.de>
71756
71757         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
71758
71759 2003-07-17  Karl Berry  <karl@gnu.org>
71760
71761         * config/config.sub: update from prep.
71762
71763 2003-07-17  Bruno Haible  <bruno@clisp.org>
71764
71765         * modules/getnline: New file.
71766         * modules/getline: Add lib/getndelim2.c to source file list.
71767         * MODULES.html.sh (func_all_modules): Add getnline.
71768
71769 2003-07-17  Bruno Haible  <bruno@clisp.org>
71770
71771         * m4/getnline.m4: New file.
71772
71773 2003-07-17  Bruno Haible  <bruno@clisp.org>
71774
71775         * m4/Makefile.am.in: Remove file.
71776         * m4/Makefile.am: Remove file.
71777         * m4/Makefile.in: Remove file.
71778
71779 2003-07-17  Bruno Haible  <bruno@clisp.org>
71780
71781         * lib/getnline.h: New file.
71782         * lib/getnline.c: New file.
71783         * lib/getndelim2.c: New file, extracted from getline.c.
71784         (getndelim2): Renamed from getdelim2, with added nmax argument.
71785         * lib/getline.c: Include getndelim2.c.
71786         (getdelim2): Moved out to getndelim2.c.
71787         (getline, getdelim): Update.
71788
71789 2003-07-17  Bruno Haible  <bruno@clisp.org>
71790
71791         * lib/Makefile.am: Remove file.
71792         * lib/Makefile.in: Remove file.
71793
71794 2003-07-17  Bruno Haible  <bruno@clisp.org>
71795
71796         * configure.in: Remove file.
71797         * Makefile.in: Remove file.
71798
71799 2003-07-17  Bruno Haible  <bruno@clisp.org>
71800
71801         * MODULES.html.sh: Put the </BODY> right before </HTML>.
71802
71803 2003-07-16  Karl Berry  <karl@gnu.org>
71804
71805         * config/srclist-update: was running fixlicense twice, which caused
71806                 texinfo.tex to be nullified for some reason.  Simplify,
71807                 $gplsrc is no longer needed as far as I can see?
71808
71809 2003-07-16  Jim Meyering  <jim@meyering.net>
71810
71811         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
71812
71813 2003-07-15  Paul Eggert  <eggert@twinsun.com>
71814
71815         * config/srclist.txt: Get the following files from gettext-runtime/intl
71816         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
71817         ref-del.sin.  From Bruno Haible.
71818         * config/srclist-update (fixfile): Change grep pattern again, since the
71819         previous fix didn't work (there was another trailing $).  Use
71820         '[$]' to escape the $s.
71821
71822 2003-07-15  Karl Berry  <karl@gnu.org>
71823
71824         * lib/vasnprintf.c: update from gettext.
71825
71826 2003-07-15  Karl Berry  <karl@gnu.org>
71827
71828         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
71829         gets expanded when surrounded by '$'.
71830
71831 2003-07-15  Jim Meyering  <jim@meyering.net>
71832
71833         * modules/save-cwd: Don't depend on error.  From Derek Price.
71834
71835 2003-07-15  Jim Meyering  <jim@meyering.net>
71836
71837         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
71838
71839 2003-07-14  Simon Josefsson  <jas@extundo.com>
71840
71841         * modules/mempcpy: New file.
71842         * MODULES.html.sh (func_all_modules): Add mempcpy.
71843
71844 2003-07-14  Simon Josefsson  <jas@extundo.com>
71845
71846         * m4/mempcpy.m4: New file.
71847
71848 2003-07-14  Simon Josefsson  <jas@extundo.com>
71849
71850         * lib/mempcpy.h: New file.
71851         * lib/mempcpy.c: New file.
71852
71853 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71854
71855         * modules/getdate, modules/posixtm: Depend on mktime.
71856
71857 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71858
71859         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
71860         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
71861         unicodeio.c, unicodeio.h, unlocked-io.h:
71862         Switch from LGPL to GPL.
71863
71864 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71865
71866         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
71867         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
71868         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
71869         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
71870         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
71871         updated automatically by ../config/srclist-update.  This changes
71872         their license from LPGL to GPL.
71873
71874 2003-07-14  Paul Eggert  <eggert@twinsun.com>
71875
71876         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
71877         assumed to refer to the root of the most recent stable gettext version.
71878         * config/srclistvars.sh: Add defaults for eggert.
71879         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
71880         Match "This program" as well as "The program".  This is needed
71881         for gettext.
71882
71883 2003-07-14  Jim Meyering  <jim@meyering.net>
71884
71885         Don't emit diagnostics.  Let callers do that.
71886         * lib/save-cwd.c: Don't include "error.h".
71887         (save_cwd): Don't call error.  Ensure that errno is valid
71888         when returning nonzero.
71889
71890         * lib/save-cwd.h (restore_cwd): Update prototype.
71891         * lib/save-cwd.c (restore_cwd): Remove two parameters.
71892         Simplify.  Don't call error upon failure.  Let callers do that.
71893         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
71894         when auditing is enabled.  But don't bother updating the #if.
71895
71896 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
71897
71898         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
71899         it breaks C++ compilation.
71900         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
71901
71902 2003-07-10  Simon Josefsson  <jas@extundo.com>
71903
71904         * modules/strchrnul (Makefile.am): Add strchrnul.h.
71905
71906 2003-07-10  Jim Meyering  <jim@meyering.net>
71907
71908         * m4/clock_time.m4: Remove trailing blank.
71909         * m4/intmax_t.m4: Likewise.
71910
71911 2003-07-10  Jim Meyering  <jim@meyering.net>
71912
71913         * lib/vasnprintf.c: Remove trailing blanks.
71914         Make cpp indentation consistent.
71915
71916 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71917
71918         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
71919         posixver.c, strftime.c, strnlen.c, strverscmp.c:
71920         Switch from LGPL to GPL.
71921
71922 2003-07-09  Paul Eggert  <eggert@twinsun.com>
71923
71924         * config/srclist.txt: Sort sublists.  Add
71925         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
71926         that differ from gnulib for one reason or another; we'd like this list
71927         to be smaller but for now let's document what we have.
71928
71929 2003-07-08  Paul Eggert  <eggert@twinsun.com>
71930
71931         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
71932         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
71933         and sweeter "eval x=$x".
71934         * config/srclist.txt: Get lib/argp* from glibc.
71935
71936 2003-07-07  Paul Eggert  <eggert@twinsun.com>
71937
71938         * lib/mktime.c: Fix some boundary cases and remove need for floating
71939         point.
71940
71941         Issue a compile-time diagnostic if time_t is floating point, or if
71942         two's complement arithmetic is not in effect, or if arithmetic
71943         right shift does not propagate the sign.  These assumptions were
71944         all in the original code but they weren't checked.
71945
71946         (TIME_T_MIDPOINT, verify): New macros.
71947         (__isleap): Remove; it has integer overflow problems.
71948         (leapyear): New function, without those problems.
71949         (ydhms_tm_diff): Remove; splitting into two parts.
71950         (ydhms_diff): New function, containing the arithmetic part of
71951         the old ydhms_tm_diff function.  Issue a compile-time
71952         diagnostic if we are not using C99 integer division.
71953         Avoid casts when possible.
71954         (guess_time_tm): New function, containing the checking part of
71955         the old ydhms_tm_diff function.  Return the new value, rather than
71956         the difference between it and the old.  Accept a new argument T
71957         so that *T specifies the old value.  Check for overflow in the result.
71958
71959         (__mktime_internal): Use a time_t offset, not a long int offset.
71960         This undoes the 2003-06-04 change, which is no longer needed now
71961         that we have better overflow checking.
71962         (localtime_offset): Likewise.
71963
71964         (__mktime_internal): Avoid harmful overflow on hosts where time_t
71965         and long are 64-bit but int is only 32-bit.
71966         (ydhms_diff): Use long int to store year1 and yday1.
71967         Issue a compile-time diagnostic if long int is not wide enough.
71968
71969         (__mktime_internal): Use long int to store adjusted year and yday.
71970         Use plain C rather than preprocessor commands, if that doesn't
71971         affect efficiency.
71972         Check for overflow (and try to repair) after each probe
71973         rather than checking only at the very end.  This avoids some bugs
71974         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
71975         does not equal GMT offset at maximum time).
71976         Use integer to check for overflow rather than floating point; this
71977         is more portable to non-IEEE hosts, and is a tad faster.
71978         When we detect that we are oscillating between two values,
71979         don't check whether tm_isdst has the requested value, since
71980         we already know the answer.  When tm_isdst has the wrong value,
71981         use a different heuristic to find the right one, based on the
71982         extreme values actually observed in practice in tz2003a,
71983         rather than the (overly optimistic) "previous 3 calendar quarters".
71984
71985         (not_equal_tm, print_tm, check_result): Use "const T" rather than
71986         "T const" to accommodate glibc style.
71987         (check_result): Use less-confusing report format.  "long" -> "long int.
71988         (main): Likewise.
71989         Don't loop if the iteration overflows time_t.
71990         Allow a negative step in the iteration.
71991
71992 2003-07-06  Karl Berry  <karl@gnu.org>
71993
71994         * config/depcomp: update from automake.
71995         * config/config.sub: update from prep.
71996
71997 2003-07-03  Karl Berry  <karl@gnu.org>
71998
71999         * config/config.guess: update from prep.
72000
72001 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72002
72003         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
72004         xreadlink.c now includes it unconditionally.
72005
72006 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72007
72008         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
72009         having it depend on HAVE_SYS_TYPES_H.
72010
72011 2003-07-01  Bruno Haible  <bruno@clisp.org>
72012
72013         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
72014         <sys/types.h> should be sufficient.
72015         Reported by Paul Eggert.
72016
72017 2003-06-26  Karl Berry  <karl@gnu.org>
72018
72019         * config/depcomp: update from automake.
72020
72021 2003-06-26  Bruno Haible  <bruno@clisp.org>
72022
72023         * modules/human: Depend on module stdbool.
72024
72025 2003-06-25  Bruno Haible  <bruno@clisp.org>
72026
72027         * modules/readlink: New file.
72028         * modules/xreadlink: Depend on it.
72029         * MODULES.html.sh (func_all_modules): Add readlink.
72030
72031 2003-06-25  Bruno Haible  <bruno@clisp.org>
72032
72033         * m4/readlink.m4: New file.
72034
72035 2003-06-25  Bruno Haible  <bruno@clisp.org>
72036
72037         * lib/readlink.c: New file.
72038
72039 2003-06-22  Karl Berry  <karl@gnu.org>
72040
72041         * config/srclist.txt: update mkinstalldirs from automake.
72042         * config/mkinstalldirs: update.
72043
72044 2003-06-22  Bruno Haible  <bruno@clisp.org>
72045
72046         Portability to mingw32.
72047         * m4/ssize_t.m4: New file, from GNU gettext.
72048         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
72049         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
72050
72051 2003-06-22  Bruno Haible  <bruno@clisp.org>
72052
72053         * modules/safe-read: Add m4/ssize_t.m4.
72054         * modules/xreadlink: Add m4/ssize_t.m4.
72055
72056 2003-06-20  Bruno Haible  <bruno@clisp.org>
72057
72058         Assume C89, so PARAMS isn't needed.
72059         * lib/unicodeio.h (PARAMS): Remove.
72060         * lib/unicodeio.c: Don't use PARAMS.
72061
72062 2003-06-18  Karl Berry  <karl@gnu.org>
72063
72064         * config/config.{guess,sub}: update from prep.
72065
72066 2003-06-18  Jim Meyering  <jim@meyering.net>
72067
72068         Merge changes from coreutils.
72069         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
72070         Remove explicit declarations of xmalloc and realloc.
72071         Include xalloc.h.
72072         (read_utmp): Remove anachronistic cast of xmalloc.
72073
72074 2003-06-17  Paul Eggert  <eggert@twinsun.com>
72075
72076         Assume C89, so PARAMS isn't needed.
72077         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
72078         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
72079         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
72080         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
72081         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
72082         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
72083         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
72084         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
72085         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
72086         lib/xstrtod.h, lib/xstrtol.h: Likewise.
72087         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
72088         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
72089         no longer needed. Anyway, config.h should always be included before any
72090         other file.
72091
72092 2003-06-11  Simon Josefsson  <jas@extundo.com>
72093
72094         * modules/sysexits: New file.
72095         * MODULES.html.sh (func_all_modules): Add sysexits.
72096
72097 2003-06-11  Simon Josefsson  <jas@extundo.com>
72098
72099         * lib/sysexit_.h: New file.
72100
72101 2003-06-11  Derek Price  <derek@ximbiot.com>
72102
72103         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
72104         necessary.
72105
72106 2003-06-11  Bruno Haible  <bruno@clisp.org>
72107
72108         * m4/sysexits.m4: New file.
72109
72110 2003-06-10  Simon Josefsson  <jas@extundo.com>
72111
72112         * lib/argp.h: New file, from glibc.
72113         * lib/argp-ba.c: New file, from glibc.
72114         * lib/argp-eexst.c: New file, from glibc.
72115         * lib/argp-fmtstream.c: New file, from glibc.
72116         * lib/argp-fmtstream.h: New file, from glibc.
72117         * lib/argp-fs-xinl.c: New file, from glibc.
72118         * lib/argp-help.c: New file, from glibc.
72119         * lib/argp-namefrob.h: New file, from glibc.
72120         * lib/argp-parse.c: New file, from glibc.
72121         * lib/argp-pv.c: New file, from glibc.
72122         * lib/argp-pvh.c: New file, from glibc.
72123         * lib/argp-xinl.c: New file, from glibc.
72124
72125 2003-06-10  Simon Josefsson  <jas@extundo.com>
72126
72127         * modules/strchrnul: New file.
72128
72129 2003-06-10  Simon Josefsson  <jas@extundo.com>
72130
72131         * modules/argp: New file.
72132
72133 2003-06-10  Simon Josefsson  <jas@extundo.com>
72134
72135         * m4/strchrnul.m4: New file.
72136
72137 2003-06-10  Simon Josefsson  <jas@extundo.com>
72138
72139         * lib/strchrnul.h: New file.
72140         * lib/strchrnul.c: New file.
72141
72142 2003-06-10  Bruno Haible  <bruno@clisp.org>
72143
72144         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
72145
72146 2003-06-07  Karl Berry  <karl@gnu.org>
72147
72148         * config/config.{guess,sub}: update from prep.
72149
72150 2003-06-07  Jim Meyering  <jim@meyering.net>
72151
72152         * modules/strtod: Use $(...) notation, not @...@ for
72153         AC_REPLACE'd variables.
72154         * modules/localcharset: Likewise.
72155
72156 2003-06-07  Jim Meyering  <jim@meyering.net>
72157
72158         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72159         in place of my name in the copyright comment.
72160         Remove definition and uses of __P.
72161
72162         From coreutils.
72163         * lib/stat.c: Don't declare xmalloc explicitly.
72164         Instead, include "xalloc.h".
72165         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72166         xrealloc, and xcalloc return values.
72167         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72168         Improve comment.
72169         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72170
72171 2003-06-07  Bruno Haible  <bruno@clisp.org>
72172
72173         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72174         avoid AC_CONFIG_LINKS.
72175         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72176         fnmatch.h, to avoid AC_CONFIG_LINKS.
72177         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72178
72179 2003-06-07  Bruno Haible  <bruno@clisp.org>
72180
72181         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72182         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72183         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72184         directory.
72185         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72186         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72187         directory.
72188
72189 2003-06-06  Jim Meyering  <jim@meyering.net>
72190
72191         Merge from coreutils.
72192         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72193         Consolidate declarations and initializations of *_base* locals.
72194
72195         Merge from coreutils.
72196         This avoids a core dump on systems without GNU putenv,
72197         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72198         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72199         (unsetenv): New static function, from GNU libc.
72200         (rpl_putenv): Use it.
72201
72202         * lib/modechange.c: Remove trailing blanks.
72203
72204         Merge from coreutils.
72205         * lib/fsusage.c: Remove declaration of statfs.
72206         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72207
72208         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72209
72210 2003-06-06  Jim Meyering  <jim@meyering.net>
72211
72212         * lib/stdbool_.h: Renamed from stdbool.h.in.
72213
72214 2003-06-06  Jim Meyering  <jim@meyering.net>
72215             Bruno Haible  <bruno@clisp.org>
72216
72217         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72218         Adjust Makefile.am snippet not to redirect directly to target.
72219         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72220
72221 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72222
72223         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72224         mismatch, look in future quarters as well as past.  This fixes a
72225         bug when processing fall-backwards gaps immediately after a long
72226         period of daylight-saving time.
72227
72228         * lib/mktime.c: Assume freestanding C89 or better.
72229         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72230         (__P): Remove; not used.
72231         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72232         (mktime, not_equal_tm, print_tm, check_result,
72233         main): Use prototypes.  Use const * where appropriate.
72234         (main): Fix typo in testing code that uncovered by above changes.
72235         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72236
72237 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72238
72239         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72240         locale.h, localeconv.  This merges changes from coreutils.
72241
72242         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72243         It can be removed after the next Autoconf is released.
72244         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72245         needed.
72246
72247 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72248
72249         * lib/mktime.c: Fix Debian bug 177940
72250         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72251         (localtime_offset): Now long int, not time_t, because we want it
72252         to be guaranteed to be signed.  All uses changed.
72253         (__mktime_internal): If overflow would occur when adding offset,
72254         don't add it.
72255
72256         Merge 'human' changes from coreutils.  Rewrite to support
72257         locale-specific notations like thousands separators.
72258         * lib/human.c: Simplify authorship notice.
72259         Include human.h immediately after config.h.
72260         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72261         <limits.h>: Do not include, since human.h does.
72262         (SIZE_MAX, UINTMAX_MAX): New macros.
72263         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72264         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72265         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72266         (power_letter): Renamed from suffixes.
72267         (generate_suffix_backwards): Remove.
72268         (adjust_value): Now takes int style (because of human.h changes)
72269         and long double value (for greater precision on some platforms).
72270         (group_number): New function.
72271         (human_readable): Use it.  Use integer options, not enum.
72272         Put the options before the sizes in the arg list.
72273         Support all the new options.
72274         The old human_readable function has been removed;
72275         use inttostr.h instead.
72276         (human_readable, default_block_size, humblock):
72277         Use uintmax_t, not int, for block sizes.
72278         (human_readable_inexact, block_size_types): Remove.
72279         (block_size_opts): New constant.
72280         (human_options): Renamed from human_block_size, with new signature
72281         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72282         * lib/human.h: Add copyright and authorship notice.
72283         Include <limits.h> and <stdbool.h> unconditionally.
72284         (PARAMS): Remove.  All uses removed.
72285         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72286         (enum human_inexact_style): Remove tag; now a nameless enum.
72287         (human_floor, human_ceiling, human_round_to_even): Now have
72288         values 2, 0, 1 rather than -1, 1, 0.
72289         (human_group_digits, human_suppress_point_zero, human_autoscale,
72290         human_base_1024, human_SI, human_B): New constants.
72291         (human_readable_inexact, human_block_size): Remove.
72292         (human_readable): Size args are now uintmax_t, not int.
72293         (human_options): New decl.
72294
72295         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72296         unnecessary now that we assume C89 or better.  This change
72297         imported from coreutils.
72298
72299         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72300         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72301         in the 2003-05-30 sync from glibc.
72302
72303         .h files should stand alone, but we shouldn't include <sys/types.h>
72304         if we can get away with just <stddef.h>.
72305
72306         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72307         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72308         rather than <sys/types.h>, as we merely need size_t.
72309         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72310         to get size_t.
72311         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72312         Include <stdio.h>, to get FILE.
72313         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72314         memcasecmp.h has included <stddef.h> and all we need is size_t.
72315         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72316         our interface, instead of including <sys/types.h>
72317
72318 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72319
72320         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72321         now, as glibc mktime is buggy on non-glibc systems.
72322
72323 2003-06-03  Karl Berry  <karl@gnu.org>
72324
72325         * config/config.sub: update from prep.
72326
72327 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72328
72329         [from coreutils]
72330         Fix some minor time-related bugs with POSIX time arguments.
72331         Some valid time stamps were being rejected (notably -1, and
72332         time stamps before 1900 on 64-bit hosts).  And some invalid
72333         time stamps were being accepted, e.g. September 31.
72334
72335         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72336         that we can return (time_t) -1 successfully.
72337         * lib/posixtm.c: Likewise.
72338         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72339         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72340         (t): Remove static var.
72341         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72342         of static var.  All uses changed.
72343         (year): Do not reject years before 1900; they can occur with
72344         64-bit time_t.
72345         (posix_time_parse): Do not check for out-of-range components;
72346         that is now the caller's responsibility, since our checks were
72347         only approximations.
72348         (posixtime): Use mktime to check for out-of-range components,
72349         since it knows them exactly.
72350         If mktime returns (time_t) -1, check whether an error actually occurred
72351         by invoking localtime on -1.
72352         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72353         posixtime failures better.
72354         Improve the test data (in comments only).
72355
72356 2003-06-02  Karl Berry  <karl@gnu.org>
72357
72358         * config/mkinstalldirs (version): new variable.
72359         (--version): new option.
72360         (usage): improve message.
72361
72362 2003-05-30  Karl Berry  <karl@gnu.org>
72363
72364         * lib/mktime.c: update from libc.
72365
72366 2003-05-30  Bruno Haible  <bruno@clisp.org>
72367
72368         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72369         * config/config.rpath: Upgrade to gettext-0.12.1.
72370
72371 2003-05-30  Bruno Haible  <bruno@clisp.org>
72372
72373         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72374         * m4/nls.m4: New file, from gettext-0.12.1.
72375         * m4/po.m4: New file, from gettext-0.12.1.
72376         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72377
72378 2003-05-30  Bruno Haible  <bruno@clisp.org>
72379
72380         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72381         * lib/localcharset.h: Likewise.
72382         * lib/localcharset.c: Likewise.
72383
72384 2003-05-29  Karl Berry  <karl@gnu.org>
72385
72386         * config/config.rpath: update from gettext.
72387
72388 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72389
72390         Assume the headers required for C89 freestanding compilers.
72391         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72392         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72393         * m4/human.m4 (gl_HUMAN): Likewise.
72394         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72395         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72396         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72397         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72398         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72399         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72400
72401 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72402
72403         Assume the headers required for C89 freestanding compilers.
72404         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72405         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72406         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72407         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72408         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72409         define, since <limits.h> is guaranteed to do that.
72410         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72411         * lib/exclude.c: Include <stdbool.h> unconditionally.
72412         * lib/tempname.c: Include <stddef.h> unconditionally.
72413         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72414         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72415         <stddef.h> does that.
72416         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72417         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72418         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72419         needed.
72420         * lib/xstrtol.c: Likewise.
72421         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72422         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72423
72424         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72425         warnings on some platforms.
72426
72427         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72428         arbitrarily.
72429
72430 2003-05-26  Jim Meyering  <jim@meyering.net>
72431
72432         Merge in a change from coreutils:
72433         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72434         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72435         that condition, rather than `-1' which is slightly misleading.
72436         Change the name of the cache variable to have the gl_ prefix.
72437         Prompted by a patch from Richard Dawe for DJGPP.
72438
72439 2003-05-24  Karl Berry  <karl@gnu.org>
72440
72441         * config/config.guess: update from prep.
72442
72443 2003-05-22  Karl Berry  <karl@gnu.org>
72444
72445         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72446
72447 2003-05-20  Karl Berry  <karl@gnu.org>
72448
72449         * config/config.guess: update from prep.
72450
72451 2003-05-18  Karl Berry  <karl@gnu.org>
72452
72453         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72454         might actually be set by the user.
72455
72456         * config/depcomp, install-sh, mdate-sh: update from automake.
72457
72458 2003-05-17  Bruno Haible  <bruno@clisp.org>
72459
72460         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72461         invalid expansion for AC_EGREP_CPP.
72462         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72463         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72464         Suggested by Akim Demaille <akim@epita.fr> in
72465         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72466
72467 2003-05-12  Jim Meyering  <jim@meyering.net>
72468
72469         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72470         the space-padded-by-default conversion specifiers, %e, %k, %l.
72471
72472 2003-05-12  Bruno Haible  <bruno@clisp.org>
72473
72474         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72475         the string is longer than 4 KB.
72476
72477 2003-05-11  Karl Berry  <karl@gnu.org>
72478
72479         * config/config.{guess,sub}: update from prep.
72480
72481 2003-05-09  Bruno Haible  <bruno@clisp.org>
72482
72483         * modules/error: Add m4/strerror_r.m4 to file list.
72484
72485 2003-05-03  Bruno Haible  <bruno@clisp.org>
72486
72487         Upgrade to Unicode-4.0.
72488         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72489         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72490         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72491         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72492         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72493         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72494         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72495         Change width of U+E0100..U+E01EF from 1 to 0.
72496
72497 2003-04-25  Jim Meyering  <jim@meyering.net>
72498
72499         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72500         of type size_t, not int.
72501
72502 2003-04-25  Bruno Haible  <bruno@clisp.org>
72503
72504         * lib/copy-file.c: Include <stddef.h>, for size_t.
72505
72506 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72507
72508         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72509         code which expansion is under static control.  Patch imported from
72510         Akim Demaille's patch to Bison; see
72511         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72512
72513 2003-04-14  Bruno Haible  <bruno@clisp.org>
72514
72515         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72516
72517 2003-04-11  Jim Meyering  <jim@meyering.net>
72518
72519         Merge changes from Coreutils.
72520
72521         2003-03-22  Jim Meyering  <jim@meyering.net>
72522
72523         * lib/strftime.c (widen): Cast alloca return value to proper type.
72524
72525         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72526
72527         From GNU libc.
72528         * lib/strftime.c (my_strftime): Handle very large width
72529         specifications for numeric values correctly.  Improve checks for
72530         overflow.
72531
72532         2003-01-19  Jim Meyering  <jim@meyering.net>
72533
72534         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72535         definitions.
72536         (nl_get_alt_digit) [! defined my_strftime]: Define.
72537         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72538         _nl_get_alt_digit and _nl_get_walt_digit.
72539
72540         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72541         libc. These changes have no effect outside of _LIBC.
72542
72543 2003-04-10  Bruno Haible  <bruno@clisp.org>
72544
72545         * modules/findprog: New file.
72546         * MODULES.html.sh (func_all_modules): Add it.
72547
72548 2003-04-10  Bruno Haible  <bruno@clisp.org>
72549
72550         * m4/findprog.m4: New file.
72551         * m4/eaccess.m4: New file.
72552
72553 2003-04-10  Bruno Haible  <bruno@clisp.org>
72554
72555         * lib/findprog.h: New file, from GNU gettext.
72556         * lib/findprog.c: New file, from GNU gettext.
72557
72558 2003-04-05  Jim Meyering  <jim@meyering.net>
72559
72560         Merge changes from Coreutils.
72561
72562         * lib/exclude.h (PARAMS): Remove definition and uses.
72563         * lib/exclude.c: Remove uses of `PARAMS'.
72564
72565         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72566         Add test-cases for DOS filenames. Declare program_name.
72567         (main): Set up program_name.  Patch by Rich Dawe.
72568
72569         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72570         error from mntctl.
72571         Use mntctl's return value to drive the entry-processing loop, since
72572         we can't rely on the value of the vmt_length member in the last
72573         entry.  On some systems doing so could result in exhausting
72574         virtual memory.  Based in part on a patch from Mike Jetzer.
72575
72576 2003-04-04  Bruno Haible  <bruno@clisp.org>
72577
72578         * modules/linebreak: New file.
72579         * MODULES.html.sh (func_all_modules): Add it.
72580
72581 2003-04-04  Bruno Haible  <bruno@clisp.org>
72582
72583         * m4/linebreak.m4: New file.
72584
72585 2003-04-04  Bruno Haible  <bruno@clisp.org>
72586
72587         * lib/linebreak.h: New file, from GNU gettext.
72588         * lib/linebreak.c: New file, from GNU gettext with slight
72589         modifications.
72590         * lib/lbrkprop.h: New file, from GNU gettext.
72591
72592 2003-04-03  Bruno Haible  <bruno@clisp.org>
72593
72594         * modules/utf8-ucs4: New file.
72595         * modules/utf16-ucs4: New file.
72596         * modules/ucs4-utf8: New file.
72597         * modules/ucs4-utf16: New file.
72598         * MODULES.html.sh (func_all_modules): Add them.
72599
72600 2003-04-03  Bruno Haible  <bruno@clisp.org>
72601
72602         * m4/utf-ucs4.m4: New file.
72603         * m4/ucs4-utf.m4: New file.
72604
72605 2003-04-03  Bruno Haible  <bruno@clisp.org>
72606
72607         * lib/utf8-ucs4.h: New file, from GNU gettext.
72608         * lib/utf16-ucs4.h: New file, from GNU gettext.
72609         * lib/ucs4-utf8.h: New file, from GNU gettext.
72610         * lib/ucs4-utf16.h: New file, from GNU gettext.
72611
72612 2003-04-02  Bruno Haible  <bruno@clisp.org>
72613
72614         * modules/binary-io: New file.
72615         * MODULES.html.sh (func_all_modules): Add it.
72616
72617 2003-04-02  Bruno Haible  <bruno@clisp.org>
72618
72619         * lib/binary-io.h: New file, from GNU gettext.
72620
72621 2003-04-01  Bruno Haible  <bruno@clisp.org>
72622
72623         * modules/pathname: New file.
72624         * MODULES.html.sh (func_all_modules): Add it.
72625
72626 2003-04-01  Bruno Haible  <bruno@clisp.org>
72627
72628         * lib/pathname.h: New file, from GNU gettext.
72629         * lib/concatpath.c: New file, from GNU gettext.
72630
72631 2003-03-30  Bruno Haible  <bruno@clisp.org>
72632
72633         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
72634
72635 2003-03-30  Bruno Haible  <bruno@clisp.org>
72636
72637         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
72638         function chown() doesn't exist.
72639
72640 2003-03-28  Bruno Haible  <bruno@clisp.org>
72641
72642         * modules/copy-file: New file.
72643         * MODULES.html.sh (func_all_modules): Add it.
72644
72645 2003-03-28  Bruno Haible  <bruno@clisp.org>
72646
72647         * m4/copy-file.m4: New file.
72648
72649 2003-03-28  Bruno Haible  <bruno@clisp.org>
72650
72651         * lib/copy-file.h: New file, from GNU gettext.
72652         * lib/copy-file.c: New file, from GNU gettext.
72653
72654 2003-03-18  Jim Meyering  <jim@meyering.net>
72655
72656         * lib/quote.c (quote_n): Fix typo in comment.
72657
72658 2003-03-18  Bruno Haible  <bruno@clisp.org>
72659
72660         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
72661         checking.
72662         * m4/onceonly_2_57.m4: Likewise.
72663
72664 2003-03-17  Bruno Haible  <bruno@clisp.org>
72665
72666         * m4/onceonly.m4: Require autoconf 2.54 or newer.
72667         (m4_quote): Remove macro.
72668         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
72669
72670 2003-03-14  Jim Meyering  <jim@meyering.net>
72671
72672         Merge changes from Coreutils.
72673         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
72674         to be const, in order to avoid warnings.
72675         (obstack_room): Likewise.
72676         (obstack_empty_p): Likewise.
72677
72678 2003-03-14  Bruno Haible  <bruno@clisp.org>
72679
72680         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
72681         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
72682
72683 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72684
72685         Merge changes from Bison.
72686         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
72687         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
72688         when compiling Bison 1.875's `bitset bset = obstack_alloc
72689         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
72690         * lib/hash.c: Include <stdbool.h> unconditionally.
72691
72692 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72693
72694         * m4/onceonly.m4 (m4_quote): New macro.
72695         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
72696         Quote AC_FOREACH variable-expansions properly.
72697
72698 2003-03-13  Paul Eggert  <eggert@twinsun.com>
72699
72700         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
72701
72702 2003-03-09  Paul Eggert  <eggert@twinsun.com>
72703
72704         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
72705         Reported by Bruce Becker; see:
72706         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
72707
72708 2003-03-03  Paul Eggert  <eggert@twinsun.com>
72709             Bruno Haible  <bruno@clisp.org>
72710
72711         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
72712         Reported by John Hughes, see
72713         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
72714
72715 2003-02-20  Bruno Haible  <bruno@clisp.org>
72716
72717         * MODULES.html.sh (func_all_modules): Add poll.
72718
72719 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72720
72721         * modules/poll: New file.
72722
72723 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72724
72725         * lib/poll_.h: New file.
72726         * lib/poll.c: New file.
72727
72728 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
72729
72730         * m4/poll.m4: New file.
72731
72732 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72733
72734         * modules/mathl: New file.
72735
72736 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72737
72738         * lib/mathl.h: New file.
72739         * lib/acosl.c: New file.
72740         * lib/asinl.c: New file.
72741         * lib/atanl.c: New file.
72742         * lib/ceill.c: New file.
72743         * lib/cosl.c: New file.
72744         * lib/expl.c: New file.
72745         * lib/floorl.c: New file.
72746         * lib/frexpl.c: New file.
72747         * lib/ldexpl.c: New file.
72748         * lib/logl.c: New file.
72749         * lib/sincosl.c: New file.
72750         * lib/sinl.c: New file.
72751         * lib/sqrtl.c: New file.
72752         * lib/tanl.c: New file.
72753         * lib/trigl.c: New file.
72754         * lib/trigl.h: New file.
72755
72756 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
72757
72758         * m4/mathl.m4: New file.
72759
72760 2003-02-18  Bruno Haible  <bruno@clisp.org>
72761
72762         * MODULES.html.sh (func_all_modules): Add mathl.
72763
72764 2003-02-17  Bruno Haible  <bruno@clisp.org>
72765
72766         * modules/mkdtemp: New module.
72767         * MODULES.html.sh (func_all_modules): Add it.
72768
72769 2003-02-17  Bruno Haible  <bruno@clisp.org>
72770
72771         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
72772
72773 2003-02-17  Bruno Haible  <bruno@clisp.org>
72774
72775         * lib/mkdtemp.h: New file, from GNU gettext.
72776         * lib/mkdtemp.c: New file, from GNU gettext.
72777
72778 2003-02-02  Jim Meyering  <jim@meyering.net>
72779
72780         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
72781         e.g. glibc-2.2.93.
72782
72783 2003-01-31  Bruno Haible  <bruno@clisp.org>
72784
72785         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
72786         'rpl_rename'.
72787         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
72788         'rpl_strnlen'.
72789         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
72790         'rpl_strtod'.
72791         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
72792         'rpl_utime'.
72793
72794 2003-01-31  Bruno Haible  <bruno@clisp.org>
72795
72796         * lib/rename.c: #undef rename before defining rpl_rename.
72797         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
72798
72799 2003-01-30  Bruno Haible  <bruno@clisp.org>
72800
72801         * modules/vasnprintf, modules/vasprintf: New modules.
72802         * MODULES.html.sh (func_all_modules): Add them.
72803
72804 2003-01-30  Bruno Haible  <bruno@clisp.org>
72805
72806         * m4/signed.m4: New file, from GNU gettext.
72807         * m4/longdouble.m4: New file, from GNU gettext.
72808         * m4/wchar_t.m4: New file, from GNU gettext.
72809         * m4/wint_t.m4: New file, from GNU gettext.
72810         * m4/vasnprintf.m4: New file.
72811         * m4/vasprintf.m4: New file.
72812
72813 2003-01-30  Bruno Haible  <bruno@clisp.org>
72814
72815         * lib/printf-args.h: New file, from GNU gettext.
72816         * lib/printf-args.c: New file, from GNU gettext.
72817         * lib/printf-parse.h: New file, from GNU gettext.
72818         * lib/printf-parse.c: New file, from GNU gettext.
72819         * lib/vasnprintf.h: New file, from GNU gettext.
72820         * lib/vasnprintf.c: New file, from GNU gettext.
72821         * lib/asnprintf.c: New file, from GNU gettext.
72822         * lib/vasprintf.h: New file, from GNU gettext with modifications.
72823         * lib/vasprintf.c: New file, from GNU gettext.
72824         * lib/asprintf.c: New file, from GNU gettext.
72825
72826 2003-01-29  Bruno Haible  <bruno@clisp.org>
72827
72828         * modules/stpncpy: New module.
72829         * MODULES.html.sh (func_all_modules): Add it.
72830
72831 2003-01-29  Bruno Haible  <bruno@clisp.org>
72832
72833         * m4/stpncpy.m4: New file.
72834
72835 2003-01-29  Bruno Haible  <bruno@clisp.org>
72836
72837         * lib/stpncpy.h: New file, from GNU gettext with modifications.
72838         * lib/stpncpy.c: New file, from GNU gettext with modifications.
72839
72840 2003-01-28  Bruno Haible  <bruno@clisp.org>
72841
72842         * modules/c-ctype: New module.
72843         * MODULES.html.sh (func_all_modules): Add it.
72844
72845 2003-01-28  Bruno Haible  <bruno@clisp.org>
72846
72847         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
72848         Paul Eggert.
72849         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
72850         Paul Eggert.
72851
72852 2003-01-27  Bruno Haible  <bruno@clisp.org>
72853
72854         * modules/xsetenv: New module.
72855         * MODULES.html.sh (func_all_modules): Add it.
72856
72857 2003-01-27  Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/xsetenv.h: New file, from GNU gettext.
72860         * lib/xsetenv.c: New file, from GNU gettext.
72861
72862 2003-01-23  Jim Meyering  <jim@meyering.net>
72863
72864         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
72865         from working on systems without dirfd (at least Irix and OSF1/Tru64).
72866
72867 2003-01-23  Bruno Haible  <bruno@clisp.org>
72868
72869         * modules/minmax: New module.
72870         * MODULES.html.sh (func_all_modules): Add it.
72871
72872 2003-01-23  Bruno Haible  <bruno@clisp.org>
72873
72874         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
72875         Eggert.
72876
72877 2003-01-22  Bruno Haible  <bruno@clisp.org>
72878
72879         * modules/exit: New module.
72880         * MODULES.html.sh (func_all_modules): Add it.
72881
72882 2003-01-22  Bruno Haible  <bruno@clisp.org>
72883
72884         * lib/exit.h: New file, from GNU gettext.
72885
72886 2003-01-19  Bruno Haible  <bruno@clisp.org>
72887
72888         * gnulib-tool: Recognize option --extract-maintainer.
72889         (func_get_maintainer): New function.
72890         * modules/*: Add Maintainer entry.
72891
72892 2003-01-16  Jim Meyering  <jim@meyering.net>
72893
72894         * m4/regex.m4: The `regex' struct is both input and output.
72895         Initialize it before each use.  Patch by Tim Waugh.
72896
72897 2003-01-16  Bruno Haible  <bruno@clisp.org>
72898
72899         * MODULES.html.sh: Add a table of contents. Add the module name as
72900         leftmost column. Add hyperlinks.
72901
72902 2003-01-15  Bruno Haible  <bruno@clisp.org>
72903
72904         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
72905
72906 2003-01-15  Bruno Haible  <bruno@clisp.org>
72907
72908         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
72909         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
72910         suffix.
72911
72912 2003-01-15  Bruno Haible  <bruno@clisp.org>
72913
72914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
72915
72916 2003-01-15  Bruno Haible  <bruno@clisp.org>
72917
72918         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
72919         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
72920
72921 2003-01-14  Jim Meyering  <jim@meyering.net>
72922
72923         * lib/same.c (same_name): Tweak a comment.
72924
72925 2003-01-14  Bruno Haible  <bruno@clisp.org>
72926
72927         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
72928         when a string comparison is sufficient.
72929
72930 2003-01-14  Bruno Haible  <bruno@clisp.org>
72931
72932         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
72933         'unsigned int'.
72934
72935 2003-01-14  Bruno Haible  <bruno@clisp.org>
72936
72937         * lib/hash-pjw.c: Add comment about low quality of this function.
72938
72939 2003-01-13  Bruno Haible  <bruno@clisp.org>
72940
72941         * modules/stpcpy: Distribute lib/stpcpy.h.
72942         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
72943
72944 2003-01-13  Bruno Haible  <bruno@clisp.org>
72945
72946         * modules/*: Add a description.
72947         * modules/strpbrk: Fix Makefile.am snippet.
72948         * modules/strtoimax: Fix dependencies.
72949         * modules/strtoumax: Likewise.
72950
72951 2003-01-13  Bruno Haible  <bruno@clisp.org>
72952
72953         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
72954         * modules/alloca (Makefile.am): All object files depend on alloca.h.
72955         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
72956
72957 2003-01-13  Bruno Haible  <bruno@clisp.org>
72958
72959         * gnulib-tool (func_create_testdir): Store config/* files in the main
72960         directory.
72961         * config.rpath: Move to ...
72962         * config/config.rpath: ... here.
72963         * modules/gettext: Contains config/config.rpath, not config.rpath.
72964         * modules/iconv: Likewise.
72965
72966 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72967
72968         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72969         to avoid collisions with libcurses and libreadline.
72970
72971         * m4/getstr.m4: Remove.
72972         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
72973
72974 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72975
72976         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72977         to avoid collisions with libcurses and libreadline.
72978
72979         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
72980         * lib/getstr.h, getstr.c: Remove.
72981         * lib/getline.c: Include "getline.h", to check interface.
72982         Move body of old getstr.c here: this defines MIN_CHUNK and
72983         declares getdelim2, which is renamed from getstr.
72984         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
72985
72986         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
72987         All uses changed.
72988         * lib/linebuffer.h: Likewise.
72989         (readline): Remove backward-compatibility macro.
72990
72991 2003-01-12  Paul Eggert  <eggert@twinsun.com>
72992
72993         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
72994         to avoid collisions with libcurses and libreadline.
72995         * getstr: Remove.
72996         * MODULES.html.sh: Remove getstr.
72997         * modules/getline: Depend on unlocked-io, not getstr.
72998
72999 2003-01-12  Jim Meyering  <jim@meyering.net>
73000
73001         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
73002
73003 2003-01-10  Bruno Haible  <bruno@clisp.org>
73004
73005         * modules/alloca: Change Makefile.am requirements. Simplify Include
73006         requirements. Add lib/alloca_.h to file list.
73007
73008 2003-01-10  Bruno Haible  <bruno@clisp.org>
73009
73010         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
73011
73012 2003-01-10  Bruno Haible  <bruno@clisp.org>
73013
73014         * lib/alloca_.h: New file.
73015         * lib/getdate.y: Unconditionally include alloca.h.
73016         * lib/makepath.c: Likewise.
73017         * lib/setenv.c: Likewise.
73018         * lib/userspec.c: Likewise.
73019
73020 2003-01-09  Karl Berry  <karl@gnu.org>
73021
73022         * MODULES.html.sh: include `dirname $0` in PATH, to find
73023         gnulib-tool.
73024
73025 2003-01-09  Bruno Haible  <bruno@clisp.org>
73026
73027         * modules/stdbool: Change configure.ac, Makefile.am requirements.
73028         Simplify Include requirements. Add lib/stdbool.h.in to file list.
73029
73030 2003-01-09  Bruno Haible  <bruno@clisp.org>
73031
73032         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
73033
73034 2003-01-09  Bruno Haible  <bruno@clisp.org>
73035
73036         * lib/stdbool.h.in: New file.
73037
73038 2003-01-09  Bruno Haible  <bruno@clisp.org>
73039
73040         * gnulib-tool (func_all_modules): Ignore files ending in ~.
73041         * MODULES.html.sh: Likewise.
73042
73043 2003-01-08  Jim Meyering  <jim@meyering.net>
73044
73045         * lib/full-write.c: Undefine and define-away `const' after inclusion
73046         of errno.h, not before.  Suggestion from Bruno Haible.
73047
73048 2003-01-08  Bruno Haible  <bruno@clisp.org>
73049
73050         * modules/full-read: Depend on full-write.
73051
73052 2003-01-08  Bruno Haible  <bruno@clisp.org>
73053
73054         * lib/safe-read.c: Include specification header first, to ensure its
73055         selfcontainedness.
73056         * lib/full-write.c: Likewise.
73057
73058 2003-01-07  Jim Meyering  <jim@meyering.net>
73059
73060         * lib/full-write.c: Rework so that it may serve to define full_read,
73061         too.
73062         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
73063
73064 2003-01-07  Bruno Haible  <bruno@clisp.org>
73065
73066         * lib/strtoimax.c: Include <stdint.h> as an alternative to
73067         <inttypes.h>.
73068         * lib/xstrtol.h: Likewise.
73069         * lib/xstrtoimax.c: Likewise.
73070         * lib/xstrtoumax.c: Likewise.
73071         * lib/human.h: Likewise.
73072
73073         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
73074         on systems that have <inttypes.h> but not <stdint.h>.
73075
73076 2003-01-07  Bruno Haible  <bruno@clisp.org>
73077
73078         * MODULES.html.sh: Add copyright notice.
73079         (missed_files): Omit CVS directory entries.
73080         (func_module): Make it work with sed-3.02.
73081         * MODULES.txt: Remove file.
73082
73083 2003-01-06  Jim Meyering  <jim@meyering.net>
73084
73085         * lib/version-etc.c: Update year in translatable copyright string.
73086
73087 2003-01-03  Karl Berry  <karl@gnu.org>
73088
73089         * config/config.{guess,sub}: update from prep.
73090
73091 2003-01-02  Karl Berry  <karl@gnu.org>
73092
73093         * doc/COPYING.DOC: belatedly updated to 1.2.
73094
73095 2003-01-01  Karl Berry  <karl@gnu.org>
73096
73097         * gnulib-tool (func_verify_module): report module name $module in
73098         error message, not $1.
73099         * gnulib-tool (create-testdir): don't complain if destdir couldn't
73100         be created, only if it doesn't exist.
73101         * gnulib-tool (last_checkin_date): don't expand the $Date here.
73102
73103 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73104
73105         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
73106
73107 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73108
73109         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
73110         memcmp if strcoll doesn't work.
73111
73112 2002-12-31  Bruno Haible  <bruno@clisp.org>
73113
73114         * lib/utime.c (utime_null): No need to call ftruncate if the file was
73115         nonempty.
73116
73117 2002-12-31  Bruno Haible  <bruno@clisp.org>
73118
73119         * lib/memcoll.c (STRCOLL): New macro.
73120         (memcoll): Use it.
73121
73122 2002-12-31  Bruno Haible  <bruno@clisp.org>
73123
73124         * lib/localcharset.h: New file.
73125         * lib/localcharset.c: Include it.
73126         * lib/unicodeio.c: Likewise.
73127
73128 2002-12-31  Bruno Haible  <bruno@clisp.org>
73129
73130         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
73131         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
73132
73133 2002-12-31  Bruno Haible  <bruno@clisp.org>
73134
73135         * lib/getline.h: Include <stddef.h>, for size_t.
73136
73137         * lib/unicodeio.h: Include <stddef.h>, for size_t.
73138         * lib/unicodeio.c: Don't include <stddef.h>.
73139
73140 2002-12-31  Bruno Haible  <bruno@clisp.org>
73141
73142         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
73143         HAVE_TM_ZONE.
73144
73145 2002-12-24  Karl Berry  <karl@gnu.org>
73146
73147         * config/config.guess: update from prep.
73148
73149 2002-12-24  Bruno Haible  <bruno@clisp.org>
73150
73151         General infrasructure.
73152         * m4/README: Rewritten.
73153         * m4/onceonly.m4: New file.
73154         * m4/onceonly_2_57.m4: New file.
73155
73156         Module atexit.
73157         * m4/atexit.m4: New file.
73158
73159         Module strtod.
73160         * m4/strtod.m4: New file.
73161
73162         Module strtol.
73163         * m4/strtol.m4: New file.
73164
73165         Module strtoul.
73166         * m4/strtoul.m4: New file.
73167
73168         Module memchr.
73169         * m4/memchr.m4: New file.
73170
73171         Module memcmp.
73172         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73173         (jm_FUNC_MEMCMP): Invoke it.
73174
73175         Module memcpy.
73176         * m4/memcpy.m4: New file.
73177
73178         Module memmove.
73179         * m4/memmove.m4: New file.
73180
73181         Module memset.
73182         * m4/memset.m4: New file.
73183
73184         Module strcspn.
73185         * m4/strcspn.m4: New file.
73186
73187         Module strpbrk.
73188         * m4/strpbrk.m4: New file.
73189
73190         Module strstr.
73191         * m4/strstr.m4: New file.
73192
73193         Module strerror.
73194         * m4/strerror.m4: New file.
73195
73196         Module mktime.
73197         * m4/mktime.m4: Renamed from jm-mktime.m4.
73198         (gl_PREREQ_MKTIME): New macro.
73199         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73200
73201         Module malloc.
73202         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73203         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73204         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73205
73206         Module realloc.
73207         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73208         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73209         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73210
73211         Module strftime.
73212         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73213         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73214         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73215         gl_TM_GMTOFF.
73216         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73217
73218         Module xalloc.
73219         * m4/xalloc.m4: New file.
73220
73221         Module alloca.
73222         * m4/alloca.m4: New file.
73223
73224         Module putenv.
73225         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73226         (jm_FUNC_PUTENV): Invoke it.
73227
73228         Module setenv.
73229         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73230         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73231         when invoked twice.
73232         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73233         gt_FUNC_SETENV.
73234
73235         Module memrchr.
73236         * m4/memrchr.m4: New file.
73237
73238         Module stpcpy.
73239         * m4/stpcpy.m4: New file.
73240
73241         Module strcase.
73242         * m4/strcase.m4: New file.
73243
73244         Module strdup.
73245         * m4/strdup.m4: New file.
73246
73247         Module strnlen.
73248         * m4/strnlen.m4: New file.
73249
73250         Module strndup.
73251         * m4/strndup.m4: New file.
73252
73253         Module xstrtod.
73254         * m4/xstrtod.m4: New file.
73255
73256         Module xstrtol.
73257         * m4/xstrtol.m4: New file.
73258
73259         Module getdate.
73260         * m4/getdate.m4: New file.
73261
73262         Module unlocked-io.
73263         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73264         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73265         * m4/jm-glibc-io.m4n: Remove file.
73266
73267         Module long-options.
73268         * m4/long-options.m4: New file.
73269
73270         Module md5.
73271         * m4/md5.m4: New file.
73272
73273         Module sha.
73274         * m4/sha.m4: New file.
73275
73276         Module getstr.
73277         * m4/getstr.m4: New file.
73278
73279         Module getline.
73280         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73281         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73282         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73283         simply getline. Infoke gl_PREREQ_GETLINE.
73284
73285         Module obstack.
73286         * m4/obstack.m4: New file.
73287
73288         Module hash.
73289         * m4/hash.m4: New file.
73290
73291         Module readtokens.
73292         * m4/readtokens.m4: New file.
73293
73294         Module strverscmp.
73295         * m4/strverscmp.m4: New file.
73296
73297         Module stdbool.
73298         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73299         OSF/1.
73300
73301         Module strtoll.
73302         * m4/strtoll.m4: New file.
73303
73304         Module strtoull.
73305         * m4/strtoull.m4: New file.
73306
73307         Module strtoimax.
73308         * m4/strtoimax.m4: New file.
73309
73310         Module strtoumax.
73311         * m4/strtoumax.m4: New file.
73312
73313         Module xstrtoimax.
73314         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73315         jm_AC_PREREQ_XSTRTOIMAX.
73316         Moved the strtol prerequisites to strtol.m4.
73317         Moved the strtoll prerequisites to strtoll.m4.
73318         Moved the strtoimax prerequisites to strtoimax.m4.
73319
73320         Module xstrtoumax.
73321         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73322         jm_AC_PREREQ_XSTRTOUMAX.
73323         Moved the strtoul prerequisites to strtoul.m4.
73324         Moved the strtoull prerequisites to strtoull.m4.
73325         Moved the strtoumax prerequisites to strtoumax.m4.
73326
73327         Module chown.
73328         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73329         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73330
73331         Module dup2.
73332         * m4/dup2.m4: New file.
73333
73334         Module ftruncate.
73335         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73336         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73337
73338         Module getgroups.
73339         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73340         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73341
73342         Module gettimeofday.
73343         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73344         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73345         gl_PREREQ_GETTIMEOFDAY.
73346
73347         Module mkdir.
73348         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73349         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73350
73351         Module mkstemp.
73352         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73353         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73354         jm_AC_TYPE_UINTMAX_T.
73355         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73356
73357         Module stat.
73358         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73359         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73360
73361         Module lstat.
73362         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73363         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73364
73365         Module timespec.
73366         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73367         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73368         * m4/st_mtim.m4: Indentation.
73369
73370         Module nanosleep.
73371         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73372         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73373         gl_PREREQ_NANOSLEEP.
73374
73375         Module regex.
73376         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73377         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73378         (gl_REGEX): New macro.
73379
73380         Module rename.
73381         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73382         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73383
73384         Module rmdir.
73385         * m4/rmdir.m4: New file.
73386
73387         Module utime.
73388         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73389         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73390         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73391
73392         Module dirname.
73393         * m4/dirname.m4: New file.
73394
73395         Module getopt.
73396         * m4/getopt.m4: New file.
73397
73398         Module unistd-safer.
73399         * m4/unistd-safer.m4: New file.
73400
73401         Module fnmatch.
73402         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73403         declaration.
73404         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73405         (gl_FUNC_FNMATCH_POSIX): New macro.
73406         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73407         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73408         simply fnmatch.
73409
73410         Module exclude.
73411         * m4/exclude.m4: New file.
73412
73413         Module human.
73414         * m4/human.m4: New file.
73415
73416         Module acl.
73417         * m4/acl.m4: Nop.
73418
73419         Module backupfile.
73420         * m4/backupfile.m4: New file.
73421         * m4/d-ino.m4: Indentation.
73422
73423         Module fsusage.
73424         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73425         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73426         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73427
73428         Module dirfd.
73429         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73430         requirements.
73431
73432         Module euidaccess.
73433         * m4/euidaccess.m4: New file.
73434
73435         Module file-type.
73436         * m4/file-type.m4: New file.
73437
73438         Module fileblocks.
73439         * m4/fileblocks.m4: New file.
73440
73441         Module filemode.
73442         * m4/filemode.m4: New file.
73443
73444         Module isdir.
73445         * m4/isdir.m4: New file.
73446
73447         Module lchown.
73448         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73449         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73450
73451         Module makepath.
73452         * m4/makepath.m4: New file.
73453
73454         Module modechange.
73455         * m4/modechange.m4: New file.
73456
73457         Module mountlist.
73458         * m4/mountlist.m4: New file.
73459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73460         Indentation.
73461
73462         Module path-concat.
73463         * m4/path-concat.m4: New file.
73464
73465         Module pathmax.
73466         * m4/pathmax.m4: New file.
73467
73468         Module same.
73469         * m4/same.m4: New file.
73470
73471         Module save-cwd.
73472         * m4/save-cwd.m4: New file.
73473
73474         Module savedir.
73475         * m4/savedir.m4: New file.
73476
73477         Module xgetcwd.
73478         * m4/xgetcwd.m4: New file.
73479         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73480
73481         Module xreadlink.
73482         * m4/xreadlink.m4: New file.
73483
73484         Module safe-read.
73485         * m4/safe-read.m4: New file.
73486
73487         Module safe-write.
73488         * m4/safe-write.m4: New file.
73489
73490         Module closeout.
73491         * m4/closeout.m4: New file.
73492
73493         Module stdio-safer.
73494         * m4/stdio-safer.m4: New file.
73495
73496         Module getpass.
73497         * m4/getpass.m4: New file.
73498
73499         Module getugroups.
73500         * m4/getugroups.m4: New file.
73501
73502         Module group-member.
73503         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73504         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73505
73506         Module idcache.
73507         * m4/idcache.m4: New file.
73508
73509         Module userspec.
73510         * m4/userspec.m4: New file.
73511
73512         Module gettime.
73513         * m4/clock_time.m4: New file.
73514         * m4/gettime.m4: New file.
73515
73516         Module settime.
73517         * m4/settime.m4: New file.
73518
73519         Module posixtm.
73520         * m4/posixtm.m4: New file.
73521
73522         Module gethostname.
73523         * m4/gethostname.m4: New file.
73524
73525         Module canon-host.
73526         * m4/canon-host.m4: New file.
73527
73528         Module gettext.
73529         * m4/codeset.m4: New file, from gettext-0.11.5.
73530         * m4/gettext.m4: New file, from gettext-0.11.5.
73531         * m4/glibc21.m4: New file, from gettext-0.11.5.
73532         * m4/iconv.m4: New file, from gettext-0.11.5.
73533         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73534         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73535         * m4/inttypes.m4: New file, from gettext-0.11.5.
73536         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73537         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73538         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73539         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73540         * m4/lib-link.m4: New file, from gettext-0.11.5.
73541         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73542         * m4/progtest.m4: New file, from gettext-0.11.5.
73543         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73544         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73545         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73546
73547         Module localcharset.
73548         * m4/localcharset.m4: New file.
73549
73550         Module hard-locale.
73551         * m4/hard-locale.m4: New file.
73552
73553         Module mbswidth.
73554         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73555         onceonly macros.
73556         * m4/mbrtowc.m4: Add comment.
73557
73558         Module memcasecmp.
73559         * m4/memcasecmp.m4: New file.
73560
73561         Module memcoll.
73562         * m4/memcoll.m4: New file.
73563
73564         Module unicodeio.
73565         * m4/unicodeio.m4: New file.
73566
73567         Module rpmatch.
73568         * m4/rpmatch.m4: New file.
73569
73570         Module yesno.
73571         * m4/yesno.m4: New file.
73572
73573         Module exitfail.
73574         * m4/exitfail.m4: New file.
73575
73576         Module c-stack.
73577         * m4/c-stack.m4 (gl_C_STACK): New macro.
73578         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73579
73580         Module error.
73581         * m4/error.m4 (gl_ERROR): New macro.
73582         (jm_PREREQ_ERROR): Use onceonly macros.
73583
73584         Module fatal.
73585         * m4/fatal.m4: New file.
73586
73587         Module getloadavg.
73588         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73589         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73590
73591         Module getpagesize.
73592         * m4/getpagesize.m4: New file.
73593
73594         Module getusershell.
73595         * m4/getusershell.m4: New file.
73596
73597         Module physmem.
73598         * m4/physmem.m4: New file.
73599
73600         Module posixver.
73601         * m4/posixver.m4: New file.
73602
73603         Module quotearg.
73604         * m4/quotearg.m4: New file.
73605
73606         Module quote.
73607         * m4/quote.m4: New file.
73608
73609         Module readutmp.
73610         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
73611
73612         Module sig2str.
73613         * m4/sig2str.m4: New file.
73614
73615         Other.
73616         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
73617         ulonglong.m4.
73618         * m4/intmax_t.m4: New file.
73619         * m4/d-type.m4: Indentation.
73620         * m4/jm-macros.m4: Update.
73621         * m4/prereq.m4 (jm_PREREQ): Update.
73622         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
73623         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
73624         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
73625         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
73626         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
73627         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
73628         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
73629         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
73630         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
73631         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
73632         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
73633         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
73634         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
73635         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
73636         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
73637         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
73638         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
73639         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
73640         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
73641
73642 2002-12-24  Bruno Haible  <bruno@clisp.org>
73643
73644         * MODULES.txt: Update according to m4/ changes.
73645
73646         Module gettext.
73647         * config.rpath: New file, from gettext-0.11.5.
73648
73649         * modules/*: New module descriptions.
73650         * gnulib-tool: New file.
73651         * MODULES.html.sh: New file.
73652
73653 2002-12-21  Karl Berry  <karl@gnu.org>
73654
73655         * doc/fdl.texi: update to version 1.2.
73656
73657 2002-12-19  Karl Berry  <karl@gnu.org>
73658
73659         * config/config.guess: update from prep.
73660
73661 2002-12-18  Bruno Haible  <bruno@clisp.org>
73662
73663         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
73664         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
73665
73666 2002-12-17  Bruno Haible  <bruno@clisp.org>
73667
73668         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
73669         stdlib.h, string.h.
73670
73671 2002-12-17  Bruno Haible  <bruno@clisp.org>
73672
73673         * lib/canon-host.c (strdup): Remove unused declaration.
73674
73675         * lib/fsusage.c: Include full_read.h.
73676         (get_fs_usage): Use full_read instead of safe_read.
73677
73678         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
73679
73680 2002-12-12  Karl Berry  <karl@gnu.org>
73681
73682         * config/config.guess: update from prep.
73683
73684 2002-12-11  Bruno Haible  <bruno@clisp.org>
73685
73686         * m4/setenv.m4: New file, from gettext-0.11.5.
73687
73688 2002-12-11  Bruno Haible  <bruno@clisp.org>
73689
73690         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
73691         not unsetenv().
73692         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
73693         modifications:
73694
73695         2002-12-11  Bruno Haible  <bruno@clisp.org>
73696
73697                 * setenv.c (alloca): Fall back to malloc.
73698                 (freea): New macro.
73699                 (setenv): Use freea() to free memory allocated with alloca().
73700
73701         2002-11-13  Bruno Haible  <bruno@clisp.org>
73702
73703                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
73704                 function declarations.
73705                 * unsetenv.c (unsetenv): Likewise.
73706
73707         2002-03-04  Bruno Haible  <bruno@clisp.org>
73708
73709                 Portability to AIX 4.3.3.
73710                 * unsetenv.c: New file, extracted from setenv.c.
73711                 * setenv.c: Move the unsetenv() function to unsetenv.c.
73712
73713         2001-12-20  Bruno Haible  <bruno@clisp.org>
73714
73715                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
73716                 use malloc instead. For SunOS 4.
73717
73718         2001-12-11  Bruno Haible  <bruno@clisp.org>
73719
73720                 * setenv.c: Declare alloca.
73721                 (compar_fn_t): New typedef.
73722                 (KNOWN_VALUE, STORE_VALUE): Use it.
73723
73724         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
73725         setenv.h.
73726
73727 2002-12-10  Paul Eggert  <eggert@twinsun.com>
73728
73729         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
73730         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
73731         Choose values that are less likely to collide with system fnmatch
73732         options.
73733         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
73734         defined (e.g., a pure POSIX system).
73735         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
73736         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
73737
73738 2002-12-06  Paul Eggert  <eggert@twinsun.com>
73739
73740         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
73741         a pain in practice to deal with generated m4 files.  This change
73742         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
73743
73744         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
73745         and jm-glibc-io.m4, as they are no longer a special case.
73746         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
73747         kludge and the auto-generation stuff.  Check only whether the
73748         functions are declared, not whether they exist, since older hosts
73749         that don't declare the functions can't use the optimization anyway.
73750
73751 2002-12-06  Jim Meyering  <jim@meyering.net>
73752
73753         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
73754
73755         Merge in changes from libc's misc/error.c, in preparation
73756         for the merge of gnulib's changes back into libc.
73757
73758         * lib/error.c (_): Define only if not already defined.
73759         Move definition to follow all #include directives.
73760         Include unlocked-io.h only if !_LIBC.
73761         [_LIBC]: Include <libio/libioP.h>.
73762         [USE_IN_LIBIO]: Include <libio/iolibio.h>
73763         (fflush): Tweak definition to use INTUSE.
73764         (putc): Define.
73765
73766 2002-12-05  Paul Eggert  <eggert@twinsun.com>
73767
73768         * lib/alloca.c [defined emacs]: Include "lisp.h".
73769         (xalloc_die) [defined emacs]: New macro.
73770         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
73771         [! defined emacs]: Include <xalloc.h>.
73772         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
73773         (pointer): Typedef to POINTER_TYPE *.
73774         (malloc): Remove decl; we now always use xmalloc.
73775         (alloca): Use old-style definition, since Emacs needs this.
73776         Check for arithmetic overflow when computing combined size.
73777
73778 2002-12-04  Paul Eggert  <eggert@twinsun.com>
73779
73780         Do not generate unlocked-io.h automatically, since it's easier to
73781         maintain it by hand.
73782
73783         * lib/unlocked-io.h: New file, from GNU diffutils,
73784         but with proper copyright notice and attribution.
73785         * lib/gen-uio: Remove.
73786         * lib/Makefile.am: Add copyright notice.
73787         (libfetish_a_SOURCES): Add unlocked-io.h.
73788         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
73789         (DISTCLEANFILES, io_functions): Remove macros.
73790         (EXTRA_DIST): Remove gen_uio.
73791         (unlocked-io.h): Remove rule.
73792
73793 2002-12-04  Jim Meyering  <jim@meyering.net>
73794
73795         Reflect the fact that stat.c and lstat.c are no longer generated.
73796         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
73797         (DISTCLEANFILES): Likewise.
73798         (EXTRA_DIST): Likewise.
73799         (all_local): Don't depend on stat.c or lstat.c.
73800         (stat.c, lstat.c): Remove rules.
73801         (EXTRA_DIST): Remove xstat.in.
73802
73803         * lib/xstat.in: Remove file.  Contents moved into stat.c.
73804         * lib/stat.c: New file.  Contents mostly from xstat.in.
73805         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
73806         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
73807
73808         * lib/safe-read.c: Rework so that it may serve to define safe_write,
73809         too.
73810         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
73811
73812 2002-12-03  Jim Meyering  <jim@meyering.net>
73813
73814         * lib/safe-read.c, safe-write.c: Change variable names and comments,
73815         but not semantics, to minimize the differences between these two files.
73816         (safe_read): Change comment to mention SAFE_READ_ERROR.
73817
73818         * lib/safe-read.c (IS_EINTR): Define.
73819         (safe_read): Use IS_EINTR in place of in-function cpp directives.
73820
73821 2002-12-02  Jim Meyering  <jim@meyering.net>
73822
73823         * lib/safe-read.c (EINTR): Define.
73824         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
73825         (INT_MAX): Provide fallback.
73826         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
73827
73828         * lib/safe-read.h (SAFE_READ_ERROR): Define.
73829
73830 2002-12-02  Bruno Haible  <bruno@clisp.org>
73831
73832         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
73833         Define, taken from safe-read.c.
73834         (INT_MAX): Provide fallback.
73835         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
73836         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
73837
73838         * lib/safe-read.c (EINTR): Remove definition.
73839         (safe_read): Don't use EINTR if it is absent.
73840
73841 2002-12-01  Jim Meyering  <jim@meyering.net>
73842
73843         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
73844         zero.
73845         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
73846
73847 2002-11-27  Paul Eggert  <eggert@twinsun.com>
73848
73849         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
73850         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
73851         with `if (! (value < limit)) abort ();', for readability.
73852
73853 2002-11-26  Karl Berry  <karl@gnu.org>
73854
73855         * lib/strdup.c: copy from libc again, with jim's ok.
73856         * lib/.cppi-disable: re-add strdup.c
73857
73858 2002-11-25  Karl Berry  <karl@gnu.org>
73859
73860         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
73861         instead of "strtol.c".
73862
73863 2002-11-25  Karl Berry  <karl@gnu.org>
73864
73865         * config/install-sh: update from automake for variable quoting, $0 in
73866         error msgs, etc.
73867
73868         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
73869         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
73870         entry.
73871
73872 2002-11-25  Jim Meyering  <jim@meyering.net>
73873
73874         * lib/mktime.c: Sync from libc, now that it has the latest fix.
73875
73876 2002-11-24  Karl Berry  <karl@gnu.org>
73877
73878         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
73879         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
73880
73881 2002-11-24  Jim Meyering  <jim@meyering.net>
73882
73883         Update from coreutils:
73884
73885         * lib/mktime.c: Merge in changes from libc.
73886
73887         Avoid a link-time failure on some Linux systems.
73888         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
73889         (otherwise).
73890         (__mon_yday): Declare with the STATIC attribute.
73891         (__mktime_internal): Likewise.
73892         Based on a report from Greg Schafer.
73893
73894 2002-11-23  Jim Meyering  <jim@meyering.net>
73895
73896         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
73897         Use `unsigned', not `int', as type of index.
73898
73899         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
73900
73901         * lib/fsusage.c: Remove unneeded parentheses around operands of
73902         `defined'.
73903
73904 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73905
73906         * lib/quotearg.h: Allow multiple inclusion by surrounding with
73907         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
73908         so that we can be included first.
73909         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
73910         * lib/quotearg.c: Include quotearg.h immediately after config.h.
73911         No need to include stddef.h or sys/types.h any more.
73912         Surround local include files with "", not "<>".
73913         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
73914         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
73915         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
73916         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
73917         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
73918         (ISPRINT): Remove; no longer needed now that we assume C89.
73919
73920         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
73921         Preserve errno.
73922
73923         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
73924         quotearg_char): Use SIZE_MAX rather than
73925         (size_t) -1 when we are talking about "infinity".
73926
73927         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
73928
73929 2002-11-22  Paul Eggert  <eggert@twinsun.com>
73930
73931         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
73932         hint that one should use `if (! x) abort ();' rather than `assert
73933         (x);', and anyway it's one less thing to worry about configuring.
73934         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
73935         hash_rehash, hash_insert): Use abort rather than assert.
73936
73937 2002-11-22  Bruno Haible  <bruno@clisp.org>
73938
73939         * lib/safe-read.h: Assume C89. Add comments.
73940         (safe_read): Change return type to size_t.
73941         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
73942         byte counts > SSIZE_MAX correctly.
73943         * lib/safe-write.h: New file.
73944         * lib/safe-write.c: New file.
73945         * lib/full-read.h: New file.
73946         * lib/full-read.c: New file.
73947         * lib/full-write.h: Assume C89. Add comments.
73948         * lib/full-write.c: Include safe-write.h.
73949         (full_write): Rewritten to use safe_write.
73950         Suggested by Jim Meyering and Paul Eggert.
73951
73952 2002-11-21  Jim Meyering  <jim@meyering.net>
73953
73954         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
73955
73956         Merge in changes from the coreutils.
73957
73958         2002-09-25  Paul Eggert  <eggert@twinsun.com>
73959         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
73960         <stdint.h>.
73961         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
73962         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
73963         int.  Work more efficiently if X is the same width as uintmax_t.
73964         Do not compare X to -1, to avoid bogus compiler warning.
73965         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
73966         Don't assume that f_frsize and f_bsize are the same type.
73967
73968         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
73969         warning on FreeBSD.
73970
73971         * lib/makepath.c (make_path): Restore umask *before* creating the final
73972         component.
73973         (make_path): Minor reformatting.
73974
73975         * lib/xmalloc.c: Adjust to work with new autoconf macros,
73976         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
73977         HAVE_MALLOC/HAVE_REALLOC.
73978
73979         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
73980         dummy ones.  At least on GNU/Linux systems, `auto' means something
73981         else.
73982         From Michael Stone.
73983
73984 2002-11-21  Bruno Haible  <bruno@clisp.org>
73985
73986         Remove case insensitive option matching.
73987         * lib/argmatch.h (argcasematch): Remove declaration.
73988         (ARGCASEMATCH): Remove macro.
73989         (__xargmatch_internal): Remove case_sensitive argument.
73990         (XARGMATCH): Update.
73991         (XARGCASEMATCH): Remove macro.
73992         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
73993         case_sensitive argument.
73994         (argcasematch): Remove function.
73995         (__xargmatch_internal): Remove case_sensitive argument.
73996         (main): Use XARGMATCH instead of XARGCASEMATCH.
73997
73998         * lib/xmalloc.c: Change compile-time error message. Add comment about
73999         required autoconf version.
74000
74001 2002-11-20  Paul Eggert  <eggert@twinsun.com>
74002
74003         Merge argmatch cleanups from Bison.  Assume C89.
74004
74005         * lib/argmatch.c: Include config.h here, not in argmatch.h.
74006         Include stdlib.h, for EXIT_FAILURE.
74007         Always include <string.h>, since we assume C89.
74008         (EXIT_FAILURE): Remove pre-C89 bug workaround.
74009         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
74010         Include <stddef.h> instead, since it's all we need for size_t.
74011         (PARAMS): Remove.  All uses removed.
74012         (ARRAY_CARDINALITY): Do not bother to #undef.
74013         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
74014         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74015         Remove unnecessary parentheses.
74016         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74017         Insert necessary parentheses.
74018         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
74019         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
74020
74021 2002-11-19  Bruno Haible  <bruno@clisp.org>
74022
74023         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
74024         * lib/mbswidth.h: Include <stddef.h>, for size_t.
74025
74026         * lib/mbswidth.h (PARAMS): Remove macro.
74027         (mbswidth, mbsnwidth): Use ANSI C function declarations.
74028         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
74029
74030         * lib/gcd.h (PARAMS): Remove macro.
74031         (gcd): Use ANSI C function declarations.
74032         * lib/gcd.c (gcd): Likewise.
74033
74034 2002-11-15  Bruno Haible  <bruno@clisp.org>
74035
74036         * lib/strcspn.c: Include <stddef.h>.
74037         (strcspn): Use ANSI C function declaration. Change return type to
74038         size_t. Use NULL.
74039         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
74040         (strpbrk): Use NULL.
74041         * lib/strpbrk.h (PARAMS): Remove macro.
74042         (strpbrk): Use ANSI C function declaration.
74043         * lib/strstr.c: Don't include <sys/types.h>.
74044         * lib/strstr.h (PARAMS): Remove macro.
74045         (strstr): Use ANSI C function declarations.
74046
74047 2002-11-14  Karl Berry  <karl@gnu.org>
74048
74049         * config/mkinstalldirs: `do' on separate line, instead of
74050         `for var; do'.
74051
74052 2002-11-06  Bruno Haible  <bruno@clisp.org>
74053
74054         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
74055         * lib/gcd.c (gcd): Likewise.
74056
74057 2002-11-05  Bruno Haible  <bruno@clisp.org>
74058
74059         * lib/gcd.h: New file, from gettext-0.11.5.
74060         * lib/gcd.c: New file, from gettext-0.11.5.
74061
74062 2002-11-05  Bruno Haible  <bruno@clisp.org>
74063
74064         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74065         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74066         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74067         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74068
74069         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
74070         <libintl.h>.
74071         * lib/makepath.c: Include gettext.h instead of <locale.h> and
74072         <libintl.h>.
74073
74074         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
74075         * lib/human.c: Include gettext.h instead of <libintl.h>.
74076         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
74077         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
74078         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
74079         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
74080         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
74081         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
74082         (textdomain): Remove definition.
74083         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
74084
74085         * lib/long-options.c: Remove include of <libintl.h> and definition of
74086         _.
74087         * lib/same.c: Remove include of <libintl.h> and definition of _.
74088
74089 2002-11-04  Owen Taylor  <otaylor@redhat.com>
74090
74091         * lib/config.charset: A few additions for Solaris.
74092
74093 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74094
74095         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
74096         * lib/localcharset.c (locale_charset): Declare as extern "C".
74097
74098 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74099
74100         * lib/config.charset: msdos in uk_UA uses CP1125.
74101
74102 2002-11-04  Bruno Haible  <bruno@clisp.org>
74103
74104         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
74105         * lib/strcase.h: New file, from GNU gettext-0.11.5.
74106         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
74107         * lib/strstr.h: New file, from GNU gettext-0.11.5.
74108         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
74109
74110 2002-11-04  Bruno Haible  <bruno@clisp.org>
74111
74112         * lib/localcharset.c (locale_charset): Don't return an empty string.
74113
74114 2002-11-04  Bruno Haible  <bruno@clisp.org>
74115
74116         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
74117         aliases.
74118
74119 2002-11-04  Bruno Haible  <bruno@clisp.org>
74120
74121         * lib/config.charset: Update for newest glibc. Add canonical names
74122         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
74123
74124 2002-11-04  Bruno Haible  <bruno@clisp.org>
74125
74126         * lib/config.charset: Add support for NetBSD.
74127
74128 2002-11-04  Bruno Haible  <bruno@clisp.org>
74129
74130         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
74131
74132 2002-11-01  Bruno Haible  <bruno@clisp.org>
74133
74134         * configure.in: Add AC_CONFIG_AUX_DIR call.
74135         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
74136         test/Makefile.
74137         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
74138
74139 2002-09-28  Karl Berry  <karl@gnu.org>
74140
74141         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
74142         installed automake until the next release, since changes have been
74143         made.
74144
74145 2002-09-25  Karl Berry  <karl@gnu.org>
74146
74147         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
74148         * lib/getopt*: copy from libc/posix.
74149         * lib/gettext.h: copy from gettext.
74150         * lib/.cppi-disable: add strdup.c, gettext.h.
74151
74152 2002-09-25  Karl Berry  <karl@gnu.org>
74153
74154         * config/srclist.txt: enable gettext.h check.
74155         * config/config.{guess,sub}: update from prep.
74156         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74157                 from automake 1.6.3.
74158         See srclist*.
74159
74160 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74161
74162         * regex.c (PATFETCH): Remove the translating fetch.
74163         (PATFETCH_RAW): Rename to PATFETCH.
74164         (set_image_of_range): New fun.
74165         (SET_RANGE_TABLE_WORK_AREA): Use it.
74166         (regex_compile): Don't translate the pattern chars so eagerly.
74167         Only do it when inserting an `exactn' bytecode or when handling
74168         a char-range.
74169         (mutually_exclusive_p): Avoid empty statement.
74170
74171 2002-07-06  Jim Meyering  <meyering@lucent.com>
74172
74173         * m4/README: Don't mention Makefile.am.in.
74174         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74175
74176 2002-07-01  Jim Meyering  <meyering@lucent.com>
74177
74178         * lib/c-stack.c: Include sys/time.h.
74179         From Volker Borchert.
74180
74181 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74182
74183         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74184
74185 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74186
74187         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74188         New macro.  Use it uniformly instead of
74189         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74190         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74191         reported by Vin Shelton.
74192
74193 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74194
74195         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74196         Do not assume SA_SIGINFO behavior.
74197         Bug reported by Jim Meyering on NetBSD 1.5.2.
74198
74199 2002-06-22  Jim Meyering  <meyering@lucent.com>
74200
74201         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74202         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74203
74204         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74205         now that configure.ac uses AC_GNU_SOURCE.
74206         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74207         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74208
74209         Update to latest tools.  Suggestions from Paul Eggert.
74210         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74211         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74212         * m4/fnmatch.m4: Likewise.
74213         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74214         to AC_HEADER_STDBOOL
74215
74216 2002-06-22  Jim Meyering  <meyering@lucent.com>
74217
74218         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74219         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74220
74221 2002-06-22  Jim Meyering  <meyering@lucent.com>
74222
74223         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74224
74225         * lib/exitfail.c, exitfail.h: Likewise.
74226         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74227
74228         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74229         of fnmatch.h.
74230         (EXTRA_DIST): Add fnmatch_loop.c.
74231         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74232
74233         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74234         * lib/fnmatch.c: Update from diffutils-2.8.2.
74235         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74236         * lib/fnmatch.h: Remove file.
74237
74238 2002-06-21  Jim Meyering  <meyering@lucent.com>
74239
74240         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74241         * m4/mbrtowc.m4: Likewise.
74242
74243         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74244         * m4/mbswidth.m4: Reflect name change:
74245         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74246         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74247
74248         * m4/lib-link.m4: Update from gettext-0.11.2.
74249         * m4/gettext.m4: Likewise.
74250
74251         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74252         From Alfred M. Szmidt.
74253
74254 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74255
74256         * lib/file-type.h: Report an error if neither S_ISREG nor
74257         S_IFREG is defined, instead of using a test specific to glibc
74258         2.2.  This should be safe, since POSIX requires S_ISREG and
74259         Unix Version 7 had S_IFREG.  We don't need to check for
74260         <sys/types.h> since we don't use any symbols that it defines.
74261
74262 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74263
74264         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74265         $@-t, so that each temporary file name is unique and valid in the first
74266         8 characters, for operation under DOS.
74267
74268 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74269
74270         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74271
74272 2002-06-15  Jim Meyering  <meyering@lucent.com>
74273
74274         Work even with DJGPP 2.03, which lacks support for symlinks.
74275         From Richard Dawe.
74276         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74277         is defined.
74278         * lib/lchown.c (S_ISLNK): Likewise.
74279
74280 2002-06-15  Jim Meyering  <meyering@lucent.com>
74281
74282         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74283         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74284         have been included before this file.
74285
74286 2002-06-14  Jim Meyering  <meyering@lucent.com>
74287
74288         * lib/file-type.h: Use the version from diffutils-2.8.2.
74289         * lib/file-type.c: Likewise.
74290
74291 2002-06-07  Jim Meyering  <meyering@lucent.com>
74292
74293         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74294         They're needed at least for NetBSD 1.5.2.
74295         ($statxfs_includes): Include those same headers.
74296         ($statxfs_includes): Include sys/vfs.h if available.
74297         ($statxfs_includes): Likewise for sys/statvfs.h.
74298         Check for the following members in both structs statfs and statvfs:
74299         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74300
74301 2002-06-01  Jim Meyering  <meyering@lucent.com>
74302
74303         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74304         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74305
74306 2002-05-28  Jim Meyering  <meyering@lucent.com>
74307
74308         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74309         Reported by Volker Borchert.
74310
74311 2002-05-27  Jim Meyering  <meyering@lucent.com>
74312
74313         Fix a problem seen only on nonconforming systems whereby ls.c's
74314         use of localtime, and then of gettimeofday would cause trouble:
74315         the localtime call used to initialize rpl_gettimeofday's save
74316         mechanism would clobber ls's current local time information so
74317         that in any long listing the first file would always be listed
74318         with date 1970-01-01.  Analysis by Volker Borchert.
74319
74320         * lib/gettimeofday.c (localtime): Undefine.
74321         (rpl_localtime): New function.
74322
74323 2002-05-27  Jim Meyering  <meyering@lucent.com>
74324
74325         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74326         localtime.
74327
74328         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74329         use the replacement function; it wouldn't resolve at link time.
74330         Reported by Volker Borchert.
74331
74332 2002-05-22  Jim Meyering  <meyering@lucent.com>
74333
74334         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74335         file-type.h.
74336         * lib/file-type.h: New file.
74337         * lib/file-type.c (file_type): New file/function.  Extracted from
74338         diffutils.
74339
74340 2002-04-30  Jim Meyering  <meyering@lucent.com>
74341
74342         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74343
74344 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74345
74346         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74347
74348 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74349
74350         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74351         Do not check for alloca.h (no longer used) or stdbool.h (was never
74352         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74353
74354 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74355
74356         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74357
74358 2002-04-29  Jim Meyering  <meyering@lucent.com>
74359
74360         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74361         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74362         Use AC_FUNC_STRNLEN here instead.
74363
74364         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74365         With autoconf-2.53a, it's part of AC_PROG_CC.
74366
74367 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74368
74369         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74370         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74371
74372 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74373
74374         * lib/sig2str.h, lib/sig2str.c: New files.
74375         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74376
74377 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74378
74379         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74380         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74381         of 127, since 64 is the largest conceivable number for ancient
74382         nonstandard hosts.
74383         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74384
74385 2002-04-28  Jim Meyering  <meyering@lucent.com>
74386
74387         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74388
74389 2002-04-24  Jim Meyering  <meyering@lucent.com>
74390
74391         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74392         (jm_PREREQ): Use it.
74393
74394         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74395         mach/mach.h fcntl.h.
74396         Check for this function: setlocale.
74397
74398 2002-04-24  Jim Meyering  <meyering@lucent.com>
74399
74400         * lib/gettext.h: New file, from Gettext.
74401         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74402         (libfetish_a_SOURCES): Add gettext.h.
74403
74404 2002-04-16  Jim Meyering  <meyering@lucent.com>
74405
74406         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74407         ut_pid, ut_id, ut_exit.
74408
74409 2002-04-16  Jim Meyering  <meyering@lucent.com>
74410
74411         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74412         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74413         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74414
74415 2002-04-12  Jim Meyering  <meyering@lucent.com>
74416
74417         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74418         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74419         existence of the getmntinfo function.  Needed for Darwin 5.3.
74420
74421         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74422         This is necessary at least on Darwin 5.3.
74423
74424         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74425         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74426         strnlen.o in the library, and that makes some versions of ranlib
74427         object.
74428
74429 2002-04-12  Jim Meyering  <meyering@lucent.com>
74430
74431         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74432
74433 2002-04-09  Jim Meyering  <meyering@lucent.com>
74434
74435         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74436         to be more precise.  Rather than saying we're checking whether the
74437         function `works', say what we're testing.
74438         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74439         Reported by Bruno Haible.
74440
74441 2002-03-10  Jim Meyering  <meyering@lucent.com>
74442
74443         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74444         Suggestion from Santiago Vila.
74445
74446 2002-03-08  Jim Meyering  <meyering@lucent.com>
74447
74448         * lib/rename.c: Mention that this wrapper is needed also on
74449         mips-dec-ultrix4.4 systems.
74450
74451 2002-03-02  Jim Meyering  <meyering@lucent.com>
74452
74453         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74454         not HAVE_CLOCK_SETTIME.
74455
74456 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74457
74458         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74459         Check for clock_settime.
74460
74461 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74462
74463         * lib/nanosleep.h: Rename to....
74464         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74465
74466         * lib/gettime.c: New file.
74467         * lib/settime.c: New file.
74468         * lib/stime.c: Remove.
74469
74470         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74471         timespec.h.  Remove nanosleep.h.
74472
74473 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74474
74475         * m4/acl.m4: New file.
74476         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74477         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74478
74479 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74480
74481         * lib/acl.c, lib/acl.h: New files.
74482         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74483
74484 2002-02-24  Jim Meyering  <meyering@lucent.com>
74485
74486         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74487         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74488         cause trouble.  Reported by Nelson Beebe.
74489
74490 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74491
74492         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74493         compilers that don't know that xalloc_die never returns.
74494
74495 2002-02-20  Jim Meyering  <meyering@lucent.com>
74496
74497         * lib/getdate.c: Regenerate using bison-1.33.
74498
74499 2002-02-17  Jim Meyering  <meyering@lucent.com>
74500
74501         * config/config.guess (main): Don't use `head -1'; it's no longer
74502         portable. Use `sed 1q' instead.
74503
74504 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74505
74506         * m4/codeset.m4: Upgrade to gettext-0.11.
74507         * m4/gettext.m4: Upgrade to gettext-0.11.
74508         * m4/glibc21.m4: Upgrade to gettext-0.11.
74509         * m4/iconv.m4: Upgrade to gettext-0.11.
74510         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74511         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74512         * m4/lib-ld.m4: New file, from gettext-0.11.
74513         * m4/lib-link.m4: New file, from gettext-0.11.
74514         * m4/lib-prefix.m4: New file, from gettext-0.11.
74515         * m4/progtest.m4: Upgrade to gettext-0.11.
74516
74517 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74518
74519         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74520         (jm_PREREQ): Use it.
74521
74522 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74523
74524         * lib/posixver.c, lib/posixver.h: New files.
74525         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74526
74527 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74528             Bruno Haible  <bruno@clisp.org>
74529
74530         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
74531         (fwrite_success_callback): New declaration.
74532         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74533         print_unicode_char. Call failure callback instead of error.
74534         (fwrite_success_callback): New function.
74535         (exit_failure_callback): New function.
74536         (fallback_failure_callback): New function.
74537         (print_unicode_char): Call unicode_to_mb.
74538
74539 2002-01-26  Jim Meyering  <meyering@lucent.com>
74540
74541         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74542         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74543
74544 2002-01-26  Jim Meyering  <meyering@lucent.com>
74545
74546         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74547
74548 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74549
74550         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74551
74552 2002-01-22  Jim Meyering  <meyering@lucent.com>
74553
74554         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74555         Otherwise, some versions of automake would omit the rule that makes
74556         Makefile from Makefile.in.
74557
74558 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74559
74560         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74561         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74562         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74563         (memcoll): Set errno to zero if there is no error.
74564
74565         * lib/quotearg.c (quotearg_buffer_restyled):
74566         Fix bug with quoting buffers containing NUL when backslashing escapes.
74567         This bug was exposed by the other changes in this patch.
74568         (quotearg_n_options): New arg ARGSIZE.
74569         All callers changed.
74570         (quoting_options_from_style): New function.
74571         (quotearg_n_style): Use it.
74572         (quotearg_n_style_mem): New function.
74573
74574         * lib/quotearg.h (quotearg_n_style_mem): New function.
74575
74576 2002-01-19  Jim Meyering  <meyering@lucent.com>
74577
74578         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74579         Remove useless quotes: DF_PROG="df".
74580         * m4/strnlen.m4: New file.
74581
74582 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74583
74584         * lib/backupfile.c (ISDIGIT): Comment fix.
74585         * lib/getdate.y (ISDIGIT): Likewise.
74586         * lib/posixtm.c (ISDIGIT, year): Likewise.
74587         * lib/strverscmp.c (ISDIGIT): Likewise.
74588         * lib/userspec.c (ISDIGIT): Likewise.
74589
74590 2002-01-16  Jim Meyering  <meyering@lucent.com>
74591
74592         * lib/getdate.y: Add three semicolons, each just before a closing
74593         brace. Bison (as of version 1.31) no longer papers over that mistake.
74594
74595 2002-01-05  Jim Meyering  <meyering@lucent.com>
74596
74597         * lib/version-etc.c (version_etc_copyright): Update copyright year.
74598
74599 2001-12-19  Paul Eggert  <eggert@twinsun.com>
74600
74601         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
74602         not silently exit merely because the output buffer happens to
74603         have nothing pending.
74604
74605 2001-12-18  Paul Eggert  <eggert@twinsun.com>
74606
74607         See the big note in ../ChangeLog.
74608         * lib/human.c (suffixes): Prefer K to k for 1024.
74609         (generate_suffix_backwards): New function.
74610         (human_readable_inexact): Use it.
74611         * lib/xstrtol.c (__xstrtol): If there is no number but there
74612         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
74613         Accept 'K' as well as 'k'.
74614
74615 2001-12-15  Jim Meyering  <meyering@lucent.com>
74616
74617         * lib/regex.h (__restrict_arr): Update from libc.
74618
74619         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
74620         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
74621         (STREQ): Define.
74622
74623 2001-12-14  Jim Meyering  <meyering@lucent.com>
74624
74625         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
74626         Suggestion from Bruno Haible.
74627
74628 2001-12-10  Jim Meyering  <meyering@lucent.com>
74629
74630         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
74631         xrealloc, Instead, include "xalloc.h".
74632         (initbuffer): Don't cast xmalloc return value to char*.
74633         (readline): Reword comment.
74634         Don't cast xrealloc return value to char*
74635         Return NULL, not 0.
74636
74637 2001-12-09  Jim Meyering  <meyering@lucent.com>
74638
74639         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
74640         about `signed and unsigned type in conditional expression'.
74641         * lib/posixtm.c (posix_time_parse): Likewise.
74642
74643         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
74644
74645         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
74646         to avoid a pedantic warning.
74647
74648         * lib/getstr.c: Don't include assert.h.
74649         (getstr): Remove warning-evoking assertions.
74650         Return -1 if offset parameter is out of bounds.
74651         Change the type of a local from int to size_t.
74652
74653         * lib/strftime.c (my_strftime_localtime_r): Include this function
74654         definition in the `#if ! HAVE_TM_GMTOFF' block.
74655
74656         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
74657         Include xalloc.h instead.
74658
74659 2001-12-02  Jim Meyering  <meyering@lucent.com>
74660
74661         * lib/tempname.c: Don't declare getenv, thus reverting the change of
74662         2001-11-18.  It's no longer necessary, now that stdlib.h is always
74663         included.
74664
74665         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
74666         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
74667
74668 2001-11-30  Akim Demaille  <akim@epita.fr>
74669
74670         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
74671         before being defined.
74672
74673 2001-11-27  Paul Eggert  <eggert@twinsun.com>
74674
74675         * lib/quotearg.h (quotearg_n, quotearg_n_style):
74676         First arg is int, not unsigned.
74677         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
74678         (SIZE_MAX, UINT_MAX): New macros.
74679         (quotearg_n_options): Abort if N is negative.
74680         Avoid overflow check on hosts where size_t is 64 bits and int
74681         is 32 bits, as overflow is impossible there.
74682         Fix off-by-one typo that caused unnecessary reallocation.
74683
74684 2001-11-27  Jim Meyering  <meyering@lucent.com>
74685
74686         * lib/tempname.c: Merge with version from libc.
74687         * lib/regex.c: Likewise.
74688
74689         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
74690         systems for which STDC_HEADERS is 0, it was not included, resulting in
74691         a warning about an integer-to-pointer conversion problem with getenv.
74692         Reported by Volker Borchert.
74693
74694 2001-11-26  Jim Meyering  <meyering@lucent.com>
74695
74696         * lib/gtod.h: Remove file.
74697         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
74698         * lib/gettimeofday.c: Don't include gtod.h.
74699         (GTOD_init): Remove function.
74700         (rpl_gettimeofday): Do its job here instead, rather than aborting.
74701         Suggestion from Volker Borchert.
74702
74703 2001-11-23  Jim Meyering  <meyering@lucent.com>
74704
74705         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
74706         it.
74707         * lib/hash.c (struct hash_table): Define it here instead.
74708
74709 2001-11-22  Jim Meyering  <meyering@lucent.com>
74710
74711         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
74712
74713 2001-11-20  Jim Meyering  <meyering@lucent.com>
74714
74715         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
74716         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
74717
74718 2001-11-19  Jim Meyering  <meyering@lucent.com>
74719
74720         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
74721         directory.  Use "conftestXXXXXX" as the template.
74722         Suggestion from Paul Eggert.
74723
74724         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
74725         immediately, so the test doesn't mistakenly hit the max-open-files
74726         limit.
74727
74728 2001-11-18  Paul Eggert  <eggert@twinsun.com>
74729
74730         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
74731         (TEMPORARIES): New macro.
74732         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
74733         removes an artificial limitation (e.g. HP-UX 10.20, where
74734         TMP_MAX is 17576).
74735
74736 2001-11-18  Jim Meyering  <meyering@lucent.com>
74737
74738         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
74739
74740 2001-11-18  Jim Meyering  <meyering@lucent.com>
74741
74742         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
74743         on SunOS 4.
74744
74745         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
74746         files will be created before anything else.
74747
74748 2001-11-17  Paul Eggert  <eggert@twinsun.com>
74749
74750         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
74751         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
74752
74753 2001-11-17  Jim Meyering  <meyering@lucent.com>
74754
74755         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
74756         Prompted by a report from Bob Proulx.
74757
74758         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
74759         Instead, require UTILS_FUNC_MKSTEMP.
74760
74761 2001-11-17  Jim Meyering  <meyering@lucent.com>
74762
74763         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
74764         Now, that's done as part of AC_FUNC_STRTOD.
74765
74766 2001-11-17  Jim Meyering  <meyering@lucent.com>
74767
74768         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
74769         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
74770         rather than group writable.  Patch by Juan F. Codagnone.
74771
74772         * lib/readtokens.c: Remove explicit declarations of xmalloc and
74773         xrealloc, Instead, include "xalloc.h".
74774
74775         * lib/mountlist.c: Include unlocked-io.h after all system headers.
74776         Remove explicit declarations of xmalloc, xrealloc,
74777         and xstrdup.  Instead, include "xalloc.h".
74778
74779         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
74780         unlocked-io.h.
74781         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
74782         Likewise.
74783         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
74784
74785         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
74786         Reported by Padraig Brady.
74787
74788         * lib/mkstemp.c: #undef mkstemp.
74789         Include config.h.
74790         (rpl_mkstemp): Rename from mkstemp.
74791         Protoize.
74792
74793 2001-11-16  Jim Meyering  <meyering@lucent.com>
74794
74795         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
74796         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
74797         determine the amount of total physical memory, use pstat_getstatic.
74798         HPUX-11 doesn't define _SC_PHYS_PAGES.
74799         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
74800         If sysconf couldn't be used to determine the amount of available
74801         physical memory, use both pstat_getstatic and pstat_getdynamic.
74802         Based on a patch from Bob Proulx.
74803
74804 2001-11-10  Jim Meyering  <meyering@lucent.com>
74805
74806         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
74807         (jm_PREREQ): Use it.
74808
74809 2001-11-09  Jim Meyering  <meyering@lucent.com>
74810
74811         * m4/jm-macros.m4: Require autoconf-2.52f.
74812         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
74813         Use these AC_-prefixed names, not the AM_-prefixed ones.
74814
74815         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
74816
74817 2001-11-05  Jim Meyering  <meyering@lucent.com>
74818
74819         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
74820
74821 2001-11-04  Jim Meyering  <meyering@lucent.com>
74822
74823         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
74824         $DEFS.
74825
74826 2001-11-03  Jim Meyering  <meyering@lucent.com>
74827
74828         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
74829         of AC_DEFUN.
74830
74831         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
74832         know the name of the variable in the macro definition.
74833
74834 2001-11-03  Jim Meyering  <meyering@lucent.com>
74835
74836         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
74837         in argmatch_to_argument call.
74838
74839         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
74840         argument.
74841
74842         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
74843         e.g., a fault due to an attempt to free a NULL pointer.
74844
74845 2001-11-01  Jim Meyering  <meyering@lucent.com>
74846
74847         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
74848         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
74849
74850 2001-11-01  Jim Meyering  <meyering@lucent.com>
74851
74852         * lib/dirfd.c, lib/dirfd.h: New files.
74853         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
74854
74855         * lib/hash.c (hash_print) [TESTING]: Clean up.
74856
74857 2001-10-22  Paul Eggert  <eggert@twinsun.com>
74858
74859         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
74860         to avoid a warning if -Wall.
74861
74862 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
74863
74864         * README: New file
74865         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
74866         (per RMS's instructions, this is now the canonical source)
74867         * lgpl/, gpl/: New directories.
74868
74869 2001-10-21  Paul Eggert  <eggert@twinsun.com>
74870
74871         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
74872
74873 2001-10-21  Jim Meyering  <meyering@lucent.com>
74874
74875         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
74876         this code would end up calling gettext even in packages built
74877         with --disable-nls.
74878         * lib/getopt.c (_): Likewise.
74879         * lib/regex.c (_): Likewise.
74880
74881 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74882
74883         * m4/error.m4 (jm_PREREQ_ERROR):
74884         Do not invoke AC_CHECK_FUNCS with strerror_r, as
74885         AC_FUNC_STRERROR_R does that.
74886         Check for strerror declaration.
74887
74888         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
74889         are supposed to have them these days.
74890         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
74891         Merge changes from latest Autoconf CVS.
74892         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
74893         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
74894         POSIX decided to standardize on the int flavor of strerror_r.
74895
74896 2001-10-20  Paul Eggert  <eggert@twinsun.com>
74897
74898         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
74899         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
74900         Use strerror_r that is only a macro, even if it is not a function.
74901         (strerror): Check for HAVE_DECL_STRERROR before declaring.
74902         (private_strerror): Use prototypes, not old-style function definition.
74903         (print_errno_message): New function.
74904         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
74905         char*-flavored one.
74906         (error_tail, error, error_at_line): Use it.
74907
74908 2001-10-11  Jim Meyering  <meyering@lucent.com>
74909
74910         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
74911         and quote_n (1, ... to avoid clobbering a buffer.
74912
74913 2001-10-05  Jim Meyering  <meyering@lucent.com>
74914
74915         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
74916         hash-pjw.h.
74917         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
74918         * lib/hash-pjw.h: New file.
74919
74920 2001-09-30  Jim Meyering  <meyering@lucent.com>
74921
74922         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
74923         `struct fsstat' has the `f_fstypename' member.
74924         Use that to define FS_TYPE, which is now used to make
74925         the getfsstat link test tighter.
74926
74927 2001-09-30  Jim Meyering  <meyering@lucent.com>
74928
74929         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
74930         Include <sys/ucred.h>, for Apple Darwin.
74931         Include sys/mount.h and sys/fs_types.h only if available.
74932         (FS_TYPE): Define.
74933         (read_filesystem_list): Use FS_TYPE.
74934
74935 2001-09-29  Paul Eggert  <eggert@twinsun.com>
74936
74937         * lib/exclude.c (excluded_filename): 0 -> false, since it's
74938         a boolean context.
74939
74940 2001-09-29  Jim Meyering  <meyering@lucent.com>
74941
74942         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74943         [one-argument getmntent function]): Include stdio.h before mntent.h.
74944         SunOS 4.1.x needs it for the declaration of `FILE'.
74945         Patch by Volker Borchert.
74946
74947         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
74948         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
74949         sys/fs_types.h, and make the link-test for getfsstat guard #include
74950         directives with appropriate #if HAVE_*_H tests so that we can
74951         detect getfsstat on Apple Darwin1.3.7 systems.
74952         Reported by Nelson Beebe.
74953         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
74954
74955 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74956
74957         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74958         #defines strtoimax.  Also treat the other strto* functions
74959         like strtoimax.
74960
74961         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
74962         Check for strtoul and strtoumax,
74963         as those declarations are made even in the signed case.
74964         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
74965         Likewise, for strtol and strtoimax.
74966
74967 2001-09-28  Paul Eggert  <eggert@twinsun.com>
74968
74969         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
74970         #defines strtoimax.  Also treat the other strto* functions
74971         like strtoimax.
74972
74973         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
74974         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
74975         (strtoimax, strtoumax): Do not declare if already defined as a macro.
74976
74977 2001-09-26  Jim Meyering  <meyering@lucent.com>
74978
74979         Most macros in unlocked-io.h had the wrong number of arguments.
74980         * lib/gen-uio: New script.
74981         (USE_UNLOCKED_IO): Define to 1 if not already defined.
74982         * lib/unlocked-io.hin: Remove file.
74983         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
74984         rather than trying to embed it here.
74985         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
74986         Reported by Padraig Brady.
74987
74988 2001-09-25  Volker Borchert  <bt@teknon.de>
74989
74990         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
74991         `result'.
74992
74993 2001-09-24  Jim Meyering  <meyering@lucent.com>
74994
74995         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
74996
74997 2001-09-23  Jim Meyering  <meyering@lucent.com>
74998
74999         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
75000         instead of the mere test for existence of mntent.h.  The latter
75001         would get a false-positive on AIX 3.4 systems.
75002         In the outer getmntent if-block, don't die if neither of the getmntent
75003         tests succeeds.  Instead, just fall through and continue with the
75004         remaining tests.
75005
75006 2001-09-23  Jim Meyering  <meyering@lucent.com>
75007
75008         * lib/mountlist.c: Remove useless parentheses in #if directives.
75009         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
75010         the deprecated MOUNTED symbol is no longer defined in mntent.h.
75011
75012 2001-09-22  Jim Meyering  <meyering@lucent.com>
75013
75014         * m4/gettext.m4: New file.  From gettext.
75015         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
75016         * m4/progtest.m4: Likewise
75017         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
75018         * m4/glibc21.m4: Likewise.
75019
75020         * m4/libintl.m4: Remove.  No longer used.
75021
75022 2001-09-22  Jim Meyering  <meyering@lucent.com>
75023
75024         * lib/localcharset.c: Update from latest gettext.
75025         * lib/config.charset: Likewise.
75026
75027 2001-09-20  Jim Meyering  <meyering@lucent.com>
75028
75029         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
75030         strtoimax.
75031         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
75032         strtoumax.
75033
75034 2001-09-20  Jim Meyering  <meyering@lucent.com>
75035
75036         * lib/xstrtol.c (strtoimax): Guard declaration with
75037         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
75038         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
75039         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
75040         (strtoumax): Likewise, for completeness (it wasn't necessary).
75041
75042 2001-09-17  Paul Eggert  <eggert@twinsun.com>
75043
75044         * lib/strtoimax.c (HAVE_LONG_LONG):
75045         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
75046         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
75047         to work around bug in IBM C compiler.
75048
75049 2001-09-17  Jim Meyering  <meyering@lucent.com>
75050
75051         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
75052         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
75053         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
75054         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
75055         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
75056         whenever the right hand side need not be expanded by the shell.
75057
75058 2001-09-16  Paul Eggert  <eggert@twinsun.com>
75059
75060         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
75061         library.  It's not correct, as some older glibcs are buggy.
75062         fnmatch wasn't fixed until glibc 2.2.
75063
75064         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
75065         special shell magic here.
75066
75067 2001-09-16  Jim Meyering  <meyering@lucent.com>
75068
75069         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
75070         * m4/jm-macros.m4: Require it.
75071
75072 2001-09-16  Jim Meyering  <meyering@lucent.com>
75073
75074         * lib/mkdir.c: New file.
75075
75076 2001-09-15  Jim Meyering  <meyering@lucent.com>
75077
75078         * m4/jm-macros.m4: Check for help2man.
75079
75080 2001-09-11  Jim Meyering  <meyering@lucent.com>
75081
75082         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
75083         The body, by Paul Eggert, was moved here from configure.in.
75084         * m4/jm-macros.m4: Require UTILS_HOST_OS.
75085
75086 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75087
75088         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
75089         (jm_PREREQ): Use it.
75090
75091 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75092
75093         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
75094         Use ssize_t, not int, to store result of readlink.
75095         Check for ssize_t overflow as well as size_t overflow,
75096         as POSIX says the result of readlink is implementation-defined
75097         when ssize_t overflows.
75098         Remove unnecessary cast to char*.
75099         Use free+malloc instead of realloc, as the storage doesn't need
75100         to be preserved and it's clearer and can be more efficient that way.
75101         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
75102         * lib/xreadlink.h (xreadlink): Update prototype.
75103
75104 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75105
75106         * lib/xgetcwd.c: Revert some of the previous change; intead,
75107         fix the HAVE_GETCWD_NULL code to behave more like the
75108         !HAVE_GETCWD_NULL code used to.
75109
75110         Include "xalloc.h".
75111         (xgetcwd): Do not return NULL when memory is exhausted; instead,
75112         invoke xalloc_die.
75113
75114 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75115
75116         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
75117         sys/param.h, as pathmax.h includes them.
75118
75119 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75120
75121         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
75122         (jm_PREREQ_XGETCWD): New macro.
75123
75124         * m4/getcwd.m4: New file.
75125
75126 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75127
75128         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
75129         like the HAVE_GETCWD_NULL code.
75130         Include pathmax.h if not HAVE_GETCWD.
75131         Do not include xalloc.h.
75132         (INITIAL_BUFFER_SIZE): New symbol.
75133         Do not use xmalloc / xrealloc, since the caller is responsible for
75134         handling errors.  Preserve errno around `free' during failure.
75135         Do not overrun buffer when using getwd.
75136
75137 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75138
75139         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
75140         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
75141         getcwd (NULL, 0).
75142
75143 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75144
75145         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
75146         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
75147         spotted by Jim Meyering.
75148
75149 2001-09-03  Jim Meyering  <meyering@lucent.com>
75150
75151         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
75152         failure.
75153
75154 2001-09-02  Jim Meyering  <meyering@lucent.com>
75155
75156         * lib/error.c: Update from GNU libc.
75157
75158 2001-09-01  Jim Meyering  <meyering@lucent.com>
75159
75160         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75161         Used by df.
75162
75163 2001-09-01  Jim Meyering  <meyering@lucent.com>
75164
75165         * lib/xreadlink.c: New file.
75166         * lib/xreadlink.h: New file.
75167         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75168         xreadlink.h.
75169
75170         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75171         doesn't conflict with sparc Solaris 7's definition in
75172         /usr/include/sys/int_types.h.
75173
75174         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75175         files.
75176         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75177         and strncasecmp as r-values.  Unixware didn't have declarations.
75178
75179 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75180
75181         * lib/xstrtol.h: Add copyright notice.
75182         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75183         LONGINT_INVALID_SUFFIX_CHAR.
75184
75185 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75186
75187         * lib/xstrtol.c (strtoimax): New decl.
75188
75189 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75190
75191         * lib/xgetcwd.c: Don't include pathmax.h.
75192         Include stdlib.h and unistd.h if available.
75193         Include xalloc.h.
75194         (xmalloc, xstrdup, free): Remove decls.
75195         (xgetcwd): Don't assume sizes fit in unsigned.
75196         Check for overflow when computing sizes.
75197         Simplify reallocation code.
75198
75199 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75200
75201         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75202         a directory's st_size can have an arbitrary value, so the old
75203         usage could waste an arbitrary amount of memory.  All uses
75204         changed.
75205         * lib/savedir.h: Update prototype.
75206
75207 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75208
75209         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75210
75211         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75212         old strtoimax.c.
75213
75214         Also, make the following further changes to make this file's
75215         configuration more similar to that of strtol.c:
75216         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75217         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75218         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75219         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75220         changed to signed values.
75221
75222         And make the following changes as well:
75223         Fix copyright notice, as 1999 was missing.
75224         (verify): New macro.
75225         (strtoimax): Check sizes at compile-time, not run-time.
75226         Prefer strtol to strtoll if both work.
75227         (main): Remove; it was not that useful and was a pain to maintain.
75228
75229         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75230
75231 2001-08-31  Jim Meyering  <meyering@lucent.com>
75232
75233         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75234         Use an initial, malloc'd, buffer of length 128 rather than
75235         a statically allocated one of length 1024.
75236
75237 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75238
75239         Simplify code, partly by assuming autoconf 2.52 semantics.
75240
75241         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75242
75243         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75244         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75245         All uses removed.
75246         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75247         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75248         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75249         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75250         jm_AC_HEADER_INTTYPES_H.
75251         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75252
75253         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75254
75255         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75256         Quote first arg of AC_DEFUN.
75257         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75258         since they are needed to parse the include file even if we need
75259         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75260         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75261         but with opposite signedness.
75262
75263 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75264
75265         Merge 'exclude' changes from tar 1.13.22.
75266         This fixes one or two unlikely storage allocation overflow bugs,
75267         but doesn't change user-visible behavior otherwise.
75268
75269 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75270
75271         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75272         (jm_PREREQ_EXCLUDE): New macro.
75273
75274 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75275
75276         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75277         tm to be declared.
75278
75279 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75280
75281         * lib/hash.c: Remove '2001' from copyright notice.
75282
75283 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75284
75285         * lib/full-write.h: New file.
75286         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75287         * lib/full-write.c: Correct credits, as cccp.c no longer
75288         exists and anyway it was so heavily changed from the old cccp
75289         code as to be unrecognizable.  Include full-write.h.
75290         (full_write) Return size_t, with short writes meaning failure.
75291         All callers changed.  This fixes a bug with large buffers
75292         on 64-bit hosts.
75293         * lib/utime.c: Include full-write.h.
75294
75295 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75296
75297         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75298         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75299         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75300         Include if available.
75301         (<xalloc.h>): Include
75302         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75303         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75304         collide with FNM macros.
75305         (struct patopts): New struct.
75306         (struct exclude): Use it, as exclude patterns now come with options.
75307         (new_exclude): Support above changes.
75308         (new_exclude, add_exclude_file):
75309         Initial size must now be a power of two to simplify overflow checking.
75310         (free_exclude, fnmatch_no_wildcards): New function.
75311         (excluded_filename): No longer requires options arg, as the options
75312         are determined by add_exclude.  Now returns bool, not int.
75313         (excluded_filename, add_exclude):
75314         Add support for the fancy new exclusion options.
75315         (add_exclude, add_exclude_file): Now takes int options arg.
75316         Check for arithmetic overflow when computing sizes.
75317         (add_exclude_file): xrealloc might modify errno, so don't
75318         realloc until after errno might be used.
75319
75320         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75321         New macros.
75322         (free_exclude): New decl.
75323         (add_exclude, add_exclude_file): Now takes int options arg.
75324         (excluded_filename): No longer requires options arg, as the options
75325         are determined by add_exclude.  Now returns bool, not int.
75326
75327 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75328
75329         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75330
75331 2001-08-27  Jim Meyering  <meyering@lucent.com>
75332
75333         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75334
75335         * lib/version-etc.c (N_): Remove definition.
75336         Revert most of last change.
75337         Instead, simply don't mark the `Copyright...' string for translation.
75338         Based on advice from Paul Eggert.
75339
75340         * lib/strtoxmax.c: Tweak comment.
75341
75342 2001-08-26  Jim Meyering  <meyering@lucent.com>
75343
75344         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75345
75346         * m4/xstrtoimax.m4: New file.
75347         * m4/xstrtoumax.m4: Add comments explaining why we
75348         AC_REPLACE_FUNCS(strtol).
75349
75350 2001-08-26  Jim Meyering  <meyering@lucent.com>
75351
75352         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75353         of copyright with `%s' so translators don't get an untranslated
75354         message in 2002.
75355         (COPYRIGHT_YEAR): Define.
75356         (version_etc): Use fprintf rather than fputs.
75357         Suggestion from Ulrich Drepper.
75358
75359         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75360
75361         * lib/strtoll.c: New file, from GNU libc.
75362         * lib/xstrtoimax.c: New file.
75363
75364         * lib/xstrtol.h: Add xstrtoimax.
75365         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75366         * lib/strtoimax.c: New file.  Likewise, but first define
75367         STRTOUXMAX_SIGNED.
75368
75369         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75370         ...
75371         * lib/strtoxmax.c: ... then renamed to this.
75372
75373 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75374
75375         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75376         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75377         (jm_AC_TYPE_INTMAX_T): New macro.
75378         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75379
75380         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75381
75382         * m4/longlong.m4: Renamed from ulonglong.m4.
75383         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75384         * m4/uintmax_t.m4: Removed.
75385
75386 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75387
75388         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75389         Port to Solaris 8, where 'sed' requires a space after the 'r'
75390         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75391         Redirect output to $tmp just once.
75392
75393 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75394
75395         * lib/addext.c (<errno.h>): Include.
75396         (errno): Declare if not defined.
75397         (addext): Work correctly when pathconf returns -1 and leaves
75398         errno alone because there is no limit.  Also, work even if
75399         pathconf returns a value greater than SIZE_MAX.
75400
75401 2001-08-12  Jim Meyering  <meyering@lucent.com>
75402
75403         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75404         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75405         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75406         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75407         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75408         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75409         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75410         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75411         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75412         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75413         utime.m4, utimes.m4, xstrtoumax.m4:
75414         Quote the first argument in each use of AC_DEFUN.
75415
75416 2001-08-12  Jim Meyering  <meyering@lucent.com>
75417
75418         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75419         Simply `return getcwd (NULL, 0);'.
75420         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75421         Use 1300 as initial value for length, not PATH_MAX.
75422
75423         * lib/pathmax.h: Clean up cpp syntax.
75424
75425 2001-08-12  Jim Meyering  <meyering@lucent.com>
75426
75427         * lib/gettimeofday.c: New file.
75428         * lib/gtod.h: New file.
75429         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75430
75431 2001-08-05  Jim Meyering  <meyering@lucent.com>
75432
75433         * m4/jm-macros.m4: Require autoconf-2.52.
75434
75435 2001-08-04  Jim Meyering  <meyering@lucent.com>
75436
75437         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75438         stmt, to get in sync with glibc.
75439
75440 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75441
75442         The following changes are from gettext 0.10.39 as maintained by
75443         Bruno Haible.
75444
75445         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75446         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75447         with inverted sense.  All uses changed.
75448
75449         * lib/mbswidth.c: Don't include <limits.h>.
75450         Include <stdlib.h> and <string.h> unconditionally.
75451         (iswcntrl, mbsinit, ISCNTRL): New macros.
75452         (mbsnwidth): Use K&R style function declarations.
75453         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75454         can optimize it when MB_CUR_MAX == 1.
75455         The width of control characters is zero, not 1.
75456
75457 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75458
75459         The following changes are from gettext 0.10.39 as maintained by
75460         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75461
75462         * m4/codeset.m4: Upgrade to serial AM1.
75463         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75464         all uses changed.  Quote first arg of AC_DEFUN.
75465         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75466
75467         * m4/iconv.m4: Upgrade to serial AM2.
75468         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75469         Add --with-libconv-prefix.
75470         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75471         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75472         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75473         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75474         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75475
75476         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75477         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75478         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75479         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75480         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75481         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75482         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75483         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75484         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75485
75486         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75487         string.h any more.
75488
75489         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75490         not the default value.
75491
75492         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75493         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75494         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75495         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75496         Also check for iswcntrl, used for wcwidth fallback.
75497         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75498         to Autoconf 2.13.
75499
75500 2001-08-03  Jim Meyering  <meyering@lucent.com>
75501
75502         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75503         as it was in the original.  Reported by Paul Eggert.
75504
75505 2001-07-16  Jim Meyering  <meyering@lucent.com>
75506
75507         * m4/gettimeofday.m4: New file.
75508         Prompted by a report from Bernhard Baehr.
75509
75510 2001-07-15  Jim Meyering  <meyering@lucent.com>
75511
75512         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75513         stuff. Now it's in ../Makefile.cfg.
75514
75515 2001-07-15  Jim Meyering  <meyering@lucent.com>
75516
75517         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75518         (BUILT_SOURCES): Add unlocked-io.h.
75519         (io_functions): Define.
75520         (unlocked-io.h): New rule.
75521         (DISTCLEANFILES): Add unlocked-io.h.
75522         (all-local): Depend on unlocked-io.h, to ensure it is created.
75523
75524         * lib/unlocked-io.hin: New file
75525
75526         * lib/regex.c: Update from glibc.
75527
75528 2001-07-05  Jim Meyering  <meyering@lucent.com>
75529
75530         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
75531         recommendation.
75532         (libfetish_a_SOURCES): Put all .h files here instead.
75533         Remove a thus-exposed (better checks in automake) duplicate and
75534         two unnecessary .h files.
75535
75536 2001-07-04  Jim Meyering  <meyering@lucent.com>
75537
75538         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75539         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75540         distcheck failure.
75541
75542 2001-07-02  Jim Meyering  <meyering@lucent.com>
75543
75544         The following changes were prompted by suggestions from Bruno Haible.
75545
75546         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75547         is now generated.
75548         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75549         definition of EXTRA_DIST.
75550         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75551         ensure that the generated file is created/updated whenever the list
75552         of $(unlocked_functions) is changed.
75553         (jm-glibc-io.m4): New rule.
75554         (unlocked-io.h): New rule -- currently unused.
75555
75556 2001-06-24  Jim Meyering  <meyering@lucent.com>
75557
75558         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75559         unmatched right bracket, rather than kludging it with an extra,
75560         falsely-matching quote in a comment.  Patch by Akim Demaille.
75561
75562 2001-06-11  Jim Meyering  <meyering@lucent.com>
75563
75564         * lib/regex.c: Update from GNU libc.
75565
75566 2001-05-27  Jim Meyering  <meyering@lucent.com>
75567
75568         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75569         Check for ut_type in struct utmp.
75570
75571 2001-05-27  Jim Meyering  <meyering@lucent.com>
75572
75573         * lib/readutmp.h (UT_TYPE): Define.
75574
75575 2001-05-24  Jim Meyering  <meyering@lucent.com>
75576
75577         * lib/argmatch.c: Include "quote.h".
75578         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75579         quote function.  Reported by Göran Uddeborg.
75580
75581 2001-05-22  Jim Meyering  <meyering@lucent.com>
75582
75583         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75584         now that we use the package-supplied version unconditionally.
75585         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75586
75587 2001-05-21  Jim Meyering  <meyering@lucent.com>
75588
75589         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75590         shell syntax errors.
75591
75592 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75593
75594         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75595
75596 2001-05-20  Paul Eggert  <eggert@twinsun.com>
75597
75598         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
75599         Don't bother to check library strftime, since
75600         we'll be using our own my_strftime function anyway.
75601         Define my_strftime instead of strftime.
75602
75603 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
75604
75605         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
75606         which is not yet declared.
75607
75608 2001-05-15  Jim Meyering  <meyering@lucent.com>
75609
75610         * m4/regex.m4: Use proper quoting so brackets appear in the test
75611         program.
75612         Reported by, and with help from, Bruno Haible.
75613
75614 2001-05-13  Jim Meyering  <meyering@lucent.com>
75615
75616         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
75617         undefined.
75618
75619 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75620
75621         dirname code cleanup.  base_name now behaves more compatibly
75622         with POSIX basename when given file names that have trailing
75623         slashes, and similarly for dir_name.  Add new primitives
75624         base_len and dir_len.  Put the directory-name-related decls
75625         into dirname.h.
75626
75627         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
75628         * lib/backupfile.c (base_name): Likewise.
75629         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
75630         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
75631         * lib/makepath.c (strip_trailing_slashes): Likewise.
75632         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
75633         ISSLASH): Likewise.
75634         * lib/rename.c (strip_trailing_slashes): Likewise.
75635         * lib/same.c (base_name): Likewise.
75636         * lib/stripslash.c (ISSLASH): Likewise.
75637
75638         * lib/addext.c: Include <dirname.h> after size_t is defined.
75639         * lib/backupfile.c: Likewise.
75640
75641         * lib/addext.c (addext): Use base_len to trim redundant
75642         trailing slashes instead of doing it ourselves.
75643         But do not trim the last slash if it is not redundant.
75644
75645         * lib/backupfile.c (find_backup_file_name,
75646         max_backup_version): Use base_len instead of rolling it ourselves.
75647         Handle the case of "" and (on DOS) "C:" correctly.
75648
75649         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
75650         needed. Include <string.h>, <dirname.h>.
75651         (base_name): Allow file names ending in slashes, other than names
75652         that are all slashes.  In this case, return the basename followed
75653         by the slashes.  This is more general, and can be used in places
75654         where the original base_name purposely had an assertion failure.
75655         (base_len): New function.
75656
75657         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
75658         Do not include <assert.h>; no longer needed.
75659         Include xalloc.h.
75660         (memrchr): Remove decl.
75661         (dir_name_r): Remove.
75662         (dir_len): Renamed from dirlen.  All callers changed.
75663         Rewrite in terms of base_name, for simplicity and consistency.
75664         (dir_name): Never return NULL.  All callers changed.
75665         Do not include <stdlib.h> in test program; no longer needed.
75666         return 0; is fine for test program.
75667
75668         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
75669         New macros.
75670         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
75671
75672         * lib/path-concat.c (path_concat): Use base_len to compute
75673         base length, not strlen; this means we cannot rely on memcpy
75674         to null-terminate.
75675
75676         * lib/same.c (STREQ): Remove.
75677         (same_name): Handle the case where the basename ends in trailing '/'.
75678
75679         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
75680         a slash was stripped.  Do not strip the last slash after a
75681         file system prefix.
75682
75683 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75684
75685         * lib/Makefile.am (libfetish_a_SOURCES):
75686         Add strftime.c, since we now compile it on all hosts.
75687
75688         * lib/strftime.c (my_strftime):
75689         Define to nstrftime if emacs, but only if my_strftime is not defined.
75690         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
75691         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
75692         Add one more extra argument: a nanoseconds value.
75693         All uses changed.
75694         (ns): New macro.
75695         (my_strftime function): Add %N format.
75696         (emacs_strftimeu): Renamed from emacs_strftime,
75697         with extra ut argument.
75698
75699 2001-05-09  Paul Eggert  <eggert@twinsun.com>
75700
75701         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
75702
75703 2001-04-21  Jim Meyering  <meyering@lucent.com>
75704
75705         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
75706         doesn't interfere.
75707
75708 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75709
75710         * m4/ftruncate.m4: Check for chsize.
75711         Link with ftruncate.o unconditionally if ftruncate is missing.
75712         This was required when cross-compiling to i586-mingw32msvc.
75713
75714 2001-04-08  Jim Meyering  <meyering@lucent.com>
75715
75716         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
75717         recomputed; that's necessary when the offset spans a DST transition.
75718         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
75719
75720 2001-04-02  Jim Meyering  <meyering@lucent.com>
75721
75722         * lib/regex.h, regex.c: Update from GNU libc.
75723
75724 2001-03-24  Jim Meyering  <meyering@lucent.com>
75725
75726         * m4/jm-macros.m4: Require autoconf-2.49d.
75727
75728 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
75729
75730         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
75731
75732 2001-03-19  Paul Eggert  <eggert@twinsun.com>
75733
75734         * lib/version-etc.c (version_etc_copyright): Update to 2001.
75735
75736 2001-03-17  Jim Meyering  <meyering@lucent.com>
75737
75738         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
75739         now that the version in autoconf is equivalent.
75740         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
75741
75742         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
75743         Suggestion from Akim Demaille.
75744
75745         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
75746         (jm_PREREQ_TEMPNAME): New function.
75747
75748 2001-03-16  Paul Eggert  <eggert@twinsun.com>
75749
75750         * lib/tempname.c (uint64_t): Define to uintmax_t if
75751         not defined, and if UINT64_MAX is not defined.
75752         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
75753         Reported by John David Anglin.
75754
75755 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
75756
75757         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
75758         resolve alias if codeset is empty.
75759         * lib/config.charset (BeOS): Use wildcard syntax.
75760
75761 2001-03-13  Jim Meyering  <meyering@lucent.com>
75762
75763         * lib/path-concat.c (path_concat)
75764         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
75765         concatenating e.g., `C:' and `foo'.
75766         From Bruno Haible.
75767
75768 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75769
75770         * lib/localcharset.c (locale_charset): Don't use
75771         setlocale(LC_CTYPE,NULL). Don't return NULL.
75772         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
75773
75774 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
75775
75776         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
75777         support for DOS/DJGPP.
75778
75779 2001-03-01  Paul Eggert  <eggert@twinsun.com>
75780
75781         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
75782         lacks mkstemp.  Compile our own tempname.c if we compile our own
75783         mkstemp.c, as mkstemp relies on tempname.
75784
75785 2001-03-01  Jim Meyering  <meyering@lucent.com>
75786
75787         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
75788         AH_VERBATIM really does output its argument verbatim.
75789
75790 2001-02-28  Paul Eggert  <eggert@twinsun.com>
75791
75792         * lib/Makefile.am (libfetish_a_SOURCES):
75793         Add dup-safer.c, fopen-safer.c.
75794         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
75795
75796         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
75797         * lib/unistd-safer.h: New files.
75798
75799 2001-02-25  Paul Eggert  <eggert@twinsun.com>
75800
75801         The mkstemp replacement is taken from glibc 2.2.2, with some
75802         portability fixes for use outside glibc, as follows:
75803
75804         * lib/tempname.c (struct_stat64): New macro.
75805         (direxists, __gen_tempname): Use it.
75806         This avoids a portability problem with Solaris 8.
75807
75808         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
75809         (<stddef.h>, <stdint.h>, <string.h>):
75810         Include only if STDC_HEADERS || _LIBC.
75811         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
75812         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
75813         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
75814         (__set_errno): Define this macro if <errno.h> doesn't.
75815         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
75816         Define these macros if <stdio.h> doesn't.
75817         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
75818         Define these macros if <sys/stat.h>
75819         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
75820         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
75821         __xstat64): Define if not _LIBC.
75822         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
75823         (__gen_tempname): Invoke gettimeofday only if
75824         HAVE_GETTIMEOFDAY || _LIBC;
75825         otherwise, fall back on plain "time".
75826         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
75827
75828         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
75829
75830         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
75831
75832 2001-02-18  Paul Eggert  <eggert@twinsun.com>
75833
75834         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
75835
75836 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75837
75838         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
75839         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
75840         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
75841         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75842
75843 2001-02-17  Paul Eggert  <eggert@twinsun.com>
75844
75845         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
75846         Remove workaround macros for hosts that have mbrtowc but not
75847         mbstate_t, as we now insist on proper declarations for both
75848         before using mbrtowc.
75849
75850 2001-02-17  Jim Meyering  <meyering@lucent.com>
75851
75852         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
75853         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
75854         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
75855         UnixWare 7.1.1.
75856
75857         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
75858         rather than AC_CACHE_VAL.
75859
75860 2001-02-17  Jim Meyering  <meyering@lucent.com>
75861
75862         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
75863         around included file name.
75864
75865         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
75866
75867         * lib/strftime.c: Update from GNU libc (the only changes were to
75868         comments).
75869
75870 2001-02-17  Jim Meyering  <meyering@lucent.com>
75871
75872         * lib/regex.c: Update from libc.
75873
75874 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
75875
75876         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
75877         clash.
75878
75879 2001-02-16  Paul Eggert  <eggert@twinsun.com>
75880
75881         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
75882         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
75883         Reported by Mark Hounschell via Paul Eggert.
75884
75885 2001-02-07  Jim Meyering  <meyering@lucent.com>
75886
75887         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
75888
75889 2001-02-05  Jim Meyering  <meyering@lucent.com>
75890
75891         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
75892         it includes the patch required for `large file' support with at least
75893         HP-UX's 10.20 /bin/cc.
75894
75895 2001-02-03  Jim Meyering  <meyering@lucent.com>
75896
75897         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
75898         AS_IF, now that it works once again (mysteriously).
75899         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75900
75901 2001-01-30  Jim Meyering  <meyering@lucent.com>
75902
75903         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
75904         * m4/chown.m4: Rename conftestchown to conftest.chown.
75905         * m4/rename.m4: s/conftestdir/conftest.d1/ and
75906         s/conftestdir2/conftest.d2/.
75907         * m4/utimes.m4: s/conftestdata/conftest.data/
75908         Inspired by Pavel Roskin's change in autoconf.
75909
75910 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
75911
75912         * lib/config.charset: Update for FreeBSD 4.2.
75913
75914 2001-01-27  Jim Meyering  <meyering@lucent.com>
75915
75916         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
75917         a use of AS_IF.
75918         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
75919
75920 2001-01-26  Jim Meyering  <meyering@lucent.com>
75921
75922         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
75923         quotearg.c includes it.
75924
75925 2001-01-26  Jim Meyering  <meyering@lucent.com>
75926
75927         * lib/quotearg.c: Include stddef.h.
75928         * lib/quote.c: Include stddef.h.
75929         Reported by Axel Kittenberger.
75930
75931         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
75932         line in double quotes so that it evokes a better diagnostic.
75933         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
75934         Reported by Axel Kittenberger.
75935
75936 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
75937
75938         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
75939         as if it was a `charset'.
75940
75941 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75942
75943         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
75944         has const.
75945
75946 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
75947
75948         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
75949         to avoid a warning.  Add back 'const' to inptr.
75950
75951 2001-01-20  Jim Meyering  <meyering@lucent.com>
75952
75953         Be sure that headers are checked before used in code compiled
75954         for the type checks.
75955         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
75956         In place of that, invoke jm_CHECK_ALL_TYPES.
75957         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
75958         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
75959         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
75960         The check for ssize_t was mistakenly run before the test for unistd.h.
75961
75962         The configure-time check for stdbool.h was missing.
75963         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
75964         (jm_PREREQ_HASH): New function.
75965
75966 2001-01-17  Jim Meyering  <meyering@lucent.com>
75967
75968         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
75969         for autoconf-2.49c.
75970         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
75971
75972 2001-01-16  Jim Meyering  <meyering@lucent.com>
75973
75974         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
75975         From Bruno Haible.
75976
75977 2001-01-14  Jim Meyering  <meyering@lucent.com>
75978
75979         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
75980         foo and bar.  Create conftestdir/ in the script, not in the C code.
75981         Remove directories in the script, not in the C code.
75982         Remove conftestdir{,2} before trying to create the directory.
75983         Make the entire configure script fail if the mkdir fails.
75984
75985 2001-01-14  Jim Meyering  <meyering@lucent.com>
75986
75987         * lib/rename.c: New file.  From Volker Borchert.
75988         Include stdlib.h, string.h or strings.h, and xalloc.h.
75989         Use strip_trailing_slashes rather than open-coding it.
75990
75991 2001-01-03  Paul Eggert  <eggert@twinsun.com>
75992
75993         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
75994
75995 2001-01-03  Jim Meyering  <meyering@lucent.com>
75996
75997         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
75998         of local `inptr' to avoid warning with some system declarations of
75999         iconv.
76000
76001 2001-01-02  Volker Borchert  <bt@teknon.de>
76002
76003         * m4/rename.m4: New file.
76004         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
76005
76006 2001-01-01  Jim Meyering  <meyering@lucent.com>
76007
76008         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
76009         even on systems with utmpx.h.  It's necessary for the declaration of
76010         utmp's ut_user member.  Reported by Andreas Jaeger.
76011
76012         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
76013         available. They are required for the declarations of getgrgid and
76014         getpwuid resp.
76015         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
76016         Reported by Andreas Jaeger.
76017
76018 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
76019
76020         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
76021         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
76022         so `make install' also works in VPATH builds.
76023
76024 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
76025
76026         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
76027         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
76028         can be used in subdirectories.
76029
76030 2000-12-29  Paul Eggert  <eggert@twinsun.com>
76031
76032         * lib/modechange.c: Do not assume that mode_t uses the
76033         traditional octal encoding.  E.g. "chmod 1 FOO" should set
76034         the other-execute bit of FOO even if S_IXOTH != 1.
76035
76036         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
76037         WOTH, XOTH, ALLM): New macros.
76038         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
76039          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
76040         Use them.
76041         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
76042         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
76043         (mode_compile):
76044         No need to use uintmax_t; unsigned long is long enough.
76045         Don't bother to get suffix since we don't use it.
76046
76047 2000-12-26  Jim Meyering  <meyering@lucent.com>
76048
76049         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
76050         better with autoheader.
76051
76052 2000-12-24  Jim Meyering  <meyering@lucent.com>
76053
76054         * lib/hash.c (is_prime): Return explicit boolean values.
76055         (hash_get_first): Return NULL to appease Irix5.6's 89.
76056         Reported by Nelson Beebe.
76057
76058 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
76059
76060         * lib/localcharset.c (locale_charset): Add support for Win32.
76061
76062 2000-12-18  Paul Eggert  <eggert@twinsun.com>
76063
76064         * lib/physmem.h, lib/physmem.c: New files.
76065
76066         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
76067         (noinst_HEADERS): Add physmem.h.
76068
76069         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
76070         't' for compatibility with Solaris 8 sort.
76071
76072 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
76073
76074         * lib/config.charset: Add support for BeOS.
76075
76076 2000-12-17  Jim Meyering  <meyering@lucent.com>
76077
76078         * m4/dos.m4 (jm_AC_DOS): New file and macro.
76079         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
76080
76081 2000-12-16  Jim Meyering  <meyering@lucent.com>
76082
76083         This bug had a serious impact on chown: `chown N:M FILE' (for integer
76084         N and M) would have treated it like `chown N:N FILE'.
76085
76086         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
76087
76088 2000-12-16  Jim Meyering  <meyering@lucent.com>
76089
76090         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
76091         SHELLS_FILE to a file name that's useful on djgpp systems.
76092         Include stdlib.h.
76093         (ADDITIONAL_DEFAULT_SHELLS): Define.
76094         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
76095         Based mostly on a patch from Prashant TR.
76096
76097 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
76098
76099         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
76100         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
76101         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
76102
76103 2000-12-08  Andreas Schwab  <schwab@suse.de>
76104
76105         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
76106         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
76107
76108 2000-12-07  Jim Meyering  <meyering@lucent.com>
76109
76110         * lib/stripslash.c (ISSLASH): Define.
76111         (strip_trailing_slashes): Use ISSLASH rather than comparing against
76112         `/'.
76113         From Prashant TR.
76114
76115         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
76116         (dir_name_r): Declare this function as static.
76117         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
76118         manifest itself on a name containing a mix of slashes and
76119         backslashes.
76120         Make this function work with names starting with a DOS-style
76121         drive letter and colon prefix.
76122         (dir_name): Append `.' if necessary.
76123         Based mostly on patches from Prashant TR and Eli Zaretskii.
76124
76125         * lib/dirname.h (dir_name_r): Remove prototype.
76126
76127 2000-12-06  Paul Eggert  <eggert@twinsun.com>
76128
76129         * m4/off_t-format.m4: Remove this file.
76130         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
76131
76132 2000-12-06  Jim Meyering  <meyering@lucent.com>
76133
76134         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
76135         replacement strtoull, we may well need the replacement strtoul, too.
76136         Check for declarations of strtoul and strtoull.
76137         Check for strtol.  Mainly as a cue to cause automake to include
76138         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
76139         Check for limits.h -- strtol.c needs it.
76140
76141 2000-12-05  Jim Meyering  <meyering@lucent.com>
76142
76143         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
76144
76145 2000-12-04  Jim Meyering  <meyering@lucent.com>
76146
76147         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
76148         Also include memory.h, stdlib.h, unistd.h if appropriate.
76149         Reported by Andreas Jaeger (conflicting declaration of malloc).
76150
76151 2000-12-02  Jim Meyering  <meyering@lucent.com>
76152
76153         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76154         * m4/jm-macros.m4 (jm_MACROS): require it.
76155
76156 2000-12-02  Jim Meyering  <meyering@lucent.com>
76157
76158         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76159
76160 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76161
76162         * lib/memrchr.c: Include <config.h> before any system include file.
76163
76164 2000-11-30  Jim Meyering  <meyering@lucent.com>
76165
76166         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76167
76168 2000-11-30  Jim Meyering  <meyering@lucent.com>
76169
76170         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76171
76172 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76173
76174         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76175
76176 2000-11-26  Jim Meyering  <meyering@lucent.com>
76177
76178         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76179
76180 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76181
76182         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76183         size of (size_t) -1; it's not portable.
76184
76185 2000-11-17  Jim Meyering  <meyering@lucent.com>
76186
76187         * lib/strstr.c: Update from GNU libc.
76188
76189 2000-11-17  Akim Demaille  <akim@epita.fr>
76190
76191         * lib/obstack.h: Formatting changes.
76192         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76193         prevent type checking.
76194         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76195         cast the value to (void *): assigning a `foo *' to a `void *'
76196         variable is valid.
76197         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76198
76199 2000-11-16  Jim Meyering  <meyering@lucent.com>
76200
76201         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76202
76203 2000-11-11  Jim Meyering  <meyering@lucent.com>
76204
76205         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76206
76207 2000-11-10  Jim Meyering  <meyering@lucent.com>
76208
76209         * lib/obstack.h: Update from GNU libc.
76210         * lib/obstack.c: Likewise.
76211
76212 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76213
76214         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76215
76216 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76217
76218         * lib/getusershell.c (setusershell): Use rewind rather than
76219         fseek/fseeko, to avoid configuration hassles with fseeko.
76220         Don't bother opening SHELLS_FILE if shellstream is NULL;
76221         it's not necessary.
76222
76223 2000-11-05  Jim Meyering  <meyering@lucent.com>
76224
76225         * lib/makepath.h (make_dir): Declare.
76226         * lib/makepath.c (make_dir): Remove `static' attribute.
76227         Tweak a comment.
76228
76229 2000-11-04  Jim Meyering  <meyering@lucent.com>
76230
76231         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76232
76233 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76234
76235         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76236         last one in a bucket, advance to the next bucket.
76237
76238 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76239
76240         * lib/fnmatch.c: Do not comment out all the code if we are using
76241         the GNU C library, because in some cases we are replacing buggy
76242         code in the GNU C library itself.
76243
76244 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76245
76246         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76247         (regex_compile): Catch bogus \(\1\).
76248
76249 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76250
76251         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76252         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76253         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76254
76255 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76256
76257         * lib/error.h, getline.h, modechange.h:
76258         Remove "2000" from Copyright line, as the file hasn't been
76259         changed this year other than in the copyright notice.
76260
76261         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76262         was changed this year.
76263
76264 2000-10-29  Jim Meyering  <meyering@lucent.com>
76265
76266         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76267         renaming.
76268         * m4/ls-mntd-fs.m4: Likewise
76269
76270 2000-10-29  Jim Meyering  <meyering@lucent.com>
76271
76272         * lib/xstat.in: Fix grammar in comment.
76273
76274 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76275
76276         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76277         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76278         doesn't define __restrict_arr.
76279
76280 2000-10-28  Jim Meyering  <meyering@lucent.com>
76281
76282         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76283         (jm_PREREQ_MEMCHR): New function.
76284
76285 2000-10-28  Jim Meyering  <meyering@lucent.com>
76286
76287         * lib/memchr.c: Update from libc.
76288         Adjust for portability:
76289         [HAVE_STDLIB_H]: Include stdlib.h.
76290         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76291         Undef __memchr, too.
76292         [!weak_alias]: Define __memchr to memchr.
76293
76294         * lib/regex.c: Update from libc.
76295         * lib/regex.h: Likewise.
76296         * lib/getopt1.c: Likewise.
76297         * lib/memcmp.c: Likewise.
76298
76299         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76300         Avoid using fseek, when possible -- it's broken by design.
76301         Patch by Ulrich Drepper.
76302
76303 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76304
76305         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76306         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76307         Giving in to popular pressure to shut up the compiler with casts.
76308
76309 2000-10-26  Jim Meyering  <meyering@lucent.com>
76310
76311         * lib/strftime.c: Update from libc.
76312
76313 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76314
76315         * regex.c: More `unsigned char' -> `re_char' changes.
76316         Also change several `int' into `re_wchar_t'.
76317         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76318         (PUSH_FAILURE_POINTER): Don't cast any more.
76319         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76320         We want GCC to complain, since this piece of code makes
76321         re_match non-reentrant, which *should* be fixed.
76322         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76323         (EXTEND_BUFFER): Use RETALLOC.
76324         (SET_LIST_BIT): Don't cast.
76325         (re_wchar_t): New type.
76326         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76327         that those two functions will always properly return.
76328         (IMMEDIATE_QUIT_CHECK): Cast to void.
76329         (analyse_first): Use recursion rather than an explicit stack.
76330         (re_compile_fastmap): Can't fail anymore.
76331         (re_search_2): Don't check re_compile_fastmap for failure.
76332         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76333         Now also sets the new value (passed in a new argument).
76334         (re_match_2_internal): Use it.
76335         Also, use a new var `reg' of type size_t when looping through regs
76336         rather than reuse the inappropriate `mcnt'.
76337
76338 2000-10-25  Jim Meyering  <meyering@lucent.com>
76339
76340         * lib/obstack.c: Update from libc.
76341
76342 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76343
76344         * regex.c (regex_compile): Change the way of handling a range from
76345         a char less than 256 to a char not less than 256.
76346
76347 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76348
76349         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76350         NT-Emacs only.
76351         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76352         so that re_search functions only quit when callers expect them to.
76353
76354 2000-10-23  Jim Meyering  <meyering@lucent.com>
76355
76356         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76357         wrong.  That set_locale call must not have any side effects.
76358         From Paul Eggert.
76359
76360 2000-10-22  Jim Meyering  <meyering@lucent.com>
76361
76362         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76363         [CYCLIC]: Remove now-unused definition.
76364
76365         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76366         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76367         Suggestion from Ulrich Drepper.
76368
76369 2000-10-21  Jim Meyering  <meyering@lucent.com>
76370
76371         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76372         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76373         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76374
76375 2000-10-21  Jim Meyering  <meyering@lucent.com>
76376
76377         * lib/dirname.c (memrchr): Declare if necessary.
76378         (dir_name): Remove the restriction that there be no
76379         trailing slashes.  Now, this code skips past them, effectively
76380         ignoring them.
76381         [TEST_DIRNAME] (main): New unit tests.
76382
76383         * lib/memrchr.c: New file from GNU libc.
76384         Undef __memrchr, too.
76385         [!weak_alias]: Define __memrchr to memrchr.
76386         Guard weak_alias use with `#ifdef weak_alias'.
76387
76388 2000-10-21  Jim Meyering  <meyering@lucent.com>
76389
76390         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76391         (dir_name): Use dir_name_r.
76392         * lib/dirname.h (dir_name_r): Declare it.
76393
76394 2000-10-17  Jim Meyering  <meyering@lucent.com>
76395
76396         * lib/quote.h (PARAMS): Define and use.
76397         Reported by Akim Demaille.
76398
76399         * lib/getopt.c: Update from libc.
76400
76401 2000-10-16  Jim Meyering  <meyering@lucent.com>
76402
76403         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76404         setlocale.
76405         From Jan Fedak.
76406
76407 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76408
76409         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76410
76411 2000-09-25  Jim Meyering  <meyering@lucent.com>
76412
76413         * lib/md5.h (rol): Define (from GnuPG).
76414
76415         * lib/sha.c: Give credit (GnuPG) where due.
76416         (M): Use rol rather than open-coding it.
76417         Add a FIXME comment.
76418
76419 2000-09-21  Jim Meyering  <meyering@lucent.com>
76420
76421         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76422         Reported by Michael Stone.
76423
76424 2000-09-20  Jim Meyering  <meyering@lucent.com>
76425
76426         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76427         (noinst_HEADERS): Add sha.h.
76428         Based on code from Scott G. Miller and from GnuPG.
76429
76430 2000-09-18  Jim Meyering  <meyering@lucent.com>
76431
76432         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76433         LIBS. Otherwise, everyone ends up linking with -lelf for some
76434         configurations.
76435         Reported by Mike Stone.
76436
76437 2000-09-15  Jim Meyering  <meyering@lucent.com>
76438
76439         * lib/regex.c: Update from libc.
76440
76441 2000-09-10  Jim Meyering  <meyering@lucent.com>
76442
76443         * lib/getopt.c (_getopt_internal): Update from glibc.
76444
76445 2000-09-09  Jim Meyering  <meyering@lucent.com>
76446
76447         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76448         think it should be used as a general replacement for isascii.
76449         * lib/fnmatch.c: Likewise.
76450         * lib/mbswidth.c: Likewise
76451         * lib/regex.c: Likewise.
76452
76453         Don't use atoi.
76454         * lib/userspec.c: Include sys/param.h and limits.h.
76455         Include xstrtol.h.
76456         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76457         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76458         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76459         UID, GID.  Check range.
76460
76461 2000-09-06  Jim Meyering  <meyering@lucent.com>
76462
76463         * lib/getopt.c (_getopt_internal): Update from glibc.
76464
76465 2000-08-30  Jim Meyering  <meyering@lucent.com>
76466
76467         * lib/strftime.c: Merge in changes from GNU libc.
76468
76469 2000-08-26  Jim Meyering  <meyering@lucent.com>
76470
76471         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76472         * m4/fpending.m4: New file.
76473
76474 2000-08-26  Jim Meyering  <meyering@lucent.com>
76475
76476         * lib/closeout.c: Include "__fpending.h".
76477         (close_stdout_status): Return right away if there's nothing to flush.
76478
76479         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76480         * lib/__fpending.c: New file.
76481         * lib/__fpending.h: New file.
76482
76483 2000-08-20  Jim Meyering  <meyering@lucent.com>
76484
76485         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76486         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76487         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76488
76489 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76490
76491         Improve fileutils installation on systems where running
76492         programs (like install) can't be unlinked.
76493         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76494         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76495
76496 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76497
76498         Standardize on "memory exhausted" instead of "Memory exhausted"
76499         or "virtual memory exhausted".
76500         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76501         "virtual memory exhausted".
76502         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76503         our own message.
76504         * lib/userspec.c (parse_user_spec): Likewise.
76505         * lib/bumpalloc.h: comment fix
76506         * lib/same.c, userspec.c: Include xalloc.h.
76507
76508         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76509         not char *const and pointing to a constant array.
76510         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76511         (xrealloc): Comment fix.
76512
76513         * lib/userspec.c (parse_user_spec):
76514         Don't translate a message until just before returning,
76515         to avoid unnecessary translation.
76516
76517 2000-08-07  Jim Meyering  <meyering@lucent.com>
76518
76519         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76520         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76521         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76522         getgroups.c, gethostname.c, getopt.h, group-member.c,
76523         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76524         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76525         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76526         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76527         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76528         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76529         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
76530         yesno.c: Back out Copyright date changes for each file with no change
76531         this year.  This eases coordination with other programs using the same
76532         source code modules.  From Paul Eggert.
76533
76534 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76535
76536         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76537         not char, for compatibility with glibc 2.1.3 strftime.c.
76538
76539 2000-08-03  Greg McGary  <greg@mcgary.org>
76540
76541         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76542         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76543         (EXTEND_BUFFER): Use them.
76544
76545 2000-08-01  Jim Meyering  <meyering@lucent.com>
76546
76547         * lib/dirname.c (ISSLASH): Define.
76548         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76549         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76550         both `\' and `/' may be use as path separators.
76551         Based on a patch from Prashant TR.
76552
76553 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76554
76555         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76556         slot vector a constant, since it might get modified.
76557
76558 2000-07-31  Jim Meyering  <meyering@lucent.com>
76559
76560         * lib/xmalloc.c: Use `virtual memory exhausted', not
76561         `Memory exhausted'.
76562         * lib/obstack.c (print_and_abort): Likewise.
76563
76564 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76565
76566         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76567         buffer, so that the caller can always quote one small
76568         component of a "memory exhausted" message in slot 0.
76569         From a suggestion by Jim Meyering.
76570
76571 2000-07-30  Jim Meyering  <meyering@lucent.com>
76572
76573         * lib/makepath.c (make_path): Quote the other instance, too.
76574
76575         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76576         (STATIC_BUF_SIZE): Define.
76577         (quotearg_n_options): Use only statically allocated storage when
76578         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76579         than STATIC_BUF_SIZE.
76580
76581 2000-07-29  Jim Meyering  <meyering@lucent.com>
76582
76583         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76584         * lib/dirname.c (dir_name): Likewise.
76585
76586         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76587         `/'.
76588
76589         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76590         (dir_name): Assert that there are no trailing slashes.
76591
76592 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76593
76594         * lib/mbswidth.h (mbswidth): Add a flags argument.
76595         (mbswidth): New declaration.
76596         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
76597         * lib/mbswidth.c (mbswidth): Add a flags argument.
76598         (mbsnwidth): New function.
76599
76600 2000-07-24  Jim Meyering  <meyering@lucent.com>
76601
76602         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
76603
76604 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76605
76606         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
76607
76608 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76609
76610         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
76611         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
76612         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
76613         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
76614         invoke multibyte primitives.
76615
76616 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76617
76618         * lib/quotearg.c:
76619         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
76620         so that mbstate_t is always defined.
76621
76622         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
76623         be 1 in at least one GCC installation, and this configuration
76624         error is likely to be common.  Ignoring MB_LEN_MAX hurts
76625         performance on hosts that have mbrtowc but have only unibyte
76626         locales, but I assume these hosts are rare.
76627
76628 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76629
76630         * lib/mbswidth.c (_XOPEN_SOURCE):
76631         Don't define; this causes problems on Solaris 7.
76632         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
76633
76634 2000-07-23  Jim Meyering  <meyering@lucent.com>
76635
76636         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
76637         too: getgrgid, getpwuid, getuid.
76638
76639 2000-07-23  Jim Meyering  <meyering@lucent.com>
76640
76641         * lib/basename.c (base_name): Add an assertion.
76642
76643 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
76644
76645         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
76646         shadow its mbsinit function.
76647
76648 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76649
76650         * lib/mbswidth.h: New file.
76651         * lib/mbswidth.c: New file.
76652         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
76653         (noinst_HEADERS): Add mbswidth.h.
76654
76655 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76656
76657         * lib/config.charset: Add support for FreeBSD. Improve support for
76658         HP-UX and IRIX 6.
76659
76660 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
76661
76662         * m4/mbswidth.m4: New file.
76663         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
76664
76665 2000-07-15  Jim Meyering  <meyering@lucent.com>
76666
76667         * lib/makepath.c: Include quote.h.
76668         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
76669         corresponding argument in a `quote (...)' call.
76670         Give better diagnostics.
76671
76672         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
76673         (noinst_HEADERS): Add quote.h.
76674
76675         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
76676         from tar's src/misc.c.
76677         * lib/quote.h: New file.  Prototypes for same.
76678
76679 2000-07-14  Paul Eggert  <eggert@twinsun.com>
76680
76681         From a suggestion by Bruno Haible.
76682         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
76683         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
76684         to decide whether to define the BeOS workaround macro;
76685         this adjusts to the change to AC_MBSTATE_T.
76686
76687 2000-07-14  Jim Meyering  <meyering@lucent.com>
76688
76689         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
76690         jm_AC_TYPE_UINTMAX_T.
76691
76692 2000-07-13  Paul Eggert  <eggert@twinsun.com>
76693
76694         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
76695
76696         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
76697         quotearg_buffer_restyled): Add support for
76698         clocale_quoting_style.  Undo previous change to
76699         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
76700         and "{RIGHT QUOTATION MARK}" msgids.
76701
76702 2000-07-10  Paul Eggert  <eggert@twinsun.com>
76703
76704         From a suggestion by Bruno Haible.
76705         * m4/mbstate_t.m4 (AC_MBSTATE_T):
76706         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
76707         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
76708         and mbstate_t, to a single-part test that simply defines mbstate_t.
76709         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
76710         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
76711
76712 2000-07-10  Jim Meyering  <meyering@lucent.com>
76713
76714         * m4/strerror_r.m4: Mirror the correction made in autoconf.
76715
76716         * m4/gnu-source.m4: Output to confdefs.h directly.
76717         Suggestion from Akim Demaille.
76718
76719 2000-07-09  Paul Eggert  <eggert@twinsun.com>
76720
76721         The old behavior of quoting `like this' doesn't look good with
76722         newer, ISO-style fonts.  See:
76723         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
76724
76725         Instead, quote "like this" by default.  Let the translator
76726         tailor the locale-specific quoting behavior by providing
76727         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
76728
76729         * lib/quotearg.c (N_): New macro.
76730         (gettext_default): New function.
76731         (quotearg_buffer_restyled): Use
76732         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
76733         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
76734
76735 2000-07-09  Jim Meyering  <meyering@lucent.com>
76736
76737         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
76738         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
76739
76740         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
76741         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
76742
76743 2000-07-09  Jim Meyering  <meyering@lucent.com>
76744
76745         * lib/Most files: Update copyright dates to include 2000.
76746
76747 2000-07-08  Jim Meyering  <meyering@lucent.com>
76748
76749         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
76750         if not defined.
76751         (xgethostname): Remove now-unnecessary #ifdef.
76752         Move declaration of `err' into loop where it's used.
76753
76754 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76755         and Bruno Haible  <haible@clisp.cons.org>
76756
76757         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
76758         only if the test for an object-type mbstate_t fails.  This
76759         prevents us from mistakenly reporting that mbstate_t is a
76760         system object type after we "#define mbstate_t int" to work
76761         around its lack.
76762
76763 2000-07-05  Paul Eggert  <eggert@twinsun.com>
76764         and Bruno Haible  <haible@clisp.cons.org>
76765
76766         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
76767
76768 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76769
76770         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
76771         to strerror_r.
76772         Include <ctype.h> for use of isalpha.
76773
76774 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76775
76776         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
76777         by allocating a larger buffer. Test the gethostname return value for
76778         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
76779         returns an error and ENAMETOOLONG isn't defined.
76780
76781 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
76782
76783         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
76784         dimension.
76785
76786 2000-07-04  Jim Meyering  <meyering@lucent.com>
76787
76788         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
76789         of the deprecated AC_CHECKING.
76790
76791 2000-07-04  Jim Meyering  <meyering@lucent.com>
76792
76793         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
76794         Reported by Bruno Haible.
76795
76796 2000-07-04  Jim Meyering  <meyering@lucent.com>
76797
76798         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
76799         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
76800         lacks mbrtowc.
76801
76802 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76803
76804         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
76805         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
76806
76807 2000-07-03  Paul Eggert  <eggert@twinsun.com>
76808         and Bruno Haible  <haible@clisp.cons.org>
76809
76810         * lib/quotearg.c (mbrtowc):
76811         Assign to *pwc, and return 1 only if result is nonzero.
76812         (iswprint): Use ISPRINT when substituting our own mbrtowc.
76813
76814 2000-07-03  Jim Meyering  <meyering@lucent.com>
76815
76816         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
76817
76818 2000-07-03  Jim Meyering  <meyering@lucent.com>
76819
76820         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
76821         This is necessary to get a definition of e.g., UTMP_FILE on
76822         HP-UX 10.20.
76823         From Bob Proulx.
76824
76825 2000-07-02  Jim Meyering  <meyering@lucent.com>
76826
76827         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
76828
76829         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
76830         AC_LIBOBJ(function_name).
76831         * m4/chown.m4: Likewise.
76832         * m4/fnmatch.m4: Likewise.
76833         * m4/ftruncate.m4: Likewise.
76834         * m4/getgroups.m4: Likewise.
76835         * m4/getline.m4: Likewise.
76836         * m4/group-member.m4: Likewise.
76837         * m4/jm-macros.m4: Likewise.
76838         * m4/lstat.m4: Likewise.
76839         * m4/malloc.m4: Likewise.
76840         * m4/memcmp.m4: Likewise.
76841         * m4/nanosleep.m4: Likewise.
76842         * m4/putenv.m4: Likewise.
76843         * m4/realloc.m4: Likewise.
76844         * m4/regex.m4: Likewise.
76845         * m4/stat.m4: Likewise.
76846         * m4/strftime.m4: Likewise.
76847
76848 2000-07-02  Jim Meyering  <meyering@lucent.com>
76849
76850         * lib/quotearg.c (mbstate_t): Don't define here.
76851
76852 2000-07-02  Jim Meyering  <meyering@lucent.com>
76853
76854         * lib/nanosleep.c (SIGCONT): Define if not already defined.
76855
76856 2000-07-01  Jim Meyering  <meyering@lucent.com>
76857
76858         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
76859
76860 2000-07-01  Jim Meyering  <meyering@lucent.com>
76861
76862         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
76863         problem.
76864
76865 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76866
76867         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
76868         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
76869
76870 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
76871
76872         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
76873         per change in ../m4/ls-mntd-fs.m4.
76874         (read_filesystem_list): Ignore symbolic links.
76875
76876 2000-06-29  Jim Meyering  <meyering@lucent.com>
76877
76878         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
76879         for declaration of strcmp.
76880
76881         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
76882
76883         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
76884         Avoid warning by casting result to `char *' to remove `const'.
76885
76886 2000-06-28  Jim Meyering  <meyering@lucent.com>
76887
76888         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
76889         included by quotearg.c, for which we perform this test.  From
76890         Bruno Haible.
76891
76892 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76893
76894         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
76895         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
76896         <utmpx.h> exists, put readutmp.o into LIBOBJS.
76897
76898 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
76899
76900         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
76901
76902 2000-06-26  Paul Eggert  <eggert@twinsun.com>
76903
76904         savedir now sets errno on failure and invokes xmalloc to get memory.
76905         Fix a couple of other minor bugs while we're at it.
76906
76907         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
76908         (NAMLEN): Remove macro.
76909         (malloc, realloc): Remove decls.
76910         (stpcpy): Likewise.
76911         ("xalloc.h"): Include.
76912         (NAME_SIZE_DEFAULT): New macro.
76913         (savedir): Use xmalloc / xrealloc to allocate memory.
76914         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
76915         Skip "" directory entries.
76916         Use strlen to calculate directory entry length, since the old method
76917         is rarely used these days and isn't worth supporting.
76918         Don't use a pointer after freeing it.
76919         Check for integer overflow when calculating allocation size.
76920         Use memcpy to copy entries, instead of stpcpy.
76921         Set errno properly when returning NULL.
76922         Check for readdir error.
76923
76924 2000-06-26  Jim Meyering  <meyering@lucent.com>
76925
76926         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
76927
76928 2000-06-25  Jim Meyering  <meyering@lucent.com>
76929
76930         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
76931         Linux header bug when _XOPEN_SOURCE is defined to 500.
76932
76933 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76934
76935         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
76936         deficiency.
76937
76938 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
76939
76940         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
76941         Include xalloc.h.
76942         Don't include <stdlib.h>.  Don't declare malloc, realloc.
76943
76944 2000-06-24  Jim Meyering  <meyering@lucent.com>
76945
76946         * m4/strerror_r.m4: Revive this file -- to try out an experimental
76947         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
76948         for which strerror does return char*, but which lacks a conveniently
76949         accessible declaration of the function.  If the compile-test says
76950         strerror_r doesn't work, then resort to a `run'-test that works on
76951         BeOS and segfaults on DEC Unix.
76952
76953 2000-06-24  Jim Meyering  <meyering@lucent.com>
76954
76955         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
76956
76957 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76958
76959         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
76960         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
76961
76962 2000-06-23  Paul Eggert  <eggert@twinsun.com>
76963
76964         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
76965         (mbrtowc, mbstate_t): Define substitutes if
76966         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
76967         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
76968         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
76969
76970 2000-06-23  Jim Meyering  <meyering@lucent.com>
76971
76972         * m4/afs.m4: Add missing AC_MSG_RESULT.
76973         Reported by Bruno Haible.
76974
76975         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
76976         Suggestion from Bruno Haible.
76977
76978 2000-06-23  Jim Meyering  <meyering@lucent.com>
76979
76980         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
76981
76982 2000-06-21  Jim Meyering  <meyering@lucent.com>
76983
76984         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
76985
76986 2000-06-21  Jim Meyering  <meyering@lucent.com>
76987
76988         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
76989         (noinst_HEADERS): Add getstr.h.
76990
76991         * lib/getline.c (getstr): Move into a separate file.
76992         * lib/getstr.c (getstr): New file, extracted from getline.c, with
76993         the following changes: new parameter, delim2; both delim[12]
76994         parameters have type `int', not `char'.  The latter would lose
76995         with 8-bit delimiters.
76996         * lib/getstr.h: New file.
76997
76998 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
76999
77000         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
77001         than 1024, return a memory chunk of least possible size, instead
77002         of size PATH_MAX + 2. In the loop, increment the size proportionally.
77003         Use free/xmalloc instead of xrealloc to avoid copying for very long
77004         paths.
77005
77006 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77007
77008         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
77009         the empty string.
77010
77011 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77012
77013         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
77014         address, not strdup.  Include <stdlib.h> and don't declare free().
77015
77016 2000-06-19  Jim Meyering  <meyering@lucent.com>
77017
77018         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
77019
77020 2000-06-18  Jim Meyering  <meyering@lucent.com>
77021
77022         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
77023
77024         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
77025         `checking whether...' message to be consistent with that of the
77026         lstat test.
77027
77028 2000-06-18  Jim Meyering  <meyering@lucent.com>
77029
77030         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
77031         Besides, these days every porting target provides a mkdir function.
77032
77033         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
77034         needed. (this snippet comes from src/system.h).
77035
77036 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
77037
77038         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
77039
77040 2000-06-15  Paul Eggert  <eggert@twinsun.com>
77041
77042         * lib/human.c (adjust_value): New function.
77043         (human_readable_inexact): Apply rounding style even when
77044         printing approximate values.
77045
77046 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77047
77048         * lib/human.c (human_readable_inexact): Allow an input block
77049         size that is not a multiple of the output block size, and vice versa.
77050         Reported by Piergiorgio Sartor.
77051
77052 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77053
77054         * lib/getdate.y (get_date): Apply relative times after time
77055         zone indicator, not before.  Reported by Todd A. Jacobs.
77056
77057 2000-06-13  Jim Meyering  <meyering@lucent.com>
77058
77059         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
77060
77061         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
77062
77063 2000-06-12  Paul Eggert  <eggert@twinsun.com>
77064
77065         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
77066
77067 2000-06-12  Jim Meyering  <meyering@lucent.com>
77068
77069         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
77070         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
77071         optional argument.
77072         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
77073         the optional argument, `lib'.
77074
77075 2000-06-08  Jim Meyering  <meyering@lucent.com>
77076
77077         * m4/largefile.m4: Remove file (now that it's part of autoconf).
77078
77079 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77080
77081         Rewrite largefile configuration so that we don't need to run
77082         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
77083         AC_CANONICAL_HOST in configure.in -- jmm]
77084
77085         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
77086         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
77087         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
77088         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
77089         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
77090         All uses changed.
77091         Instead of inspecting the output of getconf, try to compile the
77092         test program without and with the macro definition.
77093         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
77094         for getconf.  Instead, check for the needed flags by compiling
77095         test programs.
77096
77097 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77098
77099         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
77100
77101 2000-06-04  Jim Meyering  <meyering@lucent.com>
77102
77103         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
77104         SunOS 4.1.4 for which gid_t is an unsigned type.
77105
77106 2000-06-03  Jim Meyering  <meyering@lucent.com>
77107
77108         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
77109         now that autoconf requires that.
77110
77111         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
77112         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
77113         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
77114
77115 2000-06-03  Jim Meyering  <meyering@lucent.com>
77116
77117         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
77118
77119 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77120
77121         * m4/glibc21.m4: New file.
77122         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
77123
77124 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77125
77126         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
77127         newer, don't install charset.alias.
77128         * lib/config.charset: Change the Linux/glibc rules so they become empty
77129         on glibc-2.1 or newer.
77130
77131 2000-06-02  Jim Meyering  <meyering@lucent.com>
77132
77133         * lib/mountlist.c: Back out last change.  Instead, do this...
77134         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
77135         me_dummy member using the same `ignore'-testing code.
77136         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
77137         fs_type strings.
77138         From Mark D. Roth.
77139
77140 2000-05-29  Jim Meyering  <meyering@lucent.com>
77141
77142         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
77143         mounts with the `ignore' attribute.  Based on a patch from
77144         Mark D. Roth.
77145
77146 2000-05-28  Jim Meyering  <meyering@lucent.com>
77147
77148         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
77149         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77150         * m4/stat.m4: Likewise.
77151         * m4/lstat.m4: Likewise.
77152         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77153
77154         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77155         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77156
77157 2000-05-26  Jim Meyering  <meyering@lucent.com>
77158
77159         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77160
77161 2000-05-24  Jim Meyering  <meyering@lucent.com>
77162
77163         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77164         autoconf requires that.
77165         * m4/lib-check.m4: Likewise.
77166         * m4/jm-macros.m4: Likewise.
77167         * m4/strftime.m4: Likewise.
77168
77169         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77170         AC_CHECK_DECLS, now that autoconf requires that.
77171
77172 2000-05-22  Jim Meyering  <meyering@lucent.com>
77173
77174         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77175         * m4/lstat.m4: Likewise.
77176
77177 2000-05-22  Jim Meyering  <meyering@lucent.com>
77178
77179         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77180
77181 2000-05-20  Jim Meyering  <meyering@lucent.com>
77182
77183         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77184         (jm_PREREQ): Use it.
77185
77186 2000-05-18  Jim Meyering  <meyering@lucent.com>
77187
77188         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77189         back, too, since it may have been modified by allocate_entry.
77190         (hash_delete): Rewrite to use neither the assignment operator
77191         nor the comma operator in an if-expression.
77192
77193 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77194
77195         * lib/closeout.c:
77196         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77197         Remove; no longer needed.
77198         "quotearg.h": Add include.
77199         (file_name): Do not bother to explicitly initialize to NULL; it's less
77200         efficient on some hosts.
77201         (close_stdout_status): Remove test as to whether stdout was already
77202         closed; it breaks for the case "echo x | sort >&-".
77203         Quote file name colons.
77204         Do not assume that _("write error") lacks format strings.
77205
77206 2000-05-15  Jim Meyering  <meyering@lucent.com>
77207
77208         * lib/version-etc.c (version_etc_copyright): Update the copyright
77209         string used in all --version output.
77210
77211 2000-05-14  Jim Meyering  <meyering@lucent.com>
77212
77213         * lib/closeout.c (close_stdout_set_file_name): New function.
77214         (close_stdout_status): Use new file-scoped global.
77215         Return right away if fstat says the stdout file descriptor is invalid.
77216         * lib/closeout.h (close_stdout_set_file_name): Declare.
77217
77218 2000-05-10  Jim Meyering  <meyering@lucent.com>
77219
77220         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77221         (close_stdout_set_status): New function.
77222         * lib/closeout.h (close_stdout_set_status): Declare.
77223
77224 2000-05-09  Jim Meyering  <meyering@lucent.com>
77225
77226         * m4/gettext.m4: Rename this...
77227         * m4/libintl.m4: ...to this.
77228
77229 2000-05-08  Jim Meyering  <meyering@lucent.com>
77230
77231         * lib/long-options.c: Don't include closeout.h.
77232         (parse_long_options): Don't call close_stdout for --version.
77233
77234 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77235
77236         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77237         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77238         2.1.3 bug.  This avoids a clash when files like regex.c define
77239         _GNU_SOURCE.
77240
77241 2000-05-06  Jim Meyering  <meyering@lucent.com>
77242
77243         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77244         (AC_REPLACE_FUNCS): Add strnlen.
77245
77246         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77247         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77248
77249         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77250         AC_SEARCH_LIBS call for nanosleep.
77251         (LIB_NANOSLEEP): Set and AC_SUBST.
77252
77253 2000-05-06  Jim Meyering  <meyering@lucent.com>
77254
77255         * lib/strnlen.c: Undefine __strnlen and strnlen.
77256         [!weak_alias]: Define __strnlen to strnlen.
77257
77258         * lib/atexit.c: New file, from libiberty.
77259
77260 2000-05-06  Jim Meyering  <meyering@lucent.com>
77261
77262         * lib/closeout.c (close_stdout_status): Also check for errors on the
77263         stderr stream.
77264
77265 2000-05-05  Jim Meyering  <meyering@lucent.com>
77266
77267         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77268         AC_SEARCH_LIBS call for clock_gettime.
77269         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77270
77271         * m4/search-libs.m4: Update from autoconf.
77272
77273         su doesn't work on Solaris 2.6.
77274         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77275         <shadow.h>.  Reported by Dragos Harabor.
77276
77277 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77278
77279         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77280         memcpy instead of xmalloc, xrealloc, path_concat.
77281         (locale_charset): Treat empty environment variables as absent.
77282         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77283
77284 2000-05-04  Jim Meyering  <meyering@lucent.com>
77285
77286         * lib/getopt.c: Update from glibc.
77287         * lib/obstack.c: Likewise.
77288         * lib/obstack.h: Likewise.
77289         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77290         file
77291
77292         * lib/regex.h: Likewise.
77293         * lib/strndup.c: Likewise.
77294         * lib/strnlen.c: New file, from glibc.
77295
77296 2000-05-03  Jim Meyering  <meyering@lucent.com>
77297
77298         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77299
77300 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77301
77302         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77303         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77304         compile-time test, rather than inspecting host and OS, to
77305         decide whether to define _LARGEFILE_SOURCE.
77306
77307 2000-05-01  Jim Meyering  <meyering@lucent.com>
77308
77309         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77310
77311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77312         Based on a patch from Bruno Haible.
77313
77314 2000-05-01  Jim Meyering  <meyering@lucent.com>
77315
77316         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77317
77318 2000-04-29  Jim Meyering  <meyering@lucent.com>
77319
77320         * lib/path-concat.c: Declare strdup only if it's not defined.
77321         * lib/canon-host.c: Likewise.
77322
77323 2000-04-28  Jim Meyering  <meyering@lucent.com>
77324
77325         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77326         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77327         is included first, then limits.h is included by locale.h by libintl.h.
77328         From John David Anglin.
77329
77330 2000-04-25  Jim Meyering  <meyering@lucent.com>
77331
77332         * lib/makepath.c (S_IRWXUGO): Define.
77333         (make_path): Always perform explicit chmod if MODE specifies any
77334         of the `special' permission bits.  Prompted by a bug report against
77335         install from Mate Wierdl and Joost van Baal.
77336
77337 2000-04-18  Jim Meyering  <meyering@lucent.com>
77338
77339         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77340         (jm_PREREQ): Use it.
77341
77342 2000-04-18  Jim Meyering  <meyering@lucent.com>
77343
77344         * lib/README: New file.
77345
77346         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77347         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77348
77349 2000-04-17  Jim Meyering  <meyering@lucent.com>
77350
77351         Get it right :-)
77352         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77353         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77354         Suggestion from Akim Demaille.
77355
77356 2000-04-17  Jim Meyering  <meyering@lucent.com>
77357
77358         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77359         the definition of it to rpl_strftime also defined-away the system's
77360         declaration.
77361
77362 2000-04-15  Jim Meyering  <meyering@lucent.com>
77363
77364         Use `C' to denote so-called `contiguous' files, the same way
77365         that tar does.
77366         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77367         (ftypelet): Use S_ISCTG.
77368         From Michael Deutschmann.
77369
77370 2000-04-14  Jim Meyering  <meyering@lucent.com>
77371
77372         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77373         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77374         clobbered.
77375
77376 2000-04-14  Jim Meyering  <meyering@lucent.com>
77377
77378         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77379
77380 2000-04-13  Jim Meyering  <meyering@lucent.com>
77381
77382         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77383         AH_VERBATIM to insert required #ifndef into config.h.in.
77384         Suggestion from Akim Demaille.
77385
77386 2000-04-12  Jim Meyering  <meyering@lucent.com>
77387
77388         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77389         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77390         Christian Krackowizer.
77391
77392         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77393         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77394         (AC_SYS_LARGEFILE): Require.
77395         (AM_C_PROTOTYPES): Require.
77396
77397 2000-04-08  Jim Meyering  <meyering@lucent.com>
77398
77399         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77400         names don't conflict.  Reported by Eli Zaretskii.
77401
77402 2000-04-07  Jim Meyering  <meyering@lucent.com>
77403
77404         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77405         sys/types.h, to work around system header problems on AIX 3.2.5.
77406         From Bruno Haible.
77407
77408 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77409
77410         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77411         bug.  Deal with the different error behavior of Irix iconv.
77412
77413 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77414
77415         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77416         IRIX if the installer said otherwise.
77417
77418 2000-04-05  Jim Meyering  <meyering@lucent.com>
77419
77420         Portability tweaks required for ultrix4.3.
77421         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77422         (jm_CHECK_DECLS): Add getutent to the list of functions.
77423         (_jm_DECL_HEADERS): Add utmpx.h.
77424         From John David Anglin.
77425
77426         * m4/strftime.m4: Back out the 2000-04-02 change.
77427         Instead of that change, simply undefine putenv in the test program.
77428
77429 2000-04-05  Jim Meyering  <meyering@lucent.com>
77430
77431         Portability tweaks required for ultrix4.3.
77432         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77433         getutent.
77434         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77435         * lib/canon-host.c: Declare strdup.
77436         * lib/path-concat.c: Likewise.
77437         From John David Anglin.
77438
77439 2000-04-04  Jim Meyering  <meyering@lucent.com>
77440
77441         Be more DOS 8.3-friendly.
77442         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77443         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77444         * lib/Makefile.am: Reflect renaming.
77445         Reported by Eli Zaretskii.
77446
77447         Use a temporary file name that won't clash with `charset.alias'
77448         in the DOS 8.3 name space.
77449         * lib/Makefile.am (charset_tmp): Define.
77450         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77451         (uninstall-local): Likewise.
77452         Reported by Eli Zaretskii.
77453
77454 2000-04-03  Jim Meyering  <meyering@lucent.com>
77455
77456         * m4/gettext.m4: Fix typo in comment.
77457
77458         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77459         textutils/configure.in).  Suggestion from Paul Eggert.
77460         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77461
77462 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77463
77464         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77465         variable in the shell rather than using putenv, which isn't
77466         portable.  This avoids the configure-time inter-test dependency
77467         on the potentially-renamed putenv function.
77468
77469 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77470
77471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77472         before checking struct stat.st_blksize, so that
77473         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77474
77475 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77476
77477         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77478         since strftime.c uses HAVE_STRFTIME to decide whether to use
77479         the underlying strftime.
77480
77481 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77482
77483         * lib/time/strftime.c (my_strftime): Make sure we call the system
77484         strftime, not ourselves, when invoking the underlying strftime.
77485
77486 2000-03-24  Jim Meyering  <meyering@lucent.com>
77487
77488         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77489         (charset_alias): Define.
77490         (install-exec-local): Factor out common code.
77491         (uninstall-local): Split lines longer than 80.
77492         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77493         (SUFFIXES): Define.
77494         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77495         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77496
77497 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77498
77499         * lib/config.charset: Output a line containing "Packages using this
77500         file".
77501         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77502         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77503         ref-del.sed): New rules.
77504
77505 2000-03-17  Jim Meyering  <meyering@lucent.com>
77506
77507         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77508         Otherwise, include <strings.h>
77509
77510 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77511
77512         * lib/unicodeio.c (utf8_wctomb): New function.
77513         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77514         format instead of in UCS-4 with platform dependent endianness.
77515
77516 2000-03-10  Jim Meyering  <meyering@lucent.com>
77517
77518         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77519         From Marco Franzen.
77520
77521 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77522
77523         * lib/savedir.c (savedir): Work even if directory size is
77524         negative; this can happen with some screwy NFS configurations.
77525
77526 2000-03-06  Jim Meyering  <meyering@lucent.com>
77527
77528         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77529         if it's NULL (because we ran out of memory).  From Bruno Haible.
77530
77531 2000-03-05  Jim Meyering  <meyering@lucent.com>
77532
77533         * lib/localcharset.c ("path-concat.h"): Include.
77534         (get_charset_aliases): Use path_concat instead of ANSI string
77535         concatenation.
77536
77537         * lib/unicodeio.h (PARAMS): Define.
77538         Use it to guard prototype.
77539
77540 2000-03-04  Jim Meyering  <meyering@lucent.com>
77541
77542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77543         for lib/localcharset.c.
77544
77545 2000-03-04  Jim Meyering  <meyering@lucent.com>
77546
77547         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77548         installing into it.
77549         (uninstall-local): Uncomment this rule so `make distcheck' works
77550         once again.
77551
77552         * lib/unicodeio.c (<errno.h>): Include it.
77553         (errno): Declare if not defined.
77554
77555         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77556
77557         * lib/config.charset: New version, incorporating remarks from a linux
77558         i18n mailing list.  From Bruno Haible.
77559
77560 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77561
77562         * m4/codeset.m4: New file.
77563         * m4/iconv.m4: New file.
77564         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77565
77566 2000-03-03  Jim Meyering  <meyering@lucent.com>
77567
77568         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77569
77570 2000-03-02  Jim Meyering  <meyering@lucent.com>
77571
77572         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77573         the messages come out on separate lines.
77574
77575         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77576         rather than jm_CHECK_DECLARATIONS.
77577         * m4/decl.m4: Remove now-unused file.
77578
77579         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77580         geteuid.
77581
77582 2000-03-02  Jim Meyering  <meyering@lucent.com>
77583
77584         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77585
77586 2000-03-01  Jim Meyering  <meyering@lucent.com>
77587
77588         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77589         * lib/unicodeio.c: Likewise.
77590
77591 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77592
77593         * lib/config.charset: New file.
77594         * lib/localcharset.c: New file.
77595         * lib/unicodeio.h, lib/unicodeio.c: New files.
77596         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
77597         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
77598         (noinst_HEADERS): Add unicodeio.h.
77599         (all-local, install-exec-local, charset.alias): New targets.
77600
77601 2000-02-28  Paul Eggert  <eggert@twinsun.com>
77602
77603         * lib/quotearg.c (ALERT_CHAR): New macro.
77604         (quotearg_buffer_restyled): Use it.
77605
77606 2000-02-27  Jim Meyering  <meyering@lucent.com>
77607
77608         * m4/check-decl.m4: Add getenv to the list.
77609
77610 2000-02-27  Jim Meyering  <meyering@lucent.com>
77611
77612         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
77613         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
77614
77615         * lib/backupfile.c: Guard inclusion of stdlib.h with
77616         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
77617         Declare malloc if needed.
77618
77619         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
77620         `#ifndef HAVE_DECL..'
77621         now that autoconf always defines the HAVE_DECL_ symbols.
77622         * lib/human.c: Likewise.
77623         * lib/same.c: Likewise.
77624         * lib/strtoumax.c: Likewise.
77625
77626         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
77627         declaration check was not run.
77628         * lib/hash.c: Likewise.
77629         * lib/human.c: Likewise.
77630         * lib/same.c: Likewise.
77631         * lib/strtoumax.c: Likewise.
77632
77633         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
77634         `.', then first look up the entire `.'-containing string as a login
77635         name.
77636
77637 2000-02-23  Jim Meyering  <meyering@lucent.com>
77638
77639         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
77640         in place of my hack.
77641
77642 2000-02-18  Paul Eggert  <eggert@twinsun.com>
77643
77644         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
77645         (textint): New typedef.
77646         (parser_control): Member year changed from int to textint.
77647         All uses changed.
77648         (YYSTYPE): Removed; replaced by %union with int and textint members.
77649         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
77650         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
77651         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
77652         (tSNUMBER, tUNUMBER): Now of type <textintval>.
77653         (date, number, to_year): Use width of number in digits, not its value,
77654         to determine whether it's a 2-digit year, or a 2-digit time.
77655         (yylex): Store number of digits of numeric tokens.
77656         Reported by John Kendall.
77657
77658         (parser_control): Changed from struct parser_control to typedef (for
77659         consistency).  All uses changed.
77660
77661         (tID): Removed; not used.
77662         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
77663
77664 2000-02-14  Paul Eggert  <eggert@twinsun.com>
77665
77666         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
77667         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
77668
77669 2000-02-12  Jim Meyering  <meyering@lucent.com>
77670
77671         * lib/userspec.c (ISDIGIT): Define it.
77672         (isdigit): Remove definition.
77673         (is_number): Use ISDIGIT, not isdigit.
77674         <libintl.h>: Include.
77675         (_ and N_): Define.
77676         (parse_user_spec): Mark translatable strings.
77677
77678 2000-02-10  Jim Meyering  <meyering@lucent.com>
77679
77680         With these changes, nanosleep.[ch] are finally enough like the other
77681         lib/* replacement files to compile on a few more losing systems.
77682
77683         * lib/nanosleep.h: Don't include config.h.
77684         Remove prototype from declaration of nanosleep.
77685         (PARAMS): Remove now-unneeded definition.
77686         * lib/nanosleep.c: #undef nanosleep.
77687         (rpl_nanosleep): Rename from nanosleep.
77688
77689 2000-02-10  Jim Meyering  <meyering@lucent.com>
77690
77691         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
77692         gnu_nanosleep to rpl_nanosleep.
77693
77694 2000-02-09  Jim Meyering  <meyering@lucent.com>
77695
77696         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
77697         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
77698
77699 2000-02-08  Akim Demaille  <akim@epita.fr>
77700
77701         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
77702         `[' and `]' and remove uses of `changequote'.
77703         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
77704         (AC_SYS_LARGEFILE): Likewise.
77705         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
77706         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
77707         of changequote.
77708         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
77709         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
77710         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
77711         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
77712
77713 2000-02-05  Jim Meyering  <meyering@lucent.com>
77714
77715         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
77716         Remove explicit use of AC_HEADER_TIME.  It is required by
77717         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
77718         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
77719         in autoconf whereby the expansion of the latter ended up preceding
77720         the expansion of its prerequisite, AC_HEADER_TIME.
77721         Reported by Volker Borchert.
77722
77723 2000-02-03  Jim Meyering  <meyering@lucent.com>
77724
77725         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
77726
77727 2000-02-03  Jim Meyering  <meyering@lucent.com>
77728
77729         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
77730         rather than with `#if HAVE_UTMPNAME'.
77731
77732 2000-02-02  Jim Meyering  <meyering@lucent.com>
77733
77734         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
77735         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
77736         Reported by Eli Zaretskii.
77737
77738 2000-02-01  Jim Meyering  <meyering@lucent.com>
77739
77740         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
77741
77742 2000-01-31  Jim Meyering  <meyering@lucent.com>
77743
77744         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
77745         functions.  Add the time.h and sys/time.h headers along with the
77746         AC_REQUIRE'ment of AC_HEADER_TIME.
77747
77748 2000-01-31  Jim Meyering  <meyering@lucent.com>
77749
77750         * lib/nanosleep.h (nanosleep): Guard declaration with
77751         `#if ! HAVE_DECL_NANOSLEEP'.
77752         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
77753         the declaration in that vendor's sys/timers.h.
77754         Reported by Christian Krackowizer.
77755
77756         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
77757         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
77758         (ISPRINT): Likewise.
77759         Reported by Tom Tromey.
77760
77761 2000-01-30  Jim Meyering  <meyering@lucent.com>
77762
77763         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
77764
77765         * m4/prereq.m4 (utmp_includes): Define.
77766         Check for ut_user and ut_name members in both struct utmpx
77767         and struct utmp.
77768
77769 2000-01-30  Jim Meyering  <meyering@lucent.com>
77770
77771         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
77772         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
77773         header files where only utmpx.ut_user is declared.
77774
77775         * lib/readutmp.h (UT_USER): Define.
77776
77777 2000-01-29  Jim Meyering  <meyering@lucent.com>
77778
77779         * m4/lib-check.m4: New file containing library-related checks from
77780         fileutils and sh-utils (textutils had none).
77781
77782 2000-01-28  Jim Meyering  <meyering@lucent.com>
77783
77784         * m4/perl.m4: Change format of warning message to look more like that
77785         from the missing script.  Suggestion from François Pinard.
77786
77787 2000-01-25  Jim Meyering  <meyering@lucent.com>
77788
77789         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
77790         well as time.h in the compile check.
77791         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
77792         Fix typo in cross-compiling case: s/yes/no/.
77793
77794 2000-01-23  Jim Meyering  <meyering@lucent.com>
77795
77796         * m4/jm-macros.m4: Move df-related tests here from
77797         fileutils/configure.in
77798
77799         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
77800         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
77801
77802         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
77803         s/space/ac_fsusage_space/.
77804         (jm_FILE_SYSTEM_USAGE): Take two parameters.
77805
77806         * m4/ftruncate.m4: New file (derived from part of
77807         fileutils/configure.in).
77808         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
77809         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
77810
77811         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
77812         AC_SUBST these here, rather than just in sh-util/configure.in, so
77813         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
77814         all the same.
77815         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
77816         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
77817         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
77818         (AC_SUBST(POW_LIBM)): Likewise.
77819         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
77820
77821 2000-01-23  Jim Meyering  <meyering@lucent.com>
77822
77823         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
77824         obstack.c.
77825
77826 2000-01-22  Jim Meyering  <meyering@lucent.com>
77827
77828         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
77829
77830         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
77831
77832         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
77833         configure.in
77834         (AC_CHECK_HEADERS): Likewise for sh-utils.
77835         (AC_CHECK_HEADERS): Likewise for textutils.
77836         Merge the three lists of headers.
77837
77838         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
77839         from fileutils' configure.in.
77840
77841         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
77842         code. Moved tests into their own function (_jm_DECL_HEADERS) in
77843         check-decl.m4.
77844
77845         * m4/check-decl.m4: Use #if rather than #ifdef.
77846         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
77847         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
77848         (_jm_DECL_HEADERS): Define new function.
77849         (jm_CHECK_DECLARATIONS): Require it.
77850
77851 2000-01-22  Jim Meyering  <meyering@lucent.com>
77852
77853         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
77854         [! HAVE_DECL_STRTOULL]: Declare strtoull.
77855         Required for some AIX systems.  Reported by Christian Krackowizer.
77856         [TESTING] (main): New function.
77857
77858         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
77859         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
77860         letters.
77861
77862         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
77863         iswprint.
77864
77865         * lib/strverscmp.c (ISDIGIT): Define.
77866         (strverscmp): Use ISDIGIT, not isdigit.
77867
77868 2000-01-19  Jim Meyering  <meyering@lucent.com>
77869
77870         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
77871         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
77872         defines `struct timespec' in <sys/time.h>
77873
77874         * m4/c-bs-a.m4: Remove uses of changequote altogether.
77875         Thanks to Akim for explaining.
77876
77877 2000-01-17  Paul Eggert  <eggert@twinsun.com>
77878
77879         * lib/nanosleep.c (nanosleep):
77880         Don't use SA_INTERRUPT to decide whether to call sigaction, as
77881         POSIX.1 doesn't require SA_INTERRUPT and some systems
77882         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
77883         it's been part of POSIX.1 since day 1 (in 1988).
77884
77885 2000-01-17  Jim Meyering  <meyering@lucent.com>
77886
77887         * lib/interlock: Remove unused file.  Reported by François Pinard.
77888
77889 2000-01-16  Paul Eggert  <eggert@twinsun.com>
77890
77891         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
77892         alert, backslash, formfeed, and vertical tab unnecessarily in
77893         shell quoting style.
77894
77895 2000-01-16  Jim Meyering  <meyering@lucent.com>
77896
77897         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
77898         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
77899         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
77900         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
77901
77902 2000-01-16  Jim Meyering  <meyering@lucent.com>
77903
77904         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
77905         because the latter didn't work.
77906
77907 2000-01-15  Jim Meyering  <meyering@lucent.com>
77908
77909         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
77910         (AC_REPLACE_FUNCS): Add memcpy and memset.
77911         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
77912         Add strpbrk.
77913         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
77914
77915 2000-01-12  Jim Meyering  <meyering@lucent.com>
77916
77917         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
77918         (jm_PREREQ): Use it.
77919         (jm_PREREQ_READUTMP): New macro.
77920         (jm_PREREQ): Use it.
77921
77922 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77923
77924         Quote multibyte characters correctly.
77925         * m4/c-bs-a.m4: New file.
77926         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
77927         (jm_PREREQ): Use it.
77928
77929 2000-01-11  Paul Eggert  <eggert@twinsun.com>
77930
77931         * m4/uintmax_t.m4: Port to autoconf 2.13.
77932
77933 2000-01-08  Jim Meyering  <meyering@ascend.com>
77934
77935         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
77936         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
77937
77938 2000-01-04  Jim Meyering  <meyering@ascend.com>
77939
77940         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
77941         jm_STRUCT_DIRENT_D_TYPE.
77942         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
77943         jm_STRUCT_DIRENT_D_INO.
77944         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
77945         jm_STRUCT_UTIMBUF.
77946         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
77947         renamings.
77948         * m4/utime.m4: Likewise.
77949
77950         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
77951         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
77952
77953 2000-01-03  Paul Eggert  <eggert@twinsun.com>
77954
77955         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
77956         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
77957
77958 2000-01-02  Jim Meyering  <meyering@ascend.com>
77959
77960         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
77961         remember if this is necessary.
77962
77963 1999-12-26  Jim Meyering  <meyering@ascend.com>
77964
77965         * m4/jm-macros.m4: Use it here.
77966         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
77967
77968 1999-12-23  Jim Meyering  <meyering@ascend.com>
77969
77970         * m4/jm-macros.m4: Check for clock_gettime (moved from
77971         fileutils/configure.in)
77972         Check for gettimeofday.
77973
77974 1999-12-20  Jim Meyering  <meyering@ascend.com>
77975
77976         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
77977         autoconf-2.14a-1999-12-20.
77978
77979 1999-12-19  Jim Meyering  <meyering@ascend.com>
77980
77981         * m4/lstat-slash.m4: New file.
77982         * m4/jm-macros.m4: Use the new macro:
77983         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77984
77985 1999-12-07  Jim Meyering  <meyering@ascend.com>
77986
77987         * m4/perl.m4: Require that File::Compare be available, too.
77988         Too many systems seem to lack it.
77989
77990         * m4/strftime.m4: Add checks for most of the cpp macros tested in
77991         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
77992
77993 1999-11-18  Paul Eggert  <eggert@twinsun.com>
77994
77995         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
77996         problem with the QNX 4.25 shell, which doesn't propagate exit
77997         status of failed commands inside shell assignments.
77998
77999 1999-11-17  Jim Meyering  <meyering@ascend.com>
78000
78001         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
78002
78003 1999-11-07  Jim Meyering  <meyering@ascend.com>
78004
78005         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
78006
78007 1999-11-06  Jim Meyering  <meyering@ascend.com>
78008
78009         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
78010         * m4/jm-macros.m4 (jm_MACROS): Use it here.
78011
78012 1999-11-05  Jim Meyering  <meyering@ascend.com>
78013
78014         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
78015         configure.in of textutils, fileutils, and sh-utils into this one
78016         (shared between those packages) file.
78017         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
78018         AC_STRUCT_ST_BLKSIZE.
78019
78020 1999-11-03  Jim Meyering  <meyering@ascend.com>
78021
78022         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
78023         of AC_CHECK_TYPE checks includes unistd.h.
78024         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
78025         Suggestion from Akim Demaille.
78026
78027 1999-10-30  Jim Meyering  <meyering@ascend.com>
78028
78029         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
78030         m4-quoted string.
78031         * m4/ls-mntd-fs.m4: Likewise.
78032         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
78033         * m4/jm-winsz1.m4: Likewise.
78034
78035         * m4/const.m4: Remove file, since the fix made it into the experimental
78036         version of autoconf.
78037         * m4/mktime.m4: Likewise.
78038
78039         * m4/check-type.m4: Remove file, now that the latest version of
78040         AC_CHECK_TYPE takes a third arg to specify additional #includes.
78041
78042         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
78043         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
78044         AC_CHECK_TYPE.
78045
78046 1999-10-04  Jim Meyering  <meyering@ascend.com>
78047
78048         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
78049
78050 1999-09-22  Paul Eggert  <eggert@twinsun.com>
78051
78052         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
78053         2.95.1 bug with HP-UX 10.20.
78054
78055 1999-09-17  Jim Meyering  <meyering@ascend.com>
78056
78057         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
78058         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
78059         due to missing strdup (against sh-utils-2.0).
78060
78061 1999-08-29  Jim Meyering  <meyering@ascend.com>
78062
78063         * m4/jm-macros.m4: Require jm_BISON.
78064         * m4/bison.m4: New file.
78065
78066 1999-08-17  Paul Eggert  <eggert@twinsun.com>
78067
78068         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
78069         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
78070
78071 1999-08-05  Jim Meyering  <meyering@ascend.com>
78072
78073         * m4/getline.m4: Rename test file from conftestdata to conftest.data
78074         to avoid conflicts with `conftest' on 8+3 filesystems.
78075         Suggestion from Eli Zaretskii.
78076
78077 1999-08-04  Jim Meyering  <meyering@ascend.com>
78078
78079         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
78080         fileutils and sh-utils (textutils's getline test was inadequate).
78081         (AM_FUNC_GETLINE): Run this test.
78082         (AC_CHECK_FUNCS): Check for getdelim.
78083         Reported by Bob Proulx.
78084
78085 1999-08-02  Jim Meyering  <meyering@ascend.com>
78086
78087         * m4/jm-macros.m4: Add a comment.
78088
78089 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78090
78091         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
78092         <inttypes.h> defines strtoumax as a macro (and not as a
78093         function).
78094
78095 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78096
78097         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
78098         that we can shift, multiply and divide unsigned long long
78099         values; Ultrix cc can't do it.
78100
78101 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78102
78103         * m4/mktime.m4: New file, which is a preview of what should appear
78104         in the next public autoconf release.
78105
78106 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78107
78108         * m4/lfs.m4: Remove this file.
78109         * m4/largefile.m4: New file.  It contains the old contents of
78110         lfs.m4, except that all names with prefix AC_LFS have been
78111         changed to use the prefix AC_SYS_LARGEFILE instead, to be
78112         compatible with future autoconf versions.  Also, some minor m4
78113         quoting problems have been fixed.
78114
78115 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78116
78117         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
78118         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
78119         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
78120         and simplify the shell code.
78121
78122 1999-08-01  Jim Meyering  <meyering@ascend.com>
78123
78124         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
78125         m4.
78126
78127 1999-07-20  Jim Meyering  <meyering@ascend.com>
78128
78129         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
78130
78131 1999-07-15  Jim Meyering  <meyering@ascend.com>
78132
78133         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
78134
78135 1999-05-22  Jim Meyering  <meyering@ascend.com>
78136
78137         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
78138
78139 1999-05-20  Jim Meyering  <meyering@ascend.com>
78140
78141         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
78142         Add a colon after each `then' in case $4 is empty.
78143
78144 1999-05-16  Jim Meyering  <meyering@ascend.com>
78145
78146         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
78147
78148 1999-05-10  Jim Meyering  <meyering@ascend.com>
78149
78150         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
78151
78152         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78153         AC_FUNC_MKTIME.
78154
78155 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78156
78157         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78158
78159 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78160
78161         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78162         not CPPFLAGS, so that linking works correctly in IRIX.
78163
78164 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78165
78166         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78167
78168 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78169
78170         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78171         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78172         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78173         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78174         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78175
78176         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78177
78178 1999-04-20  Jim Meyering  <meyering@ascend.com>
78179
78180         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78181         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78182         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78183
78184 1999-04-18  Jim Meyering  <meyering@ascend.com>
78185
78186         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78187         * m4/jm-macros.m4: Use it.
78188
78189 1999-04-06  Jim Meyering  <meyering@ascend.com>
78190
78191         * m4/strftime.m4: Remove test for %f.
78192
78193 1999-03-29  Jim Meyering  <meyering@ascend.com>
78194
78195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78196         superset of the AC_TYPE_* checks in the textutils, fileutils,
78197         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78198         AC_TYPE_PID_T.
78199
78200 1999-03-28  Jim Meyering  <meyering@ascend.com>
78201
78202         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78203         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78204         replaced e.g., in the *.sh files of the sh-utils.
78205
78206 1999-03-20  Jim Meyering  <meyering@ascend.com>
78207
78208         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78209         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78210         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78211
78212 1999-03-19  Jim Meyering  <meyering@ascend.com>
78213
78214         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78215
78216 1999-03-12  Jim Meyering  <meyering@ascend.com>
78217
78218         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78219
78220 1999-03-07  Jim Meyering  <meyering@ascend.com>
78221
78222         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78223         declared.
78224
78225 1999-02-17  Jim Meyering  <meyering@ascend.com>
78226
78227         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78228         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78229
78230 1999-02-07  Jim Meyering  <meyering@ascend.com>
78231
78232         * m4/group-member.m4: New file -- extracted from sh-utils'
78233         configure.in.
78234
78235         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78236         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78237
78238 1999-02-06  Jim Meyering  <meyering@ascend.com>
78239
78240         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78241         * m4/fnmatch.m4: Likewise.
78242         * m4/getgroups.m4: Likewise.
78243         * m4/lstat.m4: Likewise.
78244         * m4/malloc.m4: Likewise.
78245         * m4/putenv.m4: Likewise.
78246         * m4/realloc.m4: Likewise.
78247         * m4/regex.m4: Likewise.
78248         * m4/stat.m4: Likewise.
78249         * m4/strftime.m4: Likewise.
78250         Suggestion from Alain Magloire.
78251
78252         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78253         * m4/fnmatch.m4: Likewise.
78254         * m4/getgroups.m4: Likewise.
78255         * m4/getline.m4: Likewise.
78256         * m4/lstat.m4: Likewise.
78257         * m4/malloc.m4: Likewise.
78258         * m4/memcmp.m4: Likewise.
78259         * m4/putenv.m4: Likewise.
78260         * m4/realloc.m4: Likewise.
78261         * m4/regex.m4: Likewise.
78262         * m4/stat.m4: Likewise.
78263         * m4/strftime.m4: Likewise.
78264         Suggestion from Alain Magloire.
78265
78266         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78267         an argument.
78268
78269         * m4/regex.m4: Add a run-time Test for proper operation of
78270         re_compile_pattern.
78271
78272 1999-01-31  Jim Meyering  <meyering@ascend.com>
78273
78274         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78275
78276 1999-01-30  Jim Meyering  <meyering@ascend.com>
78277
78278         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78279
78280         * m4/jm-mktime.m4: Make this a wrapper around the official
78281         AM_FUNC_MKTIME rather than my private copy, now that the official one
78282         is up to date.
78283         * m4/mktime.m4: Remove file.
78284
78285         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78286         * m4/uptime.m4: Likewise.
78287         * m4/uintmax_t.m4: Likewise.
78288
78289 1999-01-28  Jim Meyering  <meyering@ascend.com>
78290
78291         * m4/jm-macros.m4: Use jm_AFS.
78292         * m4/afs.m4: New file (from fileutils' configure.in).
78293
78294         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78295         * m4/chown.m4: Likewise.
78296         * m4/d-ino.m4: Likewise.
78297         * m4/d-type.m4: Likewise.
78298         * m4/fnmatch.m4: Likewise.
78299         * m4/getgroups.m4: Likewise.
78300         * m4/gettext.m4: Likewise.
78301         * m4/jm-mktime.m4: Likewise.
78302         * m4/jm-winsz2.m4: Likewise.
78303         * m4/lcmessage.m4: Likewise.
78304         * m4/ls-mntd-fs.m4: Likewise.
78305         * m4/malloc.m4: Likewise.
78306         * m4/memcmp.m4: Likewise.
78307         * m4/putenv.m4: Likewise.
78308         * m4/realloc.m4: Likewise.
78309         * m4/st_mtim.m4: Likewise.
78310         * m4/strftime.m4: Likewise.
78311
78312 1999-01-16  Jim Meyering  <meyering@ascend.com>
78313
78314         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78315         (ARGMATCH_DIE_DECL): Define.
78316
78317 1999-01-12  Jim Meyering  <meyering@ascend.com>
78318
78319         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78320         Reported by Lars Hecking.
78321
78322 1999-01-10  Jim Meyering  <meyering@ascend.com>
78323
78324         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78325         gross kludge.
78326         * m4/inttypes_h.m4: Likewise.
78327         * m4/lstat.m4: Likewise.
78328         * m4/malloc.m4: Likewise.
78329         * m4/readdir.m4: Likewise.
78330         * m4/realloc.m4: Likewise.
78331         * m4/st_dm_mode.m4: Likewise.
78332         * m4/stat.m4: Likewise.
78333         * m4/utimbuf.m4: Likewise.
78334         * m4/utimes.m4: Likewise.
78335
78336         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78337         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78338         comments in config.h.in are meaningful.
78339
78340         * m4/jm-macros.m4: Require autoconf-2.13 here.
78341
78342         * m4/regex.m4: By default, don't use the included regex.c on systems
78343         with glibc 2.  Suggestion from Uli Drepper.
78344
78345 1999-01-02  Jim Meyering  <meyering@ascend.com>
78346
78347         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78348
78349 1998-12-18  Jim Meyering  <meyering@ascend.com>
78350
78351         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78352         Based on a suggestion from Lars Hecking.
78353
78354 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78355
78356         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78357
78358 1998-11-16  Jim Meyering  <meyering@ascend.com>
78359
78360         * m4/lfs.m4: Double-quote the `uname...` expression.
78361
78362 1998-11-14  Jim Meyering  <meyering@ascend.com>
78363
78364         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78365         * m4/stat.m4: Likewise.
78366
78367 1998-11-03  Jim Meyering  <meyering@ascend.com>
78368
78369         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78370         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78371
78372 1998-10-18  Jim Meyering  <meyering@ascend.com>
78373
78374         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78375
78376 1998-10-17  Jim Meyering  <meyering@ascend.com>
78377
78378         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78379         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78380         calls for those previously hard-coded headers.  Instead, take a new
78381         parameter.
78382         (jm_CHECK_DECLARATIONS): Reflect interface change.
78383         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78384         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78385
78386         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78387
78388 1998-10-14  Jim Meyering  <meyering@ascend.com>
78389
78390         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78391         instead of "TZ=America/Vancouver".  From Paul Eggert.
78392
78393 1998-10-11  Jim Meyering  <meyering@ascend.com>
78394
78395         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78396         This adds a test for a recently added compatibility fix for mktime.c.
78397         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78398
78399 1998-09-27  Jim Meyering  <meyering@ascend.com>
78400
78401         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78402
78403         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78404         ../configure.in, including a change from Gordon Matzigkeit to allow
78405         cross-compiling for the Hurd.
78406
78407         * m4/glibc.m4: New file/macro to test for the GNU C Library
78408         versions 1 and 2.  From Gordon Matzigkeit.
78409         Indent.
78410
78411 1998-09-21  Jim Meyering  <meyering@ascend.com>
78412
78413         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78414
78415 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78416
78417         Port nanosecond-resolution times to UnixWare 2.1.2 and
78418         pedantic Solaris 2.6.
78419
78420         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78421         AC_STRUCT_ST_MTIM.
78422         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78423         Generate name of ns member, instead of just 1 or undef.
78424         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78425
78426 1998-08-15  Jim Meyering  <meyering@ascend.com>
78427
78428         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78429         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78430         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78431         instead of jm_TYPE_SSIZE_T.
78432
78433 1998-08-12  Jim Meyering  <meyering@ascend.com>
78434
78435         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78436
78437 1998-08-02  Jim Meyering  <meyering@ascend.com>
78438
78439         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78440         in acconfig.h manually.
78441
78442 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78443
78444         * m4/st_mtim.m4: New file.
78445
78446 1998-07-28  Jim Meyering  <meyering@ascend.com>
78447
78448         * m4/utimes.m4: Undef stat.
78449
78450 1998-07-25  Jim Meyering  <meyering@ascend.com>
78451
78452         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78453         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78454
78455 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78456
78457         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78458         uid and gid actually remain unchanged.
78459
78460 1998-07-07  Jim Meyering  <meyering@ascend.com>
78461
78462         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78463
78464 1998-07-04  Jim Meyering  <meyering@ascend.com>
78465
78466         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78467         to prove that this macro can be used in packages without regex.c.
78468
78469 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78470
78471         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78472         is to be used.
78473
78474 1998-07-03  Jim Meyering  <meyering@ascend.com>
78475
78476         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78477
78478         * m4/gettext.m4: New file -- from gettext-0.10.35.
78479         * m4/lcmessage.m4: Likewise.
78480         * m4/progtest.m4: Likewise.
78481
78482         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78483         * m4/jm-macros.m4: Require the new macro.
78484
78485 1998-06-29  Jim Meyering  <meyering@ascend.com>
78486
78487         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78488         for the definition of NGROUPS (used in a system header included
78489         by sys/mount.h).
78490
78491 1998-06-28  Jim Meyering  <meyering@ascend.com>
78492
78493         * m4/ls-mntd-fs.m4: New file.
78494         * m4/fstypename.m4: New file.
78495
78496         * m4/jm-macros.m4: Require the new macro.
78497         * m4/jm-glibc-io.m4: New file.
78498
78499 1998-05-19  Jim Meyering  <meyering@ascend.com>
78500
78501         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78502         * m4/lchown.m4: New file.
78503
78504         * m4/Makefile.am.in: New file.
78505         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78506
78507 1998-05-14  Jim Meyering  <meyering@ascend.com>
78508
78509         * m4/Makefile.am (EXTRA_DIST): Add them.
78510         * m4/jm-macros.m4: New file.
78511         * m4/utimbuf.m4: New file.
78512
78513 1998-05-12  Jim Meyering  <meyering@ascend.com>
78514
78515         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78516
78517 1998-05-11  Jim Meyering  <meyering@ascend.com>
78518
78519         * m4/isc-posix.m4: New file.
78520
78521 1998-05-10  Jim Meyering  <meyering@ascend.com>
78522
78523         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78524
78525 1998-05-09  Jim Meyering  <meyering@ascend.com>
78526
78527         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78528         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78529         with automake.
78530
78531         * m4/ssize_t.m4: New file.
78532         * m4/mktime.m4: Remove file -- the new automake has this now.
78533
78534 1998-04-26  Jim Meyering  <meyering@ascend.com>
78535
78536         * m4/assert.m4: New file.
78537         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78538
78539 1998-04-05  Jim Meyering  <meyering@ascend.com>
78540
78541         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78542         (jm_PREREQ): Use it here.
78543
78544 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78545
78546         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78547         in acconfig.h.
78548
78549 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78550
78551         * m4/prereq.m4: New file.
78552         * m4/error.m4: New file.
78553         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78554
78555 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78556
78557         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78558         cache-check for the same variable -- that defeated the purpose of
78559         the test; the test program was never run.  This was a problem only
78560         on systems with losing getline functions -- HP-UX 10.20 is one.
78561         Reported by Bjorn Helgaas.
78562
78563 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78564
78565         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78566
78567 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78568
78569         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78570
78571         * m4/const.m4: New file.  Use an initializer in this declaration
78572         typedef int charset[2]; const charset x;
78573         Reported by Bob Glickstein.
78574
78575 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78576
78577         * m4/chown.m4: Fix reversed types on -1 args to chown.
78578         From Kaveh Ghazi.
78579
78580 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78581
78582         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78583         Add lseek and memchr.
78584
78585         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78586         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78587         have a 20-character limit on names.
78588
78589 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78590
78591         * m4/inttypes_h.m4: New file.
78592         * m4/uintmax_t.m4: New file.
78593         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78594
78595
78596         -----
78597
78598         Local Variables:
78599         coding: utf-8
78600         End:
78601
78602         Copyright (C) 1997-2011 Free Software Foundation, Inc.
78603
78604         Copying and distribution of this file, with or without
78605         modification, are permitted provided the copyright notice
78606         and this notice are preserved.